Documentation ¶
Index ¶
- type SSHConnection
- func (sh *SSHConnection) Collect(cmd string) (string, error)
- func (sh *SSHConnection) Run(cmd []string) error
- func (sh *SSHConnection) ScpFrom(source string, destination string) error
- func (sh *SSHConnection) ScpTo(source string, destination string) error
- func (sh *SSHConnection) ScpToWithData(data []byte, destination string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SSHConnection ¶
type SSHConnection struct { Timeout time.Duration Username string IP string KeyLocation string VerboseMode bool ClientID string }
func (*SSHConnection) Run ¶
func (sh *SSHConnection) Run(cmd []string) error
func (*SSHConnection) ScpFrom ¶
func (sh *SSHConnection) ScpFrom(source string, destination string) error
func (*SSHConnection) ScpTo ¶
func (sh *SSHConnection) ScpTo(source string, destination string) error
func (*SSHConnection) ScpToWithData ¶
func (sh *SSHConnection) ScpToWithData(data []byte, destination string) error
Click to show internal directories.
Click to hide internal directories.