jresponse

package module
v0.0.0-...-57bc72d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2015 License: BSD-2-Clause Imports: 1 Imported by: 0

README

JResponse: Encapsulates responses for various commands executed on Juniper devices via NETCONF.

Intro

JResponse is a library for handling various responses to commands executed on Juniper devices via NETCONF. It was made to make transforming the response data into other formats easier.

RPCs currently supported are:

- traceroute
- show route protocol bgp

Responses can be converted from their native XML RPC reply into JSON, or they can be formatted to look as they would look if run directly on the Junos CLI.

Installation

  1. Include the library path in your project.
  2. From your projects directory, run go get
  3. Use the library.

User Guide

License

This software is licensed under the BSD 2-clause “Simplified” License ©2015 JResponse contributors

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JResponseReader

type JResponseReader interface {
	ReadXMLFrom(r io.Reader) (n int64, err error)
	ReadJSONFrom(r io.Reader) (n int64, err error)
}

type JResponseWriter

type JResponseWriter interface {
	WriteXMLTo(w io.Writer) (n int64, err error)
	WriteJSONTo(w io.Writer) (n int64, err error)
	WriteCLITo(w io.Writer) error
}

type ResponseReaderWriter

type ResponseReaderWriter interface {
	JResponseReader
	JResponseWriter
}

Directories

Path Synopsis
command
ping
Package response encapsulates structures used to marshal JSON responses to client requests.
Package response encapsulates structures used to marshal JSON responses to client requests.
traceroute
Package response encapsulates structures used to marshal JSON responses to client requests.
Package response encapsulates structures used to marshal JSON responses to client requests.
show

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL