gnmiutils

package
v1.1.9 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: Apache-2.0 Imports: 4 Imported by: 9

Documentation

Overview

Package gnmiutils contains utilities for servicing or issuing gNMI requests

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JoinPath

func JoinPath(segments []string) string

JoinPath joins the given path segments into a path string

func NameKey

func NameKey(e string) (string, map[string]string, bool)

NameKey splits the string representation of the path segment into name and an optional key

func SplitPath

func SplitPath(path string) []string

SplitPath splits the given string path into its segments

func Subpath

func Subpath(path string, name string, key map[string]string) string

Subpath creates a subpath of a given path

func ToPath

func ToPath(path string) *gnmi.Path

ToPath produces a gNMI path from the given string representation

func ToString

func ToString(path *gnmi.Path) string

ToString produces a deterministic string representation of the given gNMI path structure

Types

This section is empty.

Jump to

Keyboard shortcuts

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