WithExecutor sets a custom command executor for the SSH client. This is primarily used for testing to inject mock executors.
(exec CommandExecutor)
| 40 | // WithExecutor sets a custom command executor for the SSH client. |
| 41 | // This is primarily used for testing to inject mock executors. |
| 42 | func WithExecutor(exec CommandExecutor) Option { |
| 43 | return func(c *SSHClient) { c.executor = exec } |
| 44 | } |
| 45 | |
| 46 | // WithJumpHost sets the SSH jump host configuration. |
| 47 | func WithJumpHost(jumpHost config.SSHJumpHost) Option { |
no outgoing calls