Documentation ¶
Overview ¶
Package schema exports functions to register given schema information into lookup table as well as to retrieve from lookup table.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TestGoStruct ¶
type TestGoStruct struct {
// contains filtered or unexported fields
}
TestGoStruct stores a cached copy of the global schema tree that is local to a given test so as to prevent the possiblity of cross-test schema contamination.
func Get ¶
func Get(key string) (*TestGoStruct, error)
Get returns reference to testGoStruct so that test can have access to underlying schema corresponding to given key.
func (*TestGoStruct) NewRoot ¶
func (s *TestGoStruct) NewRoot() ygot.GoStruct
NewRoot creates a new instance of root ygot.GoStruct.
Directories ¶
Path | Synopsis |
---|---|
Package gostructs is a generated package which contains definitions of structs which represent a YANG schema.
|
Package gostructs is a generated package which contains definitions of structs which represent a YANG schema. |
register
Package openconfig registers generated gostructs with "openconfig" key.
|
Package openconfig registers generated gostructs with "openconfig" key. |
Click to show internal directories.
Click to hide internal directories.