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.