Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SFTPConnnection ¶
type SFTPConnnection struct {
// contains filtered or unexported fields
}
SFTPConnnection is a container for the pieces necessary to hold an SFTP connection open in a goroutine
func InitSFTPConnection ¶
func InitSFTPConnection(s *SSHConnection) (*SFTPConnnection, error)
InitSFTPConnection returns an SFTP client from an existing SSHSession
func (*SFTPConnnection) TearDown ¶
func (s *SFTPConnnection) TearDown()
TearDown closes all of the connections in an SFTP connection
type SFTPResponse ¶
SFTPResponse contains the result of copying a file to a host via SFTP
type SSHConnection ¶
type SSHConnection struct {
// contains filtered or unexported fields
}
SSHConnection is a container for the pieces necessary to hold an SSH connection open in a goroutine
func InitSSHConnection ¶
func InitSSHConnection(address string, username string, keypath string) (*SSHConnection, error)
InitSSHConnection takes host details and returns an SSHConnection
func (*SSHConnection) TearDown ¶
func (s *SSHConnection) TearDown()
TearDown closes all of the connections in an SSH connection
type SSHResponse ¶
SSHResponse contains the result of running a command on a host via SSH
Click to show internal directories.
Click to hide internal directories.