Documentation ¶
Overview ¶
Package values implements various gNMI value manipulation facilities.
Index ¶
- func GnmiTypedValueToNativeType(gnmiTv *gnmi.TypedValue, modelPath *pathutils.ReadWritePathElem) (*configapi.TypedValue, error)
- func NativeTypeToGnmiTypedValue(typedValue *configapi.TypedValue) (*gnmi.TypedValue, error)
- func NewChangeValue(path string, value configapi.TypedValue, delete bool) (*configapi.PathValue, error)
- func PathValuesToGnmiChange(values []*configapi.PathValue) (*gnmi.SetRequest, error)
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.
Click to show internal directories.
Click to hide internal directories.