MCPcopy Create free account
hub / github.com/DBCDK/morph / createSSHContext

Function createSSHContext

morph.go:469–478  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

467}
468
469func createSSHContext() *ssh.SSHContext {
470 return &ssh.SSHContext{
471 AskForSudoPassword: askForSudoPasswd,
472 GetSudoPasswordCommand: passCmd,
473 IdentityFile: os.Getenv("SSH_IDENTITY_FILE"),
474 DefaultUsername: os.Getenv("SSH_USER"),
475 SkipHostKeyCheck: os.Getenv("SSH_SKIP_HOST_KEY_CHECK") != "",
476 ConfigFile: os.Getenv("SSH_CONFIG_FILE"),
477 }
478}
479
480func execHealthCheck(hosts []nix.Host) error {
481 sshContext := createSSHContext()

Callers 5

mainFunction · 0.85
execExecuteFunction · 0.85
execPushFunction · 0.85
execDeployFunction · 0.85
execHealthCheckFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected