Documentation ¶
Index ¶
- type DriverSSH
- func (d *DriverSSH) Close() error
- func (d *DriverSSH) Dial() error
- func (d *DriverSSH) DialTimeout() error
- func (d *DriverSSH) GetConfig() (*rpc.RPCReply, error)
- func (d *DriverSSH) Lock(ds string) (*rpc.RPCReply, error)
- func (d *DriverSSH) SendRaw(rawxml string) (*rpc.RPCReply, error)
- func (d *DriverSSH) SetDatastore(ds string) error
- func (d *DriverSSH) Unlock(ds string) (*rpc.RPCReply, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DriverSSH ¶
type DriverSSH struct { Timeout time.Duration // Timeout for SSH timed sessions Port int // Target port Host string // Target hostname Target string // Target hostname:port Datastore string // NETCONF datastore Conn net.Conn // Conn for session SSHConfig *ssh.ClientConfig // SSH Config Transport *lowlevel.TransportSSH // Transport data Session *session.Session // Session data }
DriverSSH type is for creating an SSH based driver. Maintains state for session and connection. Implements Driver{}
func (*DriverSSH) DialTimeout ¶
DialTimeout function (call this after New())
func (*DriverSSH) SetDatastore ¶
SetDatastore sets the target datastore on the data structure
Click to show internal directories.
Click to hide internal directories.