Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConnection ¶
func NewConnection(connector *Connector, opts Opts) (executor.Interface, error)
NewConnection attempts to create a new SSH connection to the host specified via the given options.
Types ¶
type Connector ¶
type Connector struct {
// contains filtered or unexported fields
}
Connector holds a map of Connections
type Opts ¶
type Opts struct {
Context context.Context
Username string
Password string
Hostname string
Port int
PrivateKey string
KeyFile string
SSHCert string
SSHCertFile string
HostPublicKey []byte
AgentSocket string
Timeout time.Duration
Bastion string
BastionPort int
BastionUser string
BastionHostPublicKey []byte
}
Opts represents all the possible options for connecting to a remote server via SSH.
Click to show internal directories.
Click to hide internal directories.