package
0.1.2
Repository: https://github.com/snirt/go-netconf.git
Documentation: pkg.go.dev

# Functions

DialJunos creates a new NETCONF session via Junos local shell NETCONF interface (xml-mode netconf need-trailer).
DialSSH creates a new NETCONF session using a SSH Transport.
DialSSHTimeout creates a new NETCONF session using a SSH Transport with timeout.
MethodCommit commit changes.
MethodDiscardChanges discard changes.
MethodGetConfig files a NETCONF get-config source request with the remote host.
MethodLock files a NETCONF lock target request with the remote host.
MethodUnlock files a NETCONF unlock target request with the remote host.
NewReadWriteCloser creates a new combined IO Reader and Write Closer from the provided objects.
NewRPCMessage generates a new RPC Message structure with the provided methods.
No description provided by the author
NewSession creates a new NETCONF session using the provided transport layer.
NewSSHSession creates a new NETCONF session using an existing net.Conn.
SSHConfigPassword is a convenience function that takes a username and password and returns a new ssh.ClientConfig setup to pass that username and password.
SSHConfigPubKeyAgent is a convience function that takes a username and returns a new ssh.Clientconfig setup to pass credentials received from an ssh agent.
SSHConfigPubKeyFile is a convenience function that takes a username, private key and passphrase and returns a new ssh.ClientConfig setup to pass credentials to DialSSH.

# Variables

DefaultCapabilities sets the default capabilities of the client library.

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
HelloMessage is used when bringing up a NETCONF session.
ReadWriteCloser represents a combined IO Reader and WriteCloser.
RPCError defines an error reply to a RPC request.
RPCMessage represents an RPC Message to be sent.
RPCReply defines a reply to a RPC request.
Session defines the necessary components for a NETCONF session.
TransportJunos maintains the information necessary to communicate with Junos via local shell NETCONF interface.
TransportSSH maintains the information necessary to communicate with the remote device over SSH.

# Interfaces

RPCMethod defines the interface for creating an RPC method.
Transport interface defines what characterisitics make up a NETCONF transport layer object.

# Type aliases

RawMethod defines how a raw text request will be responded to.