MCPcopy
hub / github.com/wavetermdev/waveterm / GetConn

Function GetConn

pkg/remote/conncontroller/conncontroller.go:1086–1089  ·  view source on GitHub ↗

does NOT connect, does not return nil

(opts *remote.SSHOpts)

Source from the content-addressed store, hash-verified

1084
1085// does NOT connect, does not return nil
1086func GetConn(opts *remote.SSHOpts) *SSHConn {
1087 conn := getConnInternal(opts, true)
1088 return conn
1089}
1090
1091// does NOT connect, can return nil
1092func MaybeGetConn(opts *remote.SSHOpts) *SSHConn {

Callers 9

ConnConnectCommandMethod · 0.92
ConnUpdateWshCommandMethod · 0.92
DismissWshFailCommandMethod · 0.92
testBasicConnectFunction · 0.92
testShellWithCommandFunction · 0.92
testWshExecFunction · 0.92
testInteractiveShellFunction · 0.92
EnsureConnectionFunction · 0.85

Calls 1

getConnInternalFunction · 0.70

Tested by

no test coverage detected