Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultTimeout sets the default timeout for RetryDialer. DefaultTimeout = 5 * time.Second // DefaultKeepAlive sets the default keepalive for RetryDialer. DefaultKeepAlive = 30 * time.Second // DefaultRetries sets the default number of retries for RetryDialer. DefaultRetries = 7 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RetryDialer ¶
RetryDialer is intended to timeout quickly and retry connecting instead of just failing. Particularly useful for waiting on a booting machine.
func NewRetryDialer ¶
func NewRetryDialer() *RetryDialer
NewRetryDialer initializes a RetryDialer with reasonable default settings.
type SSHAgent ¶
type SSHAgent struct { agent.Agent Dialer User string Socket string // contains filtered or unexported fields }
SSHAgent can manage keys, updates cloud config, and loves ponies. The embedded dialer is used for establishing new SSH connections.
func NewSSHAgent ¶
NewSSHAgent constructs a new SSHAgent using dialer to create ssh connections.
Click to show internal directories.
Click to hide internal directories.