models

package
v0.0.0-...-89602ce Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2020 License: BSD-3-Clause Imports: 16 Imported by: 8

Documentation

Index

Constants

View Source
const (

	// ChallengeKeyKeyTypeECHO captures enum value "ECHO"
	ChallengeKeyKeyTypeECHO string = "ECHO"

	// ChallengeKeyKeyTypeSOFTWAREECDSASHA256 captures enum value "SOFTWARE_ECDSA_SHA256"
	ChallengeKeyKeyTypeSOFTWAREECDSASHA256 string = "SOFTWARE_ECDSA_SHA256"
)
View Source
const (

	// GatewayLoggingConfigsLogLevelDEBUG captures enum value "DEBUG"
	GatewayLoggingConfigsLogLevelDEBUG string = "DEBUG"

	// GatewayLoggingConfigsLogLevelINFO captures enum value "INFO"
	GatewayLoggingConfigsLogLevelINFO string = "INFO"

	// GatewayLoggingConfigsLogLevelWARNING captures enum value "WARNING"
	GatewayLoggingConfigsLogLevelWARNING string = "WARNING"

	// GatewayLoggingConfigsLogLevelERROR captures enum value "ERROR"
	GatewayLoggingConfigsLogLevelERROR string = "ERROR"

	// GatewayLoggingConfigsLogLevelFATAL captures enum value "FATAL"
	GatewayLoggingConfigsLogLevelFATAL string = "FATAL"
)
View Source
const (

	// NetworkInterfaceStatusUP captures enum value "UP"
	NetworkInterfaceStatusUP string = "UP"

	// NetworkInterfaceStatusDOWN captures enum value "DOWN"
	NetworkInterfaceStatusDOWN string = "DOWN"

	// NetworkInterfaceStatusUNKNOWN captures enum value "UNKNOWN"
	NetworkInterfaceStatusUNKNOWN string = "UNKNOWN"
)

Variables

This section is empty.

Functions

func GetNetworkConfig

func GetNetworkConfig(network configurator.Network, key string) interface{}

func GetNetworkConfigUpdateCriteria

func GetNetworkConfigUpdateCriteria(networkID string, key string, iConfig interface{}) configurator.NetworkUpdateCriteria

Types

type AggregationLoggingConfigs

type AggregationLoggingConfigs struct {

	// target files by tag
	TargetFilesByTag map[string]string `json:"target_files_by_tag,omitempty"`

	// throttle interval
	// Pattern: ^\d+(.\d+)?(s|m|h)$
	ThrottleInterval *string `json:"throttle_interval,omitempty"`

	// throttle rate
	ThrottleRate *uint32 `json:"throttle_rate,omitempty"`

	// throttle window
	ThrottleWindow *uint32 `json:"throttle_window,omitempty"`
}

AggregationLoggingConfigs Configuration for log aggregation swagger:model aggregation_logging_configs

func (*AggregationLoggingConfigs) MarshalBinary

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

MarshalBinary interface implementation

func (*AggregationLoggingConfigs) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AggregationLoggingConfigs) Validate

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

Validate validates this aggregation logging configs

type ChallengeKey

type ChallengeKey struct {

	// key
	// Format: byte
	Key *strfmt.Base64 `json:"key,omitempty"`

	// key type
	// Required: true
	// Enum: [ECHO SOFTWARE_ECDSA_SHA256]
	KeyType string `json:"key_type"`
}

ChallengeKey challenge key swagger:model challenge_key

func (*ChallengeKey) MarshalBinary

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

MarshalBinary interface implementation

func (*ChallengeKey) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ChallengeKey) Validate

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

Validate validates this challenge key

func (*ChallengeKey) ValidateModel

func (m *ChallengeKey) ValidateModel() error

type ChannelID

type ChannelID string

ChannelID channel id swagger:model channel_id

func (ChannelID) Validate

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

Validate validates this channel id

type ConfigInfo

type ConfigInfo struct {

	// mconfig created at
	MconfigCreatedAt uint64 `json:"mconfig_created_at,omitempty"`
}

ConfigInfo config info swagger:model config_info

func (*ConfigInfo) MarshalBinary

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

MarshalBinary interface implementation

func (*ConfigInfo) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ConfigInfo) Validate

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

Validate validates this config info

type DNSConfigRecord

type DNSConfigRecord struct {

	// a record
	ARecord []strfmt.IPv4 `json:"a_record"`

	// aaaa record
	AaaaRecord []strfmt.IPv6 `json:"aaaa_record"`

	// cname record
	CnameRecord []string `json:"cname_record"`

	// domain
	// Required: true
	// Min Length: 1
	Domain string `json:"domain"`
}

DNSConfigRecord Mapping used for DNS resolving from a domain swagger:model dns_config_record

func (*DNSConfigRecord) MarshalBinary

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

MarshalBinary interface implementation

func (*DNSConfigRecord) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*DNSConfigRecord) Validate

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

Validate validates this dns config record

func (DNSConfigRecord) ValidateModel

func (m DNSConfigRecord) ValidateModel() error

type DiskPartition

type DiskPartition struct {

	// Name of the device
	Device string `json:"device,omitempty"`

	// Free disk space of the device in bytes
	Free uint64 `json:"free,omitempty"`

	// Mount point of the device
	MountPoint string `json:"mount_point,omitempty"`

	// Total disk space of the device in bytes
	Total uint64 `json:"total,omitempty"`

	// Used disk space of the device in bytes
	Used uint64 `json:"used,omitempty"`
}

DiskPartition disk partition swagger:model disk_partition

func (*DiskPartition) MarshalBinary

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

MarshalBinary interface implementation

func (*DiskPartition) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*DiskPartition) Validate

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

Validate validates this disk partition

type ElasticHit

type ElasticHit struct {

	// id
	// Required: true
	ID *string `json:"_id"`

	// index
	// Required: true
	Index *string `json:"_index"`

	// primary term
	PrimaryTerm string `json:"_primary_term,omitempty"`

	// score
	Score float64 `json:"_score,omitempty"`

	// seq no
	SeqNo float64 `json:"_seq_no,omitempty"`

	// sort
	Sort []float64 `json:"_sort"`

	// source
	// Required: true
	Source map[string]string `json:"_source"`

	// type
	// Required: true
	Type *string `json:"_type"`
}

ElasticHit elastic hit swagger:model elastic_hit

func (*ElasticHit) MarshalBinary

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

MarshalBinary interface implementation

func (*ElasticHit) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ElasticHit) Validate

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

Validate validates this elastic hit

type ElasticHitCount

type ElasticHitCount float64

ElasticHitCount elastic hit count swagger:model elastic_hit_count

func (ElasticHitCount) Validate

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

Validate validates this elastic hit count

type FluentBitConfigs

type FluentBitConfigs struct {

	// throttle interval
	// Required: true
	// Pattern: ^\d+(.\d+)?(s|m|h)$
	ThrottleInterval string `json:"throttle_interval"`

	// throttle rate
	// Required: true
	ThrottleRate uint32 `json:"throttle_rate"`

	// throttle window
	// Required: true
	ThrottleWindow uint32 `json:"throttle_window"`
}

FluentBitConfigs Configuration for FluentBit swagger:model fluent_bit_configs

func (*FluentBitConfigs) MarshalBinary

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

MarshalBinary interface implementation

func (*FluentBitConfigs) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*FluentBitConfigs) Validate

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

Validate validates this fluent bit configs

type GatewayDevice

type GatewayDevice struct {

	// hardware id
	// Required: true
	// Min Length: 1
	HardwareID string `json:"hardware_id"`

	// key
	// Required: true
	Key *ChallengeKey `json:"key"`
}

GatewayDevice Information about the physical device corresponding to a gateway swagger:model gateway_device

func (*GatewayDevice) MarshalBinary

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

MarshalBinary interface implementation

func (*GatewayDevice) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GatewayDevice) Validate

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

Validate validates this gateway device

func (*GatewayDevice) ValidateModel

func (m *GatewayDevice) ValidateModel() error

type GatewayLoggingConfigs

type GatewayLoggingConfigs struct {

	// aggregation
	Aggregation *AggregationLoggingConfigs `json:"aggregation,omitempty"`

	// event verbosity
	EventVerbosity *int32 `json:"event_verbosity,omitempty"`

	// log level
	// Required: true
	// Enum: [DEBUG INFO WARNING ERROR FATAL]
	LogLevel *string `json:"log_level"`
}

GatewayLoggingConfigs Configuration for gateway logging (local and aggregation configs) swagger:model gateway_logging_configs

func (*GatewayLoggingConfigs) MarshalBinary

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

MarshalBinary interface implementation

func (*GatewayLoggingConfigs) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GatewayLoggingConfigs) Validate

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

Validate validates this gateway logging configs

type GatewayStatus

type GatewayStatus struct {

	// cert expiration time
	CertExpirationTime int64 `json:"cert_expiration_time,omitempty"`

	// checkin time
	CheckinTime uint64 `json:"checkin_time,omitempty"`

	// hardware id
	HardwareID string `json:"hardware_id,omitempty"`

	// deprecated
	KernelVersion string `json:"kernel_version,omitempty"`

	// deprecated
	KernelVersionsInstalled []string `json:"kernel_versions_installed,omitempty"`

	// machine info
	MachineInfo *MachineInfo `json:"machine_info,omitempty"`

	// meta
	Meta map[string]string `json:"meta,omitempty"`

	// platform info
	PlatformInfo *PlatformInfo `json:"platform_info,omitempty"`

	// system status
	SystemStatus *SystemStatus `json:"system_status,omitempty"`

	// deprecated
	Version string `json:"version,omitempty"`

	// deprecated
	VpnIP string `json:"vpn_ip,omitempty"`
}

GatewayStatus gateway status swagger:model gateway_status

func NewDefaultGatewayStatus

func NewDefaultGatewayStatus(hardwareID string) *GatewayStatus

func (*GatewayStatus) MarshalBinary

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

MarshalBinary interface implementation

func (*GatewayStatus) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GatewayStatus) Validate

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

Validate validates this gateway status

func (*GatewayStatus) ValidateModel

func (m *GatewayStatus) ValidateModel() error

type GenericCommandParams

type GenericCommandParams struct {

	// command
	// Required: true
	// Min Length: 1
	Command *string `json:"command"`

	// params
	Params map[string]interface{} `json:"params,omitempty"`
}

GenericCommandParams generic command params swagger:model generic_command_params

func (*GenericCommandParams) MarshalBinary

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

MarshalBinary interface implementation

func (*GenericCommandParams) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GenericCommandParams) Validate

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

Validate validates this generic command params

type GenericCommandResponse

type GenericCommandResponse struct {

	// response
	Response map[string]interface{} `json:"response,omitempty"`
}

GenericCommandResponse generic command response swagger:model generic_command_response

func (*GenericCommandResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*GenericCommandResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GenericCommandResponse) Validate

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

Validate validates this generic command response

type MachineInfo

type MachineInfo struct {

	// cpu info
	CPUInfo *MachineInfoCPUInfo `json:"cpu_info,omitempty"`

	// network info
	NetworkInfo *MachineInfoNetworkInfo `json:"network_info,omitempty"`
}

MachineInfo machine info swagger:model machine_info

func (*MachineInfo) MarshalBinary

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

MarshalBinary interface implementation

func (*MachineInfo) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*MachineInfo) Validate

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

Validate validates this machine info

type MachineInfoCPUInfo

type MachineInfoCPUInfo struct {

	// architecture
	Architecture string `json:"architecture,omitempty"`

	// core count
	CoreCount uint64 `json:"core_count,omitempty"`

	// model name
	ModelName string `json:"model_name,omitempty"`

	// threads per core
	ThreadsPerCore uint64 `json:"threads_per_core,omitempty"`
}

MachineInfoCPUInfo machine info CPU info swagger:model MachineInfoCPUInfo

func (*MachineInfoCPUInfo) MarshalBinary

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

MarshalBinary interface implementation

func (*MachineInfoCPUInfo) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*MachineInfoCPUInfo) Validate

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

Validate validates this machine info CPU info

type MachineInfoNetworkInfo

type MachineInfoNetworkInfo struct {

	// network interfaces
	NetworkInterfaces []*NetworkInterface `json:"network_interfaces,omitempty"`

	// routing table
	RoutingTable []*Route `json:"routing_table,omitempty"`
}

MachineInfoNetworkInfo machine info network info swagger:model MachineInfoNetworkInfo

func (*MachineInfoNetworkInfo) MarshalBinary

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

MarshalBinary interface implementation

func (*MachineInfoNetworkInfo) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*MachineInfoNetworkInfo) Validate

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

Validate validates this machine info network info

type MagmadGateway

type MagmadGateway struct {

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

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

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

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

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

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

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

MagmadGateway Full representation of a generic gateway swagger:model magmad_gateway

func (*MagmadGateway) FromBackendModels

func (m *MagmadGateway) FromBackendModels(ent configurator.NetworkEntity, device *GatewayDevice, status *GatewayStatus) *MagmadGateway

func (*MagmadGateway) GetAdditionalEntitiesToLoadOnUpdate

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

func (*MagmadGateway) GetAdditionalWritesOnCreate

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

func (*MagmadGateway) GetAdditionalWritesOnUpdate

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

func (*MagmadGateway) GetMagmadGateway

func (m *MagmadGateway) GetMagmadGateway() *MagmadGateway

func (*MagmadGateway) MarshalBinary

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

MarshalBinary interface implementation

func (*MagmadGateway) ToConfiguratorEntities

func (m *MagmadGateway) ToConfiguratorEntities() []configurator.NetworkEntity

func (*MagmadGateway) ToEntityUpdateCriteria

func (m *MagmadGateway) ToEntityUpdateCriteria(existingEnt configurator.NetworkEntity) []configurator.EntityUpdateCriteria

func (*MagmadGateway) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*MagmadGateway) Validate

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

Validate validates this magmad gateway

func (*MagmadGateway) ValidateModel

func (m *MagmadGateway) ValidateModel() error

type MagmadGatewayConfigs

type MagmadGatewayConfigs struct {

	// autoupgrade enabled
	// Required: true
	AutoupgradeEnabled *bool `json:"autoupgrade_enabled"`

	// autoupgrade poll interval
	// Required: true
	// Minimum: 30
	AutoupgradePollInterval int32 `json:"autoupgrade_poll_interval"`

	// checkin interval
	// Required: true
	// Minimum: 15
	CheckinInterval uint32 `json:"checkin_interval"`

	// checkin timeout
	// Required: true
	// Minimum: 5
	CheckinTimeout uint32 `json:"checkin_timeout"`

	// dynamic services
	DynamicServices []string `json:"dynamic_services"`

	// feature flags
	FeatureFlags map[string]bool `json:"feature_flags,omitempty"`

	// logging
	Logging *GatewayLoggingConfigs `json:"logging,omitempty"`
}

MagmadGatewayConfigs Configuration for the magmad gateway agent swagger:model magmad_gateway_configs

func (*MagmadGatewayConfigs) FromBackendModels

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

func (*MagmadGatewayConfigs) MarshalBinary

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

MarshalBinary interface implementation

func (*MagmadGatewayConfigs) ToUpdateCriteria

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

func (*MagmadGatewayConfigs) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*MagmadGatewayConfigs) Validate

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

Validate validates this magmad gateway configs

func (*MagmadGatewayConfigs) ValidateModel

func (m *MagmadGatewayConfigs) ValidateModel() error

type Network

type Network struct {

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

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

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

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

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

	// type
	Type models1.NetworkType `json:"type,omitempty"`
}

Network Orchestrator network spec swagger:model network

func NewDefaultNetwork

func NewDefaultNetwork(networkID string, name string, description string) *Network

func (*Network) FromConfiguratorNetwork

func (m *Network) FromConfiguratorNetwork(n configurator.Network) *Network

func (*Network) MarshalBinary

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

MarshalBinary interface implementation

func (*Network) ToConfiguratorNetwork

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

func (*Network) ToUpdateCriteria

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

func (*Network) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Network) Validate

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

Validate validates this network

func (*Network) ValidateModel

func (m *Network) ValidateModel() error

type NetworkDNSConfig

type NetworkDNSConfig struct {

	// dhcp server enabled
	DhcpServerEnabled bool `json:"dhcp_server_enabled,omitempty"`

	// enable caching
	// Required: true
	EnableCaching *bool `json:"enable_caching"`

	// local ttl
	// Required: true
	LocalTTL *uint32 `json:"local_ttl"`

	// records
	Records NetworkDNSRecords `json:"records,omitempty"`
}

NetworkDNSConfig DNS configuration for a network swagger:model network_dns_config

func NewDefaultDNSConfig

func NewDefaultDNSConfig() *NetworkDNSConfig

func (*NetworkDNSConfig) GetFromNetwork

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

func (*NetworkDNSConfig) MarshalBinary

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

MarshalBinary interface implementation

func (*NetworkDNSConfig) ToUpdateCriteria

func (*NetworkDNSConfig) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NetworkDNSConfig) Validate

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

Validate validates this network dns config

func (*NetworkDNSConfig) ValidateModel

func (m *NetworkDNSConfig) ValidateModel() error

type NetworkDNSRecords

type NetworkDNSRecords []*DNSConfigRecord

NetworkDNSRecords network dns records swagger:model network_dns_records

func (NetworkDNSRecords) GetFromNetwork

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

func (NetworkDNSRecords) ToUpdateCriteria

func (NetworkDNSRecords) Validate

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

Validate validates this network dns records

func (NetworkDNSRecords) ValidateModel

func (m NetworkDNSRecords) ValidateModel() error

type NetworkFeatures

type NetworkFeatures struct {

	// features
	Features map[string]string `json:"features,omitempty"`
}

NetworkFeatures Feature flags for a network swagger:model network_features

func NewDefaultFeaturesConfig

func NewDefaultFeaturesConfig() *NetworkFeatures

func (*NetworkFeatures) GetFromNetwork

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

func (*NetworkFeatures) MarshalBinary

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

MarshalBinary interface implementation

func (*NetworkFeatures) ToUpdateCriteria

func (*NetworkFeatures) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NetworkFeatures) Validate

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

Validate validates this network features

func (*NetworkFeatures) ValidateModel

func (m *NetworkFeatures) ValidateModel() error

type NetworkInterface

type NetworkInterface struct {

	// ip addresses
	IPAddresses []string `json:"ip_addresses,omitempty" magma_alt_name:"IpAddresses"`

	// ipv6 addresses
	IPV6Addresses []string `json:"ipv6_addresses,omitempty" magma_alt_name:"Ipv6Addresses"`

	// mac address
	MacAddress string `json:"mac_address,omitempty"`

	// network interface id
	NetworkInterfaceID string `json:"network_interface_id,omitempty" magma_alt_name:"NetworkInterfaceId"`

	// status
	// Enum: [UP DOWN UNKNOWN]
	Status string `json:"status,omitempty"`
}

NetworkInterface network interface swagger:model network_interface

func (*NetworkInterface) MarshalBinary

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

MarshalBinary interface implementation

func (*NetworkInterface) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NetworkInterface) Validate

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

Validate validates this network interface

type Package

type Package struct {

	// name
	Name string `json:"name,omitempty"`

	// version
	Version string `json:"version,omitempty"`
}

Package package swagger:model package

func (*Package) MarshalBinary

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

MarshalBinary interface implementation

func (*Package) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Package) Validate

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

Validate validates this package

type PingRequest

type PingRequest struct {

	// hosts
	// Required: true
	Hosts []string `json:"hosts"`

	// packets
	// Minimum: 1
	Packets int32 `json:"packets,omitempty"`
}

PingRequest ping request swagger:model ping_request

func (*PingRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*PingRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PingRequest) Validate

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

Validate validates this ping request

type PingResponse

type PingResponse struct {

	// pings
	// Required: true
	Pings []*PingResult `json:"pings"`
}

PingResponse ping response swagger:model ping_response

func (*PingResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*PingResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PingResponse) Validate

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

Validate validates this ping response

type PingResult

type PingResult struct {

	// avg response ms
	AvgResponseMs float32 `json:"avg_response_ms,omitempty"`

	// error
	Error string `json:"error,omitempty"`

	// host or ip
	// Required: true
	// Min Length: 1
	HostOrIP *string `json:"host_or_ip"`

	// num packets
	// Required: true
	NumPackets *int32 `json:"num_packets"`

	// packets received
	PacketsReceived int32 `json:"packets_received,omitempty"`

	// packets transmitted
	PacketsTransmitted int32 `json:"packets_transmitted,omitempty"`
}

PingResult ping result swagger:model ping_result

func (*PingResult) MarshalBinary

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

MarshalBinary interface implementation

func (*PingResult) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PingResult) Validate

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

Validate validates this ping result

type PlatformInfo

type PlatformInfo struct {

	// config info
	ConfigInfo *ConfigInfo `json:"config_info,omitempty"`

	// kernel version
	KernelVersion string `json:"kernel_version,omitempty"`

	// kernel versions installed
	KernelVersionsInstalled []string `json:"kernel_versions_installed,omitempty"`

	// packages
	Packages []*Package `json:"packages,omitempty"`

	// vpn ip
	VpnIP string `json:"vpn_ip,omitempty" magma_alt_name:"VpnIp"`
}

PlatformInfo platform info swagger:model platform_info

func (*PlatformInfo) MarshalBinary

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

MarshalBinary interface implementation

func (*PlatformInfo) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PlatformInfo) Validate

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

Validate validates this platform info

type ReleaseChannel

type ReleaseChannel struct {

	// id
	// Required: true
	ID ChannelID `json:"id"`

	// name
	Name string `json:"name,omitempty"`

	// supported versions
	// Required: true
	SupportedVersions []string `json:"supported_versions"`
}

ReleaseChannel release channel swagger:model release_channel

func (*ReleaseChannel) MarshalBinary

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

MarshalBinary interface implementation

func (*ReleaseChannel) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ReleaseChannel) Validate

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

Validate validates this release channel

func (*ReleaseChannel) ValidateModel

func (m *ReleaseChannel) ValidateModel() error

type Route

type Route struct {

	// destination ip
	DestinationIP string `json:"destination_ip,omitempty" magma_alt_name:"DestinationIp"`

	// gateway ip
	GatewayIP string `json:"gateway_ip,omitempty" magma_alt_name:"GatewayIp"`

	// genmask
	Genmask string `json:"genmask,omitempty"`

	// network interface id
	NetworkInterfaceID string `json:"network_interface_id,omitempty" magma_alt_name:"NetworkInterfaceId"`
}

Route route swagger:model route

func (*Route) MarshalBinary

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

MarshalBinary interface implementation

func (*Route) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Route) Validate

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

Validate validates this route

type SystemStatus

type SystemStatus struct {

	// cpu idle
	CPUIDLE uint64 `json:"cpu_idle,omitempty" magma_alt_name:"CpuIdle"`

	// cpu system
	CPUSystem uint64 `json:"cpu_system,omitempty" magma_alt_name:"CpuSystem"`

	// cpu user
	CPUUser uint64 `json:"cpu_user,omitempty" magma_alt_name:"CpuUser"`

	// disk partitions
	DiskPartitions []*DiskPartition `json:"disk_partitions,omitempty"`

	// mem available
	MemAvailable uint64 `json:"mem_available,omitempty"`

	// mem free
	MemFree uint64 `json:"mem_free,omitempty"`

	// mem total
	MemTotal uint64 `json:"mem_total,omitempty"`

	// mem used
	MemUsed uint64 `json:"mem_used,omitempty"`

	// swap free
	SwapFree uint64 `json:"swap_free,omitempty"`

	// swap total
	SwapTotal uint64 `json:"swap_total,omitempty"`

	// swap used
	SwapUsed uint64 `json:"swap_used,omitempty"`

	// time
	Time uint64 `json:"time,omitempty"`

	// uptime secs
	UptimeSecs uint64 `json:"uptime_secs,omitempty"`
}

SystemStatus system status swagger:model system_status

func (*SystemStatus) MarshalBinary

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

MarshalBinary interface implementation

func (*SystemStatus) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SystemStatus) Validate

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

Validate validates this system status

type TailLogsRequest

type TailLogsRequest struct {

	// service
	// Min Length: 1
	Service string `json:"service,omitempty"`
}

TailLogsRequest tail logs request swagger:model tail_logs_request

func (*TailLogsRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*TailLogsRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*TailLogsRequest) Validate

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

Validate validates this tail logs request

type Tier

type Tier struct {

	// gateways
	// Required: true
	Gateways TierGateways `json:"gateways"`

	// id
	// Required: true
	ID TierID `json:"id"`

	// images
	// Required: true
	Images TierImages `json:"images"`

	// name
	Name TierName `json:"name,omitempty"`

	// version
	// Required: true
	Version TierVersion `json:"version"`
}

Tier tier swagger:model tier

func (*Tier) FromBackendModel

func (m *Tier) FromBackendModel(entity configurator.NetworkEntity) *Tier

func (*Tier) MarshalBinary

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

MarshalBinary interface implementation

func (*Tier) ToNetworkEntity

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

func (*Tier) ToUpdateCriteria

func (m *Tier) ToUpdateCriteria() configurator.EntityUpdateCriteria

func (*Tier) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Tier) Validate

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

Validate validates this tier

func (*Tier) ValidateModel

func (m *Tier) ValidateModel() error

type TierGateways

type TierGateways []models1.GatewayID

TierGateways tier gateways swagger:model tier_gateways

func (*TierGateways) FromBackendModels

func (m *TierGateways) FromBackendModels(networkID string, key string) error

func (*TierGateways) ToAddGatewayUpdateCriteria

func (m *TierGateways) ToAddGatewayUpdateCriteria(tierID, gatewayID string) configurator.EntityUpdateCriteria

func (*TierGateways) ToDeleteGatewayUpdateCriteria

func (m *TierGateways) ToDeleteGatewayUpdateCriteria(tierID, gatewayID string) configurator.EntityUpdateCriteria

func (*TierGateways) ToUpdateCriteria

func (m *TierGateways) ToUpdateCriteria(networkID, key string) ([]configurator.EntityUpdateCriteria, error)

func (TierGateways) Validate

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

Validate validates this tier gateways

func (*TierGateways) ValidateModel

func (m *TierGateways) ValidateModel() error

type TierID

type TierID string

TierID tier id swagger:model tier_id

func (*TierID) FromBackendModels

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

func (*TierID) ToUpdateCriteria

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

func (TierID) Validate

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

Validate validates this tier id

func (TierID) ValidateModel

func (m TierID) ValidateModel() error

type TierImage

type TierImage struct {

	// name
	// Required: true
	Name *string `json:"name"`

	// order
	// Required: true
	Order *int64 `json:"order"`
}

TierImage tier image swagger:model tier_image

func (*TierImage) MarshalBinary

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

MarshalBinary interface implementation

func (*TierImage) ToDeleteImageUpdateCriteria

func (m *TierImage) ToDeleteImageUpdateCriteria(networkID, tierID, imageName string) (configurator.EntityUpdateCriteria, error)

func (*TierImage) ToUpdateCriteria

func (m *TierImage) ToUpdateCriteria(networkID string, key string) ([]configurator.EntityUpdateCriteria, error)

func (*TierImage) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*TierImage) Validate

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

Validate validates this tier image

func (*TierImage) ValidateModel

func (m *TierImage) ValidateModel() error

type TierImages

type TierImages []*TierImage

TierImages tier images swagger:model tier_images

func (*TierImages) FromBackendModels

func (m *TierImages) FromBackendModels(networkID string, key string) error

func (*TierImages) ToUpdateCriteria

func (m *TierImages) ToUpdateCriteria(networkID, key string) ([]configurator.EntityUpdateCriteria, error)

func (TierImages) Validate

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

Validate validates this tier images

func (*TierImages) ValidateModel

func (m *TierImages) ValidateModel() error

type TierName

type TierName string

TierName tier name swagger:model tier_name

func (*TierName) FromBackendModels

func (m *TierName) FromBackendModels(networkID string, key string) error

func (*TierName) ToUpdateCriteria

func (m *TierName) ToUpdateCriteria(networkID string, key string) ([]configurator.EntityUpdateCriteria, error)

func (TierName) Validate

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

Validate validates this tier name

func (*TierName) ValidateModel

func (m *TierName) ValidateModel() error

type TierVersion

type TierVersion string

TierVersion tier version swagger:model tier_version

func (*TierVersion) FromBackendModels

func (m *TierVersion) FromBackendModels(networkID string, key string) error

func (*TierVersion) ToString

func (m *TierVersion) ToString() string

func (*TierVersion) ToUpdateCriteria

func (m *TierVersion) ToUpdateCriteria(networkID, key string) ([]configurator.EntityUpdateCriteria, error)

func (TierVersion) Validate

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

Validate validates this tier version

func (*TierVersion) ValidateModel

func (m *TierVersion) ValidateModel() error

Jump to

Keyboard shortcuts

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