utestschema

package
v0.29.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

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

Constants

This section is empty.

Variables

View Source
var (
	SchemaTree map[string]*yang.Entry
	ΛEnumTypes map[string][]reflect.Type
)

Functions

func Schema

func Schema() (*ytypes.Schema, error)

Schema returns the details of the generated schema.

func Unmarshal

func Unmarshal(data []byte, destStruct ygot.GoStruct, opts ...ytypes.UnmarshalOpt) error

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.

func UnzipSchema

func UnzipSchema() (map[string]*yang.Entry, error)

UnzipSchema unzips the zipped schema and returns a map of yang.Entry nodes, keyed by the name of the struct that the yang.Entry describes the schema for.

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

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

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

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

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

Validate validates s against the YANG schema corresponding to its type.

func (*CtestschemaRootmod_OrderedMultikeyedLists) ΛBelongingModule added in v0.29.0

ΛBelongingModule returns the name of the module that defines the namespace of CtestschemaRootmod_OrderedMultikeyedLists.

func (*CtestschemaRootmod_OrderedMultikeyedLists) ΛEnumTypeMap added in v0.29.0

Λ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

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

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

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

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

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

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

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

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

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

Validate validates s against the YANG schema corresponding to its type.

func (*CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList) ΛBelongingModule added in v0.29.0

Λ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

Λ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

Λ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

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

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

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

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

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

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

Validate validates s against the YANG schema corresponding to its type.

func (*CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_Config) ΛBelongingModule added in v0.29.0

Λ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

Λ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

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

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

Λ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

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

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

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

Delete deletes an element.

func (*CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap) Get added in v0.29.0

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

IsYANGOrderedList ensures that CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap implements the ygot.GoOrderedList interface.

func (*CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap) Keys added in v0.29.0

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

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

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

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

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

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

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

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

Validate validates s against the YANG schema corresponding to its type.

func (*CtestschemaRootmod_OrderedMultikeyedLists_OrderedMultikeyedList_State) ΛBelongingModule added in v0.29.0

Λ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

Λ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

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

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

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

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

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

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

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

GetOrCreateOrderedLists retrieves the value of the OrderedLists field or returns the existing field if it already exists.

func (*Ctestschema_OrderedLists_OrderedList) GetOrCreateState

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

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

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

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

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

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

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

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

Validate validates s against the YANG schema corresponding to its type.

func (*Ctestschema_OrderedLists_OrderedList_Config) ΛBelongingModule

ΛBelongingModule returns the name of the module that defines the namespace of Ctestschema_OrderedLists_OrderedList_Config.

func (*Ctestschema_OrderedLists_OrderedList_Config) ΛEnumTypeMap

Λ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

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

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

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

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

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

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

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

Validate validates s against the YANG schema corresponding to its type.

func (*Ctestschema_OrderedLists_OrderedList_OrderedLists) ΛBelongingModule added in v0.29.0

Λ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

Λ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

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

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

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

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

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

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

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

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

Validate validates s against the YANG schema corresponding to its type.

func (*Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList) ΛBelongingModule added in v0.29.0

Λ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

Λ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

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

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

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

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

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

Validate validates s against the YANG schema corresponding to its type.

func (*Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_Config) ΛBelongingModule added in v0.29.0

Λ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

Λ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

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

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

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

Delete deletes an element.

func (*Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_OrderedMap) Get added in v0.29.0

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

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

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

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

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

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

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

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

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

Validate validates s against the YANG schema corresponding to its type.

func (*Ctestschema_OrderedLists_OrderedList_OrderedLists_OrderedList_State) ΛBelongingModule added in v0.29.0

Λ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

Λ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

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

GetOrderedMap returns a populated ordered map with dummy values.

- foo: foo-val - bar: bar-val

func GetOrderedMap2 added in v0.29.0

GetOrderedMap2 returns a populated ordered map with different dummy values.

- wee: wee-val - woo: woo-val

func (*Ctestschema_OrderedLists_OrderedList_OrderedMap) Append

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

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

Delete deletes an element.

func (*Ctestschema_OrderedLists_OrderedList_OrderedMap) Get

Get returns the value corresponding to the key. If the key is not found, nil is returned.

func (*Ctestschema_OrderedLists_OrderedList_OrderedMap) IsYANGOrderedList

IsYANGOrderedList ensures that Ctestschema_OrderedLists_OrderedList_OrderedMap implements the ygot.GoOrderedList interface.

func (*Ctestschema_OrderedLists_OrderedList_OrderedMap) Keys

Keys returns a copy of the list's keys.

func (*Ctestschema_OrderedLists_OrderedList_OrderedMap) Len

Len returns a size of Ctestschema_OrderedLists_OrderedList_OrderedMap

func (*Ctestschema_OrderedLists_OrderedList_OrderedMap) Values

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

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

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

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

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

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

Validate validates s against the YANG schema corresponding to its type.

func (*Ctestschema_OrderedLists_OrderedList_State) ΛBelongingModule

ΛBelongingModule returns the name of the module that defines the namespace of Ctestschema_OrderedLists_OrderedList_State.

func (*Ctestschema_OrderedLists_OrderedList_State) ΛEnumTypeMap

Λ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

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

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

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

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

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

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

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

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

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

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

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

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

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

GetOrCreateConfig retrieves the value of the Config field or returns the existing field if it already exists.

func (*Ctestschema_UnorderedLists_UnorderedList) GetOrCreateState

GetOrCreateState retrieves the value of the State field or returns the existing field if it already exists.

func (*Ctestschema_UnorderedLists_UnorderedList) GetState

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

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

Λ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

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

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

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

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

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

Validate validates s against the YANG schema corresponding to its type.

func (*Ctestschema_UnorderedLists_UnorderedList_Config) ΛBelongingModule

ΛBelongingModule returns the name of the module that defines the namespace of Ctestschema_UnorderedLists_UnorderedList_Config.

func (*Ctestschema_UnorderedLists_UnorderedList_Config) ΛEnumTypeMap

Λ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

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

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

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

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

Validate validates s against the YANG schema corresponding to its type.

func (*Ctestschema_UnorderedLists_UnorderedList_State) ΛBelongingModule

ΛBelongingModule returns the name of the module that defines the namespace of Ctestschema_UnorderedLists_UnorderedList_State.

func (*Ctestschema_UnorderedLists_UnorderedList_State) ΛEnumTypeMap

Λ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

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

func GetDeviceWithOrderedMap(t *testing.T) *Device

GetDeviceWithOrderedMap returns a Device object with a populated ordered map field.

func GetDeviceWithOrderedMap2 added in v0.29.0

func GetDeviceWithOrderedMap2(t *testing.T) *Device

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

func (*Device) ΛBelongingModule() string

ΛBelongingModule returns the name of the module that defines the namespace of Device.

func (*Device) ΛEnumTypeMap

func (t *Device) Λ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 (*Device) ΛValidate

func (t *Device) ΛValidate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

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

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

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

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

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.

type YANGEmpty

type YANGEmpty bool

YANGEmpty is a type that is used for fields that have a YANG type of empty. It is used such that empty fields can be distinguished from boolean fields in the generated code.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL