models

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2020 License: BSD-3-Clause Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// LteSubscriptionStateINACTIVE captures enum value "INACTIVE"
	LteSubscriptionStateINACTIVE string = "INACTIVE"

	// LteSubscriptionStateACTIVE captures enum value "ACTIVE"
	LteSubscriptionStateACTIVE string = "ACTIVE"
)
View Source
const (

	// LteSubscriptionAuthAlgoMILENAGE captures enum value "MILENAGE"
	LteSubscriptionAuthAlgoMILENAGE string = "MILENAGE"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ApnList

type ApnList []string

ApnList APNs that are allowed for this subscriber swagger:model apn_list

func (ApnList) ToAssocs

func (m ApnList) ToAssocs() []storage.TypeAndKey

func (ApnList) Validate

func (m ApnList) Validate(formats strfmt.Registry) error

Validate validates this apn list

type IcmpStatus

type IcmpStatus struct {

	// last reported time
	LastReportedTime int64 `json:"last_reported_time,omitempty"`

	// latency ms
	// Required: true
	LatencyMs *float32 `json:"latency_ms"`
}

IcmpStatus ICMP status of a subscriber device swagger:model icmp_status

func (*IcmpStatus) MarshalBinary

func (m *IcmpStatus) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*IcmpStatus) UnmarshalBinary

func (m *IcmpStatus) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*IcmpStatus) Validate

func (m *IcmpStatus) Validate(formats strfmt.Registry) error

Validate validates this icmp status

func (*IcmpStatus) ValidateModel

func (m *IcmpStatus) ValidateModel() error

type LteSubscription

type LteSubscription struct {

	// auth algo
	// Required: true
	// Enum: [MILENAGE]
	AuthAlgo string `json:"auth_algo"`

	// auth key
	// Required: true
	// Format: byte
	AuthKey strfmt.Base64 `json:"auth_key"`

	// auth opc
	// Format: byte
	AuthOpc strfmt.Base64 `json:"auth_opc,omitempty"`

	// state
	// Required: true
	// Enum: [INACTIVE ACTIVE]
	State string `json:"state"`

	// sub profile
	// Required: true
	SubProfile SubProfile `json:"sub_profile"`
}

LteSubscription lte subscription swagger:model lte_subscription

func (*LteSubscription) MarshalBinary

func (m *LteSubscription) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*LteSubscription) UnmarshalBinary

func (m *LteSubscription) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*LteSubscription) Validate

func (m *LteSubscription) Validate(formats strfmt.Registry) error

Validate validates this lte subscription

func (*LteSubscription) ValidateModel

func (m *LteSubscription) ValidateModel() error

type MutableSubscriber

type MutableSubscriber struct {

	// active apns
	ActiveApns ApnList `json:"active_apns,omitempty"`

	// Base names which are active for this subscriber
	ActiveBaseNames []models1.BaseName `json:"active_base_names,omitempty"`

	// Policies which are active for this subscriber
	ActivePolicies []models1.PolicyID `json:"active_policies,omitempty"`

	// id
	// Required: true
	ID models1.SubscriberID `json:"id"`

	// lte
	// Required: true
	Lte *LteSubscription `json:"lte"`

	// Name for the subscriber
	Name string `json:"name,omitempty"`

	// static ips
	StaticIps SubscriberStaticIps `json:"static_ips,omitempty"`
}

MutableSubscriber Subset of subscriber field which are mutable swagger:model mutable_subscriber

func (*MutableSubscriber) MarshalBinary

func (m *MutableSubscriber) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*MutableSubscriber) ToNetworkEntity

func (m *MutableSubscriber) ToNetworkEntity() configurator.NetworkEntity

func (*MutableSubscriber) ToUpdateCriteria

func (m *MutableSubscriber) ToUpdateCriteria(id string) []configurator.EntityUpdateCriteria

func (*MutableSubscriber) UnmarshalBinary

func (m *MutableSubscriber) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*MutableSubscriber) Validate

func (m *MutableSubscriber) Validate(formats strfmt.Registry) error

Validate validates this mutable subscriber

func (*MutableSubscriber) ValidateModel

func (m *MutableSubscriber) ValidateModel() error

type SubProfile

type SubProfile string

SubProfile sub profile swagger:model sub_profile

func (SubProfile) Validate

func (m SubProfile) Validate(formats strfmt.Registry) error

Validate validates this sub profile

func (*SubProfile) ValidateModel

func (m *SubProfile) ValidateModel() error

type Subscriber

type Subscriber struct {

	// active apns
	ActiveApns ApnList `json:"active_apns,omitempty"`

	// Base names which are active for this subscriber
	ActiveBaseNames []models1.BaseName `json:"active_base_names,omitempty"`

	// Policies which are active for this subscriber
	ActivePolicies []models1.PolicyID `json:"active_policies,omitempty"`

	// config
	// Required: true
	Config *SubscriberConfig `json:"config"`

	// id
	// Required: true
	ID models1.SubscriberID `json:"id"`

	// lte
	// Required: true
	Lte *LteSubscription `json:"lte"`

	// monitoring
	Monitoring *SubscriberStatus `json:"monitoring,omitempty"`

	// Optional name associated with the subscriber
	Name string `json:"name,omitempty"`

	// state
	State *SubscriberState `json:"state,omitempty"`
}

Subscriber subscriber swagger:model subscriber

func (*Subscriber) FromBackendModels

func (m *Subscriber) FromBackendModels(ent configurator.NetworkEntity, statesByID state_types.StatesByID) *Subscriber

func (*Subscriber) MarshalBinary

func (m *Subscriber) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Subscriber) UnmarshalBinary

func (m *Subscriber) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Subscriber) Validate

func (m *Subscriber) Validate(formats strfmt.Registry) error

Validate validates this subscriber

type SubscriberConfig

type SubscriberConfig struct {

	// lte
	// Required: true
	Lte *LteSubscription `json:"lte"`

	// static ips
	StaticIps SubscriberStaticIps `json:"static_ips,omitempty"`
}

SubscriberConfig subscriber config swagger:model subscriber_config

func (*SubscriberConfig) MarshalBinary

func (m *SubscriberConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SubscriberConfig) UnmarshalBinary

func (m *SubscriberConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SubscriberConfig) Validate

func (m *SubscriberConfig) Validate(formats strfmt.Registry) error

Validate validates this subscriber config

type SubscriberIPAllocation

type SubscriberIPAllocation struct {

	// apn
	// Required: true
	// Min Length: 1
	Apn string `json:"apn"`

	// ip
	// Required: true
	// Min Length: 1
	// Format: ipv4
	IP strfmt.IPv4 `json:"ip"`
}

SubscriberIPAllocation An IP address which has been allocated for a subscriber for a specific APN swagger:model subscriber_ip_allocation

func (*SubscriberIPAllocation) MarshalBinary

func (m *SubscriberIPAllocation) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SubscriberIPAllocation) UnmarshalBinary

func (m *SubscriberIPAllocation) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SubscriberIPAllocation) Validate

func (m *SubscriberIPAllocation) Validate(formats strfmt.Registry) error

Validate validates this subscriber ip allocation

type SubscriberState

type SubscriberState struct {

	// mme
	Mme UntypedMmeState `json:"mme,omitempty"`

	// IP addresses which have been allocated for this subscriber
	Mobility []*SubscriberIPAllocation `json:"mobility,omitempty"`

	// s1ap
	S1ap UntypedMmeState `json:"s1ap,omitempty"`

	// spgw
	Spgw UntypedMmeState `json:"spgw,omitempty"`
}

SubscriberState EPC state for a subscriber swagger:model subscriber_state

func (*SubscriberState) MarshalBinary

func (m *SubscriberState) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SubscriberState) UnmarshalBinary

func (m *SubscriberState) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SubscriberState) Validate

func (m *SubscriberState) Validate(formats strfmt.Registry) error

Validate validates this subscriber state

type SubscriberStaticIps

type SubscriberStaticIps map[string]strfmt.IPv4

SubscriberStaticIps Mapping of APN ID to static IP address to allocate for the subscriber at the edge swagger:model subscriber_static_ips

func (SubscriberStaticIps) Validate

func (m SubscriberStaticIps) Validate(formats strfmt.Registry) error

Validate validates this subscriber static ips

type SubscriberStatus

type SubscriberStatus struct {

	// icmp
	Icmp *IcmpStatus `json:"icmp,omitempty"`
}

SubscriberStatus Status of a subscriber device swagger:model subscriber_status

func (*SubscriberStatus) MarshalBinary

func (m *SubscriberStatus) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SubscriberStatus) UnmarshalBinary

func (m *SubscriberStatus) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SubscriberStatus) Validate

func (m *SubscriberStatus) Validate(formats strfmt.Registry) error

Validate validates this subscriber status

type UntypedMmeState

type UntypedMmeState interface{}

UntypedMmeState Arbitrary untyped JSON object that represents replicated MME state swagger:model untyped_mme_state

Jump to

Keyboard shortcuts

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