Documentation ¶
Overview ¶
Package utestschema is a generated package which contains definitions of structs which represent a YANG schema. The generated schema can be compressed by a series of transformations (compression was false in this case).
This package was generated by /usr/local/google/home/wenbli/gocode/src/github.com/openconfig/ygot/genutil/names.go using the following YANG input files:
- ../yang/utestschema.yang
- ../yang/refschema.yang
- ../yang/ctestschema.yang
- ../yang/ctestschema-rootmod.yang
Imported modules were sourced from:
- ...
Index ¶
- Variables
- func Schema() (*ytypes.Schema, error)
- func Unmarshal(data []byte, destStruct ygot.GoStruct, opts ...ytypes.UnmarshalOpt) error
- func UnzipSchema() (map[string]*yang.Entry, error)
- type Binary
- type CtestschemaRootmod_OrderedMultikeyedLists
- func (s *CtestschemaRootmod_OrderedMultikeyedLists) AppendNewOrderedMultikeyedList(Key1 string, Key2 uint64) (*CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList, error)
- func (s *CtestschemaRootmod_OrderedMultikeyedLists) AppendOrderedMultikeyedList(v *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList) error
- func (s *CtestschemaRootmod_OrderedMultikeyedLists) DeleteOrderedMultikeyedList(Key1 string, Key2 uint64) bool
- func (s *CtestschemaRootmod_OrderedMultikeyedLists) GetOrderedMultikeyedList(Key1 string, Key2 uint64) *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList
- func (*CtestschemaRootmod_OrderedMultikeyedLists) IsYANGGoStruct()
- func (t *CtestschemaRootmod_OrderedMultikeyedLists) PopulateDefaults()
- func (t *CtestschemaRootmod_OrderedMultikeyedLists) Validate(opts ...ygot.ValidationOption) error
- func (*CtestschemaRootmod_OrderedMultikeyedLists) ΛBelongingModule() string
- func (t *CtestschemaRootmod_OrderedMultikeyedLists) ΛEnumTypeMap() map[string][]reflect.Type
- func (t *CtestschemaRootmod_OrderedMultikeyedLists) ΛValidate(opts ...ygot.ValidationOption) error
- type CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList
- func (t *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList) GetConfig() *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_Config
- func (t *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList) GetKey1() string
- func (t *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList) GetKey2() uint64
- func (t *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList) GetOrCreateConfig() *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_Config
- func (t *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList) GetOrCreateState() *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_State
- func (t *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList) GetState() *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_State
- func (*CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList) IsYANGGoStruct()
- func (t *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList) PopulateDefaults()
- func (t *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList) Validate(opts ...ygot.ValidationOption) error
- func (*CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList) ΛBelongingModule() string
- func (t *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList) ΛEnumTypeMap() map[string][]reflect.Type
- func (t *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList) ΛListKeyMap() (map[string]interface{}, error)
- func (t *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList) ΛValidate(opts ...ygot.ValidationOption) error
- type CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_Config
- func (t *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_Config) GetKey1() string
- func (t *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_Config) GetKey2() uint64
- func (t *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_Config) GetValue() string
- func (*CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_Config) IsYANGGoStruct()
- func (t *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_Config) PopulateDefaults()
- func (t *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_Config) Validate(opts ...ygot.ValidationOption) error
- func (*CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_Config) ΛBelongingModule() string
- func (t *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_Config) ΛEnumTypeMap() map[string][]reflect.Type
- func (t *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_Config) ΛValidate(opts ...ygot.ValidationOption) error
- type CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_Key
- type CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap
- func (o *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap) Append(v *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList) error
- func (o *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap) AppendNew(Key1 string, Key2 uint64) (*CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList, error)
- func (o *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap) Delete(key CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_Key) bool
- func (o *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap) Get(key CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_Key) *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList
- func (*CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap) IsYANGOrderedList()
- func (o *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap) Keys() []CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_Key
- func (o *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap) Len() int
- func (o *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap) Values() []*CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList
- type CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_State
- func (t *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_State) GetKey1() string
- func (t *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_State) GetKey2() uint64
- func (t *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_State) GetRoValue() string
- func (t *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_State) GetValue() string
- func (*CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_State) IsYANGGoStruct()
- func (t *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_State) PopulateDefaults()
- func (t *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_State) Validate(opts ...ygot.ValidationOption) error
- func (*CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_State) ΛBelongingModule() string
- func (t *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_State) ΛEnumTypeMap() map[string][]reflect.Type
- func (t *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_State) ΛValidate(opts ...ygot.ValidationOption) error
- type Ctestschema_OrderedLists
- func (s *Ctestschema_OrderedLists) AppendNewOrderedList(Key string) (*Ctestschema_OrderedLists_OrderedList, error)
- func (s *Ctestschema_OrderedLists) AppendOrderedList(v *Ctestschema_OrderedLists_OrderedList) error
- func (s *Ctestschema_OrderedLists) DeleteOrderedList(Key string) bool
- func (s *Ctestschema_OrderedLists) GetOrderedList(Key string) *Ctestschema_OrderedLists_OrderedList
- func (*Ctestschema_OrderedLists) IsYANGGoStruct()
- func (t *Ctestschema_OrderedLists) PopulateDefaults()
- func (t *Ctestschema_OrderedLists) Validate(opts ...ygot.ValidationOption) error
- func (*Ctestschema_OrderedLists) ΛBelongingModule() string
- func (t *Ctestschema_OrderedLists) ΛEnumTypeMap() map[string][]reflect.Type
- func (t *Ctestschema_OrderedLists) ΛValidate(opts ...ygot.ValidationOption) error
- type Ctestschema_OrderedLists_OrderedList
- func (t *Ctestschema_OrderedLists_OrderedList) GetConfig() *Ctestschema_OrderedLists_OrderedList_Config
- func (t *Ctestschema_OrderedLists_OrderedList) GetKey() string
- func (t *Ctestschema_OrderedLists_OrderedList) GetOrCreateConfig() *Ctestschema_OrderedLists_OrderedList_Config
- func (t *Ctestschema_OrderedLists_OrderedList) GetOrCreateOrderedLists() *Ctestschema_OrderedLists_OrderedList_OrderedLists
- func (t *Ctestschema_OrderedLists_OrderedList) GetOrCreateState() *Ctestschema_OrderedLists_OrderedList_State
- func (t *Ctestschema_OrderedLists_OrderedList) GetOrderedLists() *Ctestschema_OrderedLists_OrderedList_OrderedLists
- func (t *Ctestschema_OrderedLists_OrderedList) GetState() *Ctestschema_OrderedLists_OrderedList_State
- func (*Ctestschema_OrderedLists_OrderedList) IsYANGGoStruct()
- func (t *Ctestschema_OrderedLists_OrderedList) PopulateDefaults()
- func (t *Ctestschema_OrderedLists_OrderedList) Validate(opts ...ygot.ValidationOption) error
- func (*Ctestschema_OrderedLists_OrderedList) ΛBelongingModule() string
- func (t *Ctestschema_OrderedLists_OrderedList) ΛEnumTypeMap() map[string][]reflect.Type
- func (t *Ctestschema_OrderedLists_OrderedList) ΛListKeyMap() (map[string]interface{}, error)
- func (t *Ctestschema_OrderedLists_OrderedList) ΛValidate(opts ...ygot.ValidationOption) error
- type Ctestschema_OrderedLists_OrderedList_Config
- func (t *Ctestschema_OrderedLists_OrderedList_Config) GetKey() string
- func (t *Ctestschema_OrderedLists_OrderedList_Config) GetValue() string
- func (*Ctestschema_OrderedLists_OrderedList_Config) IsYANGGoStruct()
- func (t *Ctestschema_OrderedLists_OrderedList_Config) PopulateDefaults()
- func (t *Ctestschema_OrderedLists_OrderedList_Config) Validate(opts ...ygot.ValidationOption) error
- func (*Ctestschema_OrderedLists_OrderedList_Config) ΛBelongingModule() string
- func (t *Ctestschema_OrderedLists_OrderedList_Config) ΛEnumTypeMap() map[string][]reflect.Type
- func (t *Ctestschema_OrderedLists_OrderedList_Config) ΛValidate(opts ...ygot.ValidationOption) error
- type Ctestschema_OrderedLists_OrderedList_OrderedLists
- func (s *Ctestschema_OrderedLists_OrderedList_OrderedLists) AppendNewOrderedList(Key string) (*Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList, error)
- func (s *Ctestschema_OrderedLists_OrderedList_OrderedLists) AppendOrderedList(v *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList) error
- func (s *Ctestschema_OrderedLists_OrderedList_OrderedLists) DeleteOrderedList(Key string) bool
- func (s *Ctestschema_OrderedLists_OrderedList_OrderedLists) GetOrderedList(Key string) *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList
- func (*Ctestschema_OrderedLists_OrderedList_OrderedLists) IsYANGGoStruct()
- func (t *Ctestschema_OrderedLists_OrderedList_OrderedLists) PopulateDefaults()
- func (t *Ctestschema_OrderedLists_OrderedList_OrderedLists) Validate(opts ...ygot.ValidationOption) error
- func (*Ctestschema_OrderedLists_OrderedList_OrderedLists) ΛBelongingModule() string
- func (t *Ctestschema_OrderedLists_OrderedList_OrderedLists) ΛEnumTypeMap() map[string][]reflect.Type
- func (t *Ctestschema_OrderedLists_OrderedList_OrderedLists) ΛValidate(opts ...ygot.ValidationOption) error
- type Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList
- func (t *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList) GetConfig() *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_Config
- func (t *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList) GetKey() string
- func (t *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList) GetOrCreateConfig() *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_Config
- func (t *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList) GetOrCreateState() *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_State
- func (t *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList) GetState() *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_State
- func (*Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList) IsYANGGoStruct()
- func (t *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList) PopulateDefaults()
- func (t *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList) Validate(opts ...ygot.ValidationOption) error
- func (*Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList) ΛBelongingModule() string
- func (t *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList) ΛEnumTypeMap() map[string][]reflect.Type
- func (t *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList) ΛListKeyMap() (map[string]interface{}, error)
- func (t *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList) ΛValidate(opts ...ygot.ValidationOption) error
- type Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_Config
- func (t *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_Config) GetKey() string
- func (t *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_Config) GetValue() string
- func (*Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_Config) IsYANGGoStruct()
- func (t *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_Config) PopulateDefaults()
- func (t *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_Config) Validate(opts ...ygot.ValidationOption) error
- func (*Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_Config) ΛBelongingModule() string
- func (t *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_Config) ΛEnumTypeMap() map[string][]reflect.Type
- func (t *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_Config) ΛValidate(opts ...ygot.ValidationOption) error
- type Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_OrderedMap
- func (o *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_OrderedMap) Append(v *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList) error
- func (o *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_OrderedMap) AppendNew(Key string) (*Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList, error)
- func (o *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_OrderedMap) Delete(key string) bool
- func (o *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_OrderedMap) Get(key string) *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList
- func (*Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_OrderedMap) IsYANGOrderedList()
- func (o *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_OrderedMap) Keys() []string
- func (o *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_OrderedMap) Len() int
- func (o *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_OrderedMap) Values() []*Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList
- type Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_State
- func (t *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_State) GetKey() string
- func (t *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_State) GetParentKey() string
- func (t *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_State) GetValue() string
- func (*Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_State) IsYANGGoStruct()
- func (t *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_State) PopulateDefaults()
- func (t *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_State) Validate(opts ...ygot.ValidationOption) error
- func (*Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_State) ΛBelongingModule() string
- func (t *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_State) ΛEnumTypeMap() map[string][]reflect.Type
- func (t *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_State) ΛValidate(opts ...ygot.ValidationOption) error
- type Ctestschema_OrderedLists_OrderedList_OrderedMap
- func (o *Ctestschema_OrderedLists_OrderedList_OrderedMap) Append(v *Ctestschema_OrderedLists_OrderedList) error
- func (o *Ctestschema_OrderedLists_OrderedList_OrderedMap) AppendNew(Key string) (*Ctestschema_OrderedLists_OrderedList, error)
- func (o *Ctestschema_OrderedLists_OrderedList_OrderedMap) Delete(key string) bool
- func (o *Ctestschema_OrderedLists_OrderedList_OrderedMap) Get(key string) *Ctestschema_OrderedLists_OrderedList
- func (*Ctestschema_OrderedLists_OrderedList_OrderedMap) IsYANGOrderedList()
- func (o *Ctestschema_OrderedLists_OrderedList_OrderedMap) Keys() []string
- func (o *Ctestschema_OrderedLists_OrderedList_OrderedMap) Len() int
- func (o *Ctestschema_OrderedLists_OrderedList_OrderedMap) Values() []*Ctestschema_OrderedLists_OrderedList
- type Ctestschema_OrderedLists_OrderedList_State
- func (t *Ctestschema_OrderedLists_OrderedList_State) GetKey() string
- func (t *Ctestschema_OrderedLists_OrderedList_State) GetParentKey() string
- func (t *Ctestschema_OrderedLists_OrderedList_State) GetRoValue() string
- func (t *Ctestschema_OrderedLists_OrderedList_State) GetValue() string
- func (*Ctestschema_OrderedLists_OrderedList_State) IsYANGGoStruct()
- func (t *Ctestschema_OrderedLists_OrderedList_State) PopulateDefaults()
- func (t *Ctestschema_OrderedLists_OrderedList_State) Validate(opts ...ygot.ValidationOption) error
- func (*Ctestschema_OrderedLists_OrderedList_State) ΛBelongingModule() string
- func (t *Ctestschema_OrderedLists_OrderedList_State) ΛEnumTypeMap() map[string][]reflect.Type
- func (t *Ctestschema_OrderedLists_OrderedList_State) ΛValidate(opts ...ygot.ValidationOption) error
- type Ctestschema_OtherData
- func (t *Ctestschema_OtherData) GetConfig() *Ctestschema_OtherData_Config
- func (t *Ctestschema_OtherData) GetOrCreateConfig() *Ctestschema_OtherData_Config
- func (t *Ctestschema_OtherData) GetOrCreateState() *Ctestschema_OtherData_State
- func (t *Ctestschema_OtherData) GetState() *Ctestschema_OtherData_State
- func (*Ctestschema_OtherData) IsYANGGoStruct()
- func (t *Ctestschema_OtherData) PopulateDefaults()
- func (t *Ctestschema_OtherData) Validate(opts ...ygot.ValidationOption) error
- func (*Ctestschema_OtherData) ΛBelongingModule() string
- func (t *Ctestschema_OtherData) ΛEnumTypeMap() map[string][]reflect.Type
- func (t *Ctestschema_OtherData) ΛValidate(opts ...ygot.ValidationOption) error
- type Ctestschema_OtherData_Config
- func (t *Ctestschema_OtherData_Config) GetMotd() string
- func (*Ctestschema_OtherData_Config) IsYANGGoStruct()
- func (t *Ctestschema_OtherData_Config) PopulateDefaults()
- func (t *Ctestschema_OtherData_Config) Validate(opts ...ygot.ValidationOption) error
- func (*Ctestschema_OtherData_Config) ΛBelongingModule() string
- func (t *Ctestschema_OtherData_Config) ΛEnumTypeMap() map[string][]reflect.Type
- func (t *Ctestschema_OtherData_Config) ΛValidate(opts ...ygot.ValidationOption) error
- type Ctestschema_OtherData_State
- func (t *Ctestschema_OtherData_State) GetMotd() string
- func (*Ctestschema_OtherData_State) IsYANGGoStruct()
- func (t *Ctestschema_OtherData_State) PopulateDefaults()
- func (t *Ctestschema_OtherData_State) Validate(opts ...ygot.ValidationOption) error
- func (*Ctestschema_OtherData_State) ΛBelongingModule() string
- func (t *Ctestschema_OtherData_State) ΛEnumTypeMap() map[string][]reflect.Type
- func (t *Ctestschema_OtherData_State) ΛValidate(opts ...ygot.ValidationOption) error
- type Ctestschema_UnorderedLists
- func (t *Ctestschema_UnorderedLists) AppendUnorderedList(v *Ctestschema_UnorderedLists_UnorderedList) error
- func (t *Ctestschema_UnorderedLists) GetOrCreateUnorderedList(Key string) *Ctestschema_UnorderedLists_UnorderedList
- func (t *Ctestschema_UnorderedLists) GetUnorderedList(Key string) *Ctestschema_UnorderedLists_UnorderedList
- func (*Ctestschema_UnorderedLists) IsYANGGoStruct()
- func (t *Ctestschema_UnorderedLists) NewUnorderedList(Key string) (*Ctestschema_UnorderedLists_UnorderedList, error)
- func (t *Ctestschema_UnorderedLists) PopulateDefaults()
- func (t *Ctestschema_UnorderedLists) RenameUnorderedList(oldK, newK string) error
- func (t *Ctestschema_UnorderedLists) Validate(opts ...ygot.ValidationOption) error
- func (*Ctestschema_UnorderedLists) ΛBelongingModule() string
- func (t *Ctestschema_UnorderedLists) ΛEnumTypeMap() map[string][]reflect.Type
- func (t *Ctestschema_UnorderedLists) ΛValidate(opts ...ygot.ValidationOption) error
- type Ctestschema_UnorderedLists_UnorderedList
- func (t *Ctestschema_UnorderedLists_UnorderedList) GetConfig() *Ctestschema_UnorderedLists_UnorderedList_Config
- func (t *Ctestschema_UnorderedLists_UnorderedList) GetKey() string
- func (t *Ctestschema_UnorderedLists_UnorderedList) GetOrCreateConfig() *Ctestschema_UnorderedLists_UnorderedList_Config
- func (t *Ctestschema_UnorderedLists_UnorderedList) GetOrCreateState() *Ctestschema_UnorderedLists_UnorderedList_State
- func (t *Ctestschema_UnorderedLists_UnorderedList) GetState() *Ctestschema_UnorderedLists_UnorderedList_State
- func (*Ctestschema_UnorderedLists_UnorderedList) IsYANGGoStruct()
- func (t *Ctestschema_UnorderedLists_UnorderedList) PopulateDefaults()
- func (t *Ctestschema_UnorderedLists_UnorderedList) Validate(opts ...ygot.ValidationOption) error
- func (*Ctestschema_UnorderedLists_UnorderedList) ΛBelongingModule() string
- func (t *Ctestschema_UnorderedLists_UnorderedList) ΛEnumTypeMap() map[string][]reflect.Type
- func (t *Ctestschema_UnorderedLists_UnorderedList) ΛListKeyMap() (map[string]interface{}, error)
- func (t *Ctestschema_UnorderedLists_UnorderedList) ΛValidate(opts ...ygot.ValidationOption) error
- type Ctestschema_UnorderedLists_UnorderedList_Config
- func (t *Ctestschema_UnorderedLists_UnorderedList_Config) GetKey() string
- func (t *Ctestschema_UnorderedLists_UnorderedList_Config) GetValue() string
- func (*Ctestschema_UnorderedLists_UnorderedList_Config) IsYANGGoStruct()
- func (t *Ctestschema_UnorderedLists_UnorderedList_Config) PopulateDefaults()
- func (t *Ctestschema_UnorderedLists_UnorderedList_Config) Validate(opts ...ygot.ValidationOption) error
- func (*Ctestschema_UnorderedLists_UnorderedList_Config) ΛBelongingModule() string
- func (t *Ctestschema_UnorderedLists_UnorderedList_Config) ΛEnumTypeMap() map[string][]reflect.Type
- func (t *Ctestschema_UnorderedLists_UnorderedList_Config) ΛValidate(opts ...ygot.ValidationOption) error
- type Ctestschema_UnorderedLists_UnorderedList_State
- func (t *Ctestschema_UnorderedLists_UnorderedList_State) GetKey() string
- func (t *Ctestschema_UnorderedLists_UnorderedList_State) GetValue() string
- func (*Ctestschema_UnorderedLists_UnorderedList_State) IsYANGGoStruct()
- func (t *Ctestschema_UnorderedLists_UnorderedList_State) PopulateDefaults()
- func (t *Ctestschema_UnorderedLists_UnorderedList_State) Validate(opts ...ygot.ValidationOption) error
- func (*Ctestschema_UnorderedLists_UnorderedList_State) ΛBelongingModule() string
- func (t *Ctestschema_UnorderedLists_UnorderedList_State) ΛEnumTypeMap() map[string][]reflect.Type
- func (t *Ctestschema_UnorderedLists_UnorderedList_State) ΛValidate(opts ...ygot.ValidationOption) error
- type Device
- func (t *Device) GetOrCreateOrderedLists() *Ctestschema_OrderedLists
- func (t *Device) GetOrCreateOrderedMultikeyedLists() *CtestschemaRootmod_OrderedMultikeyedLists
- func (t *Device) GetOrCreateOtherData() *Ctestschema_OtherData
- func (t *Device) GetOrCreateRef() *Refschema_Ref
- func (t *Device) GetOrCreateTarget() *Utestschema_Target
- func (t *Device) GetOrCreateUnorderedLists() *Ctestschema_UnorderedLists
- func (t *Device) GetOrderedLists() *Ctestschema_OrderedLists
- func (t *Device) GetOrderedMultikeyedLists() *CtestschemaRootmod_OrderedMultikeyedLists
- func (t *Device) GetOtherData() *Ctestschema_OtherData
- func (t *Device) GetRef() *Refschema_Ref
- func (t *Device) GetTarget() *Utestschema_Target
- func (t *Device) GetUnorderedLists() *Ctestschema_UnorderedLists
- func (*Device) IsYANGGoStruct()
- func (t *Device) PopulateDefaults()
- func (t *Device) Validate(opts ...ygot.ValidationOption) error
- func (*Device) ΛBelongingModule() string
- func (t *Device) ΛEnumTypeMap() map[string][]reflect.Type
- func (t *Device) ΛValidate(opts ...ygot.ValidationOption) error
- type Refschema_Ref
- func (t *Refschema_Ref) AppendReference(v *Refschema_Ref_Reference) error
- func (t *Refschema_Ref) GetOrCreateReference(Name string) *Refschema_Ref_Reference
- func (t *Refschema_Ref) GetReference(Name string) *Refschema_Ref_Reference
- func (*Refschema_Ref) IsYANGGoStruct()
- func (t *Refschema_Ref) NewReference(Name string) (*Refschema_Ref_Reference, error)
- func (t *Refschema_Ref) PopulateDefaults()
- func (t *Refschema_Ref) RenameReference(oldK, newK string) error
- func (t *Refschema_Ref) Validate(opts ...ygot.ValidationOption) error
- func (*Refschema_Ref) ΛBelongingModule() string
- func (t *Refschema_Ref) ΛEnumTypeMap() map[string][]reflect.Type
- func (t *Refschema_Ref) ΛValidate(opts ...ygot.ValidationOption) error
- type Refschema_Ref_Reference
- func (t *Refschema_Ref_Reference) GetName() string
- func (*Refschema_Ref_Reference) IsYANGGoStruct()
- func (t *Refschema_Ref_Reference) PopulateDefaults()
- func (t *Refschema_Ref_Reference) Validate(opts ...ygot.ValidationOption) error
- func (*Refschema_Ref_Reference) ΛBelongingModule() string
- func (t *Refschema_Ref_Reference) ΛEnumTypeMap() map[string][]reflect.Type
- func (t *Refschema_Ref_Reference) ΛListKeyMap() (map[string]interface{}, error)
- func (t *Refschema_Ref_Reference) ΛValidate(opts ...ygot.ValidationOption) error
- type UnionBool
- type UnionFloat64
- type UnionInt16
- type UnionInt32
- type UnionInt64
- type UnionInt8
- type UnionString
- type UnionUint16
- type UnionUint32
- type UnionUint64
- type UnionUint8
- type UnionUnsupported
- type Utestschema_Target
- func (t *Utestschema_Target) AppendEntity(v *Utestschema_Target_Entity) error
- func (t *Utestschema_Target) GetEntity(Name string) *Utestschema_Target_Entity
- func (t *Utestschema_Target) GetOrCreateEntity(Name string) *Utestschema_Target_Entity
- func (*Utestschema_Target) IsYANGGoStruct()
- func (t *Utestschema_Target) NewEntity(Name string) (*Utestschema_Target_Entity, error)
- func (t *Utestschema_Target) PopulateDefaults()
- func (t *Utestschema_Target) RenameEntity(oldK, newK string) error
- func (t *Utestschema_Target) Validate(opts ...ygot.ValidationOption) error
- func (*Utestschema_Target) ΛBelongingModule() string
- func (t *Utestschema_Target) ΛEnumTypeMap() map[string][]reflect.Type
- func (t *Utestschema_Target) ΛValidate(opts ...ygot.ValidationOption) error
- type Utestschema_Target_Entity
- func (t *Utestschema_Target_Entity) GetName() string
- func (*Utestschema_Target_Entity) IsYANGGoStruct()
- func (t *Utestschema_Target_Entity) PopulateDefaults()
- func (t *Utestschema_Target_Entity) Validate(opts ...ygot.ValidationOption) error
- func (*Utestschema_Target_Entity) ΛBelongingModule() string
- func (t *Utestschema_Target_Entity) ΛEnumTypeMap() map[string][]reflect.Type
- func (t *Utestschema_Target_Entity) ΛListKeyMap() (map[string]interface{}, error)
- func (t *Utestschema_Target_Entity) ΛValidate(opts ...ygot.ValidationOption) error
- type YANGEmpty
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func Unmarshal ¶
Unmarshal unmarshals data, which must be RFC7951 JSON format, into destStruct, which must be non-nil and the correct GoStruct type. It returns an error if the destStruct is not found in the schema or the data cannot be unmarshaled. The supplied options (opts) are used to control the behaviour of the unmarshal function - for example, determining whether errors are thrown for unknown fields in the input JSON.
Types ¶
type Binary ¶
type Binary []byte
Binary is a type that is used for fields that have a YANG type of binary. It is used such that binary fields can be distinguished from leaf-lists of uint8s (which are mapped to []uint8, equivalent to []byte in reflection).
type CtestschemaRootmod_OrderedMultikeyedLists ¶ added in v0.29.0
type CtestschemaRootmod_OrderedMultikeyedLists struct { ΛMetadata []ygot.Annotation `path:"@" ygotAnnotation:"true"` OrderedMultikeyedList *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap `path:"ordered-multikeyed-list" module:"ctestschema"` ΛOrderedMultikeyedList []ygot.Annotation `path:"@ordered-multikeyed-list" ygotAnnotation:"true"` }
CtestschemaRootmod_OrderedMultikeyedLists represents the /ctestschema-rootmod/ordered-multikeyed-lists YANG schema element.
func (*CtestschemaRootmod_OrderedMultikeyedLists) AppendNewOrderedMultikeyedList ¶ added in v0.29.0
func (s *CtestschemaRootmod_OrderedMultikeyedLists) AppendNewOrderedMultikeyedList(Key1 string, Key2 uint64) (*CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList, error)
AppendNewOrderedMultikeyedList creates a new entry in the OrderedMultikeyedList ordered map of the CtestschemaRootmod_OrderedMultikeyedLists struct. The keys of the list are populated from the input arguments.
func (*CtestschemaRootmod_OrderedMultikeyedLists) AppendOrderedMultikeyedList ¶ added in v0.29.0
func (s *CtestschemaRootmod_OrderedMultikeyedLists) AppendOrderedMultikeyedList(v *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList) error
AppendOrderedMultikeyedList appends the supplied CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList struct to the list OrderedMultikeyedList of CtestschemaRootmod_OrderedMultikeyedLists. If the key value(s) specified in the supplied CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList already exist in the list, an error is returned.
func (*CtestschemaRootmod_OrderedMultikeyedLists) DeleteOrderedMultikeyedList ¶ added in v0.29.0
func (s *CtestschemaRootmod_OrderedMultikeyedLists) DeleteOrderedMultikeyedList(Key1 string, Key2 uint64) bool
DeleteOrderedMultikeyedList deletes the value with the specified keys from the receiver CtestschemaRootmod_OrderedMultikeyedLists. If there is no such element, the function is a no-op.
func (*CtestschemaRootmod_OrderedMultikeyedLists) GetOrderedMultikeyedList ¶ added in v0.29.0
func (s *CtestschemaRootmod_OrderedMultikeyedLists) GetOrderedMultikeyedList(Key1 string, Key2 uint64) *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList
GetOrderedMultikeyedList retrieves the value with the specified key from the OrderedMultikeyedList map field of CtestschemaRootmod_OrderedMultikeyedLists. If the receiver is nil, or the specified key is not present in the list, nil is returned such that Get* methods may be safely chained.
func (*CtestschemaRootmod_OrderedMultikeyedLists) IsYANGGoStruct ¶ added in v0.29.0
func (*CtestschemaRootmod_OrderedMultikeyedLists) IsYANGGoStruct()
IsYANGGoStruct ensures that CtestschemaRootmod_OrderedMultikeyedLists implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.
func (*CtestschemaRootmod_OrderedMultikeyedLists) PopulateDefaults ¶ added in v0.29.0
func (t *CtestschemaRootmod_OrderedMultikeyedLists) PopulateDefaults()
PopulateDefaults recursively populates unset leaf fields in the CtestschemaRootmod_OrderedMultikeyedLists with default values as specified in the YANG schema, instantiating any nil container fields.
func (*CtestschemaRootmod_OrderedMultikeyedLists) Validate ¶ added in v0.29.0
func (t *CtestschemaRootmod_OrderedMultikeyedLists) Validate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
func (*CtestschemaRootmod_OrderedMultikeyedLists) ΛBelongingModule ¶ added in v0.29.0
func (*CtestschemaRootmod_OrderedMultikeyedLists) ΛBelongingModule() string
ΛBelongingModule returns the name of the module that defines the namespace of CtestschemaRootmod_OrderedMultikeyedLists.
func (*CtestschemaRootmod_OrderedMultikeyedLists) ΛEnumTypeMap ¶ added in v0.29.0
func (t *CtestschemaRootmod_OrderedMultikeyedLists) ΛEnumTypeMap() map[string][]reflect.Type
ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.
func (*CtestschemaRootmod_OrderedMultikeyedLists) ΛValidate ¶ added in v0.29.0
func (t *CtestschemaRootmod_OrderedMultikeyedLists) ΛValidate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
type CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList ¶ added in v0.29.0
type CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList struct { ΛMetadata []ygot.Annotation `path:"@" ygotAnnotation:"true"` Config *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_Config `path:"config" module:"ctestschema"` ΛConfig []ygot.Annotation `path:"@config" ygotAnnotation:"true"` Key1 *string `path:"key1" module:"ctestschema"` ΛKey1 []ygot.Annotation `path:"@key1" ygotAnnotation:"true"` Key2 *uint64 `path:"key2" module:"ctestschema"` ΛKey2 []ygot.Annotation `path:"@key2" ygotAnnotation:"true"` State *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_State `path:"state" module:"ctestschema"` ΛState []ygot.Annotation `path:"@state" ygotAnnotation:"true"` }
CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList represents the /ctestschema-rootmod/ordered-multikeyed-lists/ordered-multikeyed-list YANG schema element.
func (*CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList) GetConfig ¶ added in v0.29.0
func (t *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList) GetConfig() *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_Config
GetConfig returns the value of the Config struct pointer from CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList. If the receiver or the field Config is nil, nil is returned such that the Get* methods can be safely chained.
func (*CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList) GetKey1 ¶ added in v0.29.0
func (t *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList) GetKey1() string
GetKey1 retrieves the value of the leaf Key1 from the CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if Key1 is set, it can safely use t.GetKey1() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.Key1 == nil' before retrieving the leaf's value.
func (*CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList) GetKey2 ¶ added in v0.29.0
func (t *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList) GetKey2() uint64
GetKey2 retrieves the value of the leaf Key2 from the CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if Key2 is set, it can safely use t.GetKey2() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.Key2 == nil' before retrieving the leaf's value.
func (*CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList) GetOrCreateConfig ¶ added in v0.29.0
func (t *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList) GetOrCreateConfig() *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_Config
GetOrCreateConfig retrieves the value of the Config field or returns the existing field if it already exists.
func (*CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList) GetOrCreateState ¶ added in v0.29.0
func (t *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList) GetOrCreateState() *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_State
GetOrCreateState retrieves the value of the State field or returns the existing field if it already exists.
func (*CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList) GetState ¶ added in v0.29.0
func (t *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList) GetState() *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_State
GetState returns the value of the State struct pointer from CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList. If the receiver or the field State is nil, nil is returned such that the Get* methods can be safely chained.
func (*CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList) IsYANGGoStruct ¶ added in v0.29.0
func (*CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList) IsYANGGoStruct()
IsYANGGoStruct ensures that CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.
func (*CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList) PopulateDefaults ¶ added in v0.29.0
func (t *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList) PopulateDefaults()
PopulateDefaults recursively populates unset leaf fields in the CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList with default values as specified in the YANG schema, instantiating any nil container fields.
func (*CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList) Validate ¶ added in v0.29.0
func (t *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList) Validate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
func (*CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList) ΛBelongingModule ¶ added in v0.29.0
func (*CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList) ΛBelongingModule() string
ΛBelongingModule returns the name of the module that defines the namespace of CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList.
func (*CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList) ΛEnumTypeMap ¶ added in v0.29.0
func (t *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList) ΛEnumTypeMap() map[string][]reflect.Type
ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.
func (*CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList) ΛListKeyMap ¶ added in v0.29.0
func (t *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList) ΛListKeyMap() (map[string]interface{}, error)
ΛListKeyMap returns the keys of the CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList struct, which is a YANG list entry.
func (*CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList) ΛValidate ¶ added in v0.29.0
func (t *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList) ΛValidate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
type CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_Config ¶ added in v0.29.0
type CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_Config struct { ΛMetadata []ygot.Annotation `path:"@" ygotAnnotation:"true"` Key1 *string `path:"key1" module:"ctestschema"` ΛKey1 []ygot.Annotation `path:"@key1" ygotAnnotation:"true"` Key2 *uint64 `path:"key2" module:"ctestschema"` ΛKey2 []ygot.Annotation `path:"@key2" ygotAnnotation:"true"` Value *string `path:"value" module:"ctestschema"` ΛValue []ygot.Annotation `path:"@value" ygotAnnotation:"true"` }
CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_Config represents the /ctestschema-rootmod/ordered-multikeyed-lists/ordered-multikeyed-list/config YANG schema element.
func (*CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_Config) GetKey1 ¶ added in v0.29.0
func (t *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_Config) GetKey1() string
GetKey1 retrieves the value of the leaf Key1 from the CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_Config struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if Key1 is set, it can safely use t.GetKey1() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.Key1 == nil' before retrieving the leaf's value.
func (*CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_Config) GetKey2 ¶ added in v0.29.0
func (t *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_Config) GetKey2() uint64
GetKey2 retrieves the value of the leaf Key2 from the CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_Config struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if Key2 is set, it can safely use t.GetKey2() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.Key2 == nil' before retrieving the leaf's value.
func (*CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_Config) GetValue ¶ added in v0.29.0
func (t *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_Config) GetValue() string
GetValue retrieves the value of the leaf Value from the CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_Config struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if Value is set, it can safely use t.GetValue() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.Value == nil' before retrieving the leaf's value.
func (*CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_Config) IsYANGGoStruct ¶ added in v0.29.0
func (*CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_Config) IsYANGGoStruct()
IsYANGGoStruct ensures that CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_Config implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.
func (*CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_Config) PopulateDefaults ¶ added in v0.29.0
func (t *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_Config) PopulateDefaults()
PopulateDefaults recursively populates unset leaf fields in the CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_Config with default values as specified in the YANG schema, instantiating any nil container fields.
func (*CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_Config) Validate ¶ added in v0.29.0
func (t *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_Config) Validate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
func (*CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_Config) ΛBelongingModule ¶ added in v0.29.0
func (*CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_Config) ΛBelongingModule() string
ΛBelongingModule returns the name of the module that defines the namespace of CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_Config.
func (*CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_Config) ΛEnumTypeMap ¶ added in v0.29.0
func (t *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_Config) ΛEnumTypeMap() map[string][]reflect.Type
ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.
func (*CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_Config) ΛValidate ¶ added in v0.29.0
func (t *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_Config) ΛValidate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
type CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_Key ¶ added in v0.29.0
type CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_Key struct { Key1 string `path:"key1"` Key2 uint64 `path:"key2"` }
CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_Key represents the key for list OrderedMultikeyedList of element /ctestschema-rootmod/ordered-multikeyed-lists.
func (CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_Key) IsYANGGoKeyStruct ¶ added in v0.29.0
func (CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_Key) IsYANGGoKeyStruct()
IsYANGGoKeyStruct ensures that CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_Key partially implements the yang.GoKeyStruct interface. This allows functions that need to handle this key struct to identify it as being generated by gogen.
func (CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_Key) ΛListKeyMap ¶ added in v0.29.0
func (t CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_Key) ΛListKeyMap() (map[string]interface{}, error)
ΛListKeyMap returns the values of the CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_Key key struct.
type CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap ¶ added in v0.29.0
type CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap struct {
// contains filtered or unexported fields
}
CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap is an ordered map that represents the "ordered-by user" list elements at /ctestschema-rootmod/ordered-multikeyed-lists/ordered-multikeyed-list.
func GetOrderedMultikeyedMap ¶ added in v0.29.0
func GetOrderedMultikeyedMap(t *testing.T) *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap
GetOrderedMultikeyedMap returns a populated multi-keyed ordered map with dummy values.
- foo, 42: foo-val - bar, 42: bar-val - baz, 84: baz-val
func (*CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap) Append ¶ added in v0.29.0
func (o *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap) Append(v *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList) error
Append appends a CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList, returning an error if the key already exists in the ordered list or if the key is unspecified.
func (*CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap) AppendNew ¶ added in v0.29.0
func (o *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap) AppendNew(Key1 string, Key2 uint64) (*CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList, error)
AppendNew creates and appends a new CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList, returning the newly-initialized v. It returns an error if the v already exists.
func (*CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap) Delete ¶ added in v0.29.0
func (o *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap) Delete(key CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_Key) bool
Delete deletes an element.
func (*CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap) Get ¶ added in v0.29.0
func (o *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap) Get(key CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_Key) *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList
Get returns the value corresponding to the key. If the key is not found, nil is returned.
func (*CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap) IsYANGOrderedList ¶ added in v0.29.0
func (*CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap) IsYANGOrderedList()
IsYANGOrderedList ensures that CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap implements the ygot.GoOrderedList interface.
func (*CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap) Keys ¶ added in v0.29.0
func (o *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap) Keys() []CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_Key
Keys returns a copy of the list's keys.
func (*CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap) Len ¶ added in v0.29.0
Len returns a size of CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap
func (*CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap) Values ¶ added in v0.29.0
func (o *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap) Values() []*CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList
Values returns the current set of the list's values in order.
type CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_State ¶ added in v0.29.0
type CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_State struct { ΛMetadata []ygot.Annotation `path:"@" ygotAnnotation:"true"` Key1 *string `path:"key1" module:"ctestschema"` ΛKey1 []ygot.Annotation `path:"@key1" ygotAnnotation:"true"` Key2 *uint64 `path:"key2" module:"ctestschema"` ΛKey2 []ygot.Annotation `path:"@key2" ygotAnnotation:"true"` RoValue *string `path:"ro-value" module:"ctestschema"` ΛRoValue []ygot.Annotation `path:"@ro-value" ygotAnnotation:"true"` Value *string `path:"value" module:"ctestschema"` ΛValue []ygot.Annotation `path:"@value" ygotAnnotation:"true"` }
CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_State represents the /ctestschema-rootmod/ordered-multikeyed-lists/ordered-multikeyed-list/state YANG schema element.
func (*CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_State) GetKey1 ¶ added in v0.29.0
func (t *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_State) GetKey1() string
GetKey1 retrieves the value of the leaf Key1 from the CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_State struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if Key1 is set, it can safely use t.GetKey1() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.Key1 == nil' before retrieving the leaf's value.
func (*CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_State) GetKey2 ¶ added in v0.29.0
func (t *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_State) GetKey2() uint64
GetKey2 retrieves the value of the leaf Key2 from the CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_State struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if Key2 is set, it can safely use t.GetKey2() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.Key2 == nil' before retrieving the leaf's value.
func (*CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_State) GetRoValue ¶ added in v0.29.0
func (t *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_State) GetRoValue() string
GetRoValue retrieves the value of the leaf RoValue from the CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_State struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if RoValue is set, it can safely use t.GetRoValue() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.RoValue == nil' before retrieving the leaf's value.
func (*CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_State) GetValue ¶ added in v0.29.0
func (t *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_State) GetValue() string
GetValue retrieves the value of the leaf Value from the CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_State struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if Value is set, it can safely use t.GetValue() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.Value == nil' before retrieving the leaf's value.
func (*CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_State) IsYANGGoStruct ¶ added in v0.29.0
func (*CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_State) IsYANGGoStruct()
IsYANGGoStruct ensures that CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_State implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.
func (*CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_State) PopulateDefaults ¶ added in v0.29.0
func (t *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_State) PopulateDefaults()
PopulateDefaults recursively populates unset leaf fields in the CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_State with default values as specified in the YANG schema, instantiating any nil container fields.
func (*CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_State) Validate ¶ added in v0.29.0
func (t *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_State) Validate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
func (*CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_State) ΛBelongingModule ¶ added in v0.29.0
func (*CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_State) ΛBelongingModule() string
ΛBelongingModule returns the name of the module that defines the namespace of CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_State.
func (*CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_State) ΛEnumTypeMap ¶ added in v0.29.0
func (t *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_State) ΛEnumTypeMap() map[string][]reflect.Type
ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.
func (*CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_State) ΛValidate ¶ added in v0.29.0
func (t *CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_State) ΛValidate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
type Ctestschema_OrderedLists ¶
type Ctestschema_OrderedLists struct { ΛMetadata []ygot.Annotation `path:"@" ygotAnnotation:"true"` OrderedList *Ctestschema_OrderedLists_OrderedList_OrderedMap `path:"ordered-list" module:"ctestschema"` ΛOrderedList []ygot.Annotation `path:"@ordered-list" ygotAnnotation:"true"` }
Ctestschema_OrderedLists represents the /ctestschema/ordered-lists YANG schema element.
func (*Ctestschema_OrderedLists) AppendNewOrderedList ¶
func (s *Ctestschema_OrderedLists) AppendNewOrderedList(Key string) (*Ctestschema_OrderedLists_OrderedList, error)
AppendNewOrderedList creates a new entry in the OrderedList ordered map of the Ctestschema_OrderedLists struct. The keys of the list are populated from the input arguments.
func (*Ctestschema_OrderedLists) AppendOrderedList ¶
func (s *Ctestschema_OrderedLists) AppendOrderedList(v *Ctestschema_OrderedLists_OrderedList) error
AppendOrderedList appends the supplied Ctestschema_OrderedLists_OrderedList struct to the list OrderedList of Ctestschema_OrderedLists. If the key value(s) specified in the supplied Ctestschema_OrderedLists_OrderedList already exist in the list, an error is returned.
func (*Ctestschema_OrderedLists) DeleteOrderedList ¶
func (s *Ctestschema_OrderedLists) DeleteOrderedList(Key string) bool
DeleteOrderedList deletes the value with the specified keys from the receiver Ctestschema_OrderedLists. If there is no such element, the function is a no-op.
func (*Ctestschema_OrderedLists) GetOrderedList ¶
func (s *Ctestschema_OrderedLists) GetOrderedList(Key string) *Ctestschema_OrderedLists_OrderedList
GetOrderedList retrieves the value with the specified key from the OrderedList map field of Ctestschema_OrderedLists. If the receiver is nil, or the specified key is not present in the list, nil is returned such that Get* methods may be safely chained.
func (*Ctestschema_OrderedLists) IsYANGGoStruct ¶
func (*Ctestschema_OrderedLists) IsYANGGoStruct()
IsYANGGoStruct ensures that Ctestschema_OrderedLists implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.
func (*Ctestschema_OrderedLists) PopulateDefaults ¶ added in v0.29.0
func (t *Ctestschema_OrderedLists) PopulateDefaults()
PopulateDefaults recursively populates unset leaf fields in the Ctestschema_OrderedLists with default values as specified in the YANG schema, instantiating any nil container fields.
func (*Ctestschema_OrderedLists) Validate ¶
func (t *Ctestschema_OrderedLists) Validate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
func (*Ctestschema_OrderedLists) ΛBelongingModule ¶
func (*Ctestschema_OrderedLists) ΛBelongingModule() string
ΛBelongingModule returns the name of the module that defines the namespace of Ctestschema_OrderedLists.
func (*Ctestschema_OrderedLists) ΛEnumTypeMap ¶
func (t *Ctestschema_OrderedLists) ΛEnumTypeMap() map[string][]reflect.Type
ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.
func (*Ctestschema_OrderedLists) ΛValidate ¶
func (t *Ctestschema_OrderedLists) ΛValidate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
type Ctestschema_OrderedLists_OrderedList ¶
type Ctestschema_OrderedLists_OrderedList struct { ΛMetadata []ygot.Annotation `path:"@" ygotAnnotation:"true"` Config *Ctestschema_OrderedLists_OrderedList_Config `path:"config" module:"ctestschema"` ΛConfig []ygot.Annotation `path:"@config" ygotAnnotation:"true"` Key *string `path:"key" module:"ctestschema"` ΛKey []ygot.Annotation `path:"@key" ygotAnnotation:"true"` OrderedLists *Ctestschema_OrderedLists_OrderedList_OrderedLists `path:"ordered-lists" module:"ctestschema"` ΛOrderedLists []ygot.Annotation `path:"@ordered-lists" ygotAnnotation:"true"` State *Ctestschema_OrderedLists_OrderedList_State `path:"state" module:"ctestschema"` ΛState []ygot.Annotation `path:"@state" ygotAnnotation:"true"` }
Ctestschema_OrderedLists_OrderedList represents the /ctestschema/ordered-lists/ordered-list YANG schema element.
func (*Ctestschema_OrderedLists_OrderedList) GetConfig ¶
func (t *Ctestschema_OrderedLists_OrderedList) GetConfig() *Ctestschema_OrderedLists_OrderedList_Config
GetConfig returns the value of the Config struct pointer from Ctestschema_OrderedLists_OrderedList. If the receiver or the field Config is nil, nil is returned such that the Get* methods can be safely chained.
func (*Ctestschema_OrderedLists_OrderedList) GetKey ¶
func (t *Ctestschema_OrderedLists_OrderedList) GetKey() string
GetKey retrieves the value of the leaf Key from the Ctestschema_OrderedLists_OrderedList struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if Key is set, it can safely use t.GetKey() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.Key == nil' before retrieving the leaf's value.
func (*Ctestschema_OrderedLists_OrderedList) GetOrCreateConfig ¶
func (t *Ctestschema_OrderedLists_OrderedList) GetOrCreateConfig() *Ctestschema_OrderedLists_OrderedList_Config
GetOrCreateConfig retrieves the value of the Config field or returns the existing field if it already exists.
func (*Ctestschema_OrderedLists_OrderedList) GetOrCreateOrderedLists ¶ added in v0.29.0
func (t *Ctestschema_OrderedLists_OrderedList) GetOrCreateOrderedLists() *Ctestschema_OrderedLists_OrderedList_OrderedLists
GetOrCreateOrderedLists retrieves the value of the OrderedLists field or returns the existing field if it already exists.
func (*Ctestschema_OrderedLists_OrderedList) GetOrCreateState ¶
func (t *Ctestschema_OrderedLists_OrderedList) GetOrCreateState() *Ctestschema_OrderedLists_OrderedList_State
GetOrCreateState retrieves the value of the State field or returns the existing field if it already exists.
func (*Ctestschema_OrderedLists_OrderedList) GetOrderedLists ¶ added in v0.29.0
func (t *Ctestschema_OrderedLists_OrderedList) GetOrderedLists() *Ctestschema_OrderedLists_OrderedList_OrderedLists
GetOrderedLists returns the value of the OrderedLists struct pointer from Ctestschema_OrderedLists_OrderedList. If the receiver or the field OrderedLists is nil, nil is returned such that the Get* methods can be safely chained.
func (*Ctestschema_OrderedLists_OrderedList) GetState ¶
func (t *Ctestschema_OrderedLists_OrderedList) GetState() *Ctestschema_OrderedLists_OrderedList_State
GetState returns the value of the State struct pointer from Ctestschema_OrderedLists_OrderedList. If the receiver or the field State is nil, nil is returned such that the Get* methods can be safely chained.
func (*Ctestschema_OrderedLists_OrderedList) IsYANGGoStruct ¶
func (*Ctestschema_OrderedLists_OrderedList) IsYANGGoStruct()
IsYANGGoStruct ensures that Ctestschema_OrderedLists_OrderedList implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.
func (*Ctestschema_OrderedLists_OrderedList) PopulateDefaults ¶ added in v0.29.0
func (t *Ctestschema_OrderedLists_OrderedList) PopulateDefaults()
PopulateDefaults recursively populates unset leaf fields in the Ctestschema_OrderedLists_OrderedList with default values as specified in the YANG schema, instantiating any nil container fields.
func (*Ctestschema_OrderedLists_OrderedList) Validate ¶
func (t *Ctestschema_OrderedLists_OrderedList) Validate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
func (*Ctestschema_OrderedLists_OrderedList) ΛBelongingModule ¶
func (*Ctestschema_OrderedLists_OrderedList) ΛBelongingModule() string
ΛBelongingModule returns the name of the module that defines the namespace of Ctestschema_OrderedLists_OrderedList.
func (*Ctestschema_OrderedLists_OrderedList) ΛEnumTypeMap ¶
func (t *Ctestschema_OrderedLists_OrderedList) ΛEnumTypeMap() map[string][]reflect.Type
ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.
func (*Ctestschema_OrderedLists_OrderedList) ΛListKeyMap ¶
func (t *Ctestschema_OrderedLists_OrderedList) ΛListKeyMap() (map[string]interface{}, error)
ΛListKeyMap returns the keys of the Ctestschema_OrderedLists_OrderedList struct, which is a YANG list entry.
func (*Ctestschema_OrderedLists_OrderedList) ΛValidate ¶
func (t *Ctestschema_OrderedLists_OrderedList) ΛValidate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
type Ctestschema_OrderedLists_OrderedList_Config ¶
type Ctestschema_OrderedLists_OrderedList_Config struct { ΛMetadata []ygot.Annotation `path:"@" ygotAnnotation:"true"` Key *string `path:"key" module:"ctestschema"` ΛKey []ygot.Annotation `path:"@key" ygotAnnotation:"true"` Value *string `path:"value" module:"ctestschema"` ΛValue []ygot.Annotation `path:"@value" ygotAnnotation:"true"` }
Ctestschema_OrderedLists_OrderedList_Config represents the /ctestschema/ordered-lists/ordered-list/config YANG schema element.
func (*Ctestschema_OrderedLists_OrderedList_Config) GetKey ¶
func (t *Ctestschema_OrderedLists_OrderedList_Config) GetKey() string
GetKey retrieves the value of the leaf Key from the Ctestschema_OrderedLists_OrderedList_Config struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if Key is set, it can safely use t.GetKey() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.Key == nil' before retrieving the leaf's value.
func (*Ctestschema_OrderedLists_OrderedList_Config) GetValue ¶
func (t *Ctestschema_OrderedLists_OrderedList_Config) GetValue() string
GetValue retrieves the value of the leaf Value from the Ctestschema_OrderedLists_OrderedList_Config struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if Value is set, it can safely use t.GetValue() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.Value == nil' before retrieving the leaf's value.
func (*Ctestschema_OrderedLists_OrderedList_Config) IsYANGGoStruct ¶
func (*Ctestschema_OrderedLists_OrderedList_Config) IsYANGGoStruct()
IsYANGGoStruct ensures that Ctestschema_OrderedLists_OrderedList_Config implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.
func (*Ctestschema_OrderedLists_OrderedList_Config) PopulateDefaults ¶ added in v0.29.0
func (t *Ctestschema_OrderedLists_OrderedList_Config) PopulateDefaults()
PopulateDefaults recursively populates unset leaf fields in the Ctestschema_OrderedLists_OrderedList_Config with default values as specified in the YANG schema, instantiating any nil container fields.
func (*Ctestschema_OrderedLists_OrderedList_Config) Validate ¶
func (t *Ctestschema_OrderedLists_OrderedList_Config) Validate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
func (*Ctestschema_OrderedLists_OrderedList_Config) ΛBelongingModule ¶
func (*Ctestschema_OrderedLists_OrderedList_Config) ΛBelongingModule() string
ΛBelongingModule returns the name of the module that defines the namespace of Ctestschema_OrderedLists_OrderedList_Config.
func (*Ctestschema_OrderedLists_OrderedList_Config) ΛEnumTypeMap ¶
func (t *Ctestschema_OrderedLists_OrderedList_Config) ΛEnumTypeMap() map[string][]reflect.Type
ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.
func (*Ctestschema_OrderedLists_OrderedList_Config) ΛValidate ¶
func (t *Ctestschema_OrderedLists_OrderedList_Config) ΛValidate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
type Ctestschema_OrderedLists_OrderedList_OrderedLists ¶ added in v0.29.0
type Ctestschema_OrderedLists_OrderedList_OrderedLists struct { ΛMetadata []ygot.Annotation `path:"@" ygotAnnotation:"true"` OrderedList *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_OrderedMap `path:"ordered-list" module:"ctestschema"` ΛOrderedList []ygot.Annotation `path:"@ordered-list" ygotAnnotation:"true"` }
Ctestschema_OrderedLists_OrderedList_OrderedLists represents the /ctestschema/ordered-lists/ordered-list/ordered-lists YANG schema element.
func (*Ctestschema_OrderedLists_OrderedList_OrderedLists) AppendNewOrderedList ¶ added in v0.29.0
func (s *Ctestschema_OrderedLists_OrderedList_OrderedLists) AppendNewOrderedList(Key string) (*Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList, error)
AppendNewOrderedList creates a new entry in the OrderedList ordered map of the Ctestschema_OrderedLists_OrderedList_OrderedLists struct. The keys of the list are populated from the input arguments.
func (*Ctestschema_OrderedLists_OrderedList_OrderedLists) AppendOrderedList ¶ added in v0.29.0
func (s *Ctestschema_OrderedLists_OrderedList_OrderedLists) AppendOrderedList(v *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList) error
AppendOrderedList appends the supplied Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList struct to the list OrderedList of Ctestschema_OrderedLists_OrderedList_OrderedLists. If the key value(s) specified in the supplied Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList already exist in the list, an error is returned.
func (*Ctestschema_OrderedLists_OrderedList_OrderedLists) DeleteOrderedList ¶ added in v0.29.0
func (s *Ctestschema_OrderedLists_OrderedList_OrderedLists) DeleteOrderedList(Key string) bool
DeleteOrderedList deletes the value with the specified keys from the receiver Ctestschema_OrderedLists_OrderedList_OrderedLists. If there is no such element, the function is a no-op.
func (*Ctestschema_OrderedLists_OrderedList_OrderedLists) GetOrderedList ¶ added in v0.29.0
func (s *Ctestschema_OrderedLists_OrderedList_OrderedLists) GetOrderedList(Key string) *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList
GetOrderedList retrieves the value with the specified key from the OrderedList map field of Ctestschema_OrderedLists_OrderedList_OrderedLists. If the receiver is nil, or the specified key is not present in the list, nil is returned such that Get* methods may be safely chained.
func (*Ctestschema_OrderedLists_OrderedList_OrderedLists) IsYANGGoStruct ¶ added in v0.29.0
func (*Ctestschema_OrderedLists_OrderedList_OrderedLists) IsYANGGoStruct()
IsYANGGoStruct ensures that Ctestschema_OrderedLists_OrderedList_OrderedLists implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.
func (*Ctestschema_OrderedLists_OrderedList_OrderedLists) PopulateDefaults ¶ added in v0.29.0
func (t *Ctestschema_OrderedLists_OrderedList_OrderedLists) PopulateDefaults()
PopulateDefaults recursively populates unset leaf fields in the Ctestschema_OrderedLists_OrderedList_OrderedLists with default values as specified in the YANG schema, instantiating any nil container fields.
func (*Ctestschema_OrderedLists_OrderedList_OrderedLists) Validate ¶ added in v0.29.0
func (t *Ctestschema_OrderedLists_OrderedList_OrderedLists) Validate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
func (*Ctestschema_OrderedLists_OrderedList_OrderedLists) ΛBelongingModule ¶ added in v0.29.0
func (*Ctestschema_OrderedLists_OrderedList_OrderedLists) ΛBelongingModule() string
ΛBelongingModule returns the name of the module that defines the namespace of Ctestschema_OrderedLists_OrderedList_OrderedLists.
func (*Ctestschema_OrderedLists_OrderedList_OrderedLists) ΛEnumTypeMap ¶ added in v0.29.0
func (t *Ctestschema_OrderedLists_OrderedList_OrderedLists) ΛEnumTypeMap() map[string][]reflect.Type
ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.
func (*Ctestschema_OrderedLists_OrderedList_OrderedLists) ΛValidate ¶ added in v0.29.0
func (t *Ctestschema_OrderedLists_OrderedList_OrderedLists) ΛValidate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
type Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList ¶ added in v0.29.0
type Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList struct { ΛMetadata []ygot.Annotation `path:"@" ygotAnnotation:"true"` Config *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_Config `path:"config" module:"ctestschema"` ΛConfig []ygot.Annotation `path:"@config" ygotAnnotation:"true"` Key *string `path:"key" module:"ctestschema"` ΛKey []ygot.Annotation `path:"@key" ygotAnnotation:"true"` State *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_State `path:"state" module:"ctestschema"` ΛState []ygot.Annotation `path:"@state" ygotAnnotation:"true"` }
Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList represents the /ctestschema/ordered-lists/ordered-list/ordered-lists/ordered-list YANG schema element.
func (*Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList) GetConfig ¶ added in v0.29.0
func (t *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList) GetConfig() *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_Config
GetConfig returns the value of the Config struct pointer from Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList. If the receiver or the field Config is nil, nil is returned such that the Get* methods can be safely chained.
func (*Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList) GetKey ¶ added in v0.29.0
func (t *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList) GetKey() string
GetKey retrieves the value of the leaf Key from the Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if Key is set, it can safely use t.GetKey() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.Key == nil' before retrieving the leaf's value.
func (*Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList) GetOrCreateConfig ¶ added in v0.29.0
func (t *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList) GetOrCreateConfig() *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_Config
GetOrCreateConfig retrieves the value of the Config field or returns the existing field if it already exists.
func (*Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList) GetOrCreateState ¶ added in v0.29.0
func (t *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList) GetOrCreateState() *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_State
GetOrCreateState retrieves the value of the State field or returns the existing field if it already exists.
func (*Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList) GetState ¶ added in v0.29.0
func (t *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList) GetState() *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_State
GetState returns the value of the State struct pointer from Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList. If the receiver or the field State is nil, nil is returned such that the Get* methods can be safely chained.
func (*Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList) IsYANGGoStruct ¶ added in v0.29.0
func (*Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList) IsYANGGoStruct()
IsYANGGoStruct ensures that Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.
func (*Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList) PopulateDefaults ¶ added in v0.29.0
func (t *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList) PopulateDefaults()
PopulateDefaults recursively populates unset leaf fields in the Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList with default values as specified in the YANG schema, instantiating any nil container fields.
func (*Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList) Validate ¶ added in v0.29.0
func (t *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList) Validate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
func (*Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList) ΛBelongingModule ¶ added in v0.29.0
func (*Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList) ΛBelongingModule() string
ΛBelongingModule returns the name of the module that defines the namespace of Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList.
func (*Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList) ΛEnumTypeMap ¶ added in v0.29.0
func (t *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList) ΛEnumTypeMap() map[string][]reflect.Type
ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.
func (*Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList) ΛListKeyMap ¶ added in v0.29.0
func (t *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList) ΛListKeyMap() (map[string]interface{}, error)
ΛListKeyMap returns the keys of the Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList struct, which is a YANG list entry.
func (*Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList) ΛValidate ¶ added in v0.29.0
func (t *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList) ΛValidate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
type Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_Config ¶ added in v0.29.0
type Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_Config struct { ΛMetadata []ygot.Annotation `path:"@" ygotAnnotation:"true"` Key *string `path:"key" module:"ctestschema"` ΛKey []ygot.Annotation `path:"@key" ygotAnnotation:"true"` Value *string `path:"value" module:"ctestschema"` ΛValue []ygot.Annotation `path:"@value" ygotAnnotation:"true"` }
Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_Config represents the /ctestschema/ordered-lists/ordered-list/ordered-lists/ordered-list/config YANG schema element.
func (*Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_Config) GetKey ¶ added in v0.29.0
func (t *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_Config) GetKey() string
GetKey retrieves the value of the leaf Key from the Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_Config struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if Key is set, it can safely use t.GetKey() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.Key == nil' before retrieving the leaf's value.
func (*Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_Config) GetValue ¶ added in v0.29.0
func (t *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_Config) GetValue() string
GetValue retrieves the value of the leaf Value from the Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_Config struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if Value is set, it can safely use t.GetValue() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.Value == nil' before retrieving the leaf's value.
func (*Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_Config) IsYANGGoStruct ¶ added in v0.29.0
func (*Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_Config) IsYANGGoStruct()
IsYANGGoStruct ensures that Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_Config implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.
func (*Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_Config) PopulateDefaults ¶ added in v0.29.0
func (t *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_Config) PopulateDefaults()
PopulateDefaults recursively populates unset leaf fields in the Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_Config with default values as specified in the YANG schema, instantiating any nil container fields.
func (*Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_Config) Validate ¶ added in v0.29.0
func (t *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_Config) Validate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
func (*Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_Config) ΛBelongingModule ¶ added in v0.29.0
func (*Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_Config) ΛBelongingModule() string
ΛBelongingModule returns the name of the module that defines the namespace of Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_Config.
func (*Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_Config) ΛEnumTypeMap ¶ added in v0.29.0
func (t *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_Config) ΛEnumTypeMap() map[string][]reflect.Type
ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.
func (*Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_Config) ΛValidate ¶ added in v0.29.0
func (t *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_Config) ΛValidate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
type Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_OrderedMap ¶ added in v0.29.0
type Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_OrderedMap struct {
// contains filtered or unexported fields
}
Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_OrderedMap is an ordered map that represents the "ordered-by user" list elements at /ctestschema/ordered-lists/ordered-list/ordered-lists/ordered-list.
func (*Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_OrderedMap) Append ¶ added in v0.29.0
func (o *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_OrderedMap) Append(v *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList) error
Append appends a Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList, returning an error if the key already exists in the ordered list or if the key is unspecified.
func (*Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_OrderedMap) AppendNew ¶ added in v0.29.0
func (o *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_OrderedMap) AppendNew(Key string) (*Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList, error)
AppendNew creates and appends a new Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList, returning the newly-initialized v. It returns an error if the v already exists.
func (*Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_OrderedMap) Delete ¶ added in v0.29.0
func (o *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_OrderedMap) Delete(key string) bool
Delete deletes an element.
func (*Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_OrderedMap) Get ¶ added in v0.29.0
func (o *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_OrderedMap) Get(key string) *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList
Get returns the value corresponding to the key. If the key is not found, nil is returned.
func (*Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_OrderedMap) IsYANGOrderedList ¶ added in v0.29.0
func (*Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_OrderedMap) IsYANGOrderedList()
IsYANGOrderedList ensures that Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_OrderedMap implements the ygot.GoOrderedList interface.
func (*Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_OrderedMap) Keys ¶ added in v0.29.0
func (o *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_OrderedMap) Keys() []string
Keys returns a copy of the list's keys.
func (*Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_OrderedMap) Len ¶ added in v0.29.0
Len returns a size of Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_OrderedMap
func (*Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_OrderedMap) Values ¶ added in v0.29.0
func (o *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_OrderedMap) Values() []*Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList
Values returns the current set of the list's values in order.
type Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_State ¶ added in v0.29.0
type Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_State struct { ΛMetadata []ygot.Annotation `path:"@" ygotAnnotation:"true"` Key *string `path:"key" module:"ctestschema"` ΛKey []ygot.Annotation `path:"@key" ygotAnnotation:"true"` ParentKey *string `path:"parent-key" module:"ctestschema"` ΛParentKey []ygot.Annotation `path:"@parent-key" ygotAnnotation:"true"` Value *string `path:"value" module:"ctestschema"` ΛValue []ygot.Annotation `path:"@value" ygotAnnotation:"true"` }
Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_State represents the /ctestschema/ordered-lists/ordered-list/ordered-lists/ordered-list/state YANG schema element.
func (*Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_State) GetKey ¶ added in v0.29.0
func (t *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_State) GetKey() string
GetKey retrieves the value of the leaf Key from the Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_State struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if Key is set, it can safely use t.GetKey() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.Key == nil' before retrieving the leaf's value.
func (*Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_State) GetParentKey ¶ added in v0.29.0
func (t *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_State) GetParentKey() string
GetParentKey retrieves the value of the leaf ParentKey from the Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_State struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if ParentKey is set, it can safely use t.GetParentKey() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.ParentKey == nil' before retrieving the leaf's value.
func (*Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_State) GetValue ¶ added in v0.29.0
func (t *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_State) GetValue() string
GetValue retrieves the value of the leaf Value from the Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_State struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if Value is set, it can safely use t.GetValue() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.Value == nil' before retrieving the leaf's value.
func (*Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_State) IsYANGGoStruct ¶ added in v0.29.0
func (*Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_State) IsYANGGoStruct()
IsYANGGoStruct ensures that Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_State implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.
func (*Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_State) PopulateDefaults ¶ added in v0.29.0
func (t *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_State) PopulateDefaults()
PopulateDefaults recursively populates unset leaf fields in the Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_State with default values as specified in the YANG schema, instantiating any nil container fields.
func (*Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_State) Validate ¶ added in v0.29.0
func (t *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_State) Validate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
func (*Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_State) ΛBelongingModule ¶ added in v0.29.0
func (*Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_State) ΛBelongingModule() string
ΛBelongingModule returns the name of the module that defines the namespace of Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_State.
func (*Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_State) ΛEnumTypeMap ¶ added in v0.29.0
func (t *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_State) ΛEnumTypeMap() map[string][]reflect.Type
ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.
func (*Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_State) ΛValidate ¶ added in v0.29.0
func (t *Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_State) ΛValidate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
type Ctestschema_OrderedLists_OrderedList_OrderedMap ¶
type Ctestschema_OrderedLists_OrderedList_OrderedMap struct {
// contains filtered or unexported fields
}
Ctestschema_OrderedLists_OrderedList_OrderedMap is an ordered map that represents the "ordered-by user" list elements at /ctestschema/ordered-lists/ordered-list.
func GetOrderedMap ¶ added in v0.29.0
func GetOrderedMap(t *testing.T) *Ctestschema_OrderedLists_OrderedList_OrderedMap
GetOrderedMap returns a populated ordered map with dummy values.
- foo: foo-val - bar: bar-val
func GetOrderedMap2 ¶ added in v0.29.0
func GetOrderedMap2(t *testing.T) *Ctestschema_OrderedLists_OrderedList_OrderedMap
GetOrderedMap2 returns a populated ordered map with different dummy values.
- wee: wee-val - woo: woo-val
func (*Ctestschema_OrderedLists_OrderedList_OrderedMap) Append ¶
func (o *Ctestschema_OrderedLists_OrderedList_OrderedMap) Append(v *Ctestschema_OrderedLists_OrderedList) error
Append appends a Ctestschema_OrderedLists_OrderedList, returning an error if the key already exists in the ordered list or if the key is unspecified.
func (*Ctestschema_OrderedLists_OrderedList_OrderedMap) AppendNew ¶
func (o *Ctestschema_OrderedLists_OrderedList_OrderedMap) AppendNew(Key string) (*Ctestschema_OrderedLists_OrderedList, error)
AppendNew creates and appends a new Ctestschema_OrderedLists_OrderedList, returning the newly-initialized v. It returns an error if the v already exists.
func (*Ctestschema_OrderedLists_OrderedList_OrderedMap) Delete ¶
func (o *Ctestschema_OrderedLists_OrderedList_OrderedMap) Delete(key string) bool
Delete deletes an element.
func (*Ctestschema_OrderedLists_OrderedList_OrderedMap) Get ¶
func (o *Ctestschema_OrderedLists_OrderedList_OrderedMap) Get(key string) *Ctestschema_OrderedLists_OrderedList
Get returns the value corresponding to the key. If the key is not found, nil is returned.
func (*Ctestschema_OrderedLists_OrderedList_OrderedMap) IsYANGOrderedList ¶
func (*Ctestschema_OrderedLists_OrderedList_OrderedMap) IsYANGOrderedList()
IsYANGOrderedList ensures that Ctestschema_OrderedLists_OrderedList_OrderedMap implements the ygot.GoOrderedList interface.
func (*Ctestschema_OrderedLists_OrderedList_OrderedMap) Keys ¶
func (o *Ctestschema_OrderedLists_OrderedList_OrderedMap) Keys() []string
Keys returns a copy of the list's keys.
func (*Ctestschema_OrderedLists_OrderedList_OrderedMap) Len ¶
func (o *Ctestschema_OrderedLists_OrderedList_OrderedMap) Len() int
Len returns a size of Ctestschema_OrderedLists_OrderedList_OrderedMap
func (*Ctestschema_OrderedLists_OrderedList_OrderedMap) Values ¶
func (o *Ctestschema_OrderedLists_OrderedList_OrderedMap) Values() []*Ctestschema_OrderedLists_OrderedList
Values returns the current set of the list's values in order.
type Ctestschema_OrderedLists_OrderedList_State ¶
type Ctestschema_OrderedLists_OrderedList_State struct { ΛMetadata []ygot.Annotation `path:"@" ygotAnnotation:"true"` Key *string `path:"key" module:"ctestschema"` ΛKey []ygot.Annotation `path:"@key" ygotAnnotation:"true"` ParentKey *string `path:"parent-key" module:"ctestschema"` ΛParentKey []ygot.Annotation `path:"@parent-key" ygotAnnotation:"true"` RoValue *string `path:"ro-value" module:"ctestschema"` ΛRoValue []ygot.Annotation `path:"@ro-value" ygotAnnotation:"true"` Value *string `path:"value" module:"ctestschema"` ΛValue []ygot.Annotation `path:"@value" ygotAnnotation:"true"` }
Ctestschema_OrderedLists_OrderedList_State represents the /ctestschema/ordered-lists/ordered-list/state YANG schema element.
func (*Ctestschema_OrderedLists_OrderedList_State) GetKey ¶
func (t *Ctestschema_OrderedLists_OrderedList_State) GetKey() string
GetKey retrieves the value of the leaf Key from the Ctestschema_OrderedLists_OrderedList_State struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if Key is set, it can safely use t.GetKey() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.Key == nil' before retrieving the leaf's value.
func (*Ctestschema_OrderedLists_OrderedList_State) GetParentKey ¶ added in v0.29.0
func (t *Ctestschema_OrderedLists_OrderedList_State) GetParentKey() string
GetParentKey retrieves the value of the leaf ParentKey from the Ctestschema_OrderedLists_OrderedList_State struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if ParentKey is set, it can safely use t.GetParentKey() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.ParentKey == nil' before retrieving the leaf's value.
func (*Ctestschema_OrderedLists_OrderedList_State) GetRoValue ¶ added in v0.29.0
func (t *Ctestschema_OrderedLists_OrderedList_State) GetRoValue() string
GetRoValue retrieves the value of the leaf RoValue from the Ctestschema_OrderedLists_OrderedList_State struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if RoValue is set, it can safely use t.GetRoValue() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.RoValue == nil' before retrieving the leaf's value.
func (*Ctestschema_OrderedLists_OrderedList_State) GetValue ¶
func (t *Ctestschema_OrderedLists_OrderedList_State) GetValue() string
GetValue retrieves the value of the leaf Value from the Ctestschema_OrderedLists_OrderedList_State struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if Value is set, it can safely use t.GetValue() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.Value == nil' before retrieving the leaf's value.
func (*Ctestschema_OrderedLists_OrderedList_State) IsYANGGoStruct ¶
func (*Ctestschema_OrderedLists_OrderedList_State) IsYANGGoStruct()
IsYANGGoStruct ensures that Ctestschema_OrderedLists_OrderedList_State implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.
func (*Ctestschema_OrderedLists_OrderedList_State) PopulateDefaults ¶ added in v0.29.0
func (t *Ctestschema_OrderedLists_OrderedList_State) PopulateDefaults()
PopulateDefaults recursively populates unset leaf fields in the Ctestschema_OrderedLists_OrderedList_State with default values as specified in the YANG schema, instantiating any nil container fields.
func (*Ctestschema_OrderedLists_OrderedList_State) Validate ¶
func (t *Ctestschema_OrderedLists_OrderedList_State) Validate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
func (*Ctestschema_OrderedLists_OrderedList_State) ΛBelongingModule ¶
func (*Ctestschema_OrderedLists_OrderedList_State) ΛBelongingModule() string
ΛBelongingModule returns the name of the module that defines the namespace of Ctestschema_OrderedLists_OrderedList_State.
func (*Ctestschema_OrderedLists_OrderedList_State) ΛEnumTypeMap ¶
func (t *Ctestschema_OrderedLists_OrderedList_State) ΛEnumTypeMap() map[string][]reflect.Type
ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.
func (*Ctestschema_OrderedLists_OrderedList_State) ΛValidate ¶
func (t *Ctestschema_OrderedLists_OrderedList_State) ΛValidate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
type Ctestschema_OtherData ¶ added in v0.29.0
type Ctestschema_OtherData struct { ΛMetadata []ygot.Annotation `path:"@" ygotAnnotation:"true"` Config *Ctestschema_OtherData_Config `path:"config" module:"ctestschema"` ΛConfig []ygot.Annotation `path:"@config" ygotAnnotation:"true"` State *Ctestschema_OtherData_State `path:"state" module:"ctestschema"` ΛState []ygot.Annotation `path:"@state" ygotAnnotation:"true"` }
Ctestschema_OtherData represents the /ctestschema/other-data YANG schema element.
func (*Ctestschema_OtherData) GetConfig ¶ added in v0.29.0
func (t *Ctestschema_OtherData) GetConfig() *Ctestschema_OtherData_Config
GetConfig returns the value of the Config struct pointer from Ctestschema_OtherData. If the receiver or the field Config is nil, nil is returned such that the Get* methods can be safely chained.
func (*Ctestschema_OtherData) GetOrCreateConfig ¶ added in v0.29.0
func (t *Ctestschema_OtherData) GetOrCreateConfig() *Ctestschema_OtherData_Config
GetOrCreateConfig retrieves the value of the Config field or returns the existing field if it already exists.
func (*Ctestschema_OtherData) GetOrCreateState ¶ added in v0.29.0
func (t *Ctestschema_OtherData) GetOrCreateState() *Ctestschema_OtherData_State
GetOrCreateState retrieves the value of the State field or returns the existing field if it already exists.
func (*Ctestschema_OtherData) GetState ¶ added in v0.29.0
func (t *Ctestschema_OtherData) GetState() *Ctestschema_OtherData_State
GetState returns the value of the State struct pointer from Ctestschema_OtherData. If the receiver or the field State is nil, nil is returned such that the Get* methods can be safely chained.
func (*Ctestschema_OtherData) IsYANGGoStruct ¶ added in v0.29.0
func (*Ctestschema_OtherData) IsYANGGoStruct()
IsYANGGoStruct ensures that Ctestschema_OtherData implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.
func (*Ctestschema_OtherData) PopulateDefaults ¶ added in v0.29.0
func (t *Ctestschema_OtherData) PopulateDefaults()
PopulateDefaults recursively populates unset leaf fields in the Ctestschema_OtherData with default values as specified in the YANG schema, instantiating any nil container fields.
func (*Ctestschema_OtherData) Validate ¶ added in v0.29.0
func (t *Ctestschema_OtherData) Validate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
func (*Ctestschema_OtherData) ΛBelongingModule ¶ added in v0.29.0
func (*Ctestschema_OtherData) ΛBelongingModule() string
ΛBelongingModule returns the name of the module that defines the namespace of Ctestschema_OtherData.
func (*Ctestschema_OtherData) ΛEnumTypeMap ¶ added in v0.29.0
func (t *Ctestschema_OtherData) ΛEnumTypeMap() map[string][]reflect.Type
ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.
func (*Ctestschema_OtherData) ΛValidate ¶ added in v0.29.0
func (t *Ctestschema_OtherData) ΛValidate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
type Ctestschema_OtherData_Config ¶ added in v0.29.0
type Ctestschema_OtherData_Config struct { ΛMetadata []ygot.Annotation `path:"@" ygotAnnotation:"true"` Motd *string `path:"motd" module:"ctestschema"` ΛMotd []ygot.Annotation `path:"@motd" ygotAnnotation:"true"` }
Ctestschema_OtherData_Config represents the /ctestschema/other-data/config YANG schema element.
func (*Ctestschema_OtherData_Config) GetMotd ¶ added in v0.29.0
func (t *Ctestschema_OtherData_Config) GetMotd() string
GetMotd retrieves the value of the leaf Motd from the Ctestschema_OtherData_Config struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if Motd is set, it can safely use t.GetMotd() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.Motd == nil' before retrieving the leaf's value.
func (*Ctestschema_OtherData_Config) IsYANGGoStruct ¶ added in v0.29.0
func (*Ctestschema_OtherData_Config) IsYANGGoStruct()
IsYANGGoStruct ensures that Ctestschema_OtherData_Config implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.
func (*Ctestschema_OtherData_Config) PopulateDefaults ¶ added in v0.29.0
func (t *Ctestschema_OtherData_Config) PopulateDefaults()
PopulateDefaults recursively populates unset leaf fields in the Ctestschema_OtherData_Config with default values as specified in the YANG schema, instantiating any nil container fields.
func (*Ctestschema_OtherData_Config) Validate ¶ added in v0.29.0
func (t *Ctestschema_OtherData_Config) Validate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
func (*Ctestschema_OtherData_Config) ΛBelongingModule ¶ added in v0.29.0
func (*Ctestschema_OtherData_Config) ΛBelongingModule() string
ΛBelongingModule returns the name of the module that defines the namespace of Ctestschema_OtherData_Config.
func (*Ctestschema_OtherData_Config) ΛEnumTypeMap ¶ added in v0.29.0
func (t *Ctestschema_OtherData_Config) ΛEnumTypeMap() map[string][]reflect.Type
ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.
func (*Ctestschema_OtherData_Config) ΛValidate ¶ added in v0.29.0
func (t *Ctestschema_OtherData_Config) ΛValidate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
type Ctestschema_OtherData_State ¶ added in v0.29.0
type Ctestschema_OtherData_State struct { ΛMetadata []ygot.Annotation `path:"@" ygotAnnotation:"true"` Motd *string `path:"motd" module:"ctestschema"` ΛMotd []ygot.Annotation `path:"@motd" ygotAnnotation:"true"` }
Ctestschema_OtherData_State represents the /ctestschema/other-data/state YANG schema element.
func (*Ctestschema_OtherData_State) GetMotd ¶ added in v0.29.0
func (t *Ctestschema_OtherData_State) GetMotd() string
GetMotd retrieves the value of the leaf Motd from the Ctestschema_OtherData_State struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if Motd is set, it can safely use t.GetMotd() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.Motd == nil' before retrieving the leaf's value.
func (*Ctestschema_OtherData_State) IsYANGGoStruct ¶ added in v0.29.0
func (*Ctestschema_OtherData_State) IsYANGGoStruct()
IsYANGGoStruct ensures that Ctestschema_OtherData_State implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.
func (*Ctestschema_OtherData_State) PopulateDefaults ¶ added in v0.29.0
func (t *Ctestschema_OtherData_State) PopulateDefaults()
PopulateDefaults recursively populates unset leaf fields in the Ctestschema_OtherData_State with default values as specified in the YANG schema, instantiating any nil container fields.
func (*Ctestschema_OtherData_State) Validate ¶ added in v0.29.0
func (t *Ctestschema_OtherData_State) Validate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
func (*Ctestschema_OtherData_State) ΛBelongingModule ¶ added in v0.29.0
func (*Ctestschema_OtherData_State) ΛBelongingModule() string
ΛBelongingModule returns the name of the module that defines the namespace of Ctestschema_OtherData_State.
func (*Ctestschema_OtherData_State) ΛEnumTypeMap ¶ added in v0.29.0
func (t *Ctestschema_OtherData_State) ΛEnumTypeMap() map[string][]reflect.Type
ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.
func (*Ctestschema_OtherData_State) ΛValidate ¶ added in v0.29.0
func (t *Ctestschema_OtherData_State) ΛValidate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
type Ctestschema_UnorderedLists ¶
type Ctestschema_UnorderedLists struct { ΛMetadata []ygot.Annotation `path:"@" ygotAnnotation:"true"` UnorderedList map[string]*Ctestschema_UnorderedLists_UnorderedList `path:"unordered-list" module:"ctestschema"` ΛUnorderedList []ygot.Annotation `path:"@unordered-list" ygotAnnotation:"true"` }
Ctestschema_UnorderedLists represents the /ctestschema/unordered-lists YANG schema element.
func (*Ctestschema_UnorderedLists) AppendUnorderedList ¶
func (t *Ctestschema_UnorderedLists) AppendUnorderedList(v *Ctestschema_UnorderedLists_UnorderedList) error
AppendUnorderedList appends the supplied Ctestschema_UnorderedLists_UnorderedList struct to the list UnorderedList of Ctestschema_UnorderedLists. If the key value(s) specified in the supplied Ctestschema_UnorderedLists_UnorderedList already exist in the list, an error is returned.
func (*Ctestschema_UnorderedLists) GetOrCreateUnorderedList ¶
func (t *Ctestschema_UnorderedLists) GetOrCreateUnorderedList(Key string) *Ctestschema_UnorderedLists_UnorderedList
GetOrCreateUnorderedList retrieves the value with the specified keys from the receiver Ctestschema_UnorderedLists. If the entry does not exist, then it is created. It returns the existing or new list member.
func (*Ctestschema_UnorderedLists) GetUnorderedList ¶
func (t *Ctestschema_UnorderedLists) GetUnorderedList(Key string) *Ctestschema_UnorderedLists_UnorderedList
GetUnorderedList retrieves the value with the specified key from the UnorderedList map field of Ctestschema_UnorderedLists. If the receiver is nil, or the specified key is not present in the list, nil is returned such that Get* methods may be safely chained.
func (*Ctestschema_UnorderedLists) IsYANGGoStruct ¶
func (*Ctestschema_UnorderedLists) IsYANGGoStruct()
IsYANGGoStruct ensures that Ctestschema_UnorderedLists implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.
func (*Ctestschema_UnorderedLists) NewUnorderedList ¶
func (t *Ctestschema_UnorderedLists) NewUnorderedList(Key string) (*Ctestschema_UnorderedLists_UnorderedList, error)
NewUnorderedList creates a new entry in the UnorderedList list of the Ctestschema_UnorderedLists struct. The keys of the list are populated from the input arguments.
func (*Ctestschema_UnorderedLists) PopulateDefaults ¶ added in v0.29.0
func (t *Ctestschema_UnorderedLists) PopulateDefaults()
PopulateDefaults recursively populates unset leaf fields in the Ctestschema_UnorderedLists with default values as specified in the YANG schema, instantiating any nil container fields.
func (*Ctestschema_UnorderedLists) RenameUnorderedList ¶
func (t *Ctestschema_UnorderedLists) RenameUnorderedList(oldK, newK string) error
RenameUnorderedList renames an entry in the list UnorderedList within the Ctestschema_UnorderedLists struct. The entry with key oldK is renamed to newK updating the key within the value.
func (*Ctestschema_UnorderedLists) Validate ¶
func (t *Ctestschema_UnorderedLists) Validate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
func (*Ctestschema_UnorderedLists) ΛBelongingModule ¶
func (*Ctestschema_UnorderedLists) ΛBelongingModule() string
ΛBelongingModule returns the name of the module that defines the namespace of Ctestschema_UnorderedLists.
func (*Ctestschema_UnorderedLists) ΛEnumTypeMap ¶
func (t *Ctestschema_UnorderedLists) ΛEnumTypeMap() map[string][]reflect.Type
ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.
func (*Ctestschema_UnorderedLists) ΛValidate ¶
func (t *Ctestschema_UnorderedLists) ΛValidate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
type Ctestschema_UnorderedLists_UnorderedList ¶
type Ctestschema_UnorderedLists_UnorderedList struct { ΛMetadata []ygot.Annotation `path:"@" ygotAnnotation:"true"` Config *Ctestschema_UnorderedLists_UnorderedList_Config `path:"config" module:"ctestschema"` ΛConfig []ygot.Annotation `path:"@config" ygotAnnotation:"true"` Key *string `path:"key" module:"ctestschema"` ΛKey []ygot.Annotation `path:"@key" ygotAnnotation:"true"` State *Ctestschema_UnorderedLists_UnorderedList_State `path:"state" module:"ctestschema"` ΛState []ygot.Annotation `path:"@state" ygotAnnotation:"true"` }
Ctestschema_UnorderedLists_UnorderedList represents the /ctestschema/unordered-lists/unordered-list YANG schema element.
func (*Ctestschema_UnorderedLists_UnorderedList) GetConfig ¶
func (t *Ctestschema_UnorderedLists_UnorderedList) GetConfig() *Ctestschema_UnorderedLists_UnorderedList_Config
GetConfig returns the value of the Config struct pointer from Ctestschema_UnorderedLists_UnorderedList. If the receiver or the field Config is nil, nil is returned such that the Get* methods can be safely chained.
func (*Ctestschema_UnorderedLists_UnorderedList) GetKey ¶
func (t *Ctestschema_UnorderedLists_UnorderedList) GetKey() string
GetKey retrieves the value of the leaf Key from the Ctestschema_UnorderedLists_UnorderedList struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if Key is set, it can safely use t.GetKey() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.Key == nil' before retrieving the leaf's value.
func (*Ctestschema_UnorderedLists_UnorderedList) GetOrCreateConfig ¶
func (t *Ctestschema_UnorderedLists_UnorderedList) GetOrCreateConfig() *Ctestschema_UnorderedLists_UnorderedList_Config
GetOrCreateConfig retrieves the value of the Config field or returns the existing field if it already exists.
func (*Ctestschema_UnorderedLists_UnorderedList) GetOrCreateState ¶
func (t *Ctestschema_UnorderedLists_UnorderedList) GetOrCreateState() *Ctestschema_UnorderedLists_UnorderedList_State
GetOrCreateState retrieves the value of the State field or returns the existing field if it already exists.
func (*Ctestschema_UnorderedLists_UnorderedList) GetState ¶
func (t *Ctestschema_UnorderedLists_UnorderedList) GetState() *Ctestschema_UnorderedLists_UnorderedList_State
GetState returns the value of the State struct pointer from Ctestschema_UnorderedLists_UnorderedList. If the receiver or the field State is nil, nil is returned such that the Get* methods can be safely chained.
func (*Ctestschema_UnorderedLists_UnorderedList) IsYANGGoStruct ¶
func (*Ctestschema_UnorderedLists_UnorderedList) IsYANGGoStruct()
IsYANGGoStruct ensures that Ctestschema_UnorderedLists_UnorderedList implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.
func (*Ctestschema_UnorderedLists_UnorderedList) PopulateDefaults ¶ added in v0.29.0
func (t *Ctestschema_UnorderedLists_UnorderedList) PopulateDefaults()
PopulateDefaults recursively populates unset leaf fields in the Ctestschema_UnorderedLists_UnorderedList with default values as specified in the YANG schema, instantiating any nil container fields.
func (*Ctestschema_UnorderedLists_UnorderedList) Validate ¶
func (t *Ctestschema_UnorderedLists_UnorderedList) Validate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
func (*Ctestschema_UnorderedLists_UnorderedList) ΛBelongingModule ¶
func (*Ctestschema_UnorderedLists_UnorderedList) ΛBelongingModule() string
ΛBelongingModule returns the name of the module that defines the namespace of Ctestschema_UnorderedLists_UnorderedList.
func (*Ctestschema_UnorderedLists_UnorderedList) ΛEnumTypeMap ¶
func (t *Ctestschema_UnorderedLists_UnorderedList) ΛEnumTypeMap() map[string][]reflect.Type
ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.
func (*Ctestschema_UnorderedLists_UnorderedList) ΛListKeyMap ¶
func (t *Ctestschema_UnorderedLists_UnorderedList) ΛListKeyMap() (map[string]interface{}, error)
ΛListKeyMap returns the keys of the Ctestschema_UnorderedLists_UnorderedList struct, which is a YANG list entry.
func (*Ctestschema_UnorderedLists_UnorderedList) ΛValidate ¶
func (t *Ctestschema_UnorderedLists_UnorderedList) ΛValidate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
type Ctestschema_UnorderedLists_UnorderedList_Config ¶
type Ctestschema_UnorderedLists_UnorderedList_Config struct { ΛMetadata []ygot.Annotation `path:"@" ygotAnnotation:"true"` Key *string `path:"key" module:"ctestschema"` ΛKey []ygot.Annotation `path:"@key" ygotAnnotation:"true"` Value *string `path:"value" module:"ctestschema"` ΛValue []ygot.Annotation `path:"@value" ygotAnnotation:"true"` }
Ctestschema_UnorderedLists_UnorderedList_Config represents the /ctestschema/unordered-lists/unordered-list/config YANG schema element.
func (*Ctestschema_UnorderedLists_UnorderedList_Config) GetKey ¶
func (t *Ctestschema_UnorderedLists_UnorderedList_Config) GetKey() string
GetKey retrieves the value of the leaf Key from the Ctestschema_UnorderedLists_UnorderedList_Config struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if Key is set, it can safely use t.GetKey() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.Key == nil' before retrieving the leaf's value.
func (*Ctestschema_UnorderedLists_UnorderedList_Config) GetValue ¶
func (t *Ctestschema_UnorderedLists_UnorderedList_Config) GetValue() string
GetValue retrieves the value of the leaf Value from the Ctestschema_UnorderedLists_UnorderedList_Config struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if Value is set, it can safely use t.GetValue() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.Value == nil' before retrieving the leaf's value.
func (*Ctestschema_UnorderedLists_UnorderedList_Config) IsYANGGoStruct ¶
func (*Ctestschema_UnorderedLists_UnorderedList_Config) IsYANGGoStruct()
IsYANGGoStruct ensures that Ctestschema_UnorderedLists_UnorderedList_Config implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.
func (*Ctestschema_UnorderedLists_UnorderedList_Config) PopulateDefaults ¶ added in v0.29.0
func (t *Ctestschema_UnorderedLists_UnorderedList_Config) PopulateDefaults()
PopulateDefaults recursively populates unset leaf fields in the Ctestschema_UnorderedLists_UnorderedList_Config with default values as specified in the YANG schema, instantiating any nil container fields.
func (*Ctestschema_UnorderedLists_UnorderedList_Config) Validate ¶
func (t *Ctestschema_UnorderedLists_UnorderedList_Config) Validate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
func (*Ctestschema_UnorderedLists_UnorderedList_Config) ΛBelongingModule ¶
func (*Ctestschema_UnorderedLists_UnorderedList_Config) ΛBelongingModule() string
ΛBelongingModule returns the name of the module that defines the namespace of Ctestschema_UnorderedLists_UnorderedList_Config.
func (*Ctestschema_UnorderedLists_UnorderedList_Config) ΛEnumTypeMap ¶
func (t *Ctestschema_UnorderedLists_UnorderedList_Config) ΛEnumTypeMap() map[string][]reflect.Type
ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.
func (*Ctestschema_UnorderedLists_UnorderedList_Config) ΛValidate ¶
func (t *Ctestschema_UnorderedLists_UnorderedList_Config) ΛValidate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
type Ctestschema_UnorderedLists_UnorderedList_State ¶
type Ctestschema_UnorderedLists_UnorderedList_State struct { ΛMetadata []ygot.Annotation `path:"@" ygotAnnotation:"true"` Key *string `path:"key" module:"ctestschema"` ΛKey []ygot.Annotation `path:"@key" ygotAnnotation:"true"` Value *string `path:"value" module:"ctestschema"` ΛValue []ygot.Annotation `path:"@value" ygotAnnotation:"true"` }
Ctestschema_UnorderedLists_UnorderedList_State represents the /ctestschema/unordered-lists/unordered-list/state YANG schema element.
func (*Ctestschema_UnorderedLists_UnorderedList_State) GetKey ¶
func (t *Ctestschema_UnorderedLists_UnorderedList_State) GetKey() string
GetKey retrieves the value of the leaf Key from the Ctestschema_UnorderedLists_UnorderedList_State struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if Key is set, it can safely use t.GetKey() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.Key == nil' before retrieving the leaf's value.
func (*Ctestschema_UnorderedLists_UnorderedList_State) GetValue ¶
func (t *Ctestschema_UnorderedLists_UnorderedList_State) GetValue() string
GetValue retrieves the value of the leaf Value from the Ctestschema_UnorderedLists_UnorderedList_State struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if Value is set, it can safely use t.GetValue() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.Value == nil' before retrieving the leaf's value.
func (*Ctestschema_UnorderedLists_UnorderedList_State) IsYANGGoStruct ¶
func (*Ctestschema_UnorderedLists_UnorderedList_State) IsYANGGoStruct()
IsYANGGoStruct ensures that Ctestschema_UnorderedLists_UnorderedList_State implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.
func (*Ctestschema_UnorderedLists_UnorderedList_State) PopulateDefaults ¶ added in v0.29.0
func (t *Ctestschema_UnorderedLists_UnorderedList_State) PopulateDefaults()
PopulateDefaults recursively populates unset leaf fields in the Ctestschema_UnorderedLists_UnorderedList_State with default values as specified in the YANG schema, instantiating any nil container fields.
func (*Ctestschema_UnorderedLists_UnorderedList_State) Validate ¶
func (t *Ctestschema_UnorderedLists_UnorderedList_State) Validate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
func (*Ctestschema_UnorderedLists_UnorderedList_State) ΛBelongingModule ¶
func (*Ctestschema_UnorderedLists_UnorderedList_State) ΛBelongingModule() string
ΛBelongingModule returns the name of the module that defines the namespace of Ctestschema_UnorderedLists_UnorderedList_State.
func (*Ctestschema_UnorderedLists_UnorderedList_State) ΛEnumTypeMap ¶
func (t *Ctestschema_UnorderedLists_UnorderedList_State) ΛEnumTypeMap() map[string][]reflect.Type
ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.
func (*Ctestschema_UnorderedLists_UnorderedList_State) ΛValidate ¶
func (t *Ctestschema_UnorderedLists_UnorderedList_State) ΛValidate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
type Device ¶
type Device struct { ΛMetadata []ygot.Annotation `path:"@" ygotAnnotation:"true"` OrderedLists *Ctestschema_OrderedLists `path:"ordered-lists" module:"ctestschema"` ΛOrderedLists []ygot.Annotation `path:"@ordered-lists" ygotAnnotation:"true"` OrderedMultikeyedLists *CtestschemaRootmod_OrderedMultikeyedLists `path:"ordered-multikeyed-lists" module:"ctestschema-rootmod"` ΛOrderedMultikeyedLists []ygot.Annotation `path:"@ordered-multikeyed-lists" ygotAnnotation:"true"` OtherData *Ctestschema_OtherData `path:"other-data" module:"ctestschema"` ΛOtherData []ygot.Annotation `path:"@other-data" ygotAnnotation:"true"` Ref *Refschema_Ref `path:"ref" module:"refschema"` ΛRef []ygot.Annotation `path:"@ref" ygotAnnotation:"true"` Target *Utestschema_Target `path:"target" module:"utestschema"` ΛTarget []ygot.Annotation `path:"@target" ygotAnnotation:"true"` UnorderedLists *Ctestschema_UnorderedLists `path:"unordered-lists" module:"ctestschema"` ΛUnorderedLists []ygot.Annotation `path:"@unordered-lists" ygotAnnotation:"true"` }
Device represents the /device YANG schema element.
func GetDeviceWithOrderedMap ¶ added in v0.29.0
GetDeviceWithOrderedMap returns a Device object with a populated ordered map field.
func GetDeviceWithOrderedMap2 ¶ added in v0.29.0
GetDeviceWithOrderedMap returns a Device object with a ordered map field populated with different values.
func (*Device) GetOrCreateOrderedLists ¶
func (t *Device) GetOrCreateOrderedLists() *Ctestschema_OrderedLists
GetOrCreateOrderedLists retrieves the value of the OrderedLists field or returns the existing field if it already exists.
func (*Device) GetOrCreateOrderedMultikeyedLists ¶
func (t *Device) GetOrCreateOrderedMultikeyedLists() *CtestschemaRootmod_OrderedMultikeyedLists
GetOrCreateOrderedMultikeyedLists retrieves the value of the OrderedMultikeyedLists field or returns the existing field if it already exists.
func (*Device) GetOrCreateOtherData ¶ added in v0.29.0
func (t *Device) GetOrCreateOtherData() *Ctestschema_OtherData
GetOrCreateOtherData retrieves the value of the OtherData field or returns the existing field if it already exists.
func (*Device) GetOrCreateRef ¶
func (t *Device) GetOrCreateRef() *Refschema_Ref
GetOrCreateRef retrieves the value of the Ref field or returns the existing field if it already exists.
func (*Device) GetOrCreateTarget ¶
func (t *Device) GetOrCreateTarget() *Utestschema_Target
GetOrCreateTarget retrieves the value of the Target field or returns the existing field if it already exists.
func (*Device) GetOrCreateUnorderedLists ¶
func (t *Device) GetOrCreateUnorderedLists() *Ctestschema_UnorderedLists
GetOrCreateUnorderedLists retrieves the value of the UnorderedLists field or returns the existing field if it already exists.
func (*Device) GetOrderedLists ¶
func (t *Device) GetOrderedLists() *Ctestschema_OrderedLists
GetOrderedLists returns the value of the OrderedLists struct pointer from Device. If the receiver or the field OrderedLists is nil, nil is returned such that the Get* methods can be safely chained.
func (*Device) GetOrderedMultikeyedLists ¶
func (t *Device) GetOrderedMultikeyedLists() *CtestschemaRootmod_OrderedMultikeyedLists
GetOrderedMultikeyedLists returns the value of the OrderedMultikeyedLists struct pointer from Device. If the receiver or the field OrderedMultikeyedLists is nil, nil is returned such that the Get* methods can be safely chained.
func (*Device) GetOtherData ¶ added in v0.29.0
func (t *Device) GetOtherData() *Ctestschema_OtherData
GetOtherData returns the value of the OtherData struct pointer from Device. If the receiver or the field OtherData is nil, nil is returned such that the Get* methods can be safely chained.
func (*Device) GetRef ¶
func (t *Device) GetRef() *Refschema_Ref
GetRef returns the value of the Ref struct pointer from Device. If the receiver or the field Ref is nil, nil is returned such that the Get* methods can be safely chained.
func (*Device) GetTarget ¶
func (t *Device) GetTarget() *Utestschema_Target
GetTarget returns the value of the Target struct pointer from Device. If the receiver or the field Target is nil, nil is returned such that the Get* methods can be safely chained.
func (*Device) GetUnorderedLists ¶
func (t *Device) GetUnorderedLists() *Ctestschema_UnorderedLists
GetUnorderedLists returns the value of the UnorderedLists struct pointer from Device. If the receiver or the field UnorderedLists is nil, nil is returned such that the Get* methods can be safely chained.
func (*Device) IsYANGGoStruct ¶
func (*Device) IsYANGGoStruct()
IsYANGGoStruct ensures that Device implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.
func (*Device) PopulateDefaults ¶ added in v0.29.0
func (t *Device) PopulateDefaults()
PopulateDefaults recursively populates unset leaf fields in the Device with default values as specified in the YANG schema, instantiating any nil container fields.
func (*Device) Validate ¶
func (t *Device) Validate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
func (*Device) ΛBelongingModule ¶
ΛBelongingModule returns the name of the module that defines the namespace of Device.
func (*Device) ΛEnumTypeMap ¶
ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.
type Refschema_Ref ¶
type Refschema_Ref struct { ΛMetadata []ygot.Annotation `path:"@" ygotAnnotation:"true"` Reference map[string]*Refschema_Ref_Reference `path:"reference" module:"refschema"` ΛReference []ygot.Annotation `path:"@reference" ygotAnnotation:"true"` }
Refschema_Ref represents the /refschema/ref YANG schema element.
func (*Refschema_Ref) AppendReference ¶
func (t *Refschema_Ref) AppendReference(v *Refschema_Ref_Reference) error
AppendReference appends the supplied Refschema_Ref_Reference struct to the list Reference of Refschema_Ref. If the key value(s) specified in the supplied Refschema_Ref_Reference already exist in the list, an error is returned.
func (*Refschema_Ref) GetOrCreateReference ¶
func (t *Refschema_Ref) GetOrCreateReference(Name string) *Refschema_Ref_Reference
GetOrCreateReference retrieves the value with the specified keys from the receiver Refschema_Ref. If the entry does not exist, then it is created. It returns the existing or new list member.
func (*Refschema_Ref) GetReference ¶
func (t *Refschema_Ref) GetReference(Name string) *Refschema_Ref_Reference
GetReference retrieves the value with the specified key from the Reference map field of Refschema_Ref. If the receiver is nil, or the specified key is not present in the list, nil is returned such that Get* methods may be safely chained.
func (*Refschema_Ref) IsYANGGoStruct ¶
func (*Refschema_Ref) IsYANGGoStruct()
IsYANGGoStruct ensures that Refschema_Ref implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.
func (*Refschema_Ref) NewReference ¶
func (t *Refschema_Ref) NewReference(Name string) (*Refschema_Ref_Reference, error)
NewReference creates a new entry in the Reference list of the Refschema_Ref struct. The keys of the list are populated from the input arguments.
func (*Refschema_Ref) PopulateDefaults ¶ added in v0.29.0
func (t *Refschema_Ref) PopulateDefaults()
PopulateDefaults recursively populates unset leaf fields in the Refschema_Ref with default values as specified in the YANG schema, instantiating any nil container fields.
func (*Refschema_Ref) RenameReference ¶
func (t *Refschema_Ref) RenameReference(oldK, newK string) error
RenameReference renames an entry in the list Reference within the Refschema_Ref struct. The entry with key oldK is renamed to newK updating the key within the value.
func (*Refschema_Ref) Validate ¶
func (t *Refschema_Ref) Validate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
func (*Refschema_Ref) ΛBelongingModule ¶
func (*Refschema_Ref) ΛBelongingModule() string
ΛBelongingModule returns the name of the module that defines the namespace of Refschema_Ref.
func (*Refschema_Ref) ΛEnumTypeMap ¶
func (t *Refschema_Ref) ΛEnumTypeMap() map[string][]reflect.Type
ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.
func (*Refschema_Ref) ΛValidate ¶
func (t *Refschema_Ref) ΛValidate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
type Refschema_Ref_Reference ¶
type Refschema_Ref_Reference struct { ΛMetadata []ygot.Annotation `path:"@" ygotAnnotation:"true"` Name *string `path:"name" module:"refschema"` ΛName []ygot.Annotation `path:"@name" ygotAnnotation:"true"` }
Refschema_Ref_Reference represents the /refschema/ref/reference YANG schema element.
func (*Refschema_Ref_Reference) GetName ¶
func (t *Refschema_Ref_Reference) GetName() string
GetName retrieves the value of the leaf Name from the Refschema_Ref_Reference struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if Name is set, it can safely use t.GetName() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.Name == nil' before retrieving the leaf's value.
func (*Refschema_Ref_Reference) IsYANGGoStruct ¶
func (*Refschema_Ref_Reference) IsYANGGoStruct()
IsYANGGoStruct ensures that Refschema_Ref_Reference implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.
func (*Refschema_Ref_Reference) PopulateDefaults ¶ added in v0.29.0
func (t *Refschema_Ref_Reference) PopulateDefaults()
PopulateDefaults recursively populates unset leaf fields in the Refschema_Ref_Reference with default values as specified in the YANG schema, instantiating any nil container fields.
func (*Refschema_Ref_Reference) Validate ¶
func (t *Refschema_Ref_Reference) Validate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
func (*Refschema_Ref_Reference) ΛBelongingModule ¶
func (*Refschema_Ref_Reference) ΛBelongingModule() string
ΛBelongingModule returns the name of the module that defines the namespace of Refschema_Ref_Reference.
func (*Refschema_Ref_Reference) ΛEnumTypeMap ¶
func (t *Refschema_Ref_Reference) ΛEnumTypeMap() map[string][]reflect.Type
ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.
func (*Refschema_Ref_Reference) ΛListKeyMap ¶
func (t *Refschema_Ref_Reference) ΛListKeyMap() (map[string]interface{}, error)
ΛListKeyMap returns the keys of the Refschema_Ref_Reference struct, which is a YANG list entry.
func (*Refschema_Ref_Reference) ΛValidate ¶
func (t *Refschema_Ref_Reference) ΛValidate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
type UnionBool ¶
type UnionBool bool
UnionBool is a bool type assignable to unions of which it is a subtype.
type UnionFloat64 ¶
type UnionFloat64 float64
UnionFloat64 is a float64 type assignable to unions of which it is a subtype.
type UnionInt16 ¶
type UnionInt16 int16
UnionInt16 is an int16 type assignable to unions of which it is a subtype.
type UnionInt32 ¶
type UnionInt32 int32
UnionInt32 is an int32 type assignable to unions of which it is a subtype.
type UnionInt64 ¶
type UnionInt64 int64
UnionInt64 is an int64 type assignable to unions of which it is a subtype.
type UnionInt8 ¶
type UnionInt8 int8
UnionInt8 is an int8 type assignable to unions of which it is a subtype.
type UnionString ¶
type UnionString string
UnionString is a string type assignable to unions of which it is a subtype.
type UnionUint16 ¶
type UnionUint16 uint16
UnionUint16 is a uint16 type assignable to unions of which it is a subtype.
type UnionUint32 ¶
type UnionUint32 uint32
UnionUint32 is a uint32 type assignable to unions of which it is a subtype.
type UnionUint64 ¶
type UnionUint64 uint64
UnionUint64 is a uint64 type assignable to unions of which it is a subtype.
type UnionUint8 ¶
type UnionUint8 uint8
UnionUint8 is a uint8 type assignable to unions of which it is a subtype.
type UnionUnsupported ¶
type UnionUnsupported struct {
Value interface{}
}
UnionUnsupported is an interface{} wrapper type for unsupported types. It is assignable to unions of which it is a subtype.
type Utestschema_Target ¶
type Utestschema_Target struct { ΛMetadata []ygot.Annotation `path:"@" ygotAnnotation:"true"` Entity map[string]*Utestschema_Target_Entity `path:"entity" module:"utestschema"` ΛEntity []ygot.Annotation `path:"@entity" ygotAnnotation:"true"` }
Utestschema_Target represents the /utestschema/target YANG schema element.
func (*Utestschema_Target) AppendEntity ¶
func (t *Utestschema_Target) AppendEntity(v *Utestschema_Target_Entity) error
AppendEntity appends the supplied Utestschema_Target_Entity struct to the list Entity of Utestschema_Target. If the key value(s) specified in the supplied Utestschema_Target_Entity already exist in the list, an error is returned.
func (*Utestschema_Target) GetEntity ¶
func (t *Utestschema_Target) GetEntity(Name string) *Utestschema_Target_Entity
GetEntity retrieves the value with the specified key from the Entity map field of Utestschema_Target. If the receiver is nil, or the specified key is not present in the list, nil is returned such that Get* methods may be safely chained.
func (*Utestschema_Target) GetOrCreateEntity ¶
func (t *Utestschema_Target) GetOrCreateEntity(Name string) *Utestschema_Target_Entity
GetOrCreateEntity retrieves the value with the specified keys from the receiver Utestschema_Target. If the entry does not exist, then it is created. It returns the existing or new list member.
func (*Utestschema_Target) IsYANGGoStruct ¶
func (*Utestschema_Target) IsYANGGoStruct()
IsYANGGoStruct ensures that Utestschema_Target implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.
func (*Utestschema_Target) NewEntity ¶
func (t *Utestschema_Target) NewEntity(Name string) (*Utestschema_Target_Entity, error)
NewEntity creates a new entry in the Entity list of the Utestschema_Target struct. The keys of the list are populated from the input arguments.
func (*Utestschema_Target) PopulateDefaults ¶ added in v0.29.0
func (t *Utestschema_Target) PopulateDefaults()
PopulateDefaults recursively populates unset leaf fields in the Utestschema_Target with default values as specified in the YANG schema, instantiating any nil container fields.
func (*Utestschema_Target) RenameEntity ¶
func (t *Utestschema_Target) RenameEntity(oldK, newK string) error
RenameEntity renames an entry in the list Entity within the Utestschema_Target struct. The entry with key oldK is renamed to newK updating the key within the value.
func (*Utestschema_Target) Validate ¶
func (t *Utestschema_Target) Validate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
func (*Utestschema_Target) ΛBelongingModule ¶
func (*Utestschema_Target) ΛBelongingModule() string
ΛBelongingModule returns the name of the module that defines the namespace of Utestschema_Target.
func (*Utestschema_Target) ΛEnumTypeMap ¶
func (t *Utestschema_Target) ΛEnumTypeMap() map[string][]reflect.Type
ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.
func (*Utestschema_Target) ΛValidate ¶
func (t *Utestschema_Target) ΛValidate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
type Utestschema_Target_Entity ¶
type Utestschema_Target_Entity struct { ΛMetadata []ygot.Annotation `path:"@" ygotAnnotation:"true"` Name *string `path:"name" module:"utestschema"` ΛName []ygot.Annotation `path:"@name" ygotAnnotation:"true"` }
Utestschema_Target_Entity represents the /utestschema/target/entity YANG schema element.
func (*Utestschema_Target_Entity) GetName ¶
func (t *Utestschema_Target_Entity) GetName() string
GetName retrieves the value of the leaf Name from the Utestschema_Target_Entity struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if Name is set, it can safely use t.GetName() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.Name == nil' before retrieving the leaf's value.
func (*Utestschema_Target_Entity) IsYANGGoStruct ¶
func (*Utestschema_Target_Entity) IsYANGGoStruct()
IsYANGGoStruct ensures that Utestschema_Target_Entity implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.
func (*Utestschema_Target_Entity) PopulateDefaults ¶ added in v0.29.0
func (t *Utestschema_Target_Entity) PopulateDefaults()
PopulateDefaults recursively populates unset leaf fields in the Utestschema_Target_Entity with default values as specified in the YANG schema, instantiating any nil container fields.
func (*Utestschema_Target_Entity) Validate ¶
func (t *Utestschema_Target_Entity) Validate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
func (*Utestschema_Target_Entity) ΛBelongingModule ¶
func (*Utestschema_Target_Entity) ΛBelongingModule() string
ΛBelongingModule returns the name of the module that defines the namespace of Utestschema_Target_Entity.
func (*Utestschema_Target_Entity) ΛEnumTypeMap ¶
func (t *Utestschema_Target_Entity) ΛEnumTypeMap() map[string][]reflect.Type
ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.
func (*Utestschema_Target_Entity) ΛListKeyMap ¶
func (t *Utestschema_Target_Entity) ΛListKeyMap() (map[string]interface{}, error)
ΛListKeyMap returns the keys of the Utestschema_Target_Entity struct, which is a YANG list entry.
func (*Utestschema_Target_Entity) ΛValidate ¶
func (t *Utestschema_Target_Entity) ΛValidate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.