Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection interface { Exec(cmd string) (stdout string, stderr string, exitCode int, err error) File(filename string, flags int) (io.ReadWriteCloser, error) Stream(cmd string, stdout io.Writer, stderr io.Writer) (exitCode int, err error) io.Closer }
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 kubeoneapi.HostConfig) (Connection, error)
Connect to the node
Click to show internal directories.
Click to hide internal directories.