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

Function DisconnectClient

pkg/remote/conncontroller/conncontroller.go:1140–1147  ·  view source on GitHub ↗
(opts *remote.SSHOpts)

Source from the content-addressed store, hash-verified

1138}
1139
1140func DisconnectClient(opts *remote.SSHOpts) error {
1141 conn := getConnInternal(opts, false)
1142 if conn == nil {
1143 return fmt.Errorf("client %q not found", opts.String())
1144 }
1145 err := conn.Close()
1146 return err
1147}
1148
1149func resolveSshConfigPatterns(configFiles []string) ([]string, error) {
1150 // using two separate containers to track order and have O(1) lookups

Callers

nothing calls this directly

Calls 3

getConnInternalFunction · 0.70
CloseMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected