Documentation ¶
Overview ¶
Package clients implements utility clients
Index ¶
- func CopyFile(client *ssh.Client, src string, dst string) error
- func CopyFolder(client *ssh.Client, srcFolder string, dstFolder string) error
- func ExecuteCommand(client *ssh.Client, command string) (string, error)
- func GetAWSSSMClient() (*ssm.Client, error)
- func GetSSHClient(user, host string, privateKey []byte, retryInterval time.Duration, ...) (client *ssh.Client, session *ssh.Session, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyFile ¶
CopyFile create a sftp session and copy a single file to the remote host through SSH
func CopyFolder ¶
CopyFolder create a sftp session and copy a folder to remote host through SSH
func ExecuteCommand ¶
ExecuteCommand creates a session on an ssh client and runs a command. It returns the command output and errors
func GetAWSSSMClient ¶
GetAWSSSMClient returns an aws SSM client
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.