models

package
v0.0.0-...-686bfca Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package models defines all models to be used in the CCE API. +groupName=v1

Index

Constants

View Source
const (

	// BackendAddressStateActive captures enum value "active"
	BackendAddressStateActive string = "active"

	// BackendAddressStateTerminating captures enum value "terminating"
	BackendAddressStateTerminating string = "terminating"

	// BackendAddressStateQuarantined captures enum value "quarantined"
	BackendAddressStateQuarantined string = "quarantined"

	// BackendAddressStateMaintenance captures enum value "maintenance"
	BackendAddressStateMaintenance string = "maintenance"
)
View Source
const (

	// BandwidthOptionModeEdt captures enum value "edt"
	BandwidthOptionModeEdt string = "edt"

	// BandwidthOptionModeTc captures enum value "tc"
	BandwidthOptionModeTc string = "tc"

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

	// CNIChainingStatusModeNone captures enum value "none"
	CNIChainingStatusModeNone string = "none"

	// CNIChainingStatusModeAwsCni captures enum value "aws-cni"
	CNIChainingStatusModeAwsCni string = "aws-cni"

	// CNIChainingStatusModeFlannel captures enum value "flannel"
	CNIChainingStatusModeFlannel string = "flannel"

	// CNIChainingStatusModeGenericVeth captures enum value "generic-veth"
	CNIChainingStatusModeGenericVeth string = "generic-veth"

	// CNIChainingStatusModePortmap captures enum value "portmap"
	CNIChainingStatusModePortmap string = "portmap"
)
View Source
const (

	// EndpointStatusChangeCodeOk captures enum value "ok"
	EndpointStatusChangeCodeOk string = "ok"

	// EndpointStatusChangeCodeFailed captures enum value "failed"
	EndpointStatusChangeCodeFailed string = "failed"
)
View Source
const (

	// IpvlanConfigurationOperationModeL3 captures enum value "L3"
	IpvlanConfigurationOperationModeL3 string = "L3"

	// IpvlanConfigurationOperationModeL3S captures enum value "L3S"
	IpvlanConfigurationOperationModeL3S string = "L3S"
)
View Source
const (

	// K8sStatusStateOk captures enum value "Ok"
	K8sStatusStateOk string = "Ok"

	// K8sStatusStateWarning captures enum value "Warning"
	K8sStatusStateWarning string = "Warning"

	// K8sStatusStateFailure captures enum value "Failure"
	K8sStatusStateFailure string = "Failure"

	// K8sStatusStateDisabled captures enum value "Disabled"
	K8sStatusStateDisabled string = "Disabled"
)
View Source
const (

	// MasqueradingModeBPF captures enum value "BPF"
	MasqueradingModeBPF string = "BPF"

	// MasqueradingModeIptables captures enum value "iptables"
	MasqueradingModeIptables string = "iptables"
)
View Source
const (

	// StatusStateOk captures enum value "Ok"
	StatusStateOk string = "Ok"

	// StatusStateWarning captures enum value "Warning"
	StatusStateWarning string = "Warning"

	// StatusStateFailure captures enum value "Failure"
	StatusStateFailure string = "Failure"

	// StatusStateDisabled captures enum value "Disabled"
	StatusStateDisabled string = "Disabled"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address string

Address IP address

swagger:model Address

func (Address) Validate

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

Validate validates this address

type AddressPair

type AddressPair struct {

	// IPv4 address
	IPV4 string `json:"ipv4,omitempty"`

	// UUID of IPv4 expiration timer
	IPV4ExpirationUUID string `json:"ipv4-expiration-uuid,omitempty"`

	// IPv6 address
	IPV6 string `json:"ipv6,omitempty"`

	// UUID of IPv6 expiration timer
	IPV6ExpirationUUID string `json:"ipv6-expiration-uuid,omitempty"`
}

AddressPair Addressing information of an endpoint

swagger:model AddressPair

func (*AddressPair) MarshalBinary

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

MarshalBinary interface implementation

func (*AddressPair) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AddressPair) Validate

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

Validate validates this address pair

type AllocationMap

type AllocationMap map[string]string

AllocationMap Map of allocated IPs

swagger:model AllocationMap

func (AllocationMap) Validate

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

Validate validates this allocation map

type BackendAddress

type BackendAddress struct {

	// Layer 3 address
	// Required: true
	IP *string `json:"ip"`

	// Optional name of the node on which this backend runs
	NodeName string `json:"nodeName,omitempty"`

	// Layer 4 port number
	Port uint16 `json:"port,omitempty"`

	// Indicator if this backend is preferred in the context of clustermesh service affinity. The value is set based
	// on related annotation of global service. Applicable for active state only.
	Preferred bool `json:"preferred,omitempty"`

	// State of the backend for load-balancing service traffic
	// Enum: [active terminating quarantined maintenance]
	State string `json:"state,omitempty"`
}

BackendAddress Service backend address

swagger:model BackendAddress

func (*BackendAddress) MarshalBinary

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

MarshalBinary interface implementation

func (*BackendAddress) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*BackendAddress) Validate

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

Validate validates this backend address

type BandwidthOption

type BandwidthOption struct {

	// egress
	Egress int64 `json:"egress,omitempty"`

	// ingress
	Ingress int64 `json:"ingress,omitempty"`

	// mode
	// Enum: [edt tc ]
	Mode string `json:"mode,omitempty"`
}

BandwidthOption BandwidthOption is the bandwidth option of network +k8s:deepcopy-gen=true

swagger:model BandwidthOption

func (*BandwidthOption) MarshalBinary

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

MarshalBinary interface implementation

func (*BandwidthOption) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*BandwidthOption) Validate

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

Validate validates this bandwidth option

type CNIChainingStatus

type CNIChainingStatus struct {

	// mode
	// Enum: [none aws-cni flannel generic-veth portmap]
	Mode string `json:"mode,omitempty"`
}

CNIChainingStatus Status of CNI chaining

+k8s:deepcopy-gen=true

swagger:model CNIChainingStatus

func (*CNIChainingStatus) DeepCopy

func (in *CNIChainingStatus) DeepCopy() *CNIChainingStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CNIChainingStatus.

func (*CNIChainingStatus) DeepCopyInto

func (in *CNIChainingStatus) DeepCopyInto(out *CNIChainingStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*CNIChainingStatus) MarshalBinary

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

MarshalBinary interface implementation

func (*CNIChainingStatus) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CNIChainingStatus) Validate

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

Validate validates this c n i chaining status

type ClusterNodeStatus

type ClusterNodeStatus struct {

	// ID that should be used by the client to receive a diff from the previous request
	ClientID int64 `json:"client-id,omitempty"`

	// List of known nodes
	NodesAdded []*NodeElement `json:"nodes-added"`

	// List of known nodes
	NodesRemoved []*NodeElement `json:"nodes-removed"`

	// Name of local node (if available)
	Self string `json:"self,omitempty"`
}

ClusterNodeStatus Status of cluster

swagger:model ClusterNodeStatus

func (*ClusterNodeStatus) MarshalBinary

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

MarshalBinary interface implementation

func (*ClusterNodeStatus) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ClusterNodeStatus) Validate

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

Validate validates this cluster node status

type ClusterNodesResponse

type ClusterNodesResponse struct {

	// List of known nodes
	Nodes []*NodeElement `json:"nodes"`

	// Name of local node (if available)
	Self string `json:"self,omitempty"`
}

ClusterNodesResponse cluster nodes response

swagger:model ClusterNodesResponse

func (*ClusterNodesResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*ClusterNodesResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ClusterNodesResponse) Validate

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

Validate validates this cluster nodes response

type ClusterStatus

type ClusterStatus struct {

	// Status of local cce-health daemon
	CCEHealth *Status `json:"cceHealth,omitempty"`

	// List of known nodes
	Nodes []*NodeElement `json:"nodes"`

	// Name of local node (if available)
	Self string `json:"self,omitempty"`
}

ClusterStatus Status of cluster

+k8s:deepcopy-gen=true

swagger:model ClusterStatus

func (*ClusterStatus) DeepCopy

func (in *ClusterStatus) DeepCopy() *ClusterStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterStatus.

func (*ClusterStatus) DeepCopyInto

func (in *ClusterStatus) DeepCopyInto(out *ClusterStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ClusterStatus) MarshalBinary

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

MarshalBinary interface implementation

func (*ClusterStatus) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ClusterStatus) Validate

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

Validate validates this cluster status

type ConfigurationMap

type ConfigurationMap map[string]string

ConfigurationMap Map of configuration key/value pairs.

swagger:model ConfigurationMap

func (ConfigurationMap) Validate

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

Validate validates this configuration map

type ControllerStatus

type ControllerStatus struct {

	// configuration
	Configuration *ControllerStatusConfiguration `json:"configuration,omitempty"`

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

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

	// UUID of controller
	// Format: uuid
	UUID strfmt.UUID `json:"uuid,omitempty"`
}

ControllerStatus Status of a controller

+k8s:deepcopy-gen=true

swagger:model ControllerStatus

func (*ControllerStatus) DeepCopy

func (in *ControllerStatus) DeepCopy() *ControllerStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ControllerStatus.

func (*ControllerStatus) DeepCopyInto

func (in *ControllerStatus) DeepCopyInto(out *ControllerStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ControllerStatus) MarshalBinary

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

MarshalBinary interface implementation

func (*ControllerStatus) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ControllerStatus) Validate

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

Validate validates this controller status

type ControllerStatusConfiguration

type ControllerStatusConfiguration struct {

	// Retry on error
	ErrorRetry bool `json:"error-retry,omitempty"`

	// Base error retry back-off time
	// Format: duration
	ErrorRetryBase strfmt.Duration `json:"error-retry-base,omitempty"`

	// Regular synchronization interval
	// Format: duration
	Interval strfmt.Duration `json:"interval,omitempty"`
}

ControllerStatusConfiguration Configuration of controller

+deepequal-gen=true +k8s:deepcopy-gen=true

swagger:model ControllerStatusConfiguration

func (*ControllerStatusConfiguration) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ControllerStatusConfiguration.

func (*ControllerStatusConfiguration) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ControllerStatusConfiguration) DeepEqual

DeepEqual is an autogenerated deepequal function, deeply comparing the receiver with other. in must be non-nil.

func (*ControllerStatusConfiguration) MarshalBinary

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

MarshalBinary interface implementation

func (*ControllerStatusConfiguration) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ControllerStatusConfiguration) Validate

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

Validate validates this controller status configuration

type ControllerStatusStatus

type ControllerStatusStatus struct {

	// Number of consecutive errors since last success
	ConsecutiveFailureCount int64 `json:"consecutive-failure-count,omitempty"`

	// Total number of failed runs
	FailureCount int64 `json:"failure-count,omitempty"`

	// Error message of last failed run
	LastFailureMsg string `json:"last-failure-msg,omitempty"`

	// Timestamp of last error
	// Format: date-time
	LastFailureTimestamp strfmt.DateTime `json:"last-failure-timestamp,omitempty"`

	// Timestamp of last success
	// Format: date-time
	LastSuccessTimestamp strfmt.DateTime `json:"last-success-timestamp,omitempty"`

	// Total number of successful runs
	SuccessCount int64 `json:"success-count,omitempty"`
}

ControllerStatusStatus Current status of controller

+k8s:deepcopy-gen=true

swagger:model ControllerStatusStatus

func (*ControllerStatusStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ControllerStatusStatus.

func (*ControllerStatusStatus) DeepCopyInto

func (in *ControllerStatusStatus) DeepCopyInto(out *ControllerStatusStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ControllerStatusStatus) MarshalBinary

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

MarshalBinary interface implementation

func (*ControllerStatusStatus) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ControllerStatusStatus) Validate

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

Validate validates this controller status status

type ControllerStatuses

type ControllerStatuses []*ControllerStatus

ControllerStatuses Collection of controller statuses

swagger:model ControllerStatuses

func (ControllerStatuses) Validate

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

Validate validates this controller statuses

type DatapathMode

type DatapathMode string

DatapathMode Datapath mode

swagger:model DatapathMode

const (

	// DatapathModeVeth captures enum value "veth"
	DatapathModeVeth DatapathMode = "veth"

	// DatapathModeIpvlan captures enum value "ipvlan"
	DatapathModeIpvlan DatapathMode = "ipvlan"
)

func (DatapathMode) Validate

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

Validate validates this datapath mode

type ENI

type ENI struct {

	// description
	Description string `json:"description,omitempty"`

	// enterprise security group ids
	EnterpriseSecurityGroupIds []string `json:"enterpriseSecurityGroupIds,omitempty"`

	// ID unique identifier available for the resource
	ID string `json:"id,omitempty"`

	// InstanceID insance ID of node resource, like ID of BCC.
	// This field represents the node name that ENI expects to attached.
	// Example:
	// i-wWANcEYK
	//
	InstanceID string `json:"instanceID,omitempty"`

	// ipv6 private IP set
	IPV6PrivateIPSet []*PrivateIP `json:"ipv6PrivateIPSet,omitempty"`

	// MacAddress mac address of eni instance
	// After the ENI is attached to the VM, the ENI device should be found in the
	// VM through this mac address
	// Example:
	// fa:26:00:0d:51:c7
	//
	MacAddress string `json:"macAddress,omitempty"`

	// The name of eni was created by CCE and format as {clusterID}-{instance_name}-{randmon}
	Name string `json:"name,omitempty"`

	// private IP set
	PrivateIPSet []*PrivateIP `json:"privateIPSet,omitempty"`

	// SecurityGroupIds list of security group IDs
	// An ENI should have at least one default security group
	// Example:
	// ["g-xpy9eitxhfib"]
	//
	SecurityGroupIds []string `json:"securityGroupIds,omitempty"`

	// SubnetID subnet id of eni instance
	// In scenarios where ENI is used across Subnet (such as PodSubnetTopologySpread), the subnet ID of ENI may
	// be different from secondry IP of the ENI.
	// Example:
	// sbn-na1y2xryjyf3
	//
	SubnetID string `json:"subnetID,omitempty"`

	// VPCID vpc id of eni instance
	// In scenarios where ENI is used across VPCs (such as BCI), the VPC ID of ENI may
	// be different from that of the cluster
	// Example:
	// vpc-8nh1ks7a55a2
	//
	VpcID string `json:"vpcID,omitempty"`

	// ZoneName zone name of eni instance
	ZoneName string `json:"zoneName,omitempty"`
}

ENI eni definition

+k8s:deepcopy-gen=true

swagger:model ENI

func (*ENI) DeepCopy

func (in *ENI) DeepCopy() *ENI

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ENI.

func (*ENI) DeepCopyInto

func (in *ENI) DeepCopyInto(out *ENI)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ENI) MarshalBinary

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

MarshalBinary interface implementation

func (*ENI) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ENI) Validate

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

Validate validates this e n i

type EndpointIdentifiers

type EndpointIdentifiers struct {

	// device driver name
	Cnidriver string `json:"cnidriver,omitempty"`

	// ID assigned by container runtime
	ContainerID string `json:"container-id,omitempty"`

	// Name assigned to container
	ContainerName string `json:"container-name,omitempty"`

	// External network ID, such as the ID of the ENI occupied by the container
	ExternalIdentifier string `json:"external-identifier,omitempty"`

	// K8s namespace for this endpoint
	K8sNamespace string `json:"k8s-namespace,omitempty"`

	// K8s object id to indentifier a unique object
	K8sObjectID string `json:"k8s-object-id,omitempty"`

	// K8s pod name for this endpoint
	K8sPodName string `json:"k8s-pod-name,omitempty"`

	// netns use by CNI
	Netns string `json:"netns,omitempty"`

	// K8s pod for this endpoint(Deprecated, use K8sPodName and K8sNamespace instead)
	PodName string `json:"pod-name,omitempty"`
}

EndpointIdentifiers Unique identifiers for this endpoint from outside CCE

+deepequal-gen=true

swagger:model EndpointIdentifiers

func (*EndpointIdentifiers) DeepEqual

func (in *EndpointIdentifiers) DeepEqual(other *EndpointIdentifiers) bool

DeepEqual is an autogenerated deepequal function, deeply comparing the receiver with other. in must be non-nil.

func (*EndpointIdentifiers) MarshalBinary

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

MarshalBinary interface implementation

func (*EndpointIdentifiers) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*EndpointIdentifiers) Validate

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

Validate validates this endpoint identifiers

type EndpointProbeFeatureGate

type EndpointProbeFeatureGate struct {

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

	// Do you need to wait for the feature to complete
	WaitReady bool `json:"waitReady,omitempty"`
}

EndpointProbeFeatureGate faeature gate representing the characteristics that require waiting and querying

swagger:model EndpointProbeFeatureGate

func (*EndpointProbeFeatureGate) MarshalBinary

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

MarshalBinary interface implementation

func (*EndpointProbeFeatureGate) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*EndpointProbeFeatureGate) Validate

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

Validate validates this endpoint probe feature gate

type EndpointProbeResponse

type EndpointProbeResponse struct {

	// band width
	BandWidth *BandwidthOption `json:"bandWidth,omitempty"`

	// feature gates
	FeatureGates []ExtFeatureData `json:"featureGates,omitempty"`
}

EndpointProbeResponse EndpointProbeResponse is the response of probe endpoint

swagger:model EndpointProbeResponse

func (*EndpointProbeResponse) DeepEqual

func (in *EndpointProbeResponse) DeepEqual(other *EndpointProbeResponse) bool

DeepEqual is an autogenerated deepequal function, deeply comparing the receiver with other. in must be non-nil.

func (*EndpointProbeResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*EndpointProbeResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*EndpointProbeResponse) Validate

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

Validate validates this endpoint probe response

type EndpointState

type EndpointState string

EndpointState State of endpoint

swagger:model EndpointState

const (

	// EndpointStateWaitingForIdentity captures enum value "waiting-for-identity"
	EndpointStateWaitingForIdentity EndpointState = "waiting-for-identity"

	// EndpointStateNotReady captures enum value "not-ready"
	EndpointStateNotReady EndpointState = "not-ready"

	// EndpointStateWaitingToRegenerate captures enum value "waiting-to-regenerate"
	EndpointStateWaitingToRegenerate EndpointState = "waiting-to-regenerate"

	// EndpointStateRegenerating captures enum value "regenerating"
	EndpointStateRegenerating EndpointState = "regenerating"

	// EndpointStateRestoring captures enum value "restoring"
	EndpointStateRestoring EndpointState = "restoring"

	// EndpointStateReady captures enum value "ready"
	EndpointStateReady EndpointState = "ready"

	// EndpointStateDisconnecting captures enum value "disconnecting"
	EndpointStateDisconnecting EndpointState = "disconnecting"

	// EndpointStateDisconnected captures enum value "disconnected"
	EndpointStateDisconnected EndpointState = "disconnected"

	// EndpointStateInvalid captures enum value "invalid"
	EndpointStateInvalid EndpointState = "invalid"

	// EndpointStateIPAllocated captures enum value "ip-allocated"
	EndpointStateIPAllocated EndpointState = "ip-allocated"

	// EndpointStatePodDeleted captures enum value "pod-deleted"
	EndpointStatePodDeleted EndpointState = "pod-deleted"
)

func (EndpointState) Validate

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

Validate validates this endpoint state

type EndpointStatusChange

type EndpointStatusChange struct {

	// Code indicate type of status change
	// Enum: [ok failed]
	Code string `json:"code,omitempty"`

	// Status message
	Message string `json:"message,omitempty"`

	// state
	State EndpointState `json:"state,omitempty"`

	// Timestamp when status change occurred
	Timestamp string `json:"timestamp,omitempty"`
}

EndpointStatusChange Indication of a change of status

+deepequal-gen=true

swagger:model EndpointStatusChange

func (*EndpointStatusChange) DeepEqual

func (in *EndpointStatusChange) DeepEqual(other *EndpointStatusChange) bool

DeepEqual is an autogenerated deepequal function, deeply comparing the receiver with other. in must be non-nil.

func (*EndpointStatusChange) MarshalBinary

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

MarshalBinary interface implementation

func (*EndpointStatusChange) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*EndpointStatusChange) Validate

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

Validate validates this endpoint status change

type EndpointStatusLog

type EndpointStatusLog []*EndpointStatusChange

EndpointStatusLog Status log of endpoint

swagger:model EndpointStatusLog

func (EndpointStatusLog) Validate

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

Validate validates this endpoint status log

type Error

type Error string

Error error

swagger:model Error

func (Error) Validate

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

Validate validates this error

type ExtFeatureData

type ExtFeatureData map[string]map[string]string

ExtFeatureData ExtFeatureData is a map

swagger:model ExtFeatureData

func (ExtFeatureData) Validate

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

Validate validates this ext feature data

type IPAMAddressResponse

type IPAMAddressResponse struct {

	// List of CIDRs out of which IPs are allocated
	Cidrs []string `json:"cidrs"`

	// The UUID for the expiration timer. Set when expiration has been
	// enabled while allocating.
	//
	ExpirationUUID string `json:"expiration-uuid,omitempty"`

	// IP of gateway
	Gateway string `json:"gateway,omitempty"`

	// InterfaceNumber is a field for generically identifying an interface. This is only useful in ENI mode.
	//
	InterfaceNumber string `json:"interface-number,omitempty"`

	// Allocated IP for endpoint
	IP string `json:"ip,omitempty"`

	// MAC of master interface if address is a slave/secondary of a master interface
	MasterMac string `json:"master-mac,omitempty"`
}

IPAMAddressResponse IPAM configuration of an individual address family

swagger:model IPAMAddressResponse

func (*IPAMAddressResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*IPAMAddressResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*IPAMAddressResponse) Validate

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

Validate validates this IP a m address response

type IPAMResponse

type IPAMResponse struct {

	// address
	// Required: true
	Address *AddressPair `json:"address"`

	// host addressing
	// Required: true
	HostAddressing *NodeAddressing `json:"host-addressing"`

	// ipv4
	IPV4 *IPAMAddressResponse `json:"ipv4,omitempty"`

	// ipv6
	IPV6 *IPAMAddressResponse `json:"ipv6,omitempty"`
}

IPAMResponse IPAM configuration of an endpoint

swagger:model IPAMResponse

func (*IPAMResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*IPAMResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*IPAMResponse) Validate

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

Validate validates this IP a m response

type IPAMStatus

type IPAMStatus struct {

	// allocations
	Allocations AllocationMap `json:"allocations,omitempty"`

	// ipv4
	IPV4 []string `json:"ipv4"`

	// ipv6
	IPV6 []string `json:"ipv6"`

	// status
	Status string `json:"status,omitempty"`
}

IPAMStatus Status of IP address management

+k8s:deepcopy-gen=true

swagger:model IPAMStatus

func (*IPAMStatus) DeepCopy

func (in *IPAMStatus) DeepCopy() *IPAMStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPAMStatus.

func (*IPAMStatus) DeepCopyInto

func (in *IPAMStatus) DeepCopyInto(out *IPAMStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*IPAMStatus) MarshalBinary

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

MarshalBinary interface implementation

func (*IPAMStatus) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*IPAMStatus) Validate

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

Validate validates this IP a m status

type IpvlanConfiguration

type IpvlanConfiguration struct {

	// Workload facing ipvlan master device ifindex.
	MasterDeviceIndex int64 `json:"masterDeviceIndex,omitempty"`

	// Mode in which ipvlan setup operates.
	// Enum: [L3 L3S]
	OperationMode string `json:"operationMode,omitempty"`
}

IpvlanConfiguration Setup for datapath when operating in ipvlan mode.

swagger:model IpvlanConfiguration

func (*IpvlanConfiguration) MarshalBinary

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

MarshalBinary interface implementation

func (*IpvlanConfiguration) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*IpvlanConfiguration) Validate

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

Validate validates this ipvlan configuration

type K8sStatus

type K8sStatus struct {

	// k8s api versions
	K8sAPIVersions []string `json:"k8s-api-versions"`

	// Human readable status/error/warning message
	Msg string `json:"msg,omitempty"`

	// State the component is in
	// Enum: [Ok Warning Failure Disabled]
	State string `json:"state,omitempty"`
}

K8sStatus Status of Kubernetes integration

+k8s:deepcopy-gen=true

swagger:model K8sStatus

func (*K8sStatus) DeepCopy

func (in *K8sStatus) DeepCopy() *K8sStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K8sStatus.

func (*K8sStatus) DeepCopyInto

func (in *K8sStatus) DeepCopyInto(out *K8sStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*K8sStatus) MarshalBinary

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

MarshalBinary interface implementation

func (*K8sStatus) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*K8sStatus) Validate

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

Validate validates this k8s status

type Masquerading

type Masquerading struct {

	// enabled
	Enabled bool `json:"enabled,omitempty"`

	// enabled protocols
	EnabledProtocols *MasqueradingEnabledProtocols `json:"enabledProtocols,omitempty"`

	// Is BPF ip-masq-agent enabled
	IPMasqAgent bool `json:"ip-masq-agent,omitempty"`

	// mode
	// Enum: [BPF iptables]
	Mode string `json:"mode,omitempty"`

	// This field is obsolete, please use snat-exclusion-cidr-v4 or snat-exclusion-cidr-v6.
	SnatExclusionCidr string `json:"snat-exclusion-cidr,omitempty"`

	// SnatExclusionCIDRv4 exempts SNAT from being performed on any packet sent to
	// an IPv4 address that belongs to this CIDR.
	SnatExclusionCidrV4 string `json:"snat-exclusion-cidr-v4,omitempty"`

	// SnatExclusionCIDRv6 exempts SNAT from being performed on any packet sent to
	// an IPv6 address that belongs to this CIDR.
	// For IPv6 we only do masquerading in iptables mode.
	SnatExclusionCidrV6 string `json:"snat-exclusion-cidr-v6,omitempty"`
}

Masquerading Status of masquerading

+k8s:deepcopy-gen=true

swagger:model Masquerading

func (*Masquerading) DeepCopy

func (in *Masquerading) DeepCopy() *Masquerading

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Masquerading.

func (*Masquerading) DeepCopyInto

func (in *Masquerading) DeepCopyInto(out *Masquerading)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Masquerading) MarshalBinary

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

MarshalBinary interface implementation

func (*Masquerading) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Masquerading) Validate

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

Validate validates this masquerading

type MasqueradingEnabledProtocols

type MasqueradingEnabledProtocols struct {

	// Is masquerading enabled for IPv4 traffic
	IPV4 bool `json:"ipv4,omitempty"`

	// Is masquerading enabled for IPv6 traffic
	IPV6 bool `json:"ipv6,omitempty"`
}

MasqueradingEnabledProtocols Is masquerading enabled

swagger:model MasqueradingEnabledProtocols

func (*MasqueradingEnabledProtocols) MarshalBinary

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

MarshalBinary interface implementation

func (*MasqueradingEnabledProtocols) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*MasqueradingEnabledProtocols) Validate

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

Validate validates this masquerading enabled protocols

type Metric

type Metric struct {

	// Labels of the metric
	Labels map[string]string `json:"labels,omitempty"`

	// Name of the metric
	Name string `json:"name,omitempty"`

	// Value of the metric
	Value float64 `json:"value,omitempty"`
}

Metric Metric information

swagger:model Metric

func (*Metric) MarshalBinary

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

MarshalBinary interface implementation

func (*Metric) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Metric) Validate

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

Validate validates this metric

type MonitorStatus

type MonitorStatus struct {

	// Number of CPUs to listen on for events.
	Cpus int64 `json:"cpus,omitempty"`

	// Number of samples lost by perf.
	Lost int64 `json:"lost,omitempty"`

	// Number of pages used for the perf ring buffer.
	Npages int64 `json:"npages,omitempty"`

	// Pages size used for the perf ring buffer.
	Pagesize int64 `json:"pagesize,omitempty"`

	// Number of unknown samples.
	Unknown int64 `json:"unknown,omitempty"`
}

MonitorStatus Status of the node monitor

swagger:model MonitorStatus

func (*MonitorStatus) MarshalBinary

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

MarshalBinary interface implementation

func (*MonitorStatus) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*MonitorStatus) Validate

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

Validate validates this monitor status

type NodeAddressing

type NodeAddressing struct {

	// ipv4
	IPV4 *NodeAddressingElement `json:"ipv4,omitempty"`

	// ipv6
	IPV6 *NodeAddressingElement `json:"ipv6,omitempty"`
}

NodeAddressing Addressing information of a node for all address families

+k8s:deepcopy-gen=true

swagger:model NodeAddressing

func (*NodeAddressing) DeepCopy

func (in *NodeAddressing) DeepCopy() *NodeAddressing

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeAddressing.

func (*NodeAddressing) DeepCopyInto

func (in *NodeAddressing) DeepCopyInto(out *NodeAddressing)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*NodeAddressing) MarshalBinary

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

MarshalBinary interface implementation

func (*NodeAddressing) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NodeAddressing) Validate

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

Validate validates this node addressing

type NodeAddressingElement

type NodeAddressingElement struct {

	// Node address type, one of HostName, ExternalIP or InternalIP
	AddressType string `json:"address-type,omitempty"`

	// Address pool to be used for local endpoints
	AllocRange string `json:"alloc-range,omitempty"`

	// True if address family is enabled
	Enabled bool `json:"enabled,omitempty"`

	// IP address of node
	IP string `json:"ip,omitempty"`
}

NodeAddressingElement Addressing information

swagger:model NodeAddressingElement

func (*NodeAddressingElement) MarshalBinary

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

MarshalBinary interface implementation

func (*NodeAddressingElement) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NodeAddressingElement) Validate

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

Validate validates this node addressing element

type NodeElement

type NodeElement struct {
	// Name of the node including the cluster association. This is typically
	// <clustername>/<hostname>.
	//
	Name string `json:"name,omitempty"`

	// Primary address used for intra-cluster communication
	PrimaryAddress *NodeAddressing `json:"primary-address,omitempty"`

	// Alternative addresses assigned to the node
	SecondaryAddresses []*NodeAddressingElement `json:"secondary-addresses"`
}

NodeElement Known node in the cluster

+k8s:deepcopy-gen=true

swagger:model NodeElement

func (*NodeElement) DeepCopy

func (in *NodeElement) DeepCopy() *NodeElement

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeElement.

func (*NodeElement) DeepCopyInto

func (in *NodeElement) DeepCopyInto(out *NodeElement)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*NodeElement) MarshalBinary

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

MarshalBinary interface implementation

func (*NodeElement) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NodeElement) Validate

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

Validate validates this node element

type PrivateIP

type PrivateIP struct {

	// cidr address
	CidrAddress string `json:"cidrAddress,omitempty"`

	// gateway IP
	GatewayIP string `json:"gatewayIP,omitempty"`

	// primary
	Primary bool `json:"primary,omitempty"`

	// private IP address
	PrivateIPAddress string `json:"privateIPAddress,omitempty"`

	// public IP address
	PublicIPAddress string `json:"publicIPAddress,omitempty"`

	// SubnetID subnet id of  private ip assigned with this.
	// When allocating IP across subnets, the subnet of private IP may be
	// different from ENI
	//
	SubnetID string `json:"subnetID,omitempty"`
}

PrivateIP VPC IP address

+k8s:deepcopy-gen=true

swagger:model PrivateIP

func (*PrivateIP) DeepCopy

func (in *PrivateIP) DeepCopy() *PrivateIP

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrivateIP.

func (*PrivateIP) DeepCopyInto

func (in *PrivateIP) DeepCopyInto(out *PrivateIP)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PrivateIP) MarshalBinary

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

MarshalBinary interface implementation

func (*PrivateIP) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PrivateIP) Validate

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

Validate validates this private IP

type Status

type Status struct {

	// Human readable status/error/warning message
	Msg string `json:"msg,omitempty"`

	// State the component is in
	// Enum: [Ok Warning Failure Disabled]
	State string `json:"state,omitempty"`
}

Status Status of an individual component

+k8s:deepcopy-gen=true

swagger:model Status

func (*Status) DeepCopy

func (in *Status) DeepCopy() *Status

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Status.

func (*Status) DeepCopyInto

func (in *Status) DeepCopyInto(out *Status)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Status) MarshalBinary

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

MarshalBinary interface implementation

func (*Status) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Status) Validate

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

Validate validates this status

type StatusResponse

type StatusResponse struct {

	// Status of CCE daemon
	Cce *Status `json:"cce,omitempty"`

	// When supported by the API, this client ID should be used by the
	// client when making another request to the server.
	// See for example "/cluster/nodes".
	//
	ClientID string `json:"client-id,omitempty"`

	// Status of local container runtime
	ContainerRuntime *Status `json:"container-runtime,omitempty"`

	// Status of all endpoint controllers
	Controllers ControllerStatuses `json:"controllers,omitempty"`

	// List of stale information in the status
	Stale map[string]strfmt.DateTime `json:"stale,omitempty"`
}

StatusResponse Health and status information of daemon

+k8s:deepcopy-gen=true

swagger:model StatusResponse

func (*StatusResponse) DeepCopy

func (in *StatusResponse) DeepCopy() *StatusResponse

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StatusResponse.

func (*StatusResponse) DeepCopyInto

func (in *StatusResponse) DeepCopyInto(out *StatusResponse)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*StatusResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*StatusResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*StatusResponse) Validate

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

Validate validates this status response

Jump to

Keyboard shortcuts

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