WithIdentityFile sets the identity file option for the ssh executor
(identityFile string)
| 22 | |
| 23 | // WithIdentityFile sets the identity file option for the ssh executor |
| 24 | func WithIdentityFile(identityFile string) func(e *SSHExecutor) { |
| 25 | return func(e *SSHExecutor) { |
| 26 | e.IdentityFile = identityFile |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | // WithPassword sets the identity file option for the ssh executor |
| 31 | func WithPassword(pass string) func(e *SSHExecutor) { |