cli

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2021 License: BSD-3-Clause Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Capabilities

func Capabilities(a, u, p string) error

Capabilities sends a gNMI Capabilities request to the specified target and prints the supported models to stdout

func Get

func Get(a, u, p string, args ...string) (*gpb.GetResponse, error)

Get sends a gNMI Get request to the specified target and prints the response to stdout

func HTTPGet

func HTTPGet(apiEndpoint, f string, args ...string) error

HTTPGet sends sends requests from the CLI to the gosdn HTTP API and processes any response data

func Set

func Set(a, u, p, typ string, args ...string) error

Set sends a gNMI Set request to the specified target. Only one request per invocation supported.

func Subscribe

func Subscribe(a, u, p string, sample, heartbeat int64, args ...string) error

Subscribe starts a gNMI subscriber requersting the specified paths on the target and logs the response to stdout. Only 'stream' mode with 'sample' operation supported.

func Target

func Target(bindAddr string) error

Target starts a gNMI target listening on the specified port.

Types

This section is empty.

Jump to

Keyboard shortcuts

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