Versions in this module Expand all Collapse all v1 v1.0.0 Apr 12, 2023 Changes in this version + func ExecCommand(command string, args []string) ([]byte, error) + func ExecRealtimeCommand(command string, args []string, outputHandler CommandOutputHandler) error + type CommandOutputHandler func(output string) + type RemoteCommander interface + GetFile func(remoteFilePath string, localDirPath string) error + RunCommand func(cmd string) (string, error) + SendFile func(localFilePath string, remoteDirPath string) error + type SSHCommander struct + Host string + Password string + User string + func (s *SSHCommander) GetFile(remoteFilePath string, localDirPath string) error + func (s *SSHCommander) RunCommand(cmd string) (string, error) + func (s *SSHCommander) SendFile(localFilePath string, remoteDirPath string) error + type SSHTunnel struct + func NewSSHTunnel(remoteHost string, remotePort int, sshConfig *ssh.ClientConfig, ...) (*SSHTunnel, error) + func (tunnel *SSHTunnel) Close() error