SSHProcessController implements ShellCmd for SSH connections
| 28 | |
| 29 | // SSHProcessController implements ShellCmd for SSH connections |
| 30 | type SSHProcessController struct { |
| 31 | client *ssh.Client |
| 32 | session *ssh.Session |
| 33 | lock *sync.Mutex |
| 34 | once *sync.Once |
| 35 | stdinPiped bool |
| 36 | stdoutPiped bool |
| 37 | stderrPiped bool |
| 38 | waitErr error |
| 39 | started bool |
| 40 | cmdSpec CommandSpec |
| 41 | } |
| 42 | |
| 43 | // MakeSSHCmdClient creates a new instance of SSHCmdClient |
| 44 | func MakeSSHCmdClient(client *ssh.Client, cmdSpec CommandSpec) (*SSHProcessController, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected