utils

package
v0.19.1 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2021 License: Apache-2.0 Imports: 15 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePrefix added in v0.18.0

func CreatePrefix(prefix, target string) (*gnmi.Path, error)

CreatePrefix //

func GetHost added in v0.18.0

func GetHost(hostport string) string

func GnmiPathToXPath added in v0.18.0

func GnmiPathToXPath(p *gnmi.Path, noKeys bool) string

func MergeMaps

func MergeMaps(dst, src map[string]interface{}) map[string]interface{}

func NewTLSConfig added in v0.18.0

func NewTLSConfig(ca, cert, key string, skipVerify bool) (*tls.Config, error)

func ParsePath added in v0.18.0

func ParsePath(p string) (*gnmi.Path, error)

ParsePath creates a gnmi.Path out of a p string, check if the first element is prefixed by an origin, removes it from the xpath and adds it to the returned gnmiPath

func PathElems added in v0.18.0

func PathElems(pf, p *gnmi.Path) []*gnmi.PathElem

func SelfSignedCerts added in v0.18.0

func SelfSignedCerts() (tls.Certificate, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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