aether_1_0_0

package
v0.0.0-...-793c021 Latest Latest
Warning

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

Go to latest
Published: May 17, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Code generated by YGOT. DO NOT EDIT.

Package aether_1_0_0 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/scondon/go/pkg/mod/github.com/openconfig/ygot@v0.10.5/genutil/names.go using the following YANG input files:

  • aether-subscriber@2020-08-18.yang
  • apn-profile@2020-08-18.yang
  • up-profile@2020-08-18.yang
  • qos-profile@2020-08-18.yang
  • access-profile@2020-08-18.yang

Imported modules were sourced from:

  • ../../../sdran-helm-charts/config-models/aether-1.x/files/yang/...

Index

Constants

This section is empty.

Variables

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

Λ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 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 AccessProfile_AccessProfile

type AccessProfile_AccessProfile struct {
	AccessProfile map[string]*AccessProfile_AccessProfile_AccessProfile `path:"access-profile" module:"access-profile"`
}

AccessProfile_AccessProfile represents the /access-profile/access-profile YANG schema element.

func (*AccessProfile_AccessProfile) IsYANGGoStruct

func (*AccessProfile_AccessProfile) IsYANGGoStruct()

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

func (*AccessProfile_AccessProfile) NewAccessProfile

NewAccessProfile creates a new entry in the AccessProfile list of the AccessProfile_AccessProfile struct. The keys of the list are populated from the input arguments.

func (*AccessProfile_AccessProfile) Validate

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

func (*AccessProfile_AccessProfile) ΛEnumTypeMap

func (t *AccessProfile_AccessProfile) Λ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 AccessProfile_AccessProfile_AccessProfile

type AccessProfile_AccessProfile_AccessProfile struct {
	Description *string `path:"description" module:"access-profile"`
	Filter      *string `path:"filter" module:"access-profile"`
	Id          *string `path:"id" module:"access-profile"`
	Type        *string `path:"type" module:"access-profile"`
}

AccessProfile_AccessProfile_AccessProfile represents the /access-profile/access-profile/access-profile YANG schema element.

func (*AccessProfile_AccessProfile_AccessProfile) IsYANGGoStruct

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

func (*AccessProfile_AccessProfile_AccessProfile) Validate

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

func (*AccessProfile_AccessProfile_AccessProfile) ΛEnumTypeMap

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

func (*AccessProfile_AccessProfile_AccessProfile) ΛListKeyMap

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

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

type AetherSubscriber_Subscriber

type AetherSubscriber_Subscriber struct {
	Ue map[string]*AetherSubscriber_Subscriber_Ue `path:"ue" module:"aether-subscriber"`
}

AetherSubscriber_Subscriber represents the /aether-subscriber/subscriber YANG schema element.

func (*AetherSubscriber_Subscriber) IsYANGGoStruct

func (*AetherSubscriber_Subscriber) IsYANGGoStruct()

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

func (*AetherSubscriber_Subscriber) NewUe

NewUe creates a new entry in the Ue list of the AetherSubscriber_Subscriber struct. The keys of the list are populated from the input arguments.

func (*AetherSubscriber_Subscriber) Validate

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

func (*AetherSubscriber_Subscriber) ΛEnumTypeMap

func (t *AetherSubscriber_Subscriber) Λ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 AetherSubscriber_Subscriber_Ue

type AetherSubscriber_Subscriber_Ue struct {
	Enabled      *bool                                       `path:"enabled" module:"aether-subscriber"`
	Priority     *uint32                                     `path:"priority" module:"aether-subscriber"`
	Profiles     *AetherSubscriber_Subscriber_Ue_Profiles    `path:"profiles" module:"aether-subscriber"`
	RequestedApn *string                                     `path:"requested-apn" module:"aether-subscriber"`
	ServingPlmn  *AetherSubscriber_Subscriber_Ue_ServingPlmn `path:"serving-plmn" module:"aether-subscriber"`
	Ueid         *string                                     `path:"ueid" module:"aether-subscriber"`
}

AetherSubscriber_Subscriber_Ue represents the /aether-subscriber/subscriber/ue YANG schema element.

func (*AetherSubscriber_Subscriber_Ue) IsYANGGoStruct

func (*AetherSubscriber_Subscriber_Ue) IsYANGGoStruct()

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

func (*AetherSubscriber_Subscriber_Ue) Validate

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

func (*AetherSubscriber_Subscriber_Ue) ΛEnumTypeMap

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

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

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

type AetherSubscriber_Subscriber_Ue_Profiles

type AetherSubscriber_Subscriber_Ue_Profiles struct {
	AccessProfile map[string]*AetherSubscriber_Subscriber_Ue_Profiles_AccessProfile `path:"access-profile" module:"aether-subscriber"`
	ApnProfile    *string                                                           `path:"apn-profile" module:"aether-subscriber"`
	QosProfile    *string                                                           `path:"qos-profile" module:"aether-subscriber"`
	UpProfile     *string                                                           `path:"up-profile" module:"aether-subscriber"`
}

AetherSubscriber_Subscriber_Ue_Profiles represents the /aether-subscriber/subscriber/ue/profiles YANG schema element.

func (*AetherSubscriber_Subscriber_Ue_Profiles) IsYANGGoStruct

func (*AetherSubscriber_Subscriber_Ue_Profiles) IsYANGGoStruct()

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

func (*AetherSubscriber_Subscriber_Ue_Profiles) NewAccessProfile

NewAccessProfile creates a new entry in the AccessProfile list of the AetherSubscriber_Subscriber_Ue_Profiles struct. The keys of the list are populated from the input arguments.

func (*AetherSubscriber_Subscriber_Ue_Profiles) Validate

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

func (*AetherSubscriber_Subscriber_Ue_Profiles) ΛEnumTypeMap

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

type AetherSubscriber_Subscriber_Ue_Profiles_AccessProfile

type AetherSubscriber_Subscriber_Ue_Profiles_AccessProfile struct {
	AccessProfile *string `path:"access-profile" module:"aether-subscriber"`
	Allowed       *bool   `path:"allowed" module:"aether-subscriber"`
}

AetherSubscriber_Subscriber_Ue_Profiles_AccessProfile represents the /aether-subscriber/subscriber/ue/profiles/access-profile YANG schema element.

func (*AetherSubscriber_Subscriber_Ue_Profiles_AccessProfile) IsYANGGoStruct

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

func (*AetherSubscriber_Subscriber_Ue_Profiles_AccessProfile) Validate

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

func (*AetherSubscriber_Subscriber_Ue_Profiles_AccessProfile) ΛEnumTypeMap

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

func (*AetherSubscriber_Subscriber_Ue_Profiles_AccessProfile) ΛListKeyMap

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

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

type AetherSubscriber_Subscriber_Ue_ServingPlmn

type AetherSubscriber_Subscriber_Ue_ServingPlmn struct {
	Mcc *uint32 `path:"mcc" module:"aether-subscriber"`
	Mnc *uint32 `path:"mnc" module:"aether-subscriber"`
	Tac *uint32 `path:"tac" module:"aether-subscriber"`
}

AetherSubscriber_Subscriber_Ue_ServingPlmn represents the /aether-subscriber/subscriber/ue/serving-plmn YANG schema element.

func (*AetherSubscriber_Subscriber_Ue_ServingPlmn) IsYANGGoStruct

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

func (*AetherSubscriber_Subscriber_Ue_ServingPlmn) Validate

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

func (*AetherSubscriber_Subscriber_Ue_ServingPlmn) ΛEnumTypeMap

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

type ApnProfile_ApnProfile

type ApnProfile_ApnProfile struct {
	ApnProfile map[string]*ApnProfile_ApnProfile_ApnProfile `path:"apn-profile" module:"apn-profile"`
}

ApnProfile_ApnProfile represents the /apn-profile/apn-profile YANG schema element.

func (*ApnProfile_ApnProfile) IsYANGGoStruct

func (*ApnProfile_ApnProfile) IsYANGGoStruct()

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

func (*ApnProfile_ApnProfile) NewApnProfile

NewApnProfile creates a new entry in the ApnProfile list of the ApnProfile_ApnProfile struct. The keys of the list are populated from the input arguments.

func (*ApnProfile_ApnProfile) Validate

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

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

func (*ApnProfile_ApnProfile) ΛEnumTypeMap

func (t *ApnProfile_ApnProfile) Λ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 ApnProfile_ApnProfile_ApnProfile

type ApnProfile_ApnProfile_ApnProfile struct {
	ApnName      *string `path:"apn-name" module:"apn-profile"`
	Description  *string `path:"description" module:"apn-profile"`
	DnsPrimary   *string `path:"dns-primary" module:"apn-profile"`
	DnsSecondary *string `path:"dns-secondary" module:"apn-profile"`
	GxEnabled    *bool   `path:"gx-enabled" module:"apn-profile"`
	Id           *string `path:"id" module:"apn-profile"`
	Mtu          *uint32 `path:"mtu" module:"apn-profile"`
}

ApnProfile_ApnProfile_ApnProfile represents the /apn-profile/apn-profile/apn-profile YANG schema element.

func (*ApnProfile_ApnProfile_ApnProfile) IsYANGGoStruct

func (*ApnProfile_ApnProfile_ApnProfile) IsYANGGoStruct()

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

func (*ApnProfile_ApnProfile_ApnProfile) Validate

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

func (*ApnProfile_ApnProfile_ApnProfile) ΛEnumTypeMap

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

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

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

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 {
	AccessProfile *AccessProfile_AccessProfile `path:"access-profile" module:"access-profile"`
	ApnProfile    *ApnProfile_ApnProfile       `path:"apn-profile" module:"apn-profile"`
	QosProfile    *QosProfile_QosProfile       `path:"qos-profile" module:"qos-profile"`
	Subscriber    *AetherSubscriber_Subscriber `path:"subscriber" module:"aether-subscriber"`
	UpProfile     *UpProfile_UpProfile         `path:"up-profile" module:"up-profile"`
}

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

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

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

func (*Device) ΛEnumTypeMap

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

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

type QosProfile_QosProfile

type QosProfile_QosProfile struct {
	QosProfile map[string]*QosProfile_QosProfile_QosProfile `path:"qos-profile" module:"qos-profile"`
}

QosProfile_QosProfile represents the /qos-profile/qos-profile YANG schema element.

func (*QosProfile_QosProfile) IsYANGGoStruct

func (*QosProfile_QosProfile) IsYANGGoStruct()

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

func (*QosProfile_QosProfile) NewQosProfile

NewQosProfile creates a new entry in the QosProfile list of the QosProfile_QosProfile struct. The keys of the list are populated from the input arguments.

func (*QosProfile_QosProfile) Validate

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

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

func (*QosProfile_QosProfile) ΛEnumTypeMap

func (t *QosProfile_QosProfile) Λ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 QosProfile_QosProfile_QosProfile

type QosProfile_QosProfile_QosProfile struct {
	ApnAmbr     *QosProfile_QosProfile_QosProfile_ApnAmbr `path:"apn-ambr" module:"qos-profile"`
	Description *string                                   `path:"description" module:"qos-profile"`
	Id          *string                                   `path:"id" module:"qos-profile"`
}

QosProfile_QosProfile_QosProfile represents the /qos-profile/qos-profile/qos-profile YANG schema element.

func (*QosProfile_QosProfile_QosProfile) IsYANGGoStruct

func (*QosProfile_QosProfile_QosProfile) IsYANGGoStruct()

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

func (*QosProfile_QosProfile_QosProfile) Validate

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

func (*QosProfile_QosProfile_QosProfile) ΛEnumTypeMap

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

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

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

type QosProfile_QosProfile_QosProfile_ApnAmbr

type QosProfile_QosProfile_QosProfile_ApnAmbr struct {
	Downlink *uint32 `path:"downlink" module:"qos-profile"`
	Uplink   *uint32 `path:"uplink" module:"qos-profile"`
}

QosProfile_QosProfile_QosProfile_ApnAmbr represents the /qos-profile/qos-profile/qos-profile/apn-ambr YANG schema element.

func (*QosProfile_QosProfile_QosProfile_ApnAmbr) IsYANGGoStruct

func (*QosProfile_QosProfile_QosProfile_ApnAmbr) IsYANGGoStruct()

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

func (*QosProfile_QosProfile_QosProfile_ApnAmbr) Validate

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

func (*QosProfile_QosProfile_QosProfile_ApnAmbr) ΛEnumTypeMap

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

type UpProfile_UpProfile

type UpProfile_UpProfile struct {
	UpProfile map[string]*UpProfile_UpProfile_UpProfile `path:"up-profile" module:"up-profile"`
}

UpProfile_UpProfile represents the /up-profile/up-profile YANG schema element.

func (*UpProfile_UpProfile) IsYANGGoStruct

func (*UpProfile_UpProfile) IsYANGGoStruct()

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

func (*UpProfile_UpProfile) NewUpProfile

NewUpProfile creates a new entry in the UpProfile list of the UpProfile_UpProfile struct. The keys of the list are populated from the input arguments.

func (*UpProfile_UpProfile) Validate

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

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

func (*UpProfile_UpProfile) ΛEnumTypeMap

func (t *UpProfile_UpProfile) Λ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 UpProfile_UpProfile_UpProfile

type UpProfile_UpProfile_UpProfile struct {
	AccessControl *string `path:"access-control" module:"up-profile"`
	Description   *string `path:"description" module:"up-profile"`
	Id            *string `path:"id" module:"up-profile"`
	UserPlane     *string `path:"user-plane" module:"up-profile"`
}

UpProfile_UpProfile_UpProfile represents the /up-profile/up-profile/up-profile YANG schema element.

func (*UpProfile_UpProfile_UpProfile) IsYANGGoStruct

func (*UpProfile_UpProfile_UpProfile) IsYANGGoStruct()

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

func (*UpProfile_UpProfile_UpProfile) Validate

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

func (*UpProfile_UpProfile_UpProfile) ΛEnumTypeMap

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

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

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

type YANGEmpty

type YANGEmpty bool

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

Jump to

Keyboard shortcuts

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