rootpaths

package
v0.0.0-...-4287dc4 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigElementHierarchyFromGnmiUpdate

func ConfigElementHierarchyFromGnmiUpdate(yang_schema *yang.Entry, gn *gnmi.Notification) *configElement

func CreateRootConfigElement

func CreateRootConfigElement(yang_schema *yang.Entry) *configElement

CreateRootConfigElement - retrieves a Root or Device level configElement

func GetDeletePaths

func GetDeletePaths(gnmiPaths []*gnmi.Path) []*gnmi.Path

func NewConfigElement

func NewConfigElement(name string, parent *configElement, keys map[string]string) *configElement

NewConfigElement helper function for the generation of new configElements

Types

type MyPathElem

type MyPathElem struct {
	*gnmi.PathElem
}

MyPathElem - A wrapper for the gnmi.PathElem. Used to be able to implement a custom hashCode() method, to be able to allow for map lookups not just on identity (pointer equality) but in this case, name and key equality

type PathAndSchema

type PathAndSchema struct {
	// contains filtered or unexported fields
}

func GetPathAndSchemaEntry

func GetPathAndSchemaEntry(rootschema *yang.Entry, u *gnmi.Path) *PathAndSchema

runs from schema root through to the schema element that the gnmi.Update referes to and returns the corresponding *yang.Entry.

func (*PathAndSchema) GetPath

func (pas *PathAndSchema) GetPath() *gnmi.Path

retrieve the path

func (*PathAndSchema) GetSchema

func (pas *PathAndSchema) GetSchema() *yang.Entry

retrieve the schema

func (*PathAndSchema) IsKey

func (pas *PathAndSchema) IsKey() bool

type PathAndSchemaCount

type PathAndSchemaCount struct {
	*PathAndSchema
	// contains filtered or unexported fields
}

func (*PathAndSchemaCount) String

func (pasc *PathAndSchemaCount) String() string

Jump to

Keyboard shortcuts

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