Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunDockerExecCommand ¶
func RunDockerExecCommand(container string, cmd string, workdir string) ( code int, stdout string, stderr string, err error, )
RunDockerExecCommand runs the provided command on the specified host using "docker exec". Returns the exit code of the command, along with the contents of stdout and stderr as strings. Note that if the command returns a non-zero error code, this function does not report it as an error.
func RunSSHCommand ¶
func RunSSHCommand(host string, config *ssh.ClientConfig, cmd string) (code int, stdout string, stderr string, err error)
RunSSHCommand runs the provided SSH command on the specified host. Returns the exit code of the command, along with the contents of stdout and stderr as strings. Note that if the command returns a non-zero error code, this function does not report it as an error.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.