Documentation
¶
Index ¶
- func ExecCommandOnInstance(sshConfig *SshConfigDef, ipAddress string, cmd string, isVerbose bool) (l.LogMsg, error)
- func ExecEmbeddedScriptsOnInstance(sshConfig *SshConfigDef, ipAddress string, embeddedScriptPaths []string, ...) (l.LogMsg, error)
- func ExecSshForClient(sshClient *ssh.Client, cmd string) (string, string, error)
- func HarvestAllEmbeddedFilesPaths(curDirPath string, harvestedPathsMap map[string]bool) error
- func NewSshClientConfig(user string, privateKeyOrPath string) (*ssh.ClientConfig, error)
- type ExecResult
- type SshConfigDef
- type TunneledSshClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecCommandOnInstance ¶
func ExecSshForClient ¶
Used for file transfer
func NewSshClientConfig ¶
func NewSshClientConfig(user string, privateKeyOrPath string) (*ssh.ClientConfig, error)
Types ¶
type ExecResult ¶
func ExecSsh ¶
func ExecSsh(sshConfig *SshConfigDef, ipAddress string, cmd string, envVars map[string]string) ExecResult
func ExecSshAndReturnLastLine ¶
func ExecSshAndReturnLastLine(sshConfig *SshConfigDef, ipAddress string, cmd string) (string, ExecResult)
Used on volume attachment
func (*ExecResult) ToString ¶
func (er *ExecResult) ToString() string
type SshConfigDef ¶
type TunneledSshClient ¶
type TunneledSshClient struct {
ProxySshClient *ssh.Client
TunneledTcpConn net.Conn
TunneledSshConn ssh.Conn
SshClient *ssh.Client
}
func NewTunneledSshClient ¶
func NewTunneledSshClient(sshConfig *SshConfigDef, ipAddress string) (*TunneledSshClient, error)
Our jumphost implementation
func (*TunneledSshClient) Close ¶
func (tsc *TunneledSshClient) Close()
Click to show internal directories.
Click to hide internal directories.