package
2.8.0+incompatible
Repository: https://github.com/damianoneill/net.git
Documentation: pkg.go.dev

# Packages

Code generated by mockery v1.0.0.
Copyright 2018 Andrew Fort Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.

# Functions

ContextClientTrace returns the ClientTrace associated with the provided context.
NewRPCSession connects to the target using the ssh configuration, and establishes a netconf session with default configuration.
NewRPCSessionWithConfig connects to the target using the ssh configuration, and establishes a netconf session with the client configuration.
NewSession creates a new Netconf session, using the supplied Transport.
NewSSHTransport creates a new SSH transport, connecting to the target with the supplied client configuration and requesting the specified subsystem.
NewTestNetconfServer creates a new TestNCServer that will accept Netconf localhost connections on an ephemeral port (available via Port(), with credentials defined by TestUserName and TestPassword.
WithClientTrace returns a new context based on the provided parent ctx.

# Constants

CapBase10 defines capability value identifying 1.0 support.
CapBase11 defines capability value identifying 1.1 support.
Defines credentials used for test sessions.
Defines credentials used for test sessions.

# Variables

CloseRequestHandler closes the transport channel on request receipt.
DefaultCapabilities sets the default capabilities of the client library.
DefaultLoggingHooks provides a default logging hook to report errors.
DiagnosticLoggingHooks provides a set of default diagnostic hooks.
EchoRequestHandler responds to a request with a reply containing a data element holding the body of the request.
FailingRequestHandler replies to a request with an error.
IgnoreRequestHandler does in nothing on receipt of a request.
NoOpLoggingHooks provides set of hooks that do nothing.

# Structs

ClientConfig defines properties that configure netconf session behaviour.
ClientTrace defines a structure for handling trace events.
HelloMessage defines the message sent/received during session negotiation.
Notification defines a specific notification event.
NotificationMessage defines the notification message sent from the server.
NotifyMessage defines the contents of a notification message that will be sent to a client session, where the element type of the notification event is unknown.
RPCError defines an error reply to a RPC request.
RPCMessage defines the an rpc request message.
RPCReply defines the an rpc request message.
RPCReplyMessage and replyData represent an rpc-reply message that will be sent to a client session, where the element type of the reply body (i.e.
RPCRequest describes an RPC request.
SessionHandler represents the server side of an active netconf SSH session.
TestNCServer represents a Netconf Server that can be used for 'on-board' testing.

# Interfaces

Session represents a Netconf Session.
Transport interface defines what characteristics make up a NETCONF transport layer object.

# Type aliases

Request represents the body of a Netconf RPC request.
RequestHandler is a function type that will be invoked by the session handler to handle an RPC request.