values

package
v0.10.24 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package values implements various gNMI value manipulation facilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GnmiTypedValueToNativeType

func GnmiTypedValueToNativeType(gnmiTv *gnmi.TypedValue, modelPath *pathutils.ReadWritePathElem) (*configapi.TypedValue, error)

GnmiTypedValueToNativeType converts gnmi type based values in to native byte array changes

func NativeTypeToGnmiTypedValue

func NativeTypeToGnmiTypedValue(typedValue *configapi.TypedValue) (*gnmi.TypedValue, error)

NativeTypeToGnmiTypedValue converts native byte array based values in to gnmi types

func NewChangeValue added in v0.10.12

func NewChangeValue(path string, value configapi.TypedValue, delete bool) (*configapi.PathValue, error)

NewChangeValue decodes a path and value in to a ChangeValue

func PathValuesToGnmiChange

func PathValuesToGnmiChange(values []*configapi.PathValue) (*gnmi.SetRequest, error)

PathValuesToGnmiChange converts a Protobuf defined array of values objects to gNMI format

Types

This section is empty.

Jump to

Keyboard shortcuts

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