Versions in this module Expand all Collapse all v0 v0.9.1 Apr 30, 2018 v0.9.0 Apr 29, 2018 v0.8.0 Apr 26, 2018 Changes in this version + func CheckPrivateSshConnection(t *testing.T, publicHost Host, privateHost Host, command string) string + func CheckPrivateSshConnectionE(t *testing.T, publicHost Host, privateHost Host, command string) (string, error) + func CheckSshCommand(t *testing.T, host Host, command string) string + func CheckSshCommandE(t *testing.T, host Host, command string) (string, error) + func CheckSshConnection(t *testing.T, host Host) + func CheckSshConnectionE(t *testing.T, host Host) error + func Close(t *testing.T, closeable Closeable, ignoreErrors ...string) + func NoOpHostKeyCallback(hostname string, remote net.Addr, key ssh.PublicKey) error + type Closeable interface + Close func() error + type Host struct + Hostname string + SshKeyPair *KeyPair + SshUserName string + type JumpHostSession struct + HostConnection ssh.Conn + HostVirtualConnection net.Conn + JumpHostClient *ssh.Client + func (jumpHost *JumpHostSession) Cleanup(t *testing.T) + type KeyPair struct + PrivateKey string + PublicKey string + func GenerateRSAKeyPair(t *testing.T, keySize int) *KeyPair + func GenerateRSAKeyPairE(t *testing.T, keySize int) (*KeyPair, error) + type SshConnectionOptions struct + Address string + AuthMethods []ssh.AuthMethod + Command string + JumpHost *SshConnectionOptions + Port int + Username string + func (options *SshConnectionOptions) ConnectionString() string + type SshSession struct + Client *ssh.Client + JumpHost *JumpHostSession + Options *SshConnectionOptions + Session *ssh.Session + func (sshSession *SshSession) Cleanup(t *testing.T)