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
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 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) 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) GetOrCreateState() *Ctestschema_OrderedLists_OrderedList_State
- func (t *Ctestschema_OrderedLists_OrderedList) GetState() *Ctestschema_OrderedLists_OrderedList_State
- func (*Ctestschema_OrderedLists_OrderedList) IsYANGGoStruct()
- 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) 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_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) GetValue() string
- func (*Ctestschema_OrderedLists_OrderedList_State) IsYANGGoStruct()
- 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_OrderedMultikeyedLists
- func (s *Ctestschema_OrderedMultikeyedLists) AppendNewOrderedMultikeyedList(Key1 string, Key2 uint64) (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList, error)
- func (s *Ctestschema_OrderedMultikeyedLists) AppendOrderedMultikeyedList(v *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList) error
- func (s *Ctestschema_OrderedMultikeyedLists) DeleteOrderedMultikeyedList(Key1 string, Key2 uint64) bool
- func (s *Ctestschema_OrderedMultikeyedLists) GetOrderedMultikeyedList(Key1 string, Key2 uint64) *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList
- func (*Ctestschema_OrderedMultikeyedLists) IsYANGGoStruct()
- func (t *Ctestschema_OrderedMultikeyedLists) Validate(opts ...ygot.ValidationOption) error
- func (*Ctestschema_OrderedMultikeyedLists) ΛBelongingModule() string
- func (t *Ctestschema_OrderedMultikeyedLists) ΛEnumTypeMap() map[string][]reflect.Type
- func (t *Ctestschema_OrderedMultikeyedLists) ΛValidate(opts ...ygot.ValidationOption) error
- type Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList
- func (t *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList) GetConfig() *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Config
- func (t *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList) GetKey1() string
- func (t *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList) GetKey2() uint64
- func (t *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList) GetOrCreateConfig() *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Config
- func (t *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList) GetOrCreateState() *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_State
- func (t *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList) GetState() *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_State
- func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList) IsYANGGoStruct()
- func (t *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList) Validate(opts ...ygot.ValidationOption) error
- func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList) ΛBelongingModule() string
- func (t *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList) ΛEnumTypeMap() map[string][]reflect.Type
- func (t *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList) ΛListKeyMap() (map[string]interface{}, error)
- func (t *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList) ΛValidate(opts ...ygot.ValidationOption) error
- type Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Config
- func (t *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Config) GetKey1() string
- func (t *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Config) GetKey2() uint64
- func (t *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Config) GetValue() string
- func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Config) IsYANGGoStruct()
- func (t *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Config) Validate(opts ...ygot.ValidationOption) error
- func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Config) ΛBelongingModule() string
- func (t *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Config) ΛEnumTypeMap() map[string][]reflect.Type
- func (t *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Config) ΛValidate(opts ...ygot.ValidationOption) error
- type Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Key
- type Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap
- func (o *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap) Append(v *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList) error
- func (o *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap) AppendNew(Key1 string, Key2 uint64) (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList, error)
- func (o *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap) Delete(key Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Key) bool
- func (o *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap) Get(key Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Key) *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList
- func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap) IsYANGOrderedList()
- func (o *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap) Keys() []Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Key
- func (o *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap) Len() int
- func (o *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap) Values() []*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList
- type Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_State
- func (t *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_State) GetKey1() string
- func (t *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_State) GetKey2() uint64
- func (t *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_State) GetValue() string
- func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_State) IsYANGGoStruct()
- func (t *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_State) Validate(opts ...ygot.ValidationOption) error
- func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_State) ΛBelongingModule() string
- func (t *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_State) ΛEnumTypeMap() map[string][]reflect.Type
- func (t *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_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) 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) 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) 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) 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() *Ctestschema_OrderedMultikeyedLists
- 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() *Ctestschema_OrderedMultikeyedLists
- func (t *Device) GetRef() *Refschema_Ref
- func (t *Device) GetTarget() *Utestschema_Target
- func (t *Device) GetUnorderedLists() *Ctestschema_UnorderedLists
- func (*Device) IsYANGGoStruct()
- 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) 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) 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) 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) 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 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) 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"` 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) 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) 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) 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) 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_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 (*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"` 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) 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) 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_OrderedMultikeyedLists ¶
type Ctestschema_OrderedMultikeyedLists struct { ΛMetadata []ygot.Annotation `path:"@" ygotAnnotation:"true"` OrderedMultikeyedList *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap `path:"ordered-multikeyed-list" module:"ctestschema"` ΛOrderedMultikeyedList []ygot.Annotation `path:"@ordered-multikeyed-list" ygotAnnotation:"true"` }
Ctestschema_OrderedMultikeyedLists represents the /ctestschema/ordered-multikeyed-lists YANG schema element.
func (*Ctestschema_OrderedMultikeyedLists) AppendNewOrderedMultikeyedList ¶
func (s *Ctestschema_OrderedMultikeyedLists) AppendNewOrderedMultikeyedList(Key1 string, Key2 uint64) (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList, error)
AppendNewOrderedMultikeyedList creates a new entry in the OrderedMultikeyedList ordered map of the Ctestschema_OrderedMultikeyedLists struct. The keys of the list are populated from the input arguments.
func (*Ctestschema_OrderedMultikeyedLists) AppendOrderedMultikeyedList ¶
func (s *Ctestschema_OrderedMultikeyedLists) AppendOrderedMultikeyedList(v *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList) error
AppendOrderedMultikeyedList appends the supplied Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList struct to the list OrderedMultikeyedList of Ctestschema_OrderedMultikeyedLists. If the key value(s) specified in the supplied Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList already exist in the list, an error is returned.
func (*Ctestschema_OrderedMultikeyedLists) DeleteOrderedMultikeyedList ¶
func (s *Ctestschema_OrderedMultikeyedLists) DeleteOrderedMultikeyedList(Key1 string, Key2 uint64) bool
DeleteOrderedMultikeyedList deletes the value with the specified keys from the receiver Ctestschema_OrderedMultikeyedLists. If there is no such element, the function is a no-op.
func (*Ctestschema_OrderedMultikeyedLists) GetOrderedMultikeyedList ¶
func (s *Ctestschema_OrderedMultikeyedLists) GetOrderedMultikeyedList(Key1 string, Key2 uint64) *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList
GetOrderedMultikeyedList retrieves the value with the specified key from the OrderedMultikeyedList map field of Ctestschema_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 (*Ctestschema_OrderedMultikeyedLists) IsYANGGoStruct ¶
func (*Ctestschema_OrderedMultikeyedLists) IsYANGGoStruct()
IsYANGGoStruct ensures that Ctestschema_OrderedMultikeyedLists implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.
func (*Ctestschema_OrderedMultikeyedLists) Validate ¶
func (t *Ctestschema_OrderedMultikeyedLists) Validate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
func (*Ctestschema_OrderedMultikeyedLists) ΛBelongingModule ¶
func (*Ctestschema_OrderedMultikeyedLists) ΛBelongingModule() string
ΛBelongingModule returns the name of the module that defines the namespace of Ctestschema_OrderedMultikeyedLists.
func (*Ctestschema_OrderedMultikeyedLists) ΛEnumTypeMap ¶
func (t *Ctestschema_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 (*Ctestschema_OrderedMultikeyedLists) ΛValidate ¶
func (t *Ctestschema_OrderedMultikeyedLists) ΛValidate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
type Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList ¶
type Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList struct { ΛMetadata []ygot.Annotation `path:"@" ygotAnnotation:"true"` Config *Ctestschema_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 *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_State `path:"state" module:"ctestschema"` ΛState []ygot.Annotation `path:"@state" ygotAnnotation:"true"` }
Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList represents the /ctestschema/ordered-multikeyed-lists/ordered-multikeyed-list YANG schema element.
func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList) GetConfig ¶
func (t *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList) GetConfig() *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Config
GetConfig returns the value of the Config struct pointer from Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList. If the receiver or the field Config is nil, nil is returned such that the Get* methods can be safely chained.
func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList) GetKey1 ¶
func (t *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList) GetKey1() string
GetKey1 retrieves the value of the leaf Key1 from the Ctestschema_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 (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList) GetKey2 ¶
func (t *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList) GetKey2() uint64
GetKey2 retrieves the value of the leaf Key2 from the Ctestschema_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 (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList) GetOrCreateConfig ¶
func (t *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList) GetOrCreateConfig() *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Config
GetOrCreateConfig retrieves the value of the Config field or returns the existing field if it already exists.
func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList) GetOrCreateState ¶
func (t *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList) GetOrCreateState() *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_State
GetOrCreateState retrieves the value of the State field or returns the existing field if it already exists.
func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList) GetState ¶
func (t *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList) GetState() *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_State
GetState returns the value of the State struct pointer from Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList. If the receiver or the field State is nil, nil is returned such that the Get* methods can be safely chained.
func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList) IsYANGGoStruct ¶
func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList) IsYANGGoStruct()
IsYANGGoStruct ensures that Ctestschema_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 (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList) Validate ¶
func (t *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList) Validate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList) ΛBelongingModule ¶
func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList) ΛBelongingModule() string
ΛBelongingModule returns the name of the module that defines the namespace of Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList.
func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList) ΛEnumTypeMap ¶
func (t *Ctestschema_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 (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList) ΛListKeyMap ¶
func (t *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList) ΛListKeyMap() (map[string]interface{}, error)
ΛListKeyMap returns the keys of the Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList struct, which is a YANG list entry.
func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList) ΛValidate ¶
func (t *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList) ΛValidate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
type Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Config ¶
type Ctestschema_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"` }
Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Config represents the /ctestschema/ordered-multikeyed-lists/ordered-multikeyed-list/config YANG schema element.
func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Config) GetKey1 ¶
func (t *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Config) GetKey1() string
GetKey1 retrieves the value of the leaf Key1 from the Ctestschema_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 (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Config) GetKey2 ¶
func (t *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Config) GetKey2() uint64
GetKey2 retrieves the value of the leaf Key2 from the Ctestschema_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 (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Config) GetValue ¶
func (t *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Config) GetValue() string
GetValue retrieves the value of the leaf Value from the Ctestschema_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 (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Config) IsYANGGoStruct ¶
func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Config) IsYANGGoStruct()
IsYANGGoStruct ensures that Ctestschema_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 (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Config) Validate ¶
func (t *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Config) Validate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Config) ΛBelongingModule ¶
func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Config) ΛBelongingModule() string
ΛBelongingModule returns the name of the module that defines the namespace of Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Config.
func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Config) ΛEnumTypeMap ¶
func (t *Ctestschema_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 (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Config) ΛValidate ¶
func (t *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Config) ΛValidate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
type Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Key ¶
type Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Key struct { Key1 string `path:"key1"` Key2 uint64 `path:"key2"` }
Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Key represents the key for list OrderedMultikeyedList of element /ctestschema/ordered-multikeyed-lists.
func (Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Key) IsYANGGoKeyStruct ¶
func (Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Key) IsYANGGoKeyStruct()
IsYANGGoKeyStruct ensures that Ctestschema_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 (Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Key) ΛListKeyMap ¶
func (t Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Key) ΛListKeyMap() (map[string]interface{}, error)
ΛListKeyMap returns the values of the Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Key key struct.
type Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap ¶
type Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap struct {
// contains filtered or unexported fields
}
Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap is an ordered map that represents the "ordered-by user" list elements at /ctestschema/ordered-multikeyed-lists/ordered-multikeyed-list.
func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap) Append ¶
func (o *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap) Append(v *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList) error
Append appends a Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList, returning an error if the key already exists in the ordered list or if the key is unspecified.
func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap) AppendNew ¶
func (o *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap) AppendNew(Key1 string, Key2 uint64) (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList, error)
AppendNew creates and appends a new Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList, returning the newly-initialized v. It returns an error if the v already exists.
func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap) Delete ¶
func (o *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap) Delete(key Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Key) bool
Delete deletes an element.
func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap) Get ¶
func (o *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap) Get(key Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Key) *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList
Get returns the value corresponding to the key. If the key is not found, nil is returned.
func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap) IsYANGOrderedList ¶
func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap) IsYANGOrderedList()
IsYANGOrderedList ensures that Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap implements the ygot.GoOrderedList interface.
func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap) Keys ¶
func (o *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap) Keys() []Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Key
Keys returns a copy of the list's keys.
func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap) Len ¶
Len returns a size of Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap
func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap) Values ¶
func (o *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap) Values() []*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList
Values returns the current set of the list's values in order.
type Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_State ¶
type Ctestschema_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"` Value *string `path:"value" module:"ctestschema"` ΛValue []ygot.Annotation `path:"@value" ygotAnnotation:"true"` }
Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_State represents the /ctestschema/ordered-multikeyed-lists/ordered-multikeyed-list/state YANG schema element.
func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_State) GetKey1 ¶
func (t *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_State) GetKey1() string
GetKey1 retrieves the value of the leaf Key1 from the Ctestschema_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 (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_State) GetKey2 ¶
func (t *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_State) GetKey2() uint64
GetKey2 retrieves the value of the leaf Key2 from the Ctestschema_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 (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_State) GetValue ¶
func (t *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_State) GetValue() string
GetValue retrieves the value of the leaf Value from the Ctestschema_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 (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_State) IsYANGGoStruct ¶
func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_State) IsYANGGoStruct()
IsYANGGoStruct ensures that Ctestschema_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 (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_State) Validate ¶
func (t *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_State) Validate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_State) ΛBelongingModule ¶
func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_State) ΛBelongingModule() string
ΛBelongingModule returns the name of the module that defines the namespace of Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_State.
func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_State) ΛEnumTypeMap ¶
func (t *Ctestschema_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 (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_State) ΛValidate ¶
func (t *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_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) 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) 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) 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) 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 *Ctestschema_OrderedMultikeyedLists `path:"ordered-multikeyed-lists" module:"ctestschema"` ΛOrderedMultikeyedLists []ygot.Annotation `path:"@ordered-multikeyed-lists" 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 (*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() *Ctestschema_OrderedMultikeyedLists
GetOrCreateOrderedMultikeyedLists retrieves the value of the OrderedMultikeyedLists 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() *Ctestschema_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) 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) 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) 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) 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) 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) 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.