Documentation ¶
Index ¶
Constants ¶
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 ¶
var DefaultSSHDir string
DefaultSSHDir is a process-global path that can be set, and currently is by kola.
Functions ¶
This section is empty.
Types ¶
type NsDialer ¶
type NsDialer struct { RetryDialer NsHandle netns.NsHandle }
NsDialer is a RetryDialer that can enter any network namespace.
func NewNsDialer ¶
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.ExtendedAgent 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.
func (*SSHAgent) NewClient ¶
NewClient connects to the given host via SSH, the client will support agent forwarding but it must also be enabled per-session.
Directories ¶
Path | Synopsis |
---|---|
mockssh implements a basic ssh server for use in unit tests.
|
mockssh implements a basic ssh server for use in unit tests. |
NTP v4 (RFC 5905) http://tools.ietf.org/html/rfc5905
|
NTP v4 (RFC 5905) http://tools.ietf.org/html/rfc5905 |