Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GoStructEnumData ¶
type GoStructEnumData map[string]map[int64]ygot.EnumDefinition
GoStructEnumData is the data type to maintain GoStruct enum type.
type JSONUnmarshaler ¶
JSONUnmarshaler is the signature of the Unmarshal() function in the GoStruct code generated by openconfig ygot library.
type Model ¶
type Model struct { ModelData []*pb.ModelData StructRootType reflect.Type SchemaTreeRoot *yang.Entry JsonUnmarshaler JSONUnmarshaler EnumData GoStructEnumData }
Model contains the model data and GoStruct information for the device to config.
func (*Model) NewConfigStruct ¶
NewConfigStruct creates a ValidatedGoStruct of this model from jsonConfig. If jsonConfig is nil, creates an empty GoStruct.
func (*Model) NewRootValue ¶
func (m *Model) NewRootValue() interface{}
func (*Model) SupportedModels ¶
SupportedModels returns a list of supported models.
Click to show internal directories.
Click to hide internal directories.