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

Function MaybeGetConn

pkg/remote/conncontroller/conncontroller.go:1092–1095  ·  view source on GitHub ↗

does NOT connect, can return nil

(opts *remote.SSHOpts)

Source from the content-addressed store, hash-verified

1090
1091// does NOT connect, can return nil
1092func MaybeGetConn(opts *remote.SSHOpts) *SSHConn {
1093 conn := getConnInternal(opts, false)
1094 return conn
1095}
1096
1097func IsConnected(connName string) (bool, error) {
1098 if IsLocalConnName(connName) {

Callers 5

ConnDisconnectCommandMethod · 0.92
getConnUnionMethod · 0.92
CheckConnStatusFunction · 0.92
startNewJobMethod · 0.92

Calls 1

getConnInternalFunction · 0.70

Tested by

no test coverage detected