diff options
| author | Paul Buetow <paul@buetow.org> | 2021-11-07 11:54:16 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2021-11-07 11:54:16 +0200 |
| commit | c5679ae69d0ffd17d6675d2b275b62daa1522ced (patch) | |
| tree | 91fb0774cfba3b90218a040fc93dace638e320c1 /internal/config/args.go | |
| parent | 4121a7fc9c24384566760708e2ee7a03de0bd484 (diff) | |
can set ssh private key path file via env var
Diffstat (limited to 'internal/config/args.go')
| -rw-r--r-- | internal/config/args.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/config/args.go b/internal/config/args.go index 5b1fc1e..8df6555 100644 --- a/internal/config/args.go +++ b/internal/config/args.go @@ -32,10 +32,10 @@ type Args struct { SSHBindAddress string SSHHostKeyCallback gossh.HostKeyCallback SSHPort int - SSHPrivateKeyPathFile string + SSHPrivateKeyFilePath string Serverless bool ServersStr string - Plain bool + Plain bool Timeout int TrustAllHosts bool UserName string @@ -63,7 +63,7 @@ func (a *Args) String() string { sb.WriteString(fmt.Sprintf("%s:%v,", "SSHAuthMethods", a.SSHAuthMethods)) sb.WriteString(fmt.Sprintf("%s:%v,", "SSHBindAddress", a.SSHBindAddress)) sb.WriteString(fmt.Sprintf("%s:%v,", "SSHHostKeyCallback", a.SSHHostKeyCallback)) - sb.WriteString(fmt.Sprintf("%s:%v,", "SSHPrivateKeyPathFile", a.SSHPrivateKeyPathFile)) + sb.WriteString(fmt.Sprintf("%s:%v,", "SSHPrivateKeyFilePath", a.SSHPrivateKeyFilePath)) sb.WriteString(fmt.Sprintf("%s:%v,", "SSHPort", a.SSHPort)) sb.WriteString(fmt.Sprintf("%s:%v,", "Serverless", a.Serverless)) sb.WriteString(fmt.Sprintf("%s:%v,", "ServersStr", a.ServersStr)) |
