Documentation ¶
Overview ¶
Package ssh implements an SSH client for Lagoon.
Index ¶
- func CheckStrictHostKey(v string) (bool, bool)
- func InteractiveKnownHosts(userPath, host string, ignorehost, accept bool) (ssh.HostKeyCallback, []string, error)
- func InteractiveSSH(lagoon map[string]string, sshService string, sshContainer string, ...) error
- func LogStream(config *ssh.ClientConfig, host, port string, argv []string) error
- func RunSSHCommand(lagoon map[string]string, sshService string, sshContainer string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckStrictHostKey ¶ added in v0.30.0
func InteractiveKnownHosts ¶ added in v0.30.0
func InteractiveKnownHosts(userPath, host string, ignorehost, accept bool) (ssh.HostKeyCallback, []string, error)
add interactive known hosts to reduce confusion with host key errors
func InteractiveSSH ¶
func InteractiveSSH(lagoon map[string]string, sshService string, sshContainer string, config *ssh.ClientConfig) error
InteractiveSSH .
func LogStream ¶ added in v0.30.0
func LogStream(config *ssh.ClientConfig, host, port string, argv []string) error
LogStream connects to host:port using the given config, and executes the argv command. It does not request a PTY, and instead just streams the response to the attached terminal. argv should contain a logs=... argument.
func RunSSHCommand ¶
func RunSSHCommand(lagoon map[string]string, sshService string, sshContainer string, command string, config *ssh.ClientConfig) error
RunSSHCommand .
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.