package
0.48.2
Repository: https://github.com/gruntwork-io/terratest.git
Documentation: pkg.go.dev

# Functions

CheckPrivateSshConnection attempts to connect to privateHost (which is not addressable from the Internet) via a separate publicHost (which is addressable from the Internet) and then executes "command" on privateHost and returns its output.
CheckPrivateSshConnectionE attempts to connect to privateHost (which is not addressable from the Internet) via a separate publicHost (which is addressable from the Internet) and then executes "command" on privateHost and returns its output.
CheckSshCommand checks that you can connect via SSH to the given host and run the given command.
CheckSshCommandE checks that you can connect via SSH to the given host and run the given command.
CheckSshCommandWithRetry checks that you can connect via SSH to the given host and run the given command until max retries have been exceeded.
CheckSshConnection checks that you can connect via SSH to the given host and fail the test if the connection fails.
CheckSshConnectionE checks that you can connect via SSH to the given host and return an error if the connection fails.
CheckSshConnectionWithRetry attempts to connect via SSH until max retries has been exceeded and fails the test if the connection fails.
CheckSshConnectionWithRetryE attempts to connect via SSH until max retries has been exceeded and returns an error if the connection fails.
Close closes a Closeable.
FetchContentsOfFile connects to the given host via SSH and fetches the contents of the file at the given filePath.
FetchContentsOfFileE connects to the given host via SSH and fetches the contents of the file at the given filePath.
FetchContentsOfFiles connects to the given host via SSH and fetches the contents of the files at the given filePaths.
FetchContentsOfFilesE connects to the given host via SSH and fetches the contents of the files at the given filePaths.
GenerateRSAKeyPair generates an RSA Keypair and return the public and private keys.
GenerateRSAKeyPairE generates an RSA Keypair and return the public and private keys.
Create SSH agent, start it in background and returns control back to the main thread You should stop the agent to cleanup files afterwards by calling `defer s.Stop()`.
NoOpHostKeyCallback is an ssh.HostKeyCallback that does nothing.
ScpDirFrom downloads all the files from remotePath on the given host using SCP.
ScpDirFromE downloads all the files from remotePath on the given host using SCP and returns an error if the process fails.
ScpFileFrom downloads the file from remotePath on the given host using SCP.
ScpFileFromE downloads the file from remotePath on the given host using SCP and returns an error if the process fails.
ScpFileToE uploads the contents using SCP to the given host and fails the test if the connection fails.
ScpFileToE uploads the contents using SCP to the given host and return an error if the process fails.
Instantiates and returns an in-memory ssh agent with the given KeyPair already added You should stop the agent to cleanup files afterwards by calling `defer sshAgent.Stop()`.
Instantiates and returns an in-memory ssh agent with the given KeyPair(s) already added You should stop the agent to cleanup files afterwards by calling `defer sshAgent.Stop()`.

# Structs

Host is a remote host.
JumpHostSession is a session with a jump host.
KeyPair is a public and private key pair that can be used for SSH access.
SshConnectionOptions are the options for an SSH connection.
SshSession is a container object for all resources created by an SSH session.

# Interfaces

Closeable can be closed.