Documentation ¶
Index ¶
- func NewClient(m types.Machine) (*ssh.Client, *ssh.Session, error)
- func NewSCPClient(m types.Machine) scp.Client
- func ReceiveFile(m types.Machine, src, dst string) error
- func SSHCommand(m types.Machine, cmd string) (string, error)
- func SSHDialTimeout(network, addr string, config *ssh.ClientConfig, timeout time.Duration) (*ssh.Client, error)
- func SendFile(m types.Machine, src, dst, permission string) error
- type Conn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSCPClient ¶
NewSCPClient returns a SCP client associated to the machine.
func SSHDialTimeout ¶
func SSHDialTimeout(network, addr string, config *ssh.ClientConfig, timeout time.Duration) (*ssh.Client, error)
SSHDialTimeout dials in SSH with a timeout. It sends periodic keepalives such as the remote host don't make the go client sit on Wait().
Types ¶
Click to show internal directories.
Click to hide internal directories.