utestschema

package
v0.28.3 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: Apache-2.0 Imports: 6 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

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 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) Validate

func (t *Ctestschema_OrderedLists) Validate(opts ...ygot.ValidationOption) error

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

func (*Ctestschema_OrderedLists) ΛBelongingModule

func (*Ctestschema_OrderedLists) ΛBelongingModule() string

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

func (*Ctestschema_OrderedLists) ΛEnumTypeMap

func (t *Ctestschema_OrderedLists) ΛEnumTypeMap() map[string][]reflect.Type

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*Ctestschema_OrderedLists) ΛValidate

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

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

type Ctestschema_OrderedLists_OrderedList

type Ctestschema_OrderedLists_OrderedList struct {
	ΛMetadata []ygot.Annotation                            `path:"@" ygotAnnotation:"true"`
	Config    *Ctestschema_OrderedLists_OrderedList_Config `path:"config" module:"ctestschema"`
	ΛConfig   []ygot.Annotation                            `path:"@config" ygotAnnotation:"true"`
	Key       *string                                      `path:"key" module:"ctestschema"`
	ΛKey      []ygot.Annotation                            `path:"@key" ygotAnnotation:"true"`
	State     *Ctestschema_OrderedLists_OrderedList_State  `path:"state" module:"ctestschema"`
	ΛState    []ygot.Annotation                            `path:"@state" ygotAnnotation:"true"`
}

Ctestschema_OrderedLists_OrderedList represents the /ctestschema/ordered-lists/ordered-list YANG schema element.

func (*Ctestschema_OrderedLists_OrderedList) GetConfig

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) GetOrCreateState

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

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) 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) 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_OrderedMap

type Ctestschema_OrderedLists_OrderedList_OrderedMap struct {
	// contains filtered or unexported fields
}

Ctestschema_OrderedLists_OrderedList_OrderedMap is an ordered map that represents the "ordered-by user" list elements at /ctestschema/ordered-lists/ordered-list.

func (*Ctestschema_OrderedLists_OrderedList_OrderedMap) Append

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"`
	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) 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) 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_OrderedMultikeyedLists

type Ctestschema_OrderedMultikeyedLists struct {
	ΛMetadata              []ygot.Annotation                                                    `path:"@" ygotAnnotation:"true"`
	OrderedMultikeyedList  *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap `path:"ordered-multikeyed-list" module:"ctestschema"`
	ΛOrderedMultikeyedList []ygot.Annotation                                                    `path:"@ordered-multikeyed-list" ygotAnnotation:"true"`
}

Ctestschema_OrderedMultikeyedLists represents the /ctestschema/ordered-multikeyed-lists YANG schema element.

func (*Ctestschema_OrderedMultikeyedLists) AppendNewOrderedMultikeyedList

AppendNewOrderedMultikeyedList creates a new entry in the OrderedMultikeyedList ordered map of the Ctestschema_OrderedMultikeyedLists struct. The keys of the list are populated from the input arguments.

func (*Ctestschema_OrderedMultikeyedLists) AppendOrderedMultikeyedList

AppendOrderedMultikeyedList appends the supplied Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList struct to the list OrderedMultikeyedList of Ctestschema_OrderedMultikeyedLists. If the key value(s) specified in the supplied Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList already exist in the list, an error is returned.

func (*Ctestschema_OrderedMultikeyedLists) DeleteOrderedMultikeyedList

func (s *Ctestschema_OrderedMultikeyedLists) DeleteOrderedMultikeyedList(Key1 string, Key2 uint64) bool

DeleteOrderedMultikeyedList deletes the value with the specified keys from the receiver Ctestschema_OrderedMultikeyedLists. If there is no such element, the function is a no-op.

func (*Ctestschema_OrderedMultikeyedLists) GetOrderedMultikeyedList

GetOrderedMultikeyedList retrieves the value with the specified key from the OrderedMultikeyedList map field of Ctestschema_OrderedMultikeyedLists. If the receiver is nil, or the specified key is not present in the list, nil is returned such that Get* methods may be safely chained.

func (*Ctestschema_OrderedMultikeyedLists) IsYANGGoStruct

func (*Ctestschema_OrderedMultikeyedLists) IsYANGGoStruct()

IsYANGGoStruct ensures that Ctestschema_OrderedMultikeyedLists implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*Ctestschema_OrderedMultikeyedLists) Validate

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

func (*Ctestschema_OrderedMultikeyedLists) ΛBelongingModule

func (*Ctestschema_OrderedMultikeyedLists) ΛBelongingModule() string

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

func (*Ctestschema_OrderedMultikeyedLists) ΛEnumTypeMap

func (t *Ctestschema_OrderedMultikeyedLists) ΛEnumTypeMap() map[string][]reflect.Type

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*Ctestschema_OrderedMultikeyedLists) ΛValidate

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

type Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList

type Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList struct {
	ΛMetadata []ygot.Annotation                                                `path:"@" ygotAnnotation:"true"`
	Config    *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Config `path:"config" module:"ctestschema"`
	ΛConfig   []ygot.Annotation                                                `path:"@config" ygotAnnotation:"true"`
	Key1      *string                                                          `path:"key1" module:"ctestschema"`
	ΛKey1     []ygot.Annotation                                                `path:"@key1" ygotAnnotation:"true"`
	Key2      *uint64                                                          `path:"key2" module:"ctestschema"`
	ΛKey2     []ygot.Annotation                                                `path:"@key2" ygotAnnotation:"true"`
	State     *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_State  `path:"state" module:"ctestschema"`
	ΛState    []ygot.Annotation                                                `path:"@state" ygotAnnotation:"true"`
}

Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList represents the /ctestschema/ordered-multikeyed-lists/ordered-multikeyed-list YANG schema element.

func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList) GetConfig

GetConfig returns the value of the Config struct pointer from Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList. If the receiver or the field Config is nil, nil is returned such that the Get* methods can be safely chained.

func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList) GetKey1

GetKey1 retrieves the value of the leaf Key1 from the Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if Key1 is set, it can safely use t.GetKey1() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.Key1 == nil' before retrieving the leaf's value.

func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList) GetKey2

GetKey2 retrieves the value of the leaf Key2 from the Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if Key2 is set, it can safely use t.GetKey2() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.Key2 == nil' before retrieving the leaf's value.

func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList) GetOrCreateConfig

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

func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList) GetOrCreateState

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

func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList) GetState

GetState returns the value of the State struct pointer from Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList. If the receiver or the field State is nil, nil is returned such that the Get* methods can be safely chained.

func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList) IsYANGGoStruct

IsYANGGoStruct ensures that Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList) Validate

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

func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList) ΛBelongingModule

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

func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList) ΛEnumTypeMap

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList) ΛListKeyMap

func (t *Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList) ΛListKeyMap() (map[string]interface{}, error)

ΛListKeyMap returns the keys of the Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList struct, which is a YANG list entry.

func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList) ΛValidate

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

type Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Config

type Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Config struct {
	ΛMetadata []ygot.Annotation `path:"@" ygotAnnotation:"true"`
	Key1      *string           `path:"key1" module:"ctestschema"`
	ΛKey1     []ygot.Annotation `path:"@key1" ygotAnnotation:"true"`
	Key2      *uint64           `path:"key2" module:"ctestschema"`
	ΛKey2     []ygot.Annotation `path:"@key2" ygotAnnotation:"true"`
	Value     *string           `path:"value" module:"ctestschema"`
	ΛValue    []ygot.Annotation `path:"@value" ygotAnnotation:"true"`
}

Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Config represents the /ctestschema/ordered-multikeyed-lists/ordered-multikeyed-list/config YANG schema element.

func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Config) GetKey1

GetKey1 retrieves the value of the leaf Key1 from the Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Config struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if Key1 is set, it can safely use t.GetKey1() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.Key1 == nil' before retrieving the leaf's value.

func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Config) GetKey2

GetKey2 retrieves the value of the leaf Key2 from the Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Config struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if Key2 is set, it can safely use t.GetKey2() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.Key2 == nil' before retrieving the leaf's value.

func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Config) GetValue

GetValue retrieves the value of the leaf Value from the Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Config struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if Value is set, it can safely use t.GetValue() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.Value == nil' before retrieving the leaf's value.

func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Config) IsYANGGoStruct

IsYANGGoStruct ensures that Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Config implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Config) Validate

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

func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Config) ΛBelongingModule

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

func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Config) ΛEnumTypeMap

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Config) ΛValidate

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

type Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Key

type Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Key struct {
	Key1 string `path:"key1"`
	Key2 uint64 `path:"key2"`
}

Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Key represents the key for list OrderedMultikeyedList of element /ctestschema/ordered-multikeyed-lists.

func (Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Key) IsYANGGoKeyStruct

IsYANGGoKeyStruct ensures that Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Key partially implements the yang.GoKeyStruct interface. This allows functions that need to handle this key struct to identify it as being generated by gogen.

func (Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Key) ΛListKeyMap

ΛListKeyMap returns the values of the Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_Key key struct.

type Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap

type Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap struct {
	// contains filtered or unexported fields
}

Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap is an ordered map that represents the "ordered-by user" list elements at /ctestschema/ordered-multikeyed-lists/ordered-multikeyed-list.

func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap) Append

Append appends a Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList, returning an error if the key already exists in the ordered list or if the key is unspecified.

func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap) AppendNew

AppendNew creates and appends a new Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList, returning the newly-initialized v. It returns an error if the v already exists.

func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap) Delete

Delete deletes an element.

func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap) Get

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

func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap) IsYANGOrderedList

IsYANGOrderedList ensures that Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap implements the ygot.GoOrderedList interface.

func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap) Keys

Keys returns a copy of the list's keys.

func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap) Len

Len returns a size of Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap

func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_OrderedMap) Values

Values returns the current set of the list's values in order.

type Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_State

type Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_State struct {
	ΛMetadata []ygot.Annotation `path:"@" ygotAnnotation:"true"`
	Key1      *string           `path:"key1" module:"ctestschema"`
	ΛKey1     []ygot.Annotation `path:"@key1" ygotAnnotation:"true"`
	Key2      *uint64           `path:"key2" module:"ctestschema"`
	ΛKey2     []ygot.Annotation `path:"@key2" ygotAnnotation:"true"`
	Value     *string           `path:"value" module:"ctestschema"`
	ΛValue    []ygot.Annotation `path:"@value" ygotAnnotation:"true"`
}

Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_State represents the /ctestschema/ordered-multikeyed-lists/ordered-multikeyed-list/state YANG schema element.

func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_State) GetKey1

GetKey1 retrieves the value of the leaf Key1 from the Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_State struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if Key1 is set, it can safely use t.GetKey1() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.Key1 == nil' before retrieving the leaf's value.

func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_State) GetKey2

GetKey2 retrieves the value of the leaf Key2 from the Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_State struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if Key2 is set, it can safely use t.GetKey2() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.Key2 == nil' before retrieving the leaf's value.

func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_State) GetValue

GetValue retrieves the value of the leaf Value from the Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_State struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if Value is set, it can safely use t.GetValue() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.Value == nil' before retrieving the leaf's value.

func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_State) IsYANGGoStruct

IsYANGGoStruct ensures that Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_State implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_State) Validate

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

func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_State) ΛBelongingModule

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

func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_State) ΛEnumTypeMap

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*Ctestschema_OrderedMultikeyedLists_OrderedMultikeyedList_State) ΛValidate

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) 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) 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) 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) 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  *Ctestschema_OrderedMultikeyedLists `path:"ordered-multikeyed-lists" module:"ctestschema"`
	ΛOrderedMultikeyedLists []ygot.Annotation                   `path:"@ordered-multikeyed-lists" ygotAnnotation:"true"`
	Ref                     *Refschema_Ref                      `path:"ref" module:"refschema"`
	ΛRef                    []ygot.Annotation                   `path:"@ref" ygotAnnotation:"true"`
	Target                  *Utestschema_Target                 `path:"target" module:"utestschema"`
	ΛTarget                 []ygot.Annotation                   `path:"@target" ygotAnnotation:"true"`
	UnorderedLists          *Ctestschema_UnorderedLists         `path:"unordered-lists" module:"ctestschema"`
	ΛUnorderedLists         []ygot.Annotation                   `path:"@unordered-lists" ygotAnnotation:"true"`
}

Device represents the /device YANG schema element.

func (*Device) GetOrCreateOrderedLists

func (t *Device) GetOrCreateOrderedLists() *Ctestschema_OrderedLists

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

func (*Device) GetOrCreateOrderedMultikeyedLists

func (t *Device) GetOrCreateOrderedMultikeyedLists() *Ctestschema_OrderedMultikeyedLists

GetOrCreateOrderedMultikeyedLists retrieves the value of the OrderedMultikeyedLists field or returns the existing field if it already exists.

func (*Device) GetOrCreateRef

func (t *Device) GetOrCreateRef() *Refschema_Ref

GetOrCreateRef retrieves the value of the Ref field or returns the existing field if it already exists.

func (*Device) GetOrCreateTarget

func (t *Device) GetOrCreateTarget() *Utestschema_Target

GetOrCreateTarget retrieves the value of the Target field or returns the existing field if it already exists.

func (*Device) GetOrCreateUnorderedLists

func (t *Device) GetOrCreateUnorderedLists() *Ctestschema_UnorderedLists

GetOrCreateUnorderedLists retrieves the value of the UnorderedLists field or returns the existing field if it already exists.

func (*Device) GetOrderedLists

func (t *Device) GetOrderedLists() *Ctestschema_OrderedLists

GetOrderedLists returns the value of the OrderedLists struct pointer from Device. If the receiver or the field OrderedLists is nil, nil is returned such that the Get* methods can be safely chained.

func (*Device) GetOrderedMultikeyedLists

func (t *Device) GetOrderedMultikeyedLists() *Ctestschema_OrderedMultikeyedLists

GetOrderedMultikeyedLists returns the value of the OrderedMultikeyedLists struct pointer from Device. If the receiver or the field OrderedMultikeyedLists is nil, nil is returned such that the Get* methods can be safely chained.

func (*Device) GetRef

func (t *Device) GetRef() *Refschema_Ref

GetRef returns the value of the Ref struct pointer from Device. If the receiver or the field Ref is nil, nil is returned such that the Get* methods can be safely chained.

func (*Device) GetTarget

func (t *Device) GetTarget() *Utestschema_Target

GetTarget returns the value of the Target struct pointer from Device. If the receiver or the field Target is nil, nil is returned such that the Get* methods can be safely chained.

func (*Device) GetUnorderedLists

func (t *Device) GetUnorderedLists() *Ctestschema_UnorderedLists

GetUnorderedLists returns the value of the UnorderedLists struct pointer from Device. If the receiver or the field UnorderedLists is nil, nil is returned such that the Get* methods can be safely chained.

func (*Device) IsYANGGoStruct

func (*Device) IsYANGGoStruct()

IsYANGGoStruct ensures that Device implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*Device) Validate

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

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

func (*Device) ΛBelongingModule

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) RenameReference

func (t *Refschema_Ref) RenameReference(oldK, newK string) error

RenameReference renames an entry in the list Reference within the Refschema_Ref struct. The entry with key oldK is renamed to newK updating the key within the value.

func (*Refschema_Ref) Validate

func (t *Refschema_Ref) Validate(opts ...ygot.ValidationOption) error

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

func (*Refschema_Ref) ΛBelongingModule

func (*Refschema_Ref) ΛBelongingModule() string

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

func (*Refschema_Ref) ΛEnumTypeMap

func (t *Refschema_Ref) ΛEnumTypeMap() map[string][]reflect.Type

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*Refschema_Ref) ΛValidate

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

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

type Refschema_Ref_Reference

type Refschema_Ref_Reference struct {
	ΛMetadata []ygot.Annotation `path:"@" ygotAnnotation:"true"`
	Name      *string           `path:"name" module:"refschema"`
	ΛName     []ygot.Annotation `path:"@name" ygotAnnotation:"true"`
}

Refschema_Ref_Reference represents the /refschema/ref/reference YANG schema element.

func (*Refschema_Ref_Reference) GetName

func (t *Refschema_Ref_Reference) GetName() string

GetName retrieves the value of the leaf Name from the Refschema_Ref_Reference struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if Name is set, it can safely use t.GetName() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.Name == nil' before retrieving the leaf's value.

func (*Refschema_Ref_Reference) IsYANGGoStruct

func (*Refschema_Ref_Reference) IsYANGGoStruct()

IsYANGGoStruct ensures that Refschema_Ref_Reference implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*Refschema_Ref_Reference) Validate

func (t *Refschema_Ref_Reference) Validate(opts ...ygot.ValidationOption) error

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

func (*Refschema_Ref_Reference) ΛBelongingModule

func (*Refschema_Ref_Reference) ΛBelongingModule() string

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

func (*Refschema_Ref_Reference) ΛEnumTypeMap

func (t *Refschema_Ref_Reference) ΛEnumTypeMap() map[string][]reflect.Type

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*Refschema_Ref_Reference) ΛListKeyMap

func (t *Refschema_Ref_Reference) ΛListKeyMap() (map[string]interface{}, error)

ΛListKeyMap returns the keys of the Refschema_Ref_Reference struct, which is a YANG list entry.

func (*Refschema_Ref_Reference) ΛValidate

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

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

type UnionBool

type UnionBool bool

UnionBool is a bool type assignable to unions of which it is a subtype.

type UnionFloat64

type UnionFloat64 float64

UnionFloat64 is a float64 type assignable to unions of which it is a subtype.

type UnionInt16

type UnionInt16 int16

UnionInt16 is an int16 type assignable to unions of which it is a subtype.

type UnionInt32

type UnionInt32 int32

UnionInt32 is an int32 type assignable to unions of which it is a subtype.

type UnionInt64

type UnionInt64 int64

UnionInt64 is an int64 type assignable to unions of which it is a subtype.

type UnionInt8

type UnionInt8 int8

UnionInt8 is an int8 type assignable to unions of which it is a subtype.

type UnionString

type UnionString string

UnionString is a string type assignable to unions of which it is a subtype.

type UnionUint16

type UnionUint16 uint16

UnionUint16 is a uint16 type assignable to unions of which it is a subtype.

type UnionUint32

type UnionUint32 uint32

UnionUint32 is a uint32 type assignable to unions of which it is a subtype.

type UnionUint64

type UnionUint64 uint64

UnionUint64 is a uint64 type assignable to unions of which it is a subtype.

type UnionUint8

type UnionUint8 uint8

UnionUint8 is a uint8 type assignable to unions of which it is a subtype.

type UnionUnsupported

type UnionUnsupported struct {
	Value interface{}
}

UnionUnsupported is an interface{} wrapper type for unsupported types. It is assignable to unions of which it is a subtype.

type Utestschema_Target

type Utestschema_Target struct {
	ΛMetadata []ygot.Annotation                     `path:"@" ygotAnnotation:"true"`
	Entity    map[string]*Utestschema_Target_Entity `path:"entity" module:"utestschema"`
	ΛEntity   []ygot.Annotation                     `path:"@entity" ygotAnnotation:"true"`
}

Utestschema_Target represents the /utestschema/target YANG schema element.

func (*Utestschema_Target) AppendEntity

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) RenameEntity

func (t *Utestschema_Target) RenameEntity(oldK, newK string) error

RenameEntity renames an entry in the list Entity within the Utestschema_Target struct. The entry with key oldK is renamed to newK updating the key within the value.

func (*Utestschema_Target) Validate

func (t *Utestschema_Target) Validate(opts ...ygot.ValidationOption) error

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

func (*Utestschema_Target) ΛBelongingModule

func (*Utestschema_Target) ΛBelongingModule() string

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

func (*Utestschema_Target) ΛEnumTypeMap

func (t *Utestschema_Target) ΛEnumTypeMap() map[string][]reflect.Type

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*Utestschema_Target) ΛValidate

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

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

type Utestschema_Target_Entity

type Utestschema_Target_Entity struct {
	ΛMetadata []ygot.Annotation `path:"@" ygotAnnotation:"true"`
	Name      *string           `path:"name" module:"utestschema"`
	ΛName     []ygot.Annotation `path:"@name" ygotAnnotation:"true"`
}

Utestschema_Target_Entity represents the /utestschema/target/entity YANG schema element.

func (*Utestschema_Target_Entity) GetName

func (t *Utestschema_Target_Entity) GetName() string

GetName retrieves the value of the leaf Name from the Utestschema_Target_Entity struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if Name is set, it can safely use t.GetName() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.Name == nil' before retrieving the leaf's value.

func (*Utestschema_Target_Entity) IsYANGGoStruct

func (*Utestschema_Target_Entity) IsYANGGoStruct()

IsYANGGoStruct ensures that Utestschema_Target_Entity implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*Utestschema_Target_Entity) Validate

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