MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / SSHProcessController

Struct SSHProcessController

pkg/genconn/ssh-impl.go:30–41  ·  view source on GitHub ↗

SSHProcessController implements ShellCmd for SSH connections

Source from the content-addressed store, hash-verified

28
29// SSHProcessController implements ShellCmd for SSH connections
30type 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
44func MakeSSHCmdClient(client *ssh.Client, cmdSpec CommandSpec) (*SSHProcessController, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected