rpc

package
v0.0.0-...-7668cce Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close(c *Client) error

Close closes the connection

func RunCommandAndParse

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

RunCommandAndParse runs a command on JunOS and unmarshals the XML result

Types

type Client

type Client struct {
	D drv.Driver
}

Client sends commands to JunOS and parses results

func Create

func Create(sshconfig *ssh.ClientConfig, target string, port int) (*Client, error)

Create sets up the connection

Jump to

Keyboard shortcuts

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