Documentation ¶
Index ¶
- func GenerateRandomPassword(length int) (string, error)
- func WaitForSSH(host string, port int, username string, password string, privatekey []byte, ...) error
- type SSHConnection
- func (s *SSHConnection) Close() error
- func (s *SSHConnection) ExecuteCommand(command string) (string, error)
- func (s *SSHConnection) ExecutePipeCommand(command string, ...) error
- func (s *SSHConnection) Shell(cmd string, stderr, stdout io.Writer, stdin io.Reader, width, height int) error
- func (s *SSHConnection) StartTunnel(localPort int, remotePort int, remoteHost string, reverse bool) (listeningPort int, err error)
- func (s *SSHConnection) WriteFile(path string, mode os.FileMode, contentLength int64, content io.Reader, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateRandomPassword ¶
Types ¶
type SSHConnection ¶
type SSHConnection struct {
// contains filtered or unexported fields
}
func NewSSHConnection ¶
func (*SSHConnection) Close ¶
func (s *SSHConnection) Close() error
func (*SSHConnection) ExecuteCommand ¶
func (s *SSHConnection) ExecuteCommand(command string) (string, error)
func (*SSHConnection) ExecutePipeCommand ¶
func (*SSHConnection) StartTunnel ¶
Click to show internal directories.
Click to hide internal directories.