Documentation ¶
Overview ¶
Package gostruct 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 /home/neoul/go/src/github.com/openconfig/ygot/genutil/names.go using the following YANG input files:
- ../yang/example.yang
- ../yang/sample.yang
Imported modules were sourced from:
- yang/...
Index ¶
- Variables
- func Schema() (*ytypes.Schema, error)
- func Unmarshal(data []byte, destStruct ygot.GoStruct, opts ...ytypes.UnmarshalOpt) error
- func UnzipSchema() (map[string]*yang.Entry, error)
- type Binary
- type Device
- func (*Device) IsYANGGoStruct()
- func (t *Device) NewCountry(Name string) (*Network_Country, error)
- func (t *Device) NewMultikeylist(Str string, Integer uint32) (*Network_Multikeylist, error)
- func (t *Device) NewOperator(Asn uint32) (*Network_Operator, error)
- func (t *Device) Validate(opts ...ygot.ValidationOption) error
- func (t *Device) ΛEnumTypeMap() map[string][]reflect.Type
- type Device_Multikeylist_Key
- type E_Network_Company_Enumval
- type E_Sample_Enumtypedef_Enum
- type E_Sample_Sample_ContainerVal_EnumVal
- type Network_Company
- type Network_Country
- type Network_Multikeylist
- type Network_Operator
- type Sample_Sample
- func (*Sample_Sample) IsYANGGoStruct()
- func (t *Sample_Sample) NewMultipleKeyList(Str string, Integer uint32) (*Sample_Sample_MultipleKeyList, error)
- func (t *Sample_Sample) NewSingleKeyList(ListKey string) (*Sample_Sample_SingleKeyList, error)
- func (t *Sample_Sample) Validate(opts ...ygot.ValidationOption) error
- func (t *Sample_Sample) ΛEnumTypeMap() map[string][]reflect.Type
- type Sample_Sample_ContainerVal
- func (*Sample_Sample_ContainerVal) IsYANGGoStruct()
- func (t *Sample_Sample_ContainerVal) To_Sample_Sample_ContainerVal_UnionValue_Union(i interface{}) (Sample_Sample_ContainerVal_UnionValue_Union, error)
- func (t *Sample_Sample_ContainerVal) Validate(opts ...ygot.ValidationOption) error
- func (t *Sample_Sample_ContainerVal) ΛEnumTypeMap() map[string][]reflect.Type
- type Sample_Sample_ContainerVal_UnionValue_Union
- type Sample_Sample_MultipleKeyList
- func (*Sample_Sample_MultipleKeyList) IsYANGGoStruct()
- func (t *Sample_Sample_MultipleKeyList) Validate(opts ...ygot.ValidationOption) error
- func (t *Sample_Sample_MultipleKeyList) ΛEnumTypeMap() map[string][]reflect.Type
- func (t *Sample_Sample_MultipleKeyList) ΛListKeyMap() (map[string]interface{}, error)
- type Sample_Sample_MultipleKeyList_Key
- type Sample_Sample_SingleKeyList
- type UnionBool
- type UnionFloat64
- type UnionInt16
- type UnionInt32
- type UnionInt64
- type UnionInt8
- type UnionString
- type UnionUint16
- type UnionUint32
- type UnionUint64
- type UnionUint8
- type UnionUnsupported
- type YANGEmpty
Constants ¶
This section is empty.
Variables ¶
var (
SchemaTree map[string]*yang.Entry
)
var ΓModelData = []*gpb.ModelData{
{
Name: "network",
Organization: "Actus Networks",
},
{
Name: "sample",
Organization: "sample model",
},
}
ΓModelData contains the catalogue information corresponding to the modules for which Go code was generated.
var ΛEnum = map[string]map[int64]ygot.EnumDefinition{
"E_Network_Company_Enumval": {
1: {Name: "enum1"},
2: {Name: "enum2"},
31: {Name: "enum3"},
},
"E_Sample_Enumtypedef_Enum": {
1: {Name: "e1"},
2: {Name: "e2"},
101: {Name: "e3"},
},
"E_Sample_Sample_ContainerVal_EnumVal": {
1: {Name: "enum1"},
2: {Name: "enum2"},
31: {Name: "enum3"},
},
}
Λ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.
var ΛEnumTypes = map[string][]reflect.Type{ "/company/enumval": []reflect.Type{ reflect.TypeOf((E_Network_Company_Enumval)(0)), }, "/sample/container-val/enum-val": []reflect.Type{ reflect.TypeOf((E_Sample_Sample_ContainerVal_EnumVal)(0)), }, "/sample/container-val/union-value": []reflect.Type{ reflect.TypeOf((E_Sample_Enumtypedef_Enum)(0)), }, }
ΛEnumTypes is a map, keyed by a YANG schema path, of the enumerated types that correspond with the leaf. The type is represented as a reflect.Type. The naming of the map ensures that there are no clashes with valid YANG identifiers.
Functions ¶
func Unmarshal ¶
Unmarshal unmarshals data, which must be RFC7951 JSON format, into destStruct, which must be non-nil and the correct GoStruct type. It returns an error if the destStruct is not found in the schema or the data cannot be unmarshaled. The supplied options (opts) are used to control the behaviour of the unmarshal function - for example, determining whether errors are thrown for unknown fields in the input JSON.
Types ¶
type Binary ¶
type Binary []byte
Binary is a type that is used for fields that have a YANG type of binary. It is used such that binary fields can be distinguished from leaf-lists of uint8s (which are mapped to []uint8, equivalent to []byte in reflection).
type Device ¶
type Device struct { Company *Network_Company `path:"company"` Country map[string]*Network_Country `path:"country"` Married YANGEmpty `path:"married"` Multikeylist map[Device_Multikeylist_Key]*Network_Multikeylist `path:"multikeylist"` Operator map[uint32]*Network_Operator `path:"operator"` Person *string `path:"person"` Sample *Sample_Sample `path:"sample"` }
Device represents the /device YANG schema element.
func (*Device) IsYANGGoStruct ¶
func (*Device) IsYANGGoStruct()
IsYANGGoStruct ensures that Device implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.
func (*Device) NewCountry ¶
func (t *Device) NewCountry(Name string) (*Network_Country, error)
NewCountry creates a new entry in the Country list of the Device struct. The keys of the list are populated from the input arguments.
func (*Device) NewMultikeylist ¶
func (t *Device) NewMultikeylist(Str string, Integer uint32) (*Network_Multikeylist, error)
NewMultikeylist creates a new entry in the Multikeylist list of the Device struct. The keys of the list are populated from the input arguments.
func (*Device) NewOperator ¶
func (t *Device) NewOperator(Asn uint32) (*Network_Operator, error)
NewOperator creates a new entry in the Operator list of the Device struct. The keys of the list are populated from the input arguments.
type Device_Multikeylist_Key ¶
Device_Multikeylist_Key represents the key for list Multikeylist of element /device.
type E_Network_Company_Enumval ¶
type E_Network_Company_Enumval int64
E_Network_Company_Enumval is a derived int64 type which is used to represent the enumerated node Network_Company_Enumval. An additional value named Network_Company_Enumval_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 ( // Network_Company_Enumval_UNSET corresponds to the value UNSET of Network_Company_Enumval Network_Company_Enumval_UNSET E_Network_Company_Enumval = 0 // Network_Company_Enumval_enum1 corresponds to the value enum1 of Network_Company_Enumval Network_Company_Enumval_enum1 E_Network_Company_Enumval = 1 // Network_Company_Enumval_enum2 corresponds to the value enum2 of Network_Company_Enumval Network_Company_Enumval_enum2 E_Network_Company_Enumval = 2 // Network_Company_Enumval_enum3 corresponds to the value enum3 of Network_Company_Enumval Network_Company_Enumval_enum3 E_Network_Company_Enumval = 31 )
func (E_Network_Company_Enumval) IsYANGGoEnum ¶
func (E_Network_Company_Enumval) IsYANGGoEnum()
IsYANGGoEnum ensures that Network_Company_Enumval implements the yang.GoEnum interface. This ensures that Network_Company_Enumval can be identified as a mapped type for a YANG enumeration.
func (E_Network_Company_Enumval) String ¶
func (e E_Network_Company_Enumval) String() string
String returns a logging-friendly string for E_Network_Company_Enumval.
func (E_Network_Company_Enumval) ΛMap ¶
func (E_Network_Company_Enumval) ΛMap() map[string]map[int64]ygot.EnumDefinition
ΛMap returns the value lookup map associated with Network_Company_Enumval.
type E_Sample_Enumtypedef_Enum ¶
type E_Sample_Enumtypedef_Enum int64
E_Sample_Enumtypedef_Enum is a derived int64 type which is used to represent the enumerated node Sample_Enumtypedef_Enum. An additional value named Sample_Enumtypedef_Enum_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 ( // Sample_Enumtypedef_Enum_UNSET corresponds to the value UNSET of Sample_Enumtypedef_Enum Sample_Enumtypedef_Enum_UNSET E_Sample_Enumtypedef_Enum = 0 // Sample_Enumtypedef_Enum_e1 corresponds to the value e1 of Sample_Enumtypedef_Enum Sample_Enumtypedef_Enum_e1 E_Sample_Enumtypedef_Enum = 1 // Sample_Enumtypedef_Enum_e2 corresponds to the value e2 of Sample_Enumtypedef_Enum Sample_Enumtypedef_Enum_e2 E_Sample_Enumtypedef_Enum = 2 // Sample_Enumtypedef_Enum_e3 corresponds to the value e3 of Sample_Enumtypedef_Enum Sample_Enumtypedef_Enum_e3 E_Sample_Enumtypedef_Enum = 101 )
func (E_Sample_Enumtypedef_Enum) Documentation_for_Sample_Sample_ContainerVal_UnionValue_Union ¶
func (E_Sample_Enumtypedef_Enum) Documentation_for_Sample_Sample_ContainerVal_UnionValue_Union()
Documentation_for_Sample_Sample_ContainerVal_UnionValue_Union ensures that E_Sample_Enumtypedef_Enum implements the Sample_Sample_ContainerVal_UnionValue_Union interface.
func (E_Sample_Enumtypedef_Enum) IsYANGGoEnum ¶
func (E_Sample_Enumtypedef_Enum) IsYANGGoEnum()
IsYANGGoEnum ensures that Sample_Enumtypedef_Enum implements the yang.GoEnum interface. This ensures that Sample_Enumtypedef_Enum can be identified as a mapped type for a YANG enumeration.
func (E_Sample_Enumtypedef_Enum) String ¶
func (e E_Sample_Enumtypedef_Enum) String() string
String returns a logging-friendly string for E_Sample_Enumtypedef_Enum.
func (E_Sample_Enumtypedef_Enum) ΛMap ¶
func (E_Sample_Enumtypedef_Enum) ΛMap() map[string]map[int64]ygot.EnumDefinition
ΛMap returns the value lookup map associated with Sample_Enumtypedef_Enum.
type E_Sample_Sample_ContainerVal_EnumVal ¶
type E_Sample_Sample_ContainerVal_EnumVal int64
E_Sample_Sample_ContainerVal_EnumVal is a derived int64 type which is used to represent the enumerated node Sample_Sample_ContainerVal_EnumVal. An additional value named Sample_Sample_ContainerVal_EnumVal_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 ( // Sample_Sample_ContainerVal_EnumVal_UNSET corresponds to the value UNSET of Sample_Sample_ContainerVal_EnumVal Sample_Sample_ContainerVal_EnumVal_UNSET E_Sample_Sample_ContainerVal_EnumVal = 0 // Sample_Sample_ContainerVal_EnumVal_enum1 corresponds to the value enum1 of Sample_Sample_ContainerVal_EnumVal Sample_Sample_ContainerVal_EnumVal_enum1 E_Sample_Sample_ContainerVal_EnumVal = 1 // Sample_Sample_ContainerVal_EnumVal_enum2 corresponds to the value enum2 of Sample_Sample_ContainerVal_EnumVal Sample_Sample_ContainerVal_EnumVal_enum2 E_Sample_Sample_ContainerVal_EnumVal = 2 // Sample_Sample_ContainerVal_EnumVal_enum3 corresponds to the value enum3 of Sample_Sample_ContainerVal_EnumVal Sample_Sample_ContainerVal_EnumVal_enum3 E_Sample_Sample_ContainerVal_EnumVal = 31 )
func (E_Sample_Sample_ContainerVal_EnumVal) IsYANGGoEnum ¶
func (E_Sample_Sample_ContainerVal_EnumVal) IsYANGGoEnum()
IsYANGGoEnum ensures that Sample_Sample_ContainerVal_EnumVal implements the yang.GoEnum interface. This ensures that Sample_Sample_ContainerVal_EnumVal can be identified as a mapped type for a YANG enumeration.
func (E_Sample_Sample_ContainerVal_EnumVal) String ¶
func (e E_Sample_Sample_ContainerVal_EnumVal) String() string
String returns a logging-friendly string for E_Sample_Sample_ContainerVal_EnumVal.
func (E_Sample_Sample_ContainerVal_EnumVal) ΛMap ¶
func (E_Sample_Sample_ContainerVal_EnumVal) ΛMap() map[string]map[int64]ygot.EnumDefinition
ΛMap returns the value lookup map associated with Sample_Sample_ContainerVal_EnumVal.
type Network_Company ¶
type Network_Company struct { Address []string `path:"address"` Enumval E_Network_Company_Enumval `path:"enumval"` Name *string `path:"name"` }
Network_Company represents the /network/company YANG schema element.
func (*Network_Company) IsYANGGoStruct ¶
func (*Network_Company) IsYANGGoStruct()
IsYANGGoStruct ensures that Network_Company implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.
func (*Network_Company) Validate ¶
func (t *Network_Company) Validate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
func (*Network_Company) ΛEnumTypeMap ¶
func (t *Network_Company) Λ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.
type Network_Country ¶
type Network_Country struct { CountryCode *string `path:"country-code"` DialCode *uint32 `path:"dial-code"` Name *string `path:"name"` }
Network_Country represents the /network/country YANG schema element.
func (*Network_Country) IsYANGGoStruct ¶
func (*Network_Country) IsYANGGoStruct()
IsYANGGoStruct ensures that Network_Country implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.
func (*Network_Country) Validate ¶
func (t *Network_Country) Validate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
func (*Network_Country) ΛEnumTypeMap ¶
func (t *Network_Country) Λ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 (*Network_Country) ΛListKeyMap ¶
func (t *Network_Country) ΛListKeyMap() (map[string]interface{}, error)
ΛListKeyMap returns the keys of the Network_Country struct, which is a YANG list entry.
type Network_Multikeylist ¶
type Network_Multikeylist struct { Integer *uint32 `path:"integer"` Ok *bool `path:"ok"` Str *string `path:"str"` }
Network_Multikeylist represents the /network/multikeylist YANG schema element.
func (*Network_Multikeylist) IsYANGGoStruct ¶
func (*Network_Multikeylist) IsYANGGoStruct()
IsYANGGoStruct ensures that Network_Multikeylist implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.
func (*Network_Multikeylist) Validate ¶
func (t *Network_Multikeylist) Validate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
func (*Network_Multikeylist) ΛEnumTypeMap ¶
func (t *Network_Multikeylist) Λ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 (*Network_Multikeylist) ΛListKeyMap ¶
func (t *Network_Multikeylist) ΛListKeyMap() (map[string]interface{}, error)
ΛListKeyMap returns the keys of the Network_Multikeylist struct, which is a YANG list entry.
type Network_Operator ¶
Network_Operator represents the /network/operator YANG schema element.
func (*Network_Operator) IsYANGGoStruct ¶
func (*Network_Operator) IsYANGGoStruct()
IsYANGGoStruct ensures that Network_Operator implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.
func (*Network_Operator) Validate ¶
func (t *Network_Operator) Validate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
func (*Network_Operator) ΛEnumTypeMap ¶
func (t *Network_Operator) Λ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 (*Network_Operator) ΛListKeyMap ¶
func (t *Network_Operator) ΛListKeyMap() (map[string]interface{}, error)
ΛListKeyMap returns the keys of the Network_Operator struct, which is a YANG list entry.
type Sample_Sample ¶
type Sample_Sample struct { ContainerVal *Sample_Sample_ContainerVal `path:"container-val"` EmptyVal YANGEmpty `path:"empty-val"` MultipleKeyList map[Sample_Sample_MultipleKeyList_Key]*Sample_Sample_MultipleKeyList `path:"multiple-key-list"` SingleKeyList map[string]*Sample_Sample_SingleKeyList `path:"single-key-list"` StrVal *string `path:"str-val"` }
Sample_Sample represents the /sample/sample YANG schema element.
func (*Sample_Sample) IsYANGGoStruct ¶
func (*Sample_Sample) IsYANGGoStruct()
IsYANGGoStruct ensures that Sample_Sample implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.
func (*Sample_Sample) NewMultipleKeyList ¶
func (t *Sample_Sample) NewMultipleKeyList(Str string, Integer uint32) (*Sample_Sample_MultipleKeyList, error)
NewMultipleKeyList creates a new entry in the MultipleKeyList list of the Sample_Sample struct. The keys of the list are populated from the input arguments.
func (*Sample_Sample) NewSingleKeyList ¶
func (t *Sample_Sample) NewSingleKeyList(ListKey string) (*Sample_Sample_SingleKeyList, error)
NewSingleKeyList creates a new entry in the SingleKeyList list of the Sample_Sample struct. The keys of the list are populated from the input arguments.
func (*Sample_Sample) Validate ¶
func (t *Sample_Sample) Validate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
func (*Sample_Sample) ΛEnumTypeMap ¶
func (t *Sample_Sample) Λ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.
type Sample_Sample_ContainerVal ¶
type Sample_Sample_ContainerVal struct { EnumVal E_Sample_Sample_ContainerVal_EnumVal `path:"enum-val"` LeafListV2 []int32 `path:"leaf-list-v2"` LeafListVal []string `path:"leaf-list-val"` UnionValue Sample_Sample_ContainerVal_UnionValue_Union `path:"union-value"` }
Sample_Sample_ContainerVal represents the /sample/sample/container-val YANG schema element.
func (*Sample_Sample_ContainerVal) IsYANGGoStruct ¶
func (*Sample_Sample_ContainerVal) IsYANGGoStruct()
IsYANGGoStruct ensures that Sample_Sample_ContainerVal implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.
func (*Sample_Sample_ContainerVal) To_Sample_Sample_ContainerVal_UnionValue_Union ¶
func (t *Sample_Sample_ContainerVal) To_Sample_Sample_ContainerVal_UnionValue_Union(i interface{}) (Sample_Sample_ContainerVal_UnionValue_Union, error)
To_Sample_Sample_ContainerVal_UnionValue_Union takes an input interface{} and attempts to convert it to a struct which implements the Sample_Sample_ContainerVal_UnionValue_Union union. It returns an error if the interface{} supplied cannot be converted to a type within the union.
func (*Sample_Sample_ContainerVal) Validate ¶
func (t *Sample_Sample_ContainerVal) Validate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
func (*Sample_Sample_ContainerVal) ΛEnumTypeMap ¶
func (t *Sample_Sample_ContainerVal) Λ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.
type Sample_Sample_ContainerVal_UnionValue_Union ¶
type Sample_Sample_ContainerVal_UnionValue_Union interface {
// Union type can be one of [E_Sample_Enumtypedef_Enum, UnionString, UnionUint16]
Documentation_for_Sample_Sample_ContainerVal_UnionValue_Union()
}
Sample_Sample_ContainerVal_UnionValue_Union is an interface that is implemented by valid types for the union for the leaf /sample/sample/container-val/union-value within the YANG schema. Union type can be one of [E_Sample_Enumtypedef_Enum, UnionString, UnionUint16].
type Sample_Sample_MultipleKeyList ¶
type Sample_Sample_MultipleKeyList struct { Integer *uint32 `path:"integer"` Ok *bool `path:"ok"` Str *string `path:"str"` }
Sample_Sample_MultipleKeyList represents the /sample/sample/multiple-key-list YANG schema element.
func (*Sample_Sample_MultipleKeyList) IsYANGGoStruct ¶
func (*Sample_Sample_MultipleKeyList) IsYANGGoStruct()
IsYANGGoStruct ensures that Sample_Sample_MultipleKeyList implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.
func (*Sample_Sample_MultipleKeyList) Validate ¶
func (t *Sample_Sample_MultipleKeyList) Validate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
func (*Sample_Sample_MultipleKeyList) ΛEnumTypeMap ¶
func (t *Sample_Sample_MultipleKeyList) Λ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 (*Sample_Sample_MultipleKeyList) ΛListKeyMap ¶
func (t *Sample_Sample_MultipleKeyList) ΛListKeyMap() (map[string]interface{}, error)
ΛListKeyMap returns the keys of the Sample_Sample_MultipleKeyList struct, which is a YANG list entry.
type Sample_Sample_MultipleKeyList_Key ¶
type Sample_Sample_MultipleKeyList_Key struct { Str string `path:"str"` Integer uint32 `path:"integer"` }
Sample_Sample_MultipleKeyList_Key represents the key for list MultipleKeyList of element /sample/sample.
type Sample_Sample_SingleKeyList ¶
type Sample_Sample_SingleKeyList struct { CountryCode *string `path:"country-code"` DialCode *uint32 `path:"dial-code"` ListKey *string `path:"list-key"` }
Sample_Sample_SingleKeyList represents the /sample/sample/single-key-list YANG schema element.
func (*Sample_Sample_SingleKeyList) IsYANGGoStruct ¶
func (*Sample_Sample_SingleKeyList) IsYANGGoStruct()
IsYANGGoStruct ensures that Sample_Sample_SingleKeyList implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.
func (*Sample_Sample_SingleKeyList) Validate ¶
func (t *Sample_Sample_SingleKeyList) Validate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
func (*Sample_Sample_SingleKeyList) ΛEnumTypeMap ¶
func (t *Sample_Sample_SingleKeyList) Λ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 (*Sample_Sample_SingleKeyList) ΛListKeyMap ¶
func (t *Sample_Sample_SingleKeyList) ΛListKeyMap() (map[string]interface{}, error)
ΛListKeyMap returns the keys of the Sample_Sample_SingleKeyList struct, which is a YANG list entry.
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.
func (UnionString) Documentation_for_Sample_Sample_ContainerVal_UnionValue_Union ¶
func (UnionString) Documentation_for_Sample_Sample_ContainerVal_UnionValue_Union()
Documentation_for_Sample_Sample_ContainerVal_UnionValue_Union ensures that UnionString implements the Sample_Sample_ContainerVal_UnionValue_Union interface.
type UnionUint16 ¶
type UnionUint16 uint16
UnionUint16 is a uint16 type assignable to unions of which it is a subtype.
func (UnionUint16) Documentation_for_Sample_Sample_ContainerVal_UnionValue_Union ¶
func (UnionUint16) Documentation_for_Sample_Sample_ContainerVal_UnionValue_Union()
Documentation_for_Sample_Sample_ContainerVal_UnionValue_Union ensures that UnionUint16 implements the Sample_Sample_ContainerVal_UnionValue_Union interface.
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.