rpc

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client sends commands to JunOS and parses results

func NewClient

func NewClient(ssh *connector.SSHConnection, debug bool) *Client

NewClient creates a new client to connect to

func (*Client) RunCommandAndParse

func (c *Client) RunCommandAndParse(cmd string, obj interface{}) error

RunCommandAndParse runs a command on JunOS and unmarshals the XML result

Jump to

Keyboard shortcuts

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