Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecErrors ¶
type ExecErrors []*ExecError
func (ExecErrors) Error ¶
func (errs ExecErrors) Error() string
type ExecOutput ¶
type ExecOutputs ¶
type ExecOutputs []*ExecOutput
func (ExecOutputs) String ¶
func (outs ExecOutputs) String() string
type NodeStatus ¶
type NodeStatus int
const ( UNCHANGED NodeStatus = iota CHANGED ADDED DELETED )
func (NodeStatus) String ¶
func (s NodeStatus) String() string
type Request ¶
type Request struct { //Op is the method that was called via json rpc Method string `json:"method"` //Args is a list of arguments to that method Args []interface{} `json:"params"` //Id is the unique request identifier Id int `json:"id"` }
Request represents an RPC request
type Response ¶
type Response struct { //Result is any value returned by the handler //The client library uses reflection to ensure it received the appropriate type. Result interface{} `json:"result"` //Error contains a message describing a problem Error interface{} `json:"error"` // MgmtErrList contains the NETCONF <rpc-error> element(s). MgmtErrList mgmterror.MgmtErrorList `json:"mgmterrorlist"` //Id is the unique request identifier Id int `json:"id"` }
Response represents an RPC response.
Result and Error are encoded as 'null' if not present, whereas MgmtErrList is always encoded, even as an empty list.
Click to show internal directories.
Click to hide internal directories.