Documentation
¶
Index ¶
- func CopyFileFromRemoteServer(remotePath string, localPath string, host string, port int, user string, ...) error
- func CopyFileToRemoteServer(localPath string, remotePath string, host string, port int, user string, ...) error
- func CopyFolderFromRemoteServer(remotePath string, localPath string, host string, port int, user string, ...) error
- func CopyFolderToRemoteServer(localPath string, remotePath string, host string, port int, user string, ...) error
- func DeleteSSHClient(host string)
- func DirectSSH(ctx context.Context, initCol int, initRow int, host string, port int, ...) (session *ssh.Session, stdin *io.WriteCloser, stdout *io.Reader, ...)
- func DirectSSHToContainer(ctx context.Context, initCol int, initRow int, containerId string, ...) (session *ssh.Session, stdin *io.WriteCloser, stdout *io.Reader, ...)
- func ExecCommandOverSSH(cmd string, stdoutBuf, stderrBuf *bytes.Buffer, sessionTimeoutSeconds int, ...) error
- func ExecCommandOverSSHWithOptions(cmd string, stdoutBuf, stderrBuf *bytes.Buffer, sessionTimeoutSeconds int, ...) error
- func NetConnOverSSH(network, address string, netTimeoutSeconds int, host string, port int, ...) (net.Conn, error)
- func SetValidator(validator ServerOnlineStatusValidator)
- func UpdateTCPTimeout(t int)
- type OperatingSystem
- type ServerOnlineStatusValidator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyFileToRemoteServer ¶
func DeleteSSHClient ¶
func DeleteSSHClient(host string)
func DirectSSH ¶
func DirectSSH( ctx context.Context, initCol int, initRow int, host string, port int, user string, privateKey string) ( session *ssh.Session, stdin *io.WriteCloser, stdout *io.Reader, stderr *io.Reader, err error)
DirectSSH opens a direct ssh connection to a server
func DirectSSHToContainer ¶
func DirectSSHToContainer( ctx context.Context, initCol int, initRow int, containerId string, dockerHost string, host string, port int, user string, privateKey string) ( session *ssh.Session, stdin *io.WriteCloser, stdout *io.Reader, stderr *io.Reader, err error)
DirectSSHToContainer opens a direct ssh connection to a container
func ExecCommandOverSSH ¶
func NetConnOverSSH ¶
func SetValidator ¶
func SetValidator(validator ServerOnlineStatusValidator)
func UpdateTCPTimeout ¶
func UpdateTCPTimeout(t int)
Types ¶
type OperatingSystem ¶
type OperatingSystem string
const ( DebianBased OperatingSystem = "debian" FedoraBased OperatingSystem = "fedora" )
Click to show internal directories.
Click to hide internal directories.