Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection interface { Close() error Closed() bool Exec(string) (string, string, int, error) Stream(string, io.Writer, io.Writer) (int, error) Upload(io.Reader, int64, os.FileMode, string) error UploadFile(string, string) error Download(string, io.Writer) error DownloadToFile(string, string) error }
Connection represents an established connection to an SSH server.
func NewConnection ¶
func NewConnection(o Opts) (Connection, error)
NewConnection attempts to create a new SSH connection to the host specified via the given options.
type Connector ¶
type Connector struct {
// contains filtered or unexported fields
}
Connector holds a map of Connections
func (*Connector) Connect ¶
func (c *Connector) Connect(node config.HostConfig) (Connection, error)
Connect to the node
Click to show internal directories.
Click to hide internal directories.