MCPcopy
hub / github.com/lima-vm/lima / IsControlMasterExisting

Function IsControlMasterExisting

pkg/sshutil/sshutil.go:329–333  ·  view source on GitHub ↗

IsControlMasterExisting returns true if the control socket file exists.

(instDir string)

Source from the content-addressed store, hash-verified

327
328// IsControlMasterExisting returns true if the control socket file exists.
329func IsControlMasterExisting(instDir string) bool {
330 controlSock := filepath.Join(instDir, filenames.SSHSock)
331 _, err := os.Stat(controlSock)
332 return err == nil
333}
334
335// SSHOpts adds the following options to CommonOptions: User, ControlMaster, ControlPath, ControlPersist.
336func SSHOpts(ctx context.Context, sshExe SSHExe, instDir, username string, useDotSSH, forwardAgent, forwardX11, forwardX11Trusted bool) ([]string, error) {

Callers 2

shellActionFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected