Documentation ¶
Index ¶
- type DriverJunos
- func (d *DriverJunos) Close() error
- func (d *DriverJunos) Dial() error
- func (d *DriverJunos) DialTimeout() error
- func (d *DriverJunos) GetConfig() (*rpc.RPCReply, error)
- func (d *DriverJunos) Lock(ds string) (*rpc.RPCReply, error)
- func (d *DriverJunos) SendRaw(rawxml string) (*rpc.RPCReply, error)
- func (d *DriverJunos) SetDatastore(ds string) error
- func (d *DriverJunos) Unlock(ds string) (*rpc.RPCReply, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DriverJunos ¶
type DriverJunos struct { Timeout time.Duration // Timeout for SSH timed sessions Datastore string // NETCONF datastore Session *session.Session // Session data }
DriverJunos type is for creating a Junos based driver. Maintains state for session and connection. Implements Driver{}
func (*DriverJunos) DialTimeout ¶
func (d *DriverJunos) DialTimeout() error
DialTimeout NOT IMPLEMENTED. This driver is transactional based and not required.
func (*DriverJunos) GetConfig ¶
func (d *DriverJunos) GetConfig() (*rpc.RPCReply, error)
GetConfig requests the contents of a datastore
func (*DriverJunos) Lock ¶
func (d *DriverJunos) Lock(ds string) (*rpc.RPCReply, error)
Lock the target datastore
func (*DriverJunos) SendRaw ¶
func (d *DriverJunos) SendRaw(rawxml string) (*rpc.RPCReply, error)
SendRaw sends a raw XML envelope
func (*DriverJunos) SetDatastore ¶
func (d *DriverJunos) SetDatastore(ds string) error
SetDatastore sets the target datastore on the data structure
Click to show internal directories.
Click to hide internal directories.