package
0.2.1
Repository: https://github.com/intercloud/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.
MethodEditConfig files a NETCONF edit-config request with the remote host.
MethodGet files a NETCONF get source request with the remote host.
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.
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

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.