uexampleoc

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package uexampleoc 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 ygnmi version: (devel): (ygot: v0.29.17) using the following YANG input files:

  • ../../pathgen/testdata/yang/openconfig-simple.yang
  • ../../pathgen/testdata/yang/openconfig-withlistval.yang
  • ../../pathgen/testdata/yang/openconfig-nested.yang

Imported modules were sourced from:

Package uexampleoc 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 ygnmi version: (devel): (ygot: v0.29.17) using the following YANG input files:

  • ../../pathgen/testdata/yang/openconfig-simple.yang
  • ../../pathgen/testdata/yang/openconfig-withlistval.yang
  • ../../pathgen/testdata/yang/openconfig-nested.yang

Imported modules were sourced from:

Package uexampleoc 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 ygnmi version: (devel): (ygot: v0.29.17) using the following YANG input files:

  • ../../pathgen/testdata/yang/openconfig-simple.yang
  • ../../pathgen/testdata/yang/openconfig-withlistval.yang
  • ../../pathgen/testdata/yang/openconfig-nested.yang

Imported modules were sourced from:

Package uexampleoc 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 ygnmi version: (devel): (ygot: v0.29.17) using the following YANG input files:

  • ../../pathgen/testdata/yang/openconfig-simple.yang
  • ../../pathgen/testdata/yang/openconfig-withlistval.yang
  • ../../pathgen/testdata/yang/openconfig-nested.yang

Imported modules were sourced from:

Package uexampleoc 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 ygnmi version: (devel): (ygot: v0.29.17) using the following YANG input files:

  • ../../pathgen/testdata/yang/openconfig-simple.yang
  • ../../pathgen/testdata/yang/openconfig-withlistval.yang
  • ../../pathgen/testdata/yang/openconfig-nested.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
)
View Source
var ΛEnum = map[string]map[int64]ygot.EnumDefinition{
	"E_Simple_Parent_Child_Config_Three": {
		1: {Name: "ONE"},
		2: {Name: "TWO"},
	},
}

ΛEnum is a map, keyed by the name of the type defined for each enum in the generated Go code, which provides a mapping between the constant int64 value of each value of the enumeration, and the string that is used to represent it in the YANG schema. The map is named ΛEnum in order to avoid clash with any valid YANG identifier.

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 Device added in v0.10.0

type Device struct {
	A               *OpenconfigNested_A               `path:"a" module:"openconfig-nested"`
	Container       *OpenconfigNested_Container       `path:"container" module:"openconfig-nested"`
	Model           *OpenconfigWithlistval_Model      `path:"model" module:"openconfig-withlistval"`
	Parent          *OpenconfigSimple_Parent          `path:"parent" module:"openconfig-simple"`
	RemoteContainer *OpenconfigSimple_RemoteContainer `path:"remote-container" module:"openconfig-simple"`
}

Device represents the /device YANG schema element.

func (*Device) GetA added in v0.10.0

func (t *Device) GetA() *OpenconfigNested_A

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

func (*Device) GetContainer added in v0.10.0

func (t *Device) GetContainer() *OpenconfigNested_Container

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

func (*Device) GetModel added in v0.10.0

func (t *Device) GetModel() *OpenconfigWithlistval_Model

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

func (*Device) GetOrCreateA added in v0.10.0

func (t *Device) GetOrCreateA() *OpenconfigNested_A

GetOrCreateA retrieves the value of the A field or returns the existing field if it already exists.

func (*Device) GetOrCreateContainer added in v0.10.0

func (t *Device) GetOrCreateContainer() *OpenconfigNested_Container

GetOrCreateContainer retrieves the value of the Container field or returns the existing field if it already exists.

func (*Device) GetOrCreateModel added in v0.10.0

func (t *Device) GetOrCreateModel() *OpenconfigWithlistval_Model

GetOrCreateModel retrieves the value of the Model field or returns the existing field if it already exists.

func (*Device) GetOrCreateParent added in v0.10.0

func (t *Device) GetOrCreateParent() *OpenconfigSimple_Parent

GetOrCreateParent retrieves the value of the Parent field or returns the existing field if it already exists.

func (*Device) GetOrCreateRemoteContainer added in v0.10.0

func (t *Device) GetOrCreateRemoteContainer() *OpenconfigSimple_RemoteContainer

GetOrCreateRemoteContainer retrieves the value of the RemoteContainer field or returns the existing field if it already exists.

func (*Device) GetParent added in v0.10.0

func (t *Device) GetParent() *OpenconfigSimple_Parent

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

func (*Device) GetRemoteContainer added in v0.10.0

func (t *Device) GetRemoteContainer() *OpenconfigSimple_RemoteContainer

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

func (*Device) IsYANGGoStruct added in v0.10.0

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.10.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 added in v0.10.0

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

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

func (*Device) ΛBelongingModule added in v0.10.0

func (*Device) ΛBelongingModule() string

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

func (*Device) ΛEnumTypeMap added in v0.10.0

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 added in v0.10.0

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

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

type E_Simple_Parent_Child_Config_Three

type E_Simple_Parent_Child_Config_Three int64

E_Simple_Parent_Child_Config_Three is a derived int64 type which is used to represent the enumerated node Simple_Parent_Child_Config_Three. An additional value named Simple_Parent_Child_Config_Three_UNSET is added to the enumeration which is used as the nil value, indicating that the enumeration was not explicitly set by the program importing the generated structures.

const (
	// Simple_Parent_Child_Config_Three_UNSET corresponds to the value UNSET of Simple_Parent_Child_Config_Three
	Simple_Parent_Child_Config_Three_UNSET E_Simple_Parent_Child_Config_Three = 0
	// Simple_Parent_Child_Config_Three_ONE corresponds to the value ONE of Simple_Parent_Child_Config_Three
	Simple_Parent_Child_Config_Three_ONE E_Simple_Parent_Child_Config_Three = 1
	// Simple_Parent_Child_Config_Three_TWO corresponds to the value TWO of Simple_Parent_Child_Config_Three
	Simple_Parent_Child_Config_Three_TWO E_Simple_Parent_Child_Config_Three = 2
)

func (E_Simple_Parent_Child_Config_Three) IsYANGGoEnum

func (E_Simple_Parent_Child_Config_Three) IsYANGGoEnum()

IsYANGGoEnum ensures that Simple_Parent_Child_Config_Three implements the yang.GoEnum interface. This ensures that Simple_Parent_Child_Config_Three can be identified as a mapped type for a YANG enumeration.

func (E_Simple_Parent_Child_Config_Three) String

String returns a logging-friendly string for E_Simple_Parent_Child_Config_Three.

func (E_Simple_Parent_Child_Config_Three) ΛMap

ΛMap returns the value lookup map associated with Simple_Parent_Child_Config_Three.

type OpenconfigNested_A

type OpenconfigNested_A struct {
	B *OpenconfigNested_A_B `path:"b" module:"openconfig-nested"`
}

OpenconfigNested_A represents the /openconfig-nested/a YANG schema element.

func (*OpenconfigNested_A) GetB

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

func (*OpenconfigNested_A) GetOrCreateB

func (t *OpenconfigNested_A) GetOrCreateB() *OpenconfigNested_A_B

GetOrCreateB retrieves the value of the B field or returns the existing field if it already exists.

func (*OpenconfigNested_A) IsYANGGoStruct

func (*OpenconfigNested_A) IsYANGGoStruct()

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

func (*OpenconfigNested_A) PopulateDefaults

func (t *OpenconfigNested_A) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the OpenconfigNested_A with default values as specified in the YANG schema, instantiating any nil container fields.

func (*OpenconfigNested_A) Validate

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

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

func (*OpenconfigNested_A) ΛBelongingModule

func (*OpenconfigNested_A) ΛBelongingModule() string

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

func (*OpenconfigNested_A) ΛEnumTypeMap

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

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

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

type OpenconfigNested_A_B

type OpenconfigNested_A_B struct {
	C *OpenconfigNested_A_B_C `path:"c" module:"openconfig-nested"`
}

OpenconfigNested_A_B represents the /openconfig-nested/a/b YANG schema element.

func (*OpenconfigNested_A_B) GetC

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

func (*OpenconfigNested_A_B) GetOrCreateC

func (t *OpenconfigNested_A_B) GetOrCreateC() *OpenconfigNested_A_B_C

GetOrCreateC retrieves the value of the C field or returns the existing field if it already exists.

func (*OpenconfigNested_A_B) IsYANGGoStruct

func (*OpenconfigNested_A_B) IsYANGGoStruct()

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

func (*OpenconfigNested_A_B) PopulateDefaults

func (t *OpenconfigNested_A_B) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the OpenconfigNested_A_B with default values as specified in the YANG schema, instantiating any nil container fields.

func (*OpenconfigNested_A_B) Validate

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

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

func (*OpenconfigNested_A_B) ΛBelongingModule

func (*OpenconfigNested_A_B) ΛBelongingModule() string

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

func (*OpenconfigNested_A_B) ΛEnumTypeMap

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

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

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

type OpenconfigNested_A_B_C

type OpenconfigNested_A_B_C struct {
	D *OpenconfigNested_A_B_C_D `path:"d" module:"openconfig-nested"`
}

OpenconfigNested_A_B_C represents the /openconfig-nested/a/b/c YANG schema element.

func (*OpenconfigNested_A_B_C) GetD

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

func (*OpenconfigNested_A_B_C) GetOrCreateD

GetOrCreateD retrieves the value of the D field or returns the existing field if it already exists.

func (*OpenconfigNested_A_B_C) IsYANGGoStruct

func (*OpenconfigNested_A_B_C) IsYANGGoStruct()

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

func (*OpenconfigNested_A_B_C) PopulateDefaults

func (t *OpenconfigNested_A_B_C) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the OpenconfigNested_A_B_C with default values as specified in the YANG schema, instantiating any nil container fields.

func (*OpenconfigNested_A_B_C) Validate

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

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

func (*OpenconfigNested_A_B_C) ΛBelongingModule

func (*OpenconfigNested_A_B_C) ΛBelongingModule() string

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

func (*OpenconfigNested_A_B_C) ΛEnumTypeMap

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

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

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

type OpenconfigNested_A_B_C_D

type OpenconfigNested_A_B_C_D struct {
	E *OpenconfigNested_A_B_C_D_E `path:"e" module:"openconfig-nested"`
}

OpenconfigNested_A_B_C_D represents the /openconfig-nested/a/b/c/d YANG schema element.

func (*OpenconfigNested_A_B_C_D) GetE

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

func (*OpenconfigNested_A_B_C_D) GetOrCreateE

GetOrCreateE retrieves the value of the E field or returns the existing field if it already exists.

func (*OpenconfigNested_A_B_C_D) IsYANGGoStruct

func (*OpenconfigNested_A_B_C_D) IsYANGGoStruct()

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

func (*OpenconfigNested_A_B_C_D) PopulateDefaults

func (t *OpenconfigNested_A_B_C_D) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the OpenconfigNested_A_B_C_D with default values as specified in the YANG schema, instantiating any nil container fields.

func (*OpenconfigNested_A_B_C_D) Validate

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

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

func (*OpenconfigNested_A_B_C_D) ΛBelongingModule

func (*OpenconfigNested_A_B_C_D) ΛBelongingModule() string

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

func (*OpenconfigNested_A_B_C_D) ΛEnumTypeMap

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

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

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

type OpenconfigNested_A_B_C_D_E

type OpenconfigNested_A_B_C_D_E struct {
	F *OpenconfigNested_A_B_C_D_E_F `path:"f" module:"openconfig-nested"`
}

OpenconfigNested_A_B_C_D_E represents the /openconfig-nested/a/b/c/d/e YANG schema element.

func (*OpenconfigNested_A_B_C_D_E) GetF

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

func (*OpenconfigNested_A_B_C_D_E) GetOrCreateF

GetOrCreateF retrieves the value of the F field or returns the existing field if it already exists.

func (*OpenconfigNested_A_B_C_D_E) IsYANGGoStruct

func (*OpenconfigNested_A_B_C_D_E) IsYANGGoStruct()

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

func (*OpenconfigNested_A_B_C_D_E) PopulateDefaults

func (t *OpenconfigNested_A_B_C_D_E) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the OpenconfigNested_A_B_C_D_E with default values as specified in the YANG schema, instantiating any nil container fields.

func (*OpenconfigNested_A_B_C_D_E) Validate

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

func (*OpenconfigNested_A_B_C_D_E) ΛBelongingModule

func (*OpenconfigNested_A_B_C_D_E) ΛBelongingModule() string

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

func (*OpenconfigNested_A_B_C_D_E) ΛEnumTypeMap

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

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

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

type OpenconfigNested_A_B_C_D_E_F

type OpenconfigNested_A_B_C_D_E_F struct {
	G *OpenconfigNested_A_B_C_D_E_F_G `path:"g" module:"openconfig-nested"`
}

OpenconfigNested_A_B_C_D_E_F represents the /openconfig-nested/a/b/c/d/e/f YANG schema element.

func (*OpenconfigNested_A_B_C_D_E_F) GetG

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

func (*OpenconfigNested_A_B_C_D_E_F) GetOrCreateG

GetOrCreateG retrieves the value of the G field or returns the existing field if it already exists.

func (*OpenconfigNested_A_B_C_D_E_F) IsYANGGoStruct

func (*OpenconfigNested_A_B_C_D_E_F) IsYANGGoStruct()

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

func (*OpenconfigNested_A_B_C_D_E_F) PopulateDefaults

func (t *OpenconfigNested_A_B_C_D_E_F) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the OpenconfigNested_A_B_C_D_E_F with default values as specified in the YANG schema, instantiating any nil container fields.

func (*OpenconfigNested_A_B_C_D_E_F) Validate

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

func (*OpenconfigNested_A_B_C_D_E_F) ΛBelongingModule

func (*OpenconfigNested_A_B_C_D_E_F) ΛBelongingModule() string

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

func (*OpenconfigNested_A_B_C_D_E_F) ΛEnumTypeMap

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

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

type OpenconfigNested_A_B_C_D_E_F_G

type OpenconfigNested_A_B_C_D_E_F_G struct {
	H *OpenconfigNested_A_B_C_D_E_F_G_H `path:"h" module:"openconfig-nested"`
}

OpenconfigNested_A_B_C_D_E_F_G represents the /openconfig-nested/a/b/c/d/e/f/g YANG schema element.

func (*OpenconfigNested_A_B_C_D_E_F_G) GetH

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

func (*OpenconfigNested_A_B_C_D_E_F_G) GetOrCreateH

GetOrCreateH retrieves the value of the H field or returns the existing field if it already exists.

func (*OpenconfigNested_A_B_C_D_E_F_G) IsYANGGoStruct

func (*OpenconfigNested_A_B_C_D_E_F_G) IsYANGGoStruct()

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

func (*OpenconfigNested_A_B_C_D_E_F_G) PopulateDefaults

func (t *OpenconfigNested_A_B_C_D_E_F_G) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the OpenconfigNested_A_B_C_D_E_F_G with default values as specified in the YANG schema, instantiating any nil container fields.

func (*OpenconfigNested_A_B_C_D_E_F_G) Validate

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

func (*OpenconfigNested_A_B_C_D_E_F_G) ΛBelongingModule

func (*OpenconfigNested_A_B_C_D_E_F_G) ΛBelongingModule() string

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

func (*OpenconfigNested_A_B_C_D_E_F_G) ΛEnumTypeMap

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

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

type OpenconfigNested_A_B_C_D_E_F_G_H

type OpenconfigNested_A_B_C_D_E_F_G_H struct {
	I *OpenconfigNested_A_B_C_D_E_F_G_H_I `path:"i" module:"openconfig-nested"`
}

OpenconfigNested_A_B_C_D_E_F_G_H represents the /openconfig-nested/a/b/c/d/e/f/g/h YANG schema element.

func (*OpenconfigNested_A_B_C_D_E_F_G_H) GetI

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

func (*OpenconfigNested_A_B_C_D_E_F_G_H) GetOrCreateI

GetOrCreateI retrieves the value of the I field or returns the existing field if it already exists.

func (*OpenconfigNested_A_B_C_D_E_F_G_H) IsYANGGoStruct

func (*OpenconfigNested_A_B_C_D_E_F_G_H) IsYANGGoStruct()

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

func (*OpenconfigNested_A_B_C_D_E_F_G_H) PopulateDefaults

func (t *OpenconfigNested_A_B_C_D_E_F_G_H) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the OpenconfigNested_A_B_C_D_E_F_G_H with default values as specified in the YANG schema, instantiating any nil container fields.

func (*OpenconfigNested_A_B_C_D_E_F_G_H) Validate

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

func (*OpenconfigNested_A_B_C_D_E_F_G_H) ΛBelongingModule

func (*OpenconfigNested_A_B_C_D_E_F_G_H) ΛBelongingModule() string

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

func (*OpenconfigNested_A_B_C_D_E_F_G_H) ΛEnumTypeMap

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

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

type OpenconfigNested_A_B_C_D_E_F_G_H_I

type OpenconfigNested_A_B_C_D_E_F_G_H_I struct {
	J *OpenconfigNested_A_B_C_D_E_F_G_H_I_J `path:"j" module:"openconfig-nested"`
}

OpenconfigNested_A_B_C_D_E_F_G_H_I represents the /openconfig-nested/a/b/c/d/e/f/g/h/i YANG schema element.

func (*OpenconfigNested_A_B_C_D_E_F_G_H_I) GetJ

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

func (*OpenconfigNested_A_B_C_D_E_F_G_H_I) GetOrCreateJ

GetOrCreateJ retrieves the value of the J field or returns the existing field if it already exists.

func (*OpenconfigNested_A_B_C_D_E_F_G_H_I) IsYANGGoStruct

func (*OpenconfigNested_A_B_C_D_E_F_G_H_I) IsYANGGoStruct()

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

func (*OpenconfigNested_A_B_C_D_E_F_G_H_I) PopulateDefaults

func (t *OpenconfigNested_A_B_C_D_E_F_G_H_I) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the OpenconfigNested_A_B_C_D_E_F_G_H_I with default values as specified in the YANG schema, instantiating any nil container fields.

func (*OpenconfigNested_A_B_C_D_E_F_G_H_I) Validate

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

func (*OpenconfigNested_A_B_C_D_E_F_G_H_I) ΛBelongingModule

func (*OpenconfigNested_A_B_C_D_E_F_G_H_I) ΛBelongingModule() string

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

func (*OpenconfigNested_A_B_C_D_E_F_G_H_I) ΛEnumTypeMap

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

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

type OpenconfigNested_A_B_C_D_E_F_G_H_I_J

type OpenconfigNested_A_B_C_D_E_F_G_H_I_J struct {
	K *OpenconfigNested_A_B_C_D_E_F_G_H_I_J_K `path:"k" module:"openconfig-nested"`
}

OpenconfigNested_A_B_C_D_E_F_G_H_I_J represents the /openconfig-nested/a/b/c/d/e/f/g/h/i/j YANG schema element.

func (*OpenconfigNested_A_B_C_D_E_F_G_H_I_J) GetK

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

func (*OpenconfigNested_A_B_C_D_E_F_G_H_I_J) GetOrCreateK

GetOrCreateK retrieves the value of the K field or returns the existing field if it already exists.

func (*OpenconfigNested_A_B_C_D_E_F_G_H_I_J) IsYANGGoStruct

func (*OpenconfigNested_A_B_C_D_E_F_G_H_I_J) IsYANGGoStruct()

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

func (*OpenconfigNested_A_B_C_D_E_F_G_H_I_J) PopulateDefaults

func (t *OpenconfigNested_A_B_C_D_E_F_G_H_I_J) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the OpenconfigNested_A_B_C_D_E_F_G_H_I_J with default values as specified in the YANG schema, instantiating any nil container fields.

func (*OpenconfigNested_A_B_C_D_E_F_G_H_I_J) Validate

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

func (*OpenconfigNested_A_B_C_D_E_F_G_H_I_J) ΛBelongingModule

func (*OpenconfigNested_A_B_C_D_E_F_G_H_I_J) ΛBelongingModule() string

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

func (*OpenconfigNested_A_B_C_D_E_F_G_H_I_J) ΛEnumTypeMap

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

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

type OpenconfigNested_A_B_C_D_E_F_G_H_I_J_K

type OpenconfigNested_A_B_C_D_E_F_G_H_I_J_K struct {
	L *OpenconfigNested_A_B_C_D_E_F_G_H_I_J_K_L `path:"l" module:"openconfig-nested"`
}

OpenconfigNested_A_B_C_D_E_F_G_H_I_J_K represents the /openconfig-nested/a/b/c/d/e/f/g/h/i/j/k YANG schema element.

func (*OpenconfigNested_A_B_C_D_E_F_G_H_I_J_K) GetL

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

func (*OpenconfigNested_A_B_C_D_E_F_G_H_I_J_K) GetOrCreateL

GetOrCreateL retrieves the value of the L field or returns the existing field if it already exists.

func (*OpenconfigNested_A_B_C_D_E_F_G_H_I_J_K) IsYANGGoStruct

func (*OpenconfigNested_A_B_C_D_E_F_G_H_I_J_K) IsYANGGoStruct()

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

func (*OpenconfigNested_A_B_C_D_E_F_G_H_I_J_K) PopulateDefaults

func (t *OpenconfigNested_A_B_C_D_E_F_G_H_I_J_K) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the OpenconfigNested_A_B_C_D_E_F_G_H_I_J_K with default values as specified in the YANG schema, instantiating any nil container fields.

func (*OpenconfigNested_A_B_C_D_E_F_G_H_I_J_K) Validate

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

func (*OpenconfigNested_A_B_C_D_E_F_G_H_I_J_K) ΛBelongingModule

func (*OpenconfigNested_A_B_C_D_E_F_G_H_I_J_K) ΛBelongingModule() string

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

func (*OpenconfigNested_A_B_C_D_E_F_G_H_I_J_K) ΛEnumTypeMap

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

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

type OpenconfigNested_A_B_C_D_E_F_G_H_I_J_K_L

type OpenconfigNested_A_B_C_D_E_F_G_H_I_J_K_L struct {
	M *OpenconfigNested_A_B_C_D_E_F_G_H_I_J_K_L_M `path:"m" module:"openconfig-nested"`
}

OpenconfigNested_A_B_C_D_E_F_G_H_I_J_K_L represents the /openconfig-nested/a/b/c/d/e/f/g/h/i/j/k/l YANG schema element.

func (*OpenconfigNested_A_B_C_D_E_F_G_H_I_J_K_L) GetM

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

func (*OpenconfigNested_A_B_C_D_E_F_G_H_I_J_K_L) GetOrCreateM

GetOrCreateM retrieves the value of the M field or returns the existing field if it already exists.

func (*OpenconfigNested_A_B_C_D_E_F_G_H_I_J_K_L) IsYANGGoStruct

func (*OpenconfigNested_A_B_C_D_E_F_G_H_I_J_K_L) IsYANGGoStruct()

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

func (*OpenconfigNested_A_B_C_D_E_F_G_H_I_J_K_L) PopulateDefaults

func (t *OpenconfigNested_A_B_C_D_E_F_G_H_I_J_K_L) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the OpenconfigNested_A_B_C_D_E_F_G_H_I_J_K_L with default values as specified in the YANG schema, instantiating any nil container fields.

func (*OpenconfigNested_A_B_C_D_E_F_G_H_I_J_K_L) Validate

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

func (*OpenconfigNested_A_B_C_D_E_F_G_H_I_J_K_L) ΛBelongingModule

func (*OpenconfigNested_A_B_C_D_E_F_G_H_I_J_K_L) ΛBelongingModule() string

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

func (*OpenconfigNested_A_B_C_D_E_F_G_H_I_J_K_L) ΛEnumTypeMap

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

func (*OpenconfigNested_A_B_C_D_E_F_G_H_I_J_K_L) ΛValidate

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

type OpenconfigNested_A_B_C_D_E_F_G_H_I_J_K_L_M

type OpenconfigNested_A_B_C_D_E_F_G_H_I_J_K_L_M struct {
	State *OpenconfigNested_A_B_C_D_E_F_G_H_I_J_K_L_M_State `path:"state" module:"openconfig-nested"`
}

OpenconfigNested_A_B_C_D_E_F_G_H_I_J_K_L_M represents the /openconfig-nested/a/b/c/d/e/f/g/h/i/j/k/l/m YANG schema element.

func (*OpenconfigNested_A_B_C_D_E_F_G_H_I_J_K_L_M) GetOrCreateState

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

func (*OpenconfigNested_A_B_C_D_E_F_G_H_I_J_K_L_M) GetState

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

func (*OpenconfigNested_A_B_C_D_E_F_G_H_I_J_K_L_M) IsYANGGoStruct

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

func (*OpenconfigNested_A_B_C_D_E_F_G_H_I_J_K_L_M) PopulateDefaults

func (t *OpenconfigNested_A_B_C_D_E_F_G_H_I_J_K_L_M) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the OpenconfigNested_A_B_C_D_E_F_G_H_I_J_K_L_M with default values as specified in the YANG schema, instantiating any nil container fields.

func (*OpenconfigNested_A_B_C_D_E_F_G_H_I_J_K_L_M) Validate

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

func (*OpenconfigNested_A_B_C_D_E_F_G_H_I_J_K_L_M) ΛBelongingModule

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

func (*OpenconfigNested_A_B_C_D_E_F_G_H_I_J_K_L_M) ΛEnumTypeMap

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

func (*OpenconfigNested_A_B_C_D_E_F_G_H_I_J_K_L_M) ΛValidate

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

type OpenconfigNested_A_B_C_D_E_F_G_H_I_J_K_L_M_State

type OpenconfigNested_A_B_C_D_E_F_G_H_I_J_K_L_M_State struct {
	Foo *string `path:"foo" module:"openconfig-nested"`
}

OpenconfigNested_A_B_C_D_E_F_G_H_I_J_K_L_M_State represents the /openconfig-nested/a/b/c/d/e/f/g/h/i/j/k/l/m/state YANG schema element.

func (*OpenconfigNested_A_B_C_D_E_F_G_H_I_J_K_L_M_State) GetFoo

GetFoo retrieves the value of the leaf Foo from the OpenconfigNested_A_B_C_D_E_F_G_H_I_J_K_L_M_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 Foo is set, it can safely use t.GetFoo() 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.Foo == nil' before retrieving the leaf's value.

func (*OpenconfigNested_A_B_C_D_E_F_G_H_I_J_K_L_M_State) IsYANGGoStruct

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

func (*OpenconfigNested_A_B_C_D_E_F_G_H_I_J_K_L_M_State) PopulateDefaults

PopulateDefaults recursively populates unset leaf fields in the OpenconfigNested_A_B_C_D_E_F_G_H_I_J_K_L_M_State with default values as specified in the YANG schema, instantiating any nil container fields.

func (*OpenconfigNested_A_B_C_D_E_F_G_H_I_J_K_L_M_State) SetFoo

SetFoo sets the value of the leaf Foo in the OpenconfigNested_A_B_C_D_E_F_G_H_I_J_K_L_M_State struct.

func (*OpenconfigNested_A_B_C_D_E_F_G_H_I_J_K_L_M_State) Validate

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

func (*OpenconfigNested_A_B_C_D_E_F_G_H_I_J_K_L_M_State) ΛBelongingModule

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

func (*OpenconfigNested_A_B_C_D_E_F_G_H_I_J_K_L_M_State) ΛEnumTypeMap

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

func (*OpenconfigNested_A_B_C_D_E_F_G_H_I_J_K_L_M_State) ΛValidate

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

type OpenconfigNested_Container

type OpenconfigNested_Container struct {
	Enabled *bool `path:"enabled" module:"openconfig-nested"`
}

OpenconfigNested_Container represents the /openconfig-nested/container YANG schema element.

func (*OpenconfigNested_Container) GetEnabled

func (t *OpenconfigNested_Container) GetEnabled() bool

GetEnabled retrieves the value of the leaf Enabled from the OpenconfigNested_Container 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 Enabled is set, it can safely use t.GetEnabled() 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.Enabled == nil' before retrieving the leaf's value.

func (*OpenconfigNested_Container) IsYANGGoStruct

func (*OpenconfigNested_Container) IsYANGGoStruct()

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

func (*OpenconfigNested_Container) PopulateDefaults

func (t *OpenconfigNested_Container) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the OpenconfigNested_Container with default values as specified in the YANG schema, instantiating any nil container fields.

func (*OpenconfigNested_Container) SetEnabled

func (t *OpenconfigNested_Container) SetEnabled(v bool)

SetEnabled sets the value of the leaf Enabled in the OpenconfigNested_Container struct.

func (*OpenconfigNested_Container) Validate

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

func (*OpenconfigNested_Container) ΛBelongingModule

func (*OpenconfigNested_Container) ΛBelongingModule() string

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

func (*OpenconfigNested_Container) ΛEnumTypeMap

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

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

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

type OpenconfigSimple_Parent

type OpenconfigSimple_Parent struct {
	Child *OpenconfigSimple_Parent_Child `path:"child" module:"openconfig-simple"`
}

OpenconfigSimple_Parent represents the /openconfig-simple/parent YANG schema element.

func (*OpenconfigSimple_Parent) GetChild

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

func (*OpenconfigSimple_Parent) GetOrCreateChild

GetOrCreateChild retrieves the value of the Child field or returns the existing field if it already exists.

func (*OpenconfigSimple_Parent) IsYANGGoStruct

func (*OpenconfigSimple_Parent) IsYANGGoStruct()

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

func (*OpenconfigSimple_Parent) PopulateDefaults

func (t *OpenconfigSimple_Parent) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the OpenconfigSimple_Parent with default values as specified in the YANG schema, instantiating any nil container fields.

func (*OpenconfigSimple_Parent) Validate

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

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

func (*OpenconfigSimple_Parent) ΛBelongingModule

func (*OpenconfigSimple_Parent) ΛBelongingModule() string

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

func (*OpenconfigSimple_Parent) ΛEnumTypeMap

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

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

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

type OpenconfigSimple_Parent_Child

type OpenconfigSimple_Parent_Child struct {
	Config *OpenconfigSimple_Parent_Child_Config `path:"config" module:"openconfig-simple"`
	State  *OpenconfigSimple_Parent_Child_State  `path:"state" module:"openconfig-simple"`
}

OpenconfigSimple_Parent_Child represents the /openconfig-simple/parent/child YANG schema element.

func (*OpenconfigSimple_Parent_Child) GetConfig

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

func (*OpenconfigSimple_Parent_Child) GetOrCreateConfig

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

func (*OpenconfigSimple_Parent_Child) GetOrCreateState

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

func (*OpenconfigSimple_Parent_Child) GetState

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

func (*OpenconfigSimple_Parent_Child) IsYANGGoStruct

func (*OpenconfigSimple_Parent_Child) IsYANGGoStruct()

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

func (*OpenconfigSimple_Parent_Child) PopulateDefaults

func (t *OpenconfigSimple_Parent_Child) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the OpenconfigSimple_Parent_Child with default values as specified in the YANG schema, instantiating any nil container fields.

func (*OpenconfigSimple_Parent_Child) Validate

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

func (*OpenconfigSimple_Parent_Child) ΛBelongingModule

func (*OpenconfigSimple_Parent_Child) ΛBelongingModule() string

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

func (*OpenconfigSimple_Parent_Child) ΛEnumTypeMap

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

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

type OpenconfigSimple_Parent_Child_Config

type OpenconfigSimple_Parent_Child_Config struct {
	Five  Binary                             `path:"five" module:"openconfig-simple"`
	Four  Binary                             `path:"four" module:"openconfig-simple"`
	One   *string                            `path:"one" module:"openconfig-simple"`
	Six   []Binary                           `path:"six" module:"openconfig-simple"`
	Three E_Simple_Parent_Child_Config_Three `path:"three" module:"openconfig-simple"`
}

OpenconfigSimple_Parent_Child_Config represents the /openconfig-simple/parent/child/config YANG schema element.

func (*OpenconfigSimple_Parent_Child_Config) GetFive

GetFive retrieves the value of the leaf Five from the OpenconfigSimple_Parent_Child_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 Five is set, it can safely use t.GetFive() 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.Five == nil' before retrieving the leaf's value.

func (*OpenconfigSimple_Parent_Child_Config) GetFour

GetFour retrieves the value of the leaf Four from the OpenconfigSimple_Parent_Child_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 Four is set, it can safely use t.GetFour() 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.Four == nil' before retrieving the leaf's value.

func (*OpenconfigSimple_Parent_Child_Config) GetOne

GetOne retrieves the value of the leaf One from the OpenconfigSimple_Parent_Child_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 One is set, it can safely use t.GetOne() 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.One == nil' before retrieving the leaf's value.

func (*OpenconfigSimple_Parent_Child_Config) GetSix

GetSix retrieves the value of the leaf Six from the OpenconfigSimple_Parent_Child_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 Six is set, it can safely use t.GetSix() 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.Six == nil' before retrieving the leaf's value.

func (*OpenconfigSimple_Parent_Child_Config) GetThree

GetThree retrieves the value of the leaf Three from the OpenconfigSimple_Parent_Child_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 Three is set, it can safely use t.GetThree() 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.Three == nil' before retrieving the leaf's value.

func (*OpenconfigSimple_Parent_Child_Config) IsYANGGoStruct

func (*OpenconfigSimple_Parent_Child_Config) IsYANGGoStruct()

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

func (*OpenconfigSimple_Parent_Child_Config) PopulateDefaults

func (t *OpenconfigSimple_Parent_Child_Config) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the OpenconfigSimple_Parent_Child_Config with default values as specified in the YANG schema, instantiating any nil container fields.

func (*OpenconfigSimple_Parent_Child_Config) SetFive

SetFive sets the value of the leaf Five in the OpenconfigSimple_Parent_Child_Config struct.

func (*OpenconfigSimple_Parent_Child_Config) SetFour

SetFour sets the value of the leaf Four in the OpenconfigSimple_Parent_Child_Config struct.

func (*OpenconfigSimple_Parent_Child_Config) SetOne

SetOne sets the value of the leaf One in the OpenconfigSimple_Parent_Child_Config struct.

func (*OpenconfigSimple_Parent_Child_Config) SetSix

SetSix sets the value of the leaf Six in the OpenconfigSimple_Parent_Child_Config struct.

func (*OpenconfigSimple_Parent_Child_Config) SetThree

SetThree sets the value of the leaf Three in the OpenconfigSimple_Parent_Child_Config struct.

func (*OpenconfigSimple_Parent_Child_Config) Validate

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

func (*OpenconfigSimple_Parent_Child_Config) ΛBelongingModule

func (*OpenconfigSimple_Parent_Child_Config) ΛBelongingModule() string

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

func (*OpenconfigSimple_Parent_Child_Config) ΛEnumTypeMap

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

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

type OpenconfigSimple_Parent_Child_State

type OpenconfigSimple_Parent_Child_State struct {
	Five  Binary                             `path:"five" module:"openconfig-simple"`
	Four  Binary                             `path:"four" module:"openconfig-simple"`
	One   *string                            `path:"one" module:"openconfig-simple"`
	Six   []Binary                           `path:"six" module:"openconfig-simple"`
	Three E_Simple_Parent_Child_Config_Three `path:"three" module:"openconfig-simple"`
	Two   *string                            `path:"two" module:"openconfig-simple"`
}

OpenconfigSimple_Parent_Child_State represents the /openconfig-simple/parent/child/state YANG schema element.

func (*OpenconfigSimple_Parent_Child_State) GetFive

GetFive retrieves the value of the leaf Five from the OpenconfigSimple_Parent_Child_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 Five is set, it can safely use t.GetFive() 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.Five == nil' before retrieving the leaf's value.

func (*OpenconfigSimple_Parent_Child_State) GetFour

GetFour retrieves the value of the leaf Four from the OpenconfigSimple_Parent_Child_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 Four is set, it can safely use t.GetFour() 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.Four == nil' before retrieving the leaf's value.

func (*OpenconfigSimple_Parent_Child_State) GetOne

GetOne retrieves the value of the leaf One from the OpenconfigSimple_Parent_Child_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 One is set, it can safely use t.GetOne() 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.One == nil' before retrieving the leaf's value.

func (*OpenconfigSimple_Parent_Child_State) GetSix

GetSix retrieves the value of the leaf Six from the OpenconfigSimple_Parent_Child_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 Six is set, it can safely use t.GetSix() 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.Six == nil' before retrieving the leaf's value.

func (*OpenconfigSimple_Parent_Child_State) GetThree

GetThree retrieves the value of the leaf Three from the OpenconfigSimple_Parent_Child_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 Three is set, it can safely use t.GetThree() 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.Three == nil' before retrieving the leaf's value.

func (*OpenconfigSimple_Parent_Child_State) GetTwo

GetTwo retrieves the value of the leaf Two from the OpenconfigSimple_Parent_Child_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 Two is set, it can safely use t.GetTwo() 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.Two == nil' before retrieving the leaf's value.

func (*OpenconfigSimple_Parent_Child_State) IsYANGGoStruct

func (*OpenconfigSimple_Parent_Child_State) IsYANGGoStruct()

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

func (*OpenconfigSimple_Parent_Child_State) PopulateDefaults

func (t *OpenconfigSimple_Parent_Child_State) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the OpenconfigSimple_Parent_Child_State with default values as specified in the YANG schema, instantiating any nil container fields.

func (*OpenconfigSimple_Parent_Child_State) SetFive

SetFive sets the value of the leaf Five in the OpenconfigSimple_Parent_Child_State struct.

func (*OpenconfigSimple_Parent_Child_State) SetFour

SetFour sets the value of the leaf Four in the OpenconfigSimple_Parent_Child_State struct.

func (*OpenconfigSimple_Parent_Child_State) SetOne

SetOne sets the value of the leaf One in the OpenconfigSimple_Parent_Child_State struct.

func (*OpenconfigSimple_Parent_Child_State) SetSix

SetSix sets the value of the leaf Six in the OpenconfigSimple_Parent_Child_State struct.

func (*OpenconfigSimple_Parent_Child_State) SetThree

SetThree sets the value of the leaf Three in the OpenconfigSimple_Parent_Child_State struct.

func (*OpenconfigSimple_Parent_Child_State) SetTwo

SetTwo sets the value of the leaf Two in the OpenconfigSimple_Parent_Child_State struct.

func (*OpenconfigSimple_Parent_Child_State) Validate

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

func (*OpenconfigSimple_Parent_Child_State) ΛBelongingModule

func (*OpenconfigSimple_Parent_Child_State) ΛBelongingModule() string

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

func (*OpenconfigSimple_Parent_Child_State) ΛEnumTypeMap

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

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

type OpenconfigSimple_RemoteContainer

type OpenconfigSimple_RemoteContainer struct {
	Config *OpenconfigSimple_RemoteContainer_Config `path:"config" module:"openconfig-simple"`
	State  *OpenconfigSimple_RemoteContainer_State  `path:"state" module:"openconfig-simple"`
}

OpenconfigSimple_RemoteContainer represents the /openconfig-simple/remote-container YANG schema element.

func (*OpenconfigSimple_RemoteContainer) GetConfig

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

func (*OpenconfigSimple_RemoteContainer) GetOrCreateConfig

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

func (*OpenconfigSimple_RemoteContainer) GetOrCreateState

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

func (*OpenconfigSimple_RemoteContainer) GetState

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

func (*OpenconfigSimple_RemoteContainer) IsYANGGoStruct

func (*OpenconfigSimple_RemoteContainer) IsYANGGoStruct()

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

func (*OpenconfigSimple_RemoteContainer) PopulateDefaults

func (t *OpenconfigSimple_RemoteContainer) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the OpenconfigSimple_RemoteContainer with default values as specified in the YANG schema, instantiating any nil container fields.

func (*OpenconfigSimple_RemoteContainer) Validate

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

func (*OpenconfigSimple_RemoteContainer) ΛBelongingModule

func (*OpenconfigSimple_RemoteContainer) ΛBelongingModule() string

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

func (*OpenconfigSimple_RemoteContainer) ΛEnumTypeMap

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

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

type OpenconfigSimple_RemoteContainer_Config

type OpenconfigSimple_RemoteContainer_Config struct {
	ALeaf *string `path:"a-leaf" module:"openconfig-simple"`
}

OpenconfigSimple_RemoteContainer_Config represents the /openconfig-simple/remote-container/config YANG schema element.

func (*OpenconfigSimple_RemoteContainer_Config) GetALeaf

GetALeaf retrieves the value of the leaf ALeaf from the OpenconfigSimple_RemoteContainer_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 ALeaf is set, it can safely use t.GetALeaf() 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.ALeaf == nil' before retrieving the leaf's value.

func (*OpenconfigSimple_RemoteContainer_Config) IsYANGGoStruct

func (*OpenconfigSimple_RemoteContainer_Config) IsYANGGoStruct()

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

func (*OpenconfigSimple_RemoteContainer_Config) PopulateDefaults

func (t *OpenconfigSimple_RemoteContainer_Config) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the OpenconfigSimple_RemoteContainer_Config with default values as specified in the YANG schema, instantiating any nil container fields.

func (*OpenconfigSimple_RemoteContainer_Config) SetALeaf

SetALeaf sets the value of the leaf ALeaf in the OpenconfigSimple_RemoteContainer_Config struct.

func (*OpenconfigSimple_RemoteContainer_Config) Validate

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

func (*OpenconfigSimple_RemoteContainer_Config) ΛBelongingModule

func (*OpenconfigSimple_RemoteContainer_Config) ΛBelongingModule() string

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

func (*OpenconfigSimple_RemoteContainer_Config) ΛEnumTypeMap

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

func (*OpenconfigSimple_RemoteContainer_Config) ΛValidate

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

type OpenconfigSimple_RemoteContainer_State

type OpenconfigSimple_RemoteContainer_State struct {
	ALeaf *string `path:"a-leaf" module:"openconfig-simple"`
}

OpenconfigSimple_RemoteContainer_State represents the /openconfig-simple/remote-container/state YANG schema element.

func (*OpenconfigSimple_RemoteContainer_State) GetALeaf

GetALeaf retrieves the value of the leaf ALeaf from the OpenconfigSimple_RemoteContainer_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 ALeaf is set, it can safely use t.GetALeaf() 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.ALeaf == nil' before retrieving the leaf's value.

func (*OpenconfigSimple_RemoteContainer_State) IsYANGGoStruct

func (*OpenconfigSimple_RemoteContainer_State) IsYANGGoStruct()

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

func (*OpenconfigSimple_RemoteContainer_State) PopulateDefaults

func (t *OpenconfigSimple_RemoteContainer_State) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the OpenconfigSimple_RemoteContainer_State with default values as specified in the YANG schema, instantiating any nil container fields.

func (*OpenconfigSimple_RemoteContainer_State) SetALeaf

SetALeaf sets the value of the leaf ALeaf in the OpenconfigSimple_RemoteContainer_State struct.

func (*OpenconfigSimple_RemoteContainer_State) Validate

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

func (*OpenconfigSimple_RemoteContainer_State) ΛBelongingModule

func (*OpenconfigSimple_RemoteContainer_State) ΛBelongingModule() string

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

func (*OpenconfigSimple_RemoteContainer_State) ΛEnumTypeMap

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

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

type OpenconfigWithlistval_Model

type OpenconfigWithlistval_Model struct {
	A *OpenconfigWithlistval_Model_A `path:"a" module:"openconfig-withlistval"`
	B *OpenconfigWithlistval_Model_B `path:"b" module:"openconfig-withlistval"`
	C *OpenconfigWithlistval_Model_C `path:"c" module:"openconfig-withlistval"`
}

OpenconfigWithlistval_Model represents the /openconfig-withlistval/model YANG schema element.

func (*OpenconfigWithlistval_Model) GetA

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

func (*OpenconfigWithlistval_Model) GetB

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

func (*OpenconfigWithlistval_Model) GetC

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

func (*OpenconfigWithlistval_Model) GetOrCreateA

GetOrCreateA retrieves the value of the A field or returns the existing field if it already exists.

func (*OpenconfigWithlistval_Model) GetOrCreateB

GetOrCreateB retrieves the value of the B field or returns the existing field if it already exists.

func (*OpenconfigWithlistval_Model) GetOrCreateC

GetOrCreateC retrieves the value of the C field or returns the existing field if it already exists.

func (*OpenconfigWithlistval_Model) IsYANGGoStruct

func (*OpenconfigWithlistval_Model) IsYANGGoStruct()

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

func (*OpenconfigWithlistval_Model) PopulateDefaults

func (t *OpenconfigWithlistval_Model) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the OpenconfigWithlistval_Model with default values as specified in the YANG schema, instantiating any nil container fields.

func (*OpenconfigWithlistval_Model) Validate

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

func (*OpenconfigWithlistval_Model) ΛBelongingModule

func (*OpenconfigWithlistval_Model) ΛBelongingModule() string

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

func (*OpenconfigWithlistval_Model) ΛEnumTypeMap

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

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

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

type OpenconfigWithlistval_Model_A

type OpenconfigWithlistval_Model_A struct {
	SingleKey map[string]*OpenconfigWithlistval_Model_A_SingleKey `path:"single-key" module:"openconfig-withlistval"`
}

OpenconfigWithlistval_Model_A represents the /openconfig-withlistval/model/a YANG schema element.

func (*OpenconfigWithlistval_Model_A) AppendSingleKey

AppendSingleKey appends the supplied OpenconfigWithlistval_Model_A_SingleKey struct to the list SingleKey of OpenconfigWithlistval_Model_A. If the key value(s) specified in the supplied OpenconfigWithlistval_Model_A_SingleKey already exist in the list, an error is returned.

func (*OpenconfigWithlistval_Model_A) DeleteSingleKey

func (t *OpenconfigWithlistval_Model_A) DeleteSingleKey(Key string)

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

func (*OpenconfigWithlistval_Model_A) GetOrCreateSingleKey

GetOrCreateSingleKey retrieves the value with the specified keys from the receiver OpenconfigWithlistval_Model_A. If the entry does not exist, then it is created. It returns the existing or new list member.

func (*OpenconfigWithlistval_Model_A) GetSingleKey

GetSingleKey retrieves the value with the specified key from the SingleKey map field of OpenconfigWithlistval_Model_A. 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 (*OpenconfigWithlistval_Model_A) IsYANGGoStruct

func (*OpenconfigWithlistval_Model_A) IsYANGGoStruct()

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

func (*OpenconfigWithlistval_Model_A) NewSingleKey

NewSingleKey creates a new entry in the SingleKey list of the OpenconfigWithlistval_Model_A struct. The keys of the list are populated from the input arguments.

func (*OpenconfigWithlistval_Model_A) PopulateDefaults

func (t *OpenconfigWithlistval_Model_A) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the OpenconfigWithlistval_Model_A with default values as specified in the YANG schema, instantiating any nil container fields.

func (*OpenconfigWithlistval_Model_A) RenameSingleKey added in v0.10.0

func (t *OpenconfigWithlistval_Model_A) RenameSingleKey(oldK, newK string) error

RenameSingleKey renames an entry in the list SingleKey within the OpenconfigWithlistval_Model_A struct. The entry with key oldK is renamed to newK updating the key within the value.

func (*OpenconfigWithlistval_Model_A) Validate

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

func (*OpenconfigWithlistval_Model_A) ΛBelongingModule

func (*OpenconfigWithlistval_Model_A) ΛBelongingModule() string

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

func (*OpenconfigWithlistval_Model_A) ΛEnumTypeMap

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

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

type OpenconfigWithlistval_Model_A_SingleKey

type OpenconfigWithlistval_Model_A_SingleKey struct {
	Config       *OpenconfigWithlistval_Model_A_SingleKey_Config       `path:"config" module:"openconfig-withlistval"`
	InnerA       *OpenconfigWithlistval_Model_A_SingleKey_InnerA       `path:"inner-a" module:"openconfig-withlistval"`
	Key          *string                                               `path:"key" module:"openconfig-withlistval"`
	OrderedLists *OpenconfigWithlistval_Model_A_SingleKey_OrderedLists `path:"ordered-lists" module:"openconfig-withlistval"`
	State        *OpenconfigWithlistval_Model_A_SingleKey_State        `path:"state" module:"openconfig-withlistval"`
}

OpenconfigWithlistval_Model_A_SingleKey represents the /openconfig-withlistval/model/a/single-key YANG schema element.

func (*OpenconfigWithlistval_Model_A_SingleKey) GetConfig

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

func (*OpenconfigWithlistval_Model_A_SingleKey) GetInnerA

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

func (*OpenconfigWithlistval_Model_A_SingleKey) GetKey

GetKey retrieves the value of the leaf Key from the OpenconfigWithlistval_Model_A_SingleKey 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 (*OpenconfigWithlistval_Model_A_SingleKey) GetOrCreateConfig

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

func (*OpenconfigWithlistval_Model_A_SingleKey) GetOrCreateInnerA

GetOrCreateInnerA retrieves the value of the InnerA field or returns the existing field if it already exists.

func (*OpenconfigWithlistval_Model_A_SingleKey) GetOrCreateOrderedLists

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

func (*OpenconfigWithlistval_Model_A_SingleKey) GetOrCreateState

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

func (*OpenconfigWithlistval_Model_A_SingleKey) GetOrderedLists

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

func (*OpenconfigWithlistval_Model_A_SingleKey) GetState

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

func (*OpenconfigWithlistval_Model_A_SingleKey) IsYANGGoStruct

func (*OpenconfigWithlistval_Model_A_SingleKey) IsYANGGoStruct()

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

func (*OpenconfigWithlistval_Model_A_SingleKey) PopulateDefaults

func (t *OpenconfigWithlistval_Model_A_SingleKey) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the OpenconfigWithlistval_Model_A_SingleKey with default values as specified in the YANG schema, instantiating any nil container fields.

func (*OpenconfigWithlistval_Model_A_SingleKey) SetKey

SetKey sets the value of the leaf Key in the OpenconfigWithlistval_Model_A_SingleKey struct.

func (*OpenconfigWithlistval_Model_A_SingleKey) Validate

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

func (*OpenconfigWithlistval_Model_A_SingleKey) ΛBelongingModule

func (*OpenconfigWithlistval_Model_A_SingleKey) ΛBelongingModule() string

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

func (*OpenconfigWithlistval_Model_A_SingleKey) ΛEnumTypeMap

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

func (*OpenconfigWithlistval_Model_A_SingleKey) ΛListKeyMap

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

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

func (*OpenconfigWithlistval_Model_A_SingleKey) ΛValidate

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

type OpenconfigWithlistval_Model_A_SingleKey_Config

type OpenconfigWithlistval_Model_A_SingleKey_Config struct {
	Key   *string `path:"key" module:"openconfig-withlistval"`
	Value *int64  `path:"value" module:"openconfig-withlistval"`
}

OpenconfigWithlistval_Model_A_SingleKey_Config represents the /openconfig-withlistval/model/a/single-key/config YANG schema element.

func (*OpenconfigWithlistval_Model_A_SingleKey_Config) GetKey

GetKey retrieves the value of the leaf Key from the OpenconfigWithlistval_Model_A_SingleKey_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 (*OpenconfigWithlistval_Model_A_SingleKey_Config) GetValue

GetValue retrieves the value of the leaf Value from the OpenconfigWithlistval_Model_A_SingleKey_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 (*OpenconfigWithlistval_Model_A_SingleKey_Config) IsYANGGoStruct

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

func (*OpenconfigWithlistval_Model_A_SingleKey_Config) PopulateDefaults

func (t *OpenconfigWithlistval_Model_A_SingleKey_Config) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the OpenconfigWithlistval_Model_A_SingleKey_Config with default values as specified in the YANG schema, instantiating any nil container fields.

func (*OpenconfigWithlistval_Model_A_SingleKey_Config) SetKey

SetKey sets the value of the leaf Key in the OpenconfigWithlistval_Model_A_SingleKey_Config struct.

func (*OpenconfigWithlistval_Model_A_SingleKey_Config) SetValue

SetValue sets the value of the leaf Value in the OpenconfigWithlistval_Model_A_SingleKey_Config struct.

func (*OpenconfigWithlistval_Model_A_SingleKey_Config) Validate

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

func (*OpenconfigWithlistval_Model_A_SingleKey_Config) ΛBelongingModule

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

func (*OpenconfigWithlistval_Model_A_SingleKey_Config) ΛEnumTypeMap

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

func (*OpenconfigWithlistval_Model_A_SingleKey_Config) ΛValidate

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

type OpenconfigWithlistval_Model_A_SingleKey_InnerA

type OpenconfigWithlistval_Model_A_SingleKey_InnerA struct {
	SingleKey map[string]*OpenconfigWithlistval_Model_A_SingleKey_InnerA_SingleKey `path:"single-key" module:"openconfig-withlistval"`
}

OpenconfigWithlistval_Model_A_SingleKey_InnerA represents the /openconfig-withlistval/model/a/single-key/inner-a YANG schema element.

func (*OpenconfigWithlistval_Model_A_SingleKey_InnerA) AppendSingleKey

AppendSingleKey appends the supplied OpenconfigWithlistval_Model_A_SingleKey_InnerA_SingleKey struct to the list SingleKey of OpenconfigWithlistval_Model_A_SingleKey_InnerA. If the key value(s) specified in the supplied OpenconfigWithlistval_Model_A_SingleKey_InnerA_SingleKey already exist in the list, an error is returned.

func (*OpenconfigWithlistval_Model_A_SingleKey_InnerA) DeleteSingleKey

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

func (*OpenconfigWithlistval_Model_A_SingleKey_InnerA) GetOrCreateSingleKey

GetOrCreateSingleKey retrieves the value with the specified keys from the receiver OpenconfigWithlistval_Model_A_SingleKey_InnerA. If the entry does not exist, then it is created. It returns the existing or new list member.

func (*OpenconfigWithlistval_Model_A_SingleKey_InnerA) GetSingleKey

GetSingleKey retrieves the value with the specified key from the SingleKey map field of OpenconfigWithlistval_Model_A_SingleKey_InnerA. 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 (*OpenconfigWithlistval_Model_A_SingleKey_InnerA) IsYANGGoStruct

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

func (*OpenconfigWithlistval_Model_A_SingleKey_InnerA) NewSingleKey

NewSingleKey creates a new entry in the SingleKey list of the OpenconfigWithlistval_Model_A_SingleKey_InnerA struct. The keys of the list are populated from the input arguments.

func (*OpenconfigWithlistval_Model_A_SingleKey_InnerA) PopulateDefaults

func (t *OpenconfigWithlistval_Model_A_SingleKey_InnerA) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the OpenconfigWithlistval_Model_A_SingleKey_InnerA with default values as specified in the YANG schema, instantiating any nil container fields.

func (*OpenconfigWithlistval_Model_A_SingleKey_InnerA) RenameSingleKey added in v0.10.0

func (t *OpenconfigWithlistval_Model_A_SingleKey_InnerA) RenameSingleKey(oldK, newK string) error

RenameSingleKey renames an entry in the list SingleKey within the OpenconfigWithlistval_Model_A_SingleKey_InnerA struct. The entry with key oldK is renamed to newK updating the key within the value.

func (*OpenconfigWithlistval_Model_A_SingleKey_InnerA) Validate

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

func (*OpenconfigWithlistval_Model_A_SingleKey_InnerA) ΛBelongingModule

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

func (*OpenconfigWithlistval_Model_A_SingleKey_InnerA) ΛEnumTypeMap

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

func (*OpenconfigWithlistval_Model_A_SingleKey_InnerA) ΛValidate

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

type OpenconfigWithlistval_Model_A_SingleKey_InnerA_SingleKey

type OpenconfigWithlistval_Model_A_SingleKey_InnerA_SingleKey struct {
	Config *OpenconfigWithlistval_Model_A_SingleKey_InnerA_SingleKey_Config `path:"config" module:"openconfig-withlistval"`
	Key    *string                                                          `path:"key" module:"openconfig-withlistval"`
	State  *OpenconfigWithlistval_Model_A_SingleKey_InnerA_SingleKey_State  `path:"state" module:"openconfig-withlistval"`
}

OpenconfigWithlistval_Model_A_SingleKey_InnerA_SingleKey represents the /openconfig-withlistval/model/a/single-key/inner-a/single-key YANG schema element.

func (*OpenconfigWithlistval_Model_A_SingleKey_InnerA_SingleKey) GetConfig

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

func (*OpenconfigWithlistval_Model_A_SingleKey_InnerA_SingleKey) GetKey

GetKey retrieves the value of the leaf Key from the OpenconfigWithlistval_Model_A_SingleKey_InnerA_SingleKey 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 (*OpenconfigWithlistval_Model_A_SingleKey_InnerA_SingleKey) GetOrCreateConfig

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

func (*OpenconfigWithlistval_Model_A_SingleKey_InnerA_SingleKey) GetOrCreateState

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

func (*OpenconfigWithlistval_Model_A_SingleKey_InnerA_SingleKey) GetState

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

func (*OpenconfigWithlistval_Model_A_SingleKey_InnerA_SingleKey) IsYANGGoStruct

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

func (*OpenconfigWithlistval_Model_A_SingleKey_InnerA_SingleKey) PopulateDefaults

PopulateDefaults recursively populates unset leaf fields in the OpenconfigWithlistval_Model_A_SingleKey_InnerA_SingleKey with default values as specified in the YANG schema, instantiating any nil container fields.

func (*OpenconfigWithlistval_Model_A_SingleKey_InnerA_SingleKey) SetKey

SetKey sets the value of the leaf Key in the OpenconfigWithlistval_Model_A_SingleKey_InnerA_SingleKey struct.

func (*OpenconfigWithlistval_Model_A_SingleKey_InnerA_SingleKey) Validate

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

func (*OpenconfigWithlistval_Model_A_SingleKey_InnerA_SingleKey) ΛBelongingModule

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

func (*OpenconfigWithlistval_Model_A_SingleKey_InnerA_SingleKey) ΛEnumTypeMap

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

func (*OpenconfigWithlistval_Model_A_SingleKey_InnerA_SingleKey) ΛListKeyMap

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

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

func (*OpenconfigWithlistval_Model_A_SingleKey_InnerA_SingleKey) ΛValidate

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

type OpenconfigWithlistval_Model_A_SingleKey_InnerA_SingleKey_Config

type OpenconfigWithlistval_Model_A_SingleKey_InnerA_SingleKey_Config struct {
	Key   *string `path:"key" module:"openconfig-withlistval"`
	Value *int64  `path:"value" module:"openconfig-withlistval"`
}

OpenconfigWithlistval_Model_A_SingleKey_InnerA_SingleKey_Config represents the /openconfig-withlistval/model/a/single-key/inner-a/single-key/config YANG schema element.

func (*OpenconfigWithlistval_Model_A_SingleKey_InnerA_SingleKey_Config) GetKey

GetKey retrieves the value of the leaf Key from the OpenconfigWithlistval_Model_A_SingleKey_InnerA_SingleKey_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 (*OpenconfigWithlistval_Model_A_SingleKey_InnerA_SingleKey_Config) GetValue

GetValue retrieves the value of the leaf Value from the OpenconfigWithlistval_Model_A_SingleKey_InnerA_SingleKey_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 (*OpenconfigWithlistval_Model_A_SingleKey_InnerA_SingleKey_Config) IsYANGGoStruct

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

func (*OpenconfigWithlistval_Model_A_SingleKey_InnerA_SingleKey_Config) PopulateDefaults

PopulateDefaults recursively populates unset leaf fields in the OpenconfigWithlistval_Model_A_SingleKey_InnerA_SingleKey_Config with default values as specified in the YANG schema, instantiating any nil container fields.

func (*OpenconfigWithlistval_Model_A_SingleKey_InnerA_SingleKey_Config) SetKey

SetKey sets the value of the leaf Key in the OpenconfigWithlistval_Model_A_SingleKey_InnerA_SingleKey_Config struct.

func (*OpenconfigWithlistval_Model_A_SingleKey_InnerA_SingleKey_Config) SetValue

SetValue sets the value of the leaf Value in the OpenconfigWithlistval_Model_A_SingleKey_InnerA_SingleKey_Config struct.

func (*OpenconfigWithlistval_Model_A_SingleKey_InnerA_SingleKey_Config) Validate

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

func (*OpenconfigWithlistval_Model_A_SingleKey_InnerA_SingleKey_Config) ΛBelongingModule

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

func (*OpenconfigWithlistval_Model_A_SingleKey_InnerA_SingleKey_Config) ΛEnumTypeMap

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

func (*OpenconfigWithlistval_Model_A_SingleKey_InnerA_SingleKey_Config) ΛValidate

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

type OpenconfigWithlistval_Model_A_SingleKey_InnerA_SingleKey_State

type OpenconfigWithlistval_Model_A_SingleKey_InnerA_SingleKey_State struct {
	Key   *string `path:"key" module:"openconfig-withlistval"`
	Value *int64  `path:"value" module:"openconfig-withlistval"`
}

OpenconfigWithlistval_Model_A_SingleKey_InnerA_SingleKey_State represents the /openconfig-withlistval/model/a/single-key/inner-a/single-key/state YANG schema element.

func (*OpenconfigWithlistval_Model_A_SingleKey_InnerA_SingleKey_State) GetKey

GetKey retrieves the value of the leaf Key from the OpenconfigWithlistval_Model_A_SingleKey_InnerA_SingleKey_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 (*OpenconfigWithlistval_Model_A_SingleKey_InnerA_SingleKey_State) GetValue

GetValue retrieves the value of the leaf Value from the OpenconfigWithlistval_Model_A_SingleKey_InnerA_SingleKey_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 (*OpenconfigWithlistval_Model_A_SingleKey_InnerA_SingleKey_State) IsYANGGoStruct

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

func (*OpenconfigWithlistval_Model_A_SingleKey_InnerA_SingleKey_State) PopulateDefaults

PopulateDefaults recursively populates unset leaf fields in the OpenconfigWithlistval_Model_A_SingleKey_InnerA_SingleKey_State with default values as specified in the YANG schema, instantiating any nil container fields.

func (*OpenconfigWithlistval_Model_A_SingleKey_InnerA_SingleKey_State) SetKey

SetKey sets the value of the leaf Key in the OpenconfigWithlistval_Model_A_SingleKey_InnerA_SingleKey_State struct.

func (*OpenconfigWithlistval_Model_A_SingleKey_InnerA_SingleKey_State) SetValue

SetValue sets the value of the leaf Value in the OpenconfigWithlistval_Model_A_SingleKey_InnerA_SingleKey_State struct.

func (*OpenconfigWithlistval_Model_A_SingleKey_InnerA_SingleKey_State) Validate

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

func (*OpenconfigWithlistval_Model_A_SingleKey_InnerA_SingleKey_State) ΛBelongingModule

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

func (*OpenconfigWithlistval_Model_A_SingleKey_InnerA_SingleKey_State) ΛEnumTypeMap

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

func (*OpenconfigWithlistval_Model_A_SingleKey_InnerA_SingleKey_State) ΛValidate

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

type OpenconfigWithlistval_Model_A_SingleKey_OrderedLists

type OpenconfigWithlistval_Model_A_SingleKey_OrderedLists struct {
	OrderedList *OpenconfigWithlistval_Model_A_SingleKey_OrderedLists_OrderedList_OrderedMap `path:"ordered-list" module:"openconfig-withlistval"`
}

OpenconfigWithlistval_Model_A_SingleKey_OrderedLists represents the /openconfig-withlistval/model/a/single-key/ordered-lists YANG schema element.

func (*OpenconfigWithlistval_Model_A_SingleKey_OrderedLists) AppendNewOrderedList

AppendNewOrderedList creates a new entry in the OrderedList ordered map of the OpenconfigWithlistval_Model_A_SingleKey_OrderedLists struct. The keys of the list are populated from the input arguments.

func (*OpenconfigWithlistval_Model_A_SingleKey_OrderedLists) AppendOrderedList

AppendOrderedList appends the supplied OpenconfigWithlistval_Model_A_SingleKey_OrderedLists_OrderedList struct to the list OrderedList of OpenconfigWithlistval_Model_A_SingleKey_OrderedLists. If the key value(s) specified in the supplied OpenconfigWithlistval_Model_A_SingleKey_OrderedLists_OrderedList already exist in the list, an error is returned.

func (*OpenconfigWithlistval_Model_A_SingleKey_OrderedLists) DeleteOrderedList

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

func (*OpenconfigWithlistval_Model_A_SingleKey_OrderedLists) GetOrderedList

GetOrderedList retrieves the value with the specified key from the OrderedList map field of OpenconfigWithlistval_Model_A_SingleKey_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 (*OpenconfigWithlistval_Model_A_SingleKey_OrderedLists) IsYANGGoStruct

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

func (*OpenconfigWithlistval_Model_A_SingleKey_OrderedLists) PopulateDefaults

PopulateDefaults recursively populates unset leaf fields in the OpenconfigWithlistval_Model_A_SingleKey_OrderedLists with default values as specified in the YANG schema, instantiating any nil container fields.

func (*OpenconfigWithlistval_Model_A_SingleKey_OrderedLists) Validate

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

func (*OpenconfigWithlistval_Model_A_SingleKey_OrderedLists) ΛBelongingModule

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

func (*OpenconfigWithlistval_Model_A_SingleKey_OrderedLists) ΛEnumTypeMap

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

func (*OpenconfigWithlistval_Model_A_SingleKey_OrderedLists) ΛValidate

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

type OpenconfigWithlistval_Model_A_SingleKey_OrderedLists_OrderedList

type OpenconfigWithlistval_Model_A_SingleKey_OrderedLists_OrderedList struct {
	Config *OpenconfigWithlistval_Model_A_SingleKey_OrderedLists_OrderedList_Config `path:"config" module:"openconfig-withlistval"`
	Key    *string                                                                  `path:"key" module:"openconfig-withlistval"`
	State  *OpenconfigWithlistval_Model_A_SingleKey_OrderedLists_OrderedList_State  `path:"state" module:"openconfig-withlistval"`
}

OpenconfigWithlistval_Model_A_SingleKey_OrderedLists_OrderedList represents the /openconfig-withlistval/model/a/single-key/ordered-lists/ordered-list YANG schema element.

func (*OpenconfigWithlistval_Model_A_SingleKey_OrderedLists_OrderedList) GetConfig

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

func (*OpenconfigWithlistval_Model_A_SingleKey_OrderedLists_OrderedList) GetKey

GetKey retrieves the value of the leaf Key from the OpenconfigWithlistval_Model_A_SingleKey_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 (*OpenconfigWithlistval_Model_A_SingleKey_OrderedLists_OrderedList) GetOrCreateConfig

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

func (*OpenconfigWithlistval_Model_A_SingleKey_OrderedLists_OrderedList) GetOrCreateState

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

func (*OpenconfigWithlistval_Model_A_SingleKey_OrderedLists_OrderedList) GetState

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

func (*OpenconfigWithlistval_Model_A_SingleKey_OrderedLists_OrderedList) IsYANGGoStruct

IsYANGGoStruct ensures that OpenconfigWithlistval_Model_A_SingleKey_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 (*OpenconfigWithlistval_Model_A_SingleKey_OrderedLists_OrderedList) PopulateDefaults

PopulateDefaults recursively populates unset leaf fields in the OpenconfigWithlistval_Model_A_SingleKey_OrderedLists_OrderedList with default values as specified in the YANG schema, instantiating any nil container fields.

func (*OpenconfigWithlistval_Model_A_SingleKey_OrderedLists_OrderedList) SetKey

SetKey sets the value of the leaf Key in the OpenconfigWithlistval_Model_A_SingleKey_OrderedLists_OrderedList struct.

func (*OpenconfigWithlistval_Model_A_SingleKey_OrderedLists_OrderedList) Validate

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

func (*OpenconfigWithlistval_Model_A_SingleKey_OrderedLists_OrderedList) ΛBelongingModule

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

func (*OpenconfigWithlistval_Model_A_SingleKey_OrderedLists_OrderedList) ΛEnumTypeMap

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

func (*OpenconfigWithlistval_Model_A_SingleKey_OrderedLists_OrderedList) ΛListKeyMap

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

func (*OpenconfigWithlistval_Model_A_SingleKey_OrderedLists_OrderedList) ΛValidate

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

type OpenconfigWithlistval_Model_A_SingleKey_OrderedLists_OrderedList_Config

type OpenconfigWithlistval_Model_A_SingleKey_OrderedLists_OrderedList_Config struct {
	Key   *string `path:"key" module:"openconfig-withlistval"`
	Value *int64  `path:"value" module:"openconfig-withlistval"`
}

OpenconfigWithlistval_Model_A_SingleKey_OrderedLists_OrderedList_Config represents the /openconfig-withlistval/model/a/single-key/ordered-lists/ordered-list/config YANG schema element.

func (*OpenconfigWithlistval_Model_A_SingleKey_OrderedLists_OrderedList_Config) GetKey

GetKey retrieves the value of the leaf Key from the OpenconfigWithlistval_Model_A_SingleKey_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 (*OpenconfigWithlistval_Model_A_SingleKey_OrderedLists_OrderedList_Config) GetValue

GetValue retrieves the value of the leaf Value from the OpenconfigWithlistval_Model_A_SingleKey_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 (*OpenconfigWithlistval_Model_A_SingleKey_OrderedLists_OrderedList_Config) IsYANGGoStruct

IsYANGGoStruct ensures that OpenconfigWithlistval_Model_A_SingleKey_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 (*OpenconfigWithlistval_Model_A_SingleKey_OrderedLists_OrderedList_Config) PopulateDefaults

PopulateDefaults recursively populates unset leaf fields in the OpenconfigWithlistval_Model_A_SingleKey_OrderedLists_OrderedList_Config with default values as specified in the YANG schema, instantiating any nil container fields.

func (*OpenconfigWithlistval_Model_A_SingleKey_OrderedLists_OrderedList_Config) SetKey

SetKey sets the value of the leaf Key in the OpenconfigWithlistval_Model_A_SingleKey_OrderedLists_OrderedList_Config struct.

func (*OpenconfigWithlistval_Model_A_SingleKey_OrderedLists_OrderedList_Config) SetValue

SetValue sets the value of the leaf Value in the OpenconfigWithlistval_Model_A_SingleKey_OrderedLists_OrderedList_Config struct.

func (*OpenconfigWithlistval_Model_A_SingleKey_OrderedLists_OrderedList_Config) Validate

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

func (*OpenconfigWithlistval_Model_A_SingleKey_OrderedLists_OrderedList_Config) ΛBelongingModule

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

func (*OpenconfigWithlistval_Model_A_SingleKey_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 (*OpenconfigWithlistval_Model_A_SingleKey_OrderedLists_OrderedList_Config) ΛValidate

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

type OpenconfigWithlistval_Model_A_SingleKey_OrderedLists_OrderedList_OrderedMap

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

OpenconfigWithlistval_Model_A_SingleKey_OrderedLists_OrderedList_OrderedMap is an ordered map that represents the "ordered-by user" list elements at /openconfig-withlistval/model/a/single-key/ordered-lists/ordered-list.

func (*OpenconfigWithlistval_Model_A_SingleKey_OrderedLists_OrderedList_OrderedMap) Append

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

func (*OpenconfigWithlistval_Model_A_SingleKey_OrderedLists_OrderedList_OrderedMap) AppendNew

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

func (*OpenconfigWithlistval_Model_A_SingleKey_OrderedLists_OrderedList_OrderedMap) Delete

Delete deletes an element.

func (*OpenconfigWithlistval_Model_A_SingleKey_OrderedLists_OrderedList_OrderedMap) Get

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

func (*OpenconfigWithlistval_Model_A_SingleKey_OrderedLists_OrderedList_OrderedMap) IsYANGOrderedList

IsYANGOrderedList ensures that OpenconfigWithlistval_Model_A_SingleKey_OrderedLists_OrderedList_OrderedMap implements the ygot.GoOrderedMap interface.

func (*OpenconfigWithlistval_Model_A_SingleKey_OrderedLists_OrderedList_OrderedMap) Keys

Keys returns a copy of the list's keys.

func (*OpenconfigWithlistval_Model_A_SingleKey_OrderedLists_OrderedList_OrderedMap) Len

Len returns a size of OpenconfigWithlistval_Model_A_SingleKey_OrderedLists_OrderedList_OrderedMap

func (*OpenconfigWithlistval_Model_A_SingleKey_OrderedLists_OrderedList_OrderedMap) Values

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

type OpenconfigWithlistval_Model_A_SingleKey_OrderedLists_OrderedList_State

type OpenconfigWithlistval_Model_A_SingleKey_OrderedLists_OrderedList_State struct {
	Key   *string `path:"key" module:"openconfig-withlistval"`
	Value *int64  `path:"value" module:"openconfig-withlistval"`
}

OpenconfigWithlistval_Model_A_SingleKey_OrderedLists_OrderedList_State represents the /openconfig-withlistval/model/a/single-key/ordered-lists/ordered-list/state YANG schema element.

func (*OpenconfigWithlistval_Model_A_SingleKey_OrderedLists_OrderedList_State) GetKey

GetKey retrieves the value of the leaf Key from the OpenconfigWithlistval_Model_A_SingleKey_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 (*OpenconfigWithlistval_Model_A_SingleKey_OrderedLists_OrderedList_State) GetValue

GetValue retrieves the value of the leaf Value from the OpenconfigWithlistval_Model_A_SingleKey_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 (*OpenconfigWithlistval_Model_A_SingleKey_OrderedLists_OrderedList_State) IsYANGGoStruct

IsYANGGoStruct ensures that OpenconfigWithlistval_Model_A_SingleKey_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 (*OpenconfigWithlistval_Model_A_SingleKey_OrderedLists_OrderedList_State) PopulateDefaults

PopulateDefaults recursively populates unset leaf fields in the OpenconfigWithlistval_Model_A_SingleKey_OrderedLists_OrderedList_State with default values as specified in the YANG schema, instantiating any nil container fields.

func (*OpenconfigWithlistval_Model_A_SingleKey_OrderedLists_OrderedList_State) SetKey

SetKey sets the value of the leaf Key in the OpenconfigWithlistval_Model_A_SingleKey_OrderedLists_OrderedList_State struct.

func (*OpenconfigWithlistval_Model_A_SingleKey_OrderedLists_OrderedList_State) SetValue

SetValue sets the value of the leaf Value in the OpenconfigWithlistval_Model_A_SingleKey_OrderedLists_OrderedList_State struct.

func (*OpenconfigWithlistval_Model_A_SingleKey_OrderedLists_OrderedList_State) Validate

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

func (*OpenconfigWithlistval_Model_A_SingleKey_OrderedLists_OrderedList_State) ΛBelongingModule

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

func (*OpenconfigWithlistval_Model_A_SingleKey_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 (*OpenconfigWithlistval_Model_A_SingleKey_OrderedLists_OrderedList_State) ΛValidate

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

type OpenconfigWithlistval_Model_A_SingleKey_State

type OpenconfigWithlistval_Model_A_SingleKey_State struct {
	Counter  Binary   `path:"counter" module:"openconfig-withlistval"`
	Counters []Binary `path:"counters" module:"openconfig-withlistval"`
	Key      *string  `path:"key" module:"openconfig-withlistval"`
	Value    *int64   `path:"value" module:"openconfig-withlistval"`
}

OpenconfigWithlistval_Model_A_SingleKey_State represents the /openconfig-withlistval/model/a/single-key/state YANG schema element.

func (*OpenconfigWithlistval_Model_A_SingleKey_State) GetCounter

GetCounter retrieves the value of the leaf Counter from the OpenconfigWithlistval_Model_A_SingleKey_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 Counter is set, it can safely use t.GetCounter() 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.Counter == nil' before retrieving the leaf's value.

func (*OpenconfigWithlistval_Model_A_SingleKey_State) GetCounters

GetCounters retrieves the value of the leaf Counters from the OpenconfigWithlistval_Model_A_SingleKey_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 Counters is set, it can safely use t.GetCounters() 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.Counters == nil' before retrieving the leaf's value.

func (*OpenconfigWithlistval_Model_A_SingleKey_State) GetKey

GetKey retrieves the value of the leaf Key from the OpenconfigWithlistval_Model_A_SingleKey_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 (*OpenconfigWithlistval_Model_A_SingleKey_State) GetValue

GetValue retrieves the value of the leaf Value from the OpenconfigWithlistval_Model_A_SingleKey_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 (*OpenconfigWithlistval_Model_A_SingleKey_State) IsYANGGoStruct

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

func (*OpenconfigWithlistval_Model_A_SingleKey_State) PopulateDefaults

func (t *OpenconfigWithlistval_Model_A_SingleKey_State) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the OpenconfigWithlistval_Model_A_SingleKey_State with default values as specified in the YANG schema, instantiating any nil container fields.

func (*OpenconfigWithlistval_Model_A_SingleKey_State) SetCounter

SetCounter sets the value of the leaf Counter in the OpenconfigWithlistval_Model_A_SingleKey_State struct.

func (*OpenconfigWithlistval_Model_A_SingleKey_State) SetCounters

SetCounters sets the value of the leaf Counters in the OpenconfigWithlistval_Model_A_SingleKey_State struct.

func (*OpenconfigWithlistval_Model_A_SingleKey_State) SetKey

SetKey sets the value of the leaf Key in the OpenconfigWithlistval_Model_A_SingleKey_State struct.

func (*OpenconfigWithlistval_Model_A_SingleKey_State) SetValue

SetValue sets the value of the leaf Value in the OpenconfigWithlistval_Model_A_SingleKey_State struct.

func (*OpenconfigWithlistval_Model_A_SingleKey_State) Validate

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

func (*OpenconfigWithlistval_Model_A_SingleKey_State) ΛBelongingModule

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

func (*OpenconfigWithlistval_Model_A_SingleKey_State) ΛEnumTypeMap

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

func (*OpenconfigWithlistval_Model_A_SingleKey_State) ΛValidate

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

type OpenconfigWithlistval_Model_B

type OpenconfigWithlistval_Model_B struct {
	MultiKey map[OpenconfigWithlistval_Model_B_MultiKey_Key]*OpenconfigWithlistval_Model_B_MultiKey `path:"multi-key" module:"openconfig-withlistval"`
}

OpenconfigWithlistval_Model_B represents the /openconfig-withlistval/model/b YANG schema element.

func (*OpenconfigWithlistval_Model_B) AppendMultiKey

AppendMultiKey appends the supplied OpenconfigWithlistval_Model_B_MultiKey struct to the list MultiKey of OpenconfigWithlistval_Model_B. If the key value(s) specified in the supplied OpenconfigWithlistval_Model_B_MultiKey already exist in the list, an error is returned.

func (*OpenconfigWithlistval_Model_B) DeleteMultiKey

func (t *OpenconfigWithlistval_Model_B) DeleteMultiKey(Key1 uint32, Key2 uint64)

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

func (*OpenconfigWithlistval_Model_B) GetMultiKey

GetMultiKey retrieves the value with the specified key from the MultiKey map field of OpenconfigWithlistval_Model_B. 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 (*OpenconfigWithlistval_Model_B) GetOrCreateMultiKey

GetOrCreateMultiKey retrieves the value with the specified keys from the receiver OpenconfigWithlistval_Model_B. If the entry does not exist, then it is created. It returns the existing or new list member.

func (*OpenconfigWithlistval_Model_B) IsYANGGoStruct

func (*OpenconfigWithlistval_Model_B) IsYANGGoStruct()

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

func (*OpenconfigWithlistval_Model_B) NewMultiKey

NewMultiKey creates a new entry in the MultiKey list of the OpenconfigWithlistval_Model_B struct. The keys of the list are populated from the input arguments.

func (*OpenconfigWithlistval_Model_B) PopulateDefaults

func (t *OpenconfigWithlistval_Model_B) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the OpenconfigWithlistval_Model_B with default values as specified in the YANG schema, instantiating any nil container fields.

func (*OpenconfigWithlistval_Model_B) RenameMultiKey added in v0.10.0

RenameMultiKey renames an entry in the list MultiKey within the OpenconfigWithlistval_Model_B struct. The entry with key oldK is renamed to newK updating the key within the value.

func (*OpenconfigWithlistval_Model_B) Validate

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

func (*OpenconfigWithlistval_Model_B) ΛBelongingModule

func (*OpenconfigWithlistval_Model_B) ΛBelongingModule() string

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

func (*OpenconfigWithlistval_Model_B) ΛEnumTypeMap

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

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

type OpenconfigWithlistval_Model_B_MultiKey

type OpenconfigWithlistval_Model_B_MultiKey struct {
	Config *OpenconfigWithlistval_Model_B_MultiKey_Config `path:"config" module:"openconfig-withlistval"`
	Key1   *uint32                                        `path:"key1" module:"openconfig-withlistval"`
	Key2   *uint64                                        `path:"key2" module:"openconfig-withlistval"`
	State  *OpenconfigWithlistval_Model_B_MultiKey_State  `path:"state" module:"openconfig-withlistval"`
}

OpenconfigWithlistval_Model_B_MultiKey represents the /openconfig-withlistval/model/b/multi-key YANG schema element.

func (*OpenconfigWithlistval_Model_B_MultiKey) GetConfig

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

func (*OpenconfigWithlistval_Model_B_MultiKey) GetKey1

GetKey1 retrieves the value of the leaf Key1 from the OpenconfigWithlistval_Model_B_MultiKey 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 (*OpenconfigWithlistval_Model_B_MultiKey) GetKey2

GetKey2 retrieves the value of the leaf Key2 from the OpenconfigWithlistval_Model_B_MultiKey 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 (*OpenconfigWithlistval_Model_B_MultiKey) GetOrCreateConfig

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

func (*OpenconfigWithlistval_Model_B_MultiKey) GetOrCreateState

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

func (*OpenconfigWithlistval_Model_B_MultiKey) GetState

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

func (*OpenconfigWithlistval_Model_B_MultiKey) IsYANGGoStruct

func (*OpenconfigWithlistval_Model_B_MultiKey) IsYANGGoStruct()

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

func (*OpenconfigWithlistval_Model_B_MultiKey) PopulateDefaults

func (t *OpenconfigWithlistval_Model_B_MultiKey) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the OpenconfigWithlistval_Model_B_MultiKey with default values as specified in the YANG schema, instantiating any nil container fields.

func (*OpenconfigWithlistval_Model_B_MultiKey) SetKey1

SetKey1 sets the value of the leaf Key1 in the OpenconfigWithlistval_Model_B_MultiKey struct.

func (*OpenconfigWithlistval_Model_B_MultiKey) SetKey2

SetKey2 sets the value of the leaf Key2 in the OpenconfigWithlistval_Model_B_MultiKey struct.

func (*OpenconfigWithlistval_Model_B_MultiKey) Validate

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

func (*OpenconfigWithlistval_Model_B_MultiKey) ΛBelongingModule

func (*OpenconfigWithlistval_Model_B_MultiKey) ΛBelongingModule() string

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

func (*OpenconfigWithlistval_Model_B_MultiKey) ΛEnumTypeMap

func (t *OpenconfigWithlistval_Model_B_MultiKey) Λ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 (*OpenconfigWithlistval_Model_B_MultiKey) ΛListKeyMap

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

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

func (*OpenconfigWithlistval_Model_B_MultiKey) ΛValidate

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

type OpenconfigWithlistval_Model_B_MultiKey_Config

type OpenconfigWithlistval_Model_B_MultiKey_Config struct {
	Key1 *uint32 `path:"key1" module:"openconfig-withlistval"`
	Key2 *uint64 `path:"key2" module:"openconfig-withlistval"`
}

OpenconfigWithlistval_Model_B_MultiKey_Config represents the /openconfig-withlistval/model/b/multi-key/config YANG schema element.

func (*OpenconfigWithlistval_Model_B_MultiKey_Config) GetKey1

GetKey1 retrieves the value of the leaf Key1 from the OpenconfigWithlistval_Model_B_MultiKey_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 (*OpenconfigWithlistval_Model_B_MultiKey_Config) GetKey2

GetKey2 retrieves the value of the leaf Key2 from the OpenconfigWithlistval_Model_B_MultiKey_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 (*OpenconfigWithlistval_Model_B_MultiKey_Config) IsYANGGoStruct

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

func (*OpenconfigWithlistval_Model_B_MultiKey_Config) PopulateDefaults

func (t *OpenconfigWithlistval_Model_B_MultiKey_Config) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the OpenconfigWithlistval_Model_B_MultiKey_Config with default values as specified in the YANG schema, instantiating any nil container fields.

func (*OpenconfigWithlistval_Model_B_MultiKey_Config) SetKey1

SetKey1 sets the value of the leaf Key1 in the OpenconfigWithlistval_Model_B_MultiKey_Config struct.

func (*OpenconfigWithlistval_Model_B_MultiKey_Config) SetKey2

SetKey2 sets the value of the leaf Key2 in the OpenconfigWithlistval_Model_B_MultiKey_Config struct.

func (*OpenconfigWithlistval_Model_B_MultiKey_Config) Validate

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

func (*OpenconfigWithlistval_Model_B_MultiKey_Config) ΛBelongingModule

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

func (*OpenconfigWithlistval_Model_B_MultiKey_Config) ΛEnumTypeMap

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

func (*OpenconfigWithlistval_Model_B_MultiKey_Config) ΛValidate

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

type OpenconfigWithlistval_Model_B_MultiKey_Key

type OpenconfigWithlistval_Model_B_MultiKey_Key struct {
	Key1 uint32 `path:"key1"`
	Key2 uint64 `path:"key2"`
}

OpenconfigWithlistval_Model_B_MultiKey_Key represents the key for list MultiKey of element /openconfig-withlistval/model/b.

func (OpenconfigWithlistval_Model_B_MultiKey_Key) IsYANGGoKeyStruct

func (OpenconfigWithlistval_Model_B_MultiKey_Key) IsYANGGoKeyStruct()

IsYANGGoKeyStruct ensures that OpenconfigWithlistval_Model_B_MultiKey_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 (OpenconfigWithlistval_Model_B_MultiKey_Key) ΛListKeyMap

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

ΛListKeyMap returns the values of the OpenconfigWithlistval_Model_B_MultiKey_Key key struct.

type OpenconfigWithlistval_Model_B_MultiKey_State

type OpenconfigWithlistval_Model_B_MultiKey_State struct {
	Key1 *uint32 `path:"key1" module:"openconfig-withlistval"`
	Key2 *uint64 `path:"key2" module:"openconfig-withlistval"`
}

OpenconfigWithlistval_Model_B_MultiKey_State represents the /openconfig-withlistval/model/b/multi-key/state YANG schema element.

func (*OpenconfigWithlistval_Model_B_MultiKey_State) GetKey1

GetKey1 retrieves the value of the leaf Key1 from the OpenconfigWithlistval_Model_B_MultiKey_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 (*OpenconfigWithlistval_Model_B_MultiKey_State) GetKey2

GetKey2 retrieves the value of the leaf Key2 from the OpenconfigWithlistval_Model_B_MultiKey_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 (*OpenconfigWithlistval_Model_B_MultiKey_State) IsYANGGoStruct

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

func (*OpenconfigWithlistval_Model_B_MultiKey_State) PopulateDefaults

func (t *OpenconfigWithlistval_Model_B_MultiKey_State) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the OpenconfigWithlistval_Model_B_MultiKey_State with default values as specified in the YANG schema, instantiating any nil container fields.

func (*OpenconfigWithlistval_Model_B_MultiKey_State) SetKey1

SetKey1 sets the value of the leaf Key1 in the OpenconfigWithlistval_Model_B_MultiKey_State struct.

func (*OpenconfigWithlistval_Model_B_MultiKey_State) SetKey2

SetKey2 sets the value of the leaf Key2 in the OpenconfigWithlistval_Model_B_MultiKey_State struct.

func (*OpenconfigWithlistval_Model_B_MultiKey_State) Validate

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

func (*OpenconfigWithlistval_Model_B_MultiKey_State) ΛBelongingModule

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

func (*OpenconfigWithlistval_Model_B_MultiKey_State) ΛEnumTypeMap

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

func (*OpenconfigWithlistval_Model_B_MultiKey_State) ΛValidate

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

type OpenconfigWithlistval_Model_C

type OpenconfigWithlistval_Model_C struct {
	NoKey []*OpenconfigWithlistval_Model_C_NoKey `path:"no-key" module:"openconfig-withlistval"`
}

OpenconfigWithlistval_Model_C represents the /openconfig-withlistval/model/c YANG schema element.

func (*OpenconfigWithlistval_Model_C) IsYANGGoStruct

func (*OpenconfigWithlistval_Model_C) IsYANGGoStruct()

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

func (*OpenconfigWithlistval_Model_C) PopulateDefaults

func (t *OpenconfigWithlistval_Model_C) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the OpenconfigWithlistval_Model_C with default values as specified in the YANG schema, instantiating any nil container fields.

func (*OpenconfigWithlistval_Model_C) Validate

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

func (*OpenconfigWithlistval_Model_C) ΛBelongingModule

func (*OpenconfigWithlistval_Model_C) ΛBelongingModule() string

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

func (*OpenconfigWithlistval_Model_C) ΛEnumTypeMap

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

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

type OpenconfigWithlistval_Model_C_NoKey

type OpenconfigWithlistval_Model_C_NoKey struct {
	Foo *OpenconfigWithlistval_Model_C_NoKey_Foo `path:"foo" module:"openconfig-withlistval"`
}

OpenconfigWithlistval_Model_C_NoKey represents the /openconfig-withlistval/model/c/no-key YANG schema element.

func (*OpenconfigWithlistval_Model_C_NoKey) GetFoo

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

func (*OpenconfigWithlistval_Model_C_NoKey) GetOrCreateFoo

GetOrCreateFoo retrieves the value of the Foo field or returns the existing field if it already exists.

func (*OpenconfigWithlistval_Model_C_NoKey) IsYANGGoStruct

func (*OpenconfigWithlistval_Model_C_NoKey) IsYANGGoStruct()

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

func (*OpenconfigWithlistval_Model_C_NoKey) PopulateDefaults

func (t *OpenconfigWithlistval_Model_C_NoKey) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the OpenconfigWithlistval_Model_C_NoKey with default values as specified in the YANG schema, instantiating any nil container fields.

func (*OpenconfigWithlistval_Model_C_NoKey) Validate

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

func (*OpenconfigWithlistval_Model_C_NoKey) ΛBelongingModule

func (*OpenconfigWithlistval_Model_C_NoKey) ΛBelongingModule() string

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

func (*OpenconfigWithlistval_Model_C_NoKey) ΛEnumTypeMap

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

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

type OpenconfigWithlistval_Model_C_NoKey_Foo

type OpenconfigWithlistval_Model_C_NoKey_Foo struct {
	State *OpenconfigWithlistval_Model_C_NoKey_Foo_State `path:"state" module:"openconfig-withlistval"`
}

OpenconfigWithlistval_Model_C_NoKey_Foo represents the /openconfig-withlistval/model/c/no-key/foo YANG schema element.

func (*OpenconfigWithlistval_Model_C_NoKey_Foo) GetOrCreateState

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

func (*OpenconfigWithlistval_Model_C_NoKey_Foo) GetState

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

func (*OpenconfigWithlistval_Model_C_NoKey_Foo) IsYANGGoStruct

func (*OpenconfigWithlistval_Model_C_NoKey_Foo) IsYANGGoStruct()

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

func (*OpenconfigWithlistval_Model_C_NoKey_Foo) PopulateDefaults

func (t *OpenconfigWithlistval_Model_C_NoKey_Foo) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the OpenconfigWithlistval_Model_C_NoKey_Foo with default values as specified in the YANG schema, instantiating any nil container fields.

func (*OpenconfigWithlistval_Model_C_NoKey_Foo) Validate

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

func (*OpenconfigWithlistval_Model_C_NoKey_Foo) ΛBelongingModule

func (*OpenconfigWithlistval_Model_C_NoKey_Foo) ΛBelongingModule() string

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

func (*OpenconfigWithlistval_Model_C_NoKey_Foo) ΛEnumTypeMap

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

func (*OpenconfigWithlistval_Model_C_NoKey_Foo) ΛValidate

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

type OpenconfigWithlistval_Model_C_NoKey_Foo_State

type OpenconfigWithlistval_Model_C_NoKey_Foo_State struct {
	Key   *string `path:"key" module:"openconfig-withlistval"`
	Value *int64  `path:"value" module:"openconfig-withlistval"`
}

OpenconfigWithlistval_Model_C_NoKey_Foo_State represents the /openconfig-withlistval/model/c/no-key/foo/state YANG schema element.

func (*OpenconfigWithlistval_Model_C_NoKey_Foo_State) GetKey

GetKey retrieves the value of the leaf Key from the OpenconfigWithlistval_Model_C_NoKey_Foo_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 (*OpenconfigWithlistval_Model_C_NoKey_Foo_State) GetValue

GetValue retrieves the value of the leaf Value from the OpenconfigWithlistval_Model_C_NoKey_Foo_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 (*OpenconfigWithlistval_Model_C_NoKey_Foo_State) IsYANGGoStruct

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

func (*OpenconfigWithlistval_Model_C_NoKey_Foo_State) PopulateDefaults

func (t *OpenconfigWithlistval_Model_C_NoKey_Foo_State) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the OpenconfigWithlistval_Model_C_NoKey_Foo_State with default values as specified in the YANG schema, instantiating any nil container fields.

func (*OpenconfigWithlistval_Model_C_NoKey_Foo_State) SetKey

SetKey sets the value of the leaf Key in the OpenconfigWithlistval_Model_C_NoKey_Foo_State struct.

func (*OpenconfigWithlistval_Model_C_NoKey_Foo_State) SetValue

SetValue sets the value of the leaf Value in the OpenconfigWithlistval_Model_C_NoKey_Foo_State struct.

func (*OpenconfigWithlistval_Model_C_NoKey_Foo_State) Validate

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

func (*OpenconfigWithlistval_Model_C_NoKey_Foo_State) ΛBelongingModule

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

func (*OpenconfigWithlistval_Model_C_NoKey_Foo_State) ΛEnumTypeMap

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

func (*OpenconfigWithlistval_Model_C_NoKey_Foo_State) ΛValidate

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 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.

Directories

Path Synopsis
a
Package a is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
Package a is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
Package modelb is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
Package modelb is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
Package nested is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
Package nested is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
Package simple is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
Package simple is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
Package uexampleocpath is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
Package uexampleocpath is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
Package withlistval is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
Package withlistval is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.

Jump to

Keyboard shortcuts

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