models

package
v1.2.1 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: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// CarrierWifiGatewayHealthStatusStatusHEALTHY captures enum value "HEALTHY"
	CarrierWifiGatewayHealthStatusStatusHEALTHY string = "HEALTHY"

	// CarrierWifiGatewayHealthStatusStatusUNHEALTHY captures enum value "UNHEALTHY"
	CarrierWifiGatewayHealthStatusStatusUNHEALTHY string = "UNHEALTHY"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AaaServer

type AaaServer struct {

	// accounting enabled
	AccountingEnabled bool `json:"accounting_enabled,omitempty"`

	// create session on auth
	CreateSessionOnAuth bool `json:"create_session_on_auth,omitempty"`

	// event logging enabled
	EventLoggingEnabled bool `json:"event_logging_enabled,omitempty"`

	// idle session timeout ms
	IDLESessionTimeoutMs uint32 `json:"idle_session_timeout_ms,omitempty" magma_alt_name:"IdleSessionTimeoutMs"`
}

AaaServer aaa server configuration swagger:model aaaServer

func (*AaaServer) MarshalBinary

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

MarshalBinary interface implementation

func (*AaaServer) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AaaServer) Validate

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

Validate validates this aaa server

type AllowedGrePeer

type AllowedGrePeer struct {

	// ip
	// Required: true
	// Max Length: 49
	// Min Length: 5
	IP string `json:"ip"`

	// key
	Key *uint32 `json:"key,omitempty"`
}

AllowedGrePeer allowed gre peer swagger:model allowed_gre_peer

func (*AllowedGrePeer) MarshalBinary

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

MarshalBinary interface implementation

func (*AllowedGrePeer) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AllowedGrePeer) Validate

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

Validate validates this allowed gre peer

type AllowedGrePeers

type AllowedGrePeers []*AllowedGrePeer

AllowedGrePeers allowed gre peers swagger:model allowed_gre_peers

func (AllowedGrePeers) Validate

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

Validate validates this allowed gre peers

type CarrierWifiGatewayHealthStatus

type CarrierWifiGatewayHealthStatus struct {

	// description
	// Required: true
	Description string `json:"description"`

	// status
	// Required: true
	// Enum: [HEALTHY UNHEALTHY]
	Status string `json:"status"`
}

CarrierWifiGatewayHealthStatus Health status of a Carrier Wifi Gateway swagger:model carrier_wifi_gateway_health_status

func (*CarrierWifiGatewayHealthStatus) MarshalBinary

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

MarshalBinary interface implementation

func (*CarrierWifiGatewayHealthStatus) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CarrierWifiGatewayHealthStatus) Validate

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

Validate validates this carrier wifi gateway health status

func (*CarrierWifiGatewayHealthStatus) ValidateModel

func (m *CarrierWifiGatewayHealthStatus) ValidateModel() error

type CarrierWifiNetworkClusterStatus

type CarrierWifiNetworkClusterStatus struct {

	// active gateway
	// Required: true
	ActiveGateway string `json:"active_gateway"`
}

CarrierWifiNetworkClusterStatus Status of a Carrier Wifi HA cluster swagger:model carrier_wifi_network_cluster_status

func (*CarrierWifiNetworkClusterStatus) MarshalBinary

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

MarshalBinary interface implementation

func (*CarrierWifiNetworkClusterStatus) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CarrierWifiNetworkClusterStatus) Validate

Validate validates this carrier wifi network cluster status

func (*CarrierWifiNetworkClusterStatus) ValidateModel

func (m *CarrierWifiNetworkClusterStatus) ValidateModel() error

type CwfGateway

type CwfGateway struct {

	// carrier wifi
	// Required: true
	CarrierWifi *GatewayCwfConfigs `json:"carrier_wifi"`

	// description
	// Required: true
	Description models5.GatewayDescription `json:"description"`

	// device
	// Required: true
	Device *models6.GatewayDevice `json:"device"`

	// id
	// Required: true
	ID models5.GatewayID `json:"id"`

	// magmad
	// Required: true
	Magmad *models6.MagmadGatewayConfigs `json:"magmad"`

	// name
	// Required: true
	Name models5.GatewayName `json:"name"`

	// status
	Status *models6.GatewayStatus `json:"status,omitempty"`

	// tier
	// Required: true
	Tier models6.TierID `json:"tier"`
}

CwfGateway Full description of a CWF gateway swagger:model cwf_gateway

func (*CwfGateway) FromBackendModels

func (m *CwfGateway) FromBackendModels(
	magmadGateway, cwfGateway configurator.NetworkEntity,
	device *orc8rModels.GatewayDevice,
	status *orc8rModels.GatewayStatus,
) handlers.GatewayModel

func (*CwfGateway) MarshalBinary

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

MarshalBinary interface implementation

func (*CwfGateway) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CwfGateway) Validate

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

Validate validates this cwf gateway

func (*CwfGateway) ValidateModel

func (m *CwfGateway) ValidateModel() error

type CwfNetwork

type CwfNetwork struct {

	// carrier wifi
	// Required: true
	CarrierWifi *NetworkCarrierWifiConfigs `json:"carrier_wifi"`

	// description
	// Required: true
	Description models5.NetworkDescription `json:"description"`

	// dns
	// Required: true
	DNS *models6.NetworkDNSConfig `json:"dns"`

	// features
	Features *models6.NetworkFeatures `json:"features,omitempty"`

	// federation
	// Required: true
	Federation *models2.FederatedNetworkConfigs `json:"federation"`

	// id
	// Required: true
	ID models5.NetworkID `json:"id"`

	// name
	// Required: true
	Name models5.NetworkName `json:"name"`

	// subscriber config
	SubscriberConfig *models4.NetworkSubscriberConfig `json:"subscriber_config,omitempty"`
}

CwfNetwork Carrier Wifi Network spec swagger:model cwf_network

func (*CwfNetwork) FromConfiguratorNetwork

func (m *CwfNetwork) FromConfiguratorNetwork(n configurator.Network) interface{}

func (*CwfNetwork) GetEmptyNetwork

func (m *CwfNetwork) GetEmptyNetwork() handlers.NetworkModel

func (*CwfNetwork) MarshalBinary

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

MarshalBinary interface implementation

func (*CwfNetwork) ToConfiguratorNetwork

func (m *CwfNetwork) ToConfiguratorNetwork() configurator.Network

func (*CwfNetwork) ToUpdateCriteria

func (m *CwfNetwork) ToUpdateCriteria() configurator.NetworkUpdateCriteria

func (*CwfNetwork) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CwfNetwork) Validate

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

Validate validates this cwf network

func (*CwfNetwork) ValidateModel

func (m *CwfNetwork) ValidateModel() error

type CwfSubscriberDirectoryRecord

type CwfSubscriberDirectoryRecord struct {

	// ipv4 addr
	// Format: ipv4
	IPV4Addr strfmt.IPv4 `json:"ipv4_addr,omitempty"`

	// location history
	// Required: true
	LocationHistory []string `json:"location_history"`

	// mac addr
	MacAddr string `json:"mac_addr,omitempty"`
}

CwfSubscriberDirectoryRecord CWF subscriber directory record swagger:model cwf_subscriber_directory_record

func (*CwfSubscriberDirectoryRecord) MarshalBinary

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

MarshalBinary interface implementation

func (*CwfSubscriberDirectoryRecord) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CwfSubscriberDirectoryRecord) Validate

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

Validate validates this cwf subscriber directory record

func (*CwfSubscriberDirectoryRecord) ValidateModel

func (m *CwfSubscriberDirectoryRecord) ValidateModel() error

type EapAka

type EapAka struct {

	// plmn ids
	PlmnIds []string `json:"plmn_ids"`

	// timeout
	Timeout *EapAkaTimeout `json:"timeout,omitempty"`
}

EapAka eap_aka configuration swagger:model eapAka

func (*EapAka) MarshalBinary

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

MarshalBinary interface implementation

func (*EapAka) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*EapAka) Validate

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

Validate validates this eap aka

type EapAkaTimeout

type EapAkaTimeout struct {

	// challenge ms
	ChallengeMs uint32 `json:"challenge_ms,omitempty"`

	// error notification ms
	ErrorNotificationMs uint32 `json:"error_notification_ms,omitempty"`

	// session authenticated ms
	SessionAuthenticatedMs uint32 `json:"session_authenticated_ms,omitempty"`

	// session ms
	SessionMs uint32 `json:"session_ms,omitempty"`
}

EapAkaTimeout eap aka timeout swagger:model EapAkaTimeout

func (*EapAkaTimeout) MarshalBinary

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

MarshalBinary interface implementation

func (*EapAkaTimeout) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*EapAkaTimeout) Validate

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

Validate validates this eap aka timeout

type FegNetworkID

type FegNetworkID string

FegNetworkID feg network id swagger:model feg_network_id

func (FegNetworkID) Validate

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

Validate validates this feg network id

type GatewayCwfConfigs

type GatewayCwfConfigs struct {

	// allowed gre peers
	// Required: true
	AllowedGrePeers AllowedGrePeers `json:"allowed_gre_peers"`

	// gateway health configs
	GatewayHealthConfigs *GatewayHealthConfigs `json:"gateway_health_configs,omitempty"`

	// ipdr export dst
	IPDRExportDst *IPDRExportDst `json:"ipdr_export_dst,omitempty"`
}

GatewayCwfConfigs CWF configuration for a gateway swagger:model gateway_cwf_configs

func (*GatewayCwfConfigs) FromBackendModels

func (m *GatewayCwfConfigs) FromBackendModels(networkID string, gatewayID string) error

func (*GatewayCwfConfigs) MarshalBinary

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

MarshalBinary interface implementation

func (*GatewayCwfConfigs) ToUpdateCriteria

func (m *GatewayCwfConfigs) ToUpdateCriteria(networkID string, gatewayID string) ([]configurator.EntityUpdateCriteria, error)

func (*GatewayCwfConfigs) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GatewayCwfConfigs) Validate

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

Validate validates this gateway cwf configs

func (*GatewayCwfConfigs) ValidateModel

func (m *GatewayCwfConfigs) ValidateModel() error

type GatewayHealthConfigs

type GatewayHealthConfigs struct {

	// cpu util threshold pct
	CPUUtilThresholdPct float32 `json:"cpu_util_threshold_pct,omitempty"`

	// gre probe interval secs
	GreProbeIntervalSecs uint32 `json:"gre_probe_interval_secs,omitempty"`

	// icmp probe pkt count
	IcmpProbePktCount uint32 `json:"icmp_probe_pkt_count,omitempty"`

	// mem util threshold pct
	MemUtilThresholdPct float32 `json:"mem_util_threshold_pct,omitempty"`
}

GatewayHealthConfigs Configuration threshold for gateway health service swagger:model gateway_health_configs

func (*GatewayHealthConfigs) MarshalBinary

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

MarshalBinary interface implementation

func (*GatewayHealthConfigs) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GatewayHealthConfigs) Validate

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

Validate validates this gateway health configs

type HealthConfigs

type HealthConfigs struct {

	// cpu util threshold pct
	// Required: true
	CPUUtilThresholdPct *float32 `json:"cpu_util_threshold_pct"`

	// gre probe interval secs
	GreProbeIntervalSecs uint32 `json:"gre_probe_interval_secs,omitempty"`

	// icmp probe pkt count
	IcmpProbePktCount uint32 `json:"icmp_probe_pkt_count,omitempty"`

	// mem util threshold pct
	// Required: true
	MemUtilThresholdPct *float32 `json:"mem_util_threshold_pct"`
}

HealthConfigs Configuration threshold for gateway health service swagger:model health_configs

func (*HealthConfigs) MarshalBinary

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

MarshalBinary interface implementation

func (*HealthConfigs) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*HealthConfigs) Validate

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

Validate validates this health configs

type IPDRExportDst

type IPDRExportDst struct {

	// ip
	// Required: true
	// Format: ipv4
	IP strfmt.IPv4 `json:"ip"`

	// port
	// Required: true
	Port uint32 `json:"port"`
}

IPDRExportDst ipdr export dst swagger:model ipdr_export_dst

func (*IPDRExportDst) MarshalBinary

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

MarshalBinary interface implementation

func (*IPDRExportDst) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*IPDRExportDst) Validate

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

Validate validates this ipdr export dst

type LiImsis

type LiImsis []string

LiImsis li imsis swagger:model li_imsis

func (LiImsis) Validate

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

Validate validates this li imsis

type LiUes

type LiUes struct {

	// imsis
	// Required: true
	Imsis []string `json:"imsis"`

	// ips
	// Required: true
	Ips []string `json:"ips"`

	// macs
	// Required: true
	Macs []string `json:"macs"`

	// msisdns
	// Required: true
	Msisdns []string `json:"msisdns"`
}

LiUes li ues swagger:model li_ues

func (*LiUes) GetFromNetwork

func (m *LiUes) GetFromNetwork(network configurator.Network) interface{}

func (*LiUes) MarshalBinary

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

MarshalBinary interface implementation

func (*LiUes) ToUpdateCriteria

func (m *LiUes) ToUpdateCriteria(network configurator.Network) (configurator.NetworkUpdateCriteria, error)

func (*LiUes) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*LiUes) Validate

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

Validate validates this li ues

func (*LiUes) ValidateModel

func (m *LiUes) ValidateModel() error

type MutableCwfGateway

type MutableCwfGateway struct {

	// carrier wifi
	// Required: true
	CarrierWifi *GatewayCwfConfigs `json:"carrier_wifi"`

	// description
	// Required: true
	Description models5.GatewayDescription `json:"description"`

	// device
	// Required: true
	Device *models6.GatewayDevice `json:"device"`

	// id
	// Required: true
	ID models5.GatewayID `json:"id"`

	// magmad
	// Required: true
	Magmad *models6.MagmadGatewayConfigs `json:"magmad"`

	// name
	// Required: true
	Name models5.GatewayName `json:"name"`

	// tier
	// Required: true
	Tier models6.TierID `json:"tier"`
}

MutableCwfGateway CWF gateway object with read-only fields omitted swagger:model mutable_cwf_gateway

func (*MutableCwfGateway) GetAdditionalEntitiesToLoadOnUpdate

func (m *MutableCwfGateway) GetAdditionalEntitiesToLoadOnUpdate(gatewayID string) []storage.TypeAndKey

func (*MutableCwfGateway) GetAdditionalWritesOnCreate

func (m *MutableCwfGateway) GetAdditionalWritesOnCreate() []configurator.EntityWriteOperation

func (*MutableCwfGateway) GetAdditionalWritesOnUpdate

func (m *MutableCwfGateway) GetAdditionalWritesOnUpdate(
	gatewayID string,
	loadedEntities map[storage.TypeAndKey]configurator.NetworkEntity,
) ([]configurator.EntityWriteOperation, error)

func (*MutableCwfGateway) GetMagmadGateway

func (m *MutableCwfGateway) GetMagmadGateway() *orc8rModels.MagmadGateway

func (*MutableCwfGateway) MarshalBinary

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

MarshalBinary interface implementation

func (*MutableCwfGateway) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*MutableCwfGateway) Validate

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

Validate validates this mutable cwf gateway

func (*MutableCwfGateway) ValidateModel

func (m *MutableCwfGateway) ValidateModel() error

type NetworkCarrierWifiConfigs

type NetworkCarrierWifiConfigs struct {

	// aaa server
	// Required: true
	AaaServer *AaaServer `json:"aaa_server"`

	// default rule id
	// Required: true
	DefaultRuleID *string `json:"default_rule_id"`

	// eap aka
	// Required: true
	EapAka *EapAka `json:"eap_aka"`

	// li ues
	LiUes *LiUes `json:"li_ues,omitempty"`

	// Configuration for network services. Services will be instantiated in the listed order.
	// Required: true
	NetworkServices []string `json:"network_services"`
}

NetworkCarrierWifiConfigs Carrier WiFi configuration for a network swagger:model network_carrier_wifi_configs

func NewDefaultModifiedNetworkCarrierWifiConfigs

func NewDefaultModifiedNetworkCarrierWifiConfigs() *NetworkCarrierWifiConfigs

func NewDefaultNetworkCarrierWifiConfigs

func NewDefaultNetworkCarrierWifiConfigs() *NetworkCarrierWifiConfigs

func (*NetworkCarrierWifiConfigs) GetFromNetwork

func (m *NetworkCarrierWifiConfigs) GetFromNetwork(network configurator.Network) interface{}

func (*NetworkCarrierWifiConfigs) MarshalBinary

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

MarshalBinary interface implementation

func (*NetworkCarrierWifiConfigs) ToUpdateCriteria

func (*NetworkCarrierWifiConfigs) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NetworkCarrierWifiConfigs) Validate

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

Validate validates this network carrier wifi configs

func (*NetworkCarrierWifiConfigs) ValidateModel

func (m *NetworkCarrierWifiConfigs) ValidateModel() error

Jump to

Keyboard shortcuts

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