Documentation ¶
Overview ¶
Package connection implements various Connection plugins that can be run over Hosts
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientConfigFn ¶
ClientConfigFn is an interface that allows users to implement their own SSH auth mechanisms
type SSH ¶
SSH is a Connection plugins that connects to device via ss using the golang.org/x/crypto/ssh package. Current implementation only supports authentication with a password and has ssh.InsecureIgnoreHostKey set
type SSHClose ¶
type SSHClose struct {
Meta *gornir.TaskMetadata // Task metadata
}
SSHClose is a Connection plugin that closes an already opened ssh connection
func (*SSHClose) Metadata ¶
func (t *SSHClose) Metadata() *gornir.TaskMetadata
Metadata returns the task metadata
type SSHOpen ¶
type SSHOpen struct { Meta *gornir.TaskMetadata // Task metadata ClientConfigFn ClientConfigFn // SSH client configuration }
SSHOpen is a Connection plugin that opens a connection with a device
func (*SSHOpen) Metadata ¶
func (t *SSHOpen) Metadata() *gornir.TaskMetadata
Metadata returns the task metadata
Click to show internal directories.
Click to hide internal directories.