Documentation ¶
Index ¶
- func ConfigElementHierarchyFromGnmiUpdate(yang_schema *yang.Entry, gn *gnmi.Notification) *configElement
- func CreateRootConfigElement(yang_schema *yang.Entry) *configElement
- func GetDeletePaths(gnmiPaths []*gnmi.Path) []*gnmi.Path
- func NewConfigElement(name string, parent *configElement, keys map[string]string) *configElement
- type MyPathElem
- type PathAndSchema
- type PathAndSchemaCount
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 ¶
CreateRootConfigElement - retrieves a Root or Device level configElement
func NewConfigElement ¶
NewConfigElement helper function for the generation of new configElements
Types ¶
type MyPathElem ¶
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) 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
Click to show internal directories.
Click to hide internal directories.