openconfig

package
v0.0.0-...-a8d7af0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 5 Imported by: 26

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NotificationToJSON

func NotificationToJSON(notif *gnmi.Notification) (string, error)

NotificationToJSON converts a Notification into a JSON string

func NotificationToJSONDocument

func NotificationToJSONDocument(addr string, notification *gnmi.Notification,
	escape EscapeFunc) ([]byte, error)

NotificationToJSONDocument maps a Notification into a single JSON document

func NotificationToMap

func NotificationToMap(addr string, notification *gnmi.Notification,
	escape EscapeFunc) (map[string]interface{}, error)

NotificationToMap maps a Notification into a nested map of entities

func SubscribeResponseToJSON

func SubscribeResponseToJSON(resp *gnmi.SubscribeResponse) (string, error)

SubscribeResponseToJSON converts a SubscribeResponse into a JSON string

Types

type EscapeFunc

type EscapeFunc func(k string) string

EscapeFunc is the escaping method for attribute names

Directories

Path Synopsis
Package client provides helper functions for OpenConfig CLI tools.
Package client provides helper functions for OpenConfig CLI tools.

Jump to

Keyboard shortcuts

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