v1

package
v0.0.0-...-53bbe3b Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1 contains API Schema definitions for the network v1 API group +kubebuilder:object:generate=true +groupName=network.crd.firemiles.top

Index

Constants

View Source
const (
	PhasePending   NetworkPhase = "Pending"
	PhaseAvailable NetworkPhase = "Available"
	PhaseBound     NetworkPhase = "Bound"
	PhaseRelease   NetworkPhase = "Release"
	PhaseFailed    NetworkPhase = "Failed"
	PhaseLost      NetworkPhase = "Lost"

	ResourceIPBlock  NetworkResourceType = "IPBlock"
	ResourceEndpoint NetworkResourceType = "Endpoint"

	// AnnBindCompleted Annotation applies to EndpointClaim. It indicates that the lifecycle
	// of the EC has passed through the initial setup. This information changes how
	// we interpret some observations of the state of the objects. Value of this
	// Annotation does not matter.
	AnnBindCompleted     = "network.crd.firemiles.top/bind-completed"
	AnnBoundByController = "network.crd.firemiles.top/bound-by-controller"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "network.crd.firemiles.top", Version: "v1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type Endpoint

type Endpoint struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   EndpointSpec   `json:"spec,omitempty"`
	Status EndpointStatus `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:resource:scope=Cluster +kubebuilder:subresource:status Endpoint is the Schema for the endpoints API

func (*Endpoint) DeepCopy

func (in *Endpoint) DeepCopy() *Endpoint

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

func (*Endpoint) DeepCopyInto

func (in *Endpoint) DeepCopyInto(out *Endpoint)

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

func (*Endpoint) DeepCopyObject

func (in *Endpoint) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type EndpointList

type EndpointList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Endpoint `json:"items"`
}

EndpointList contains a list of Endpoint

func (*EndpointList) DeepCopy

func (in *EndpointList) DeepCopy() *EndpointList

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

func (*EndpointList) DeepCopyInto

func (in *EndpointList) DeepCopyInto(out *EndpointList)

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

func (*EndpointList) DeepCopyObject

func (in *EndpointList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type EndpointPool

type EndpointPool struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   EndpointPoolSpec   `json:"spec,omitempty"`
	Status EndpointPoolStatus `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:resource:scope=Cluster +kubebuilder:subresource:status EndpointPool is the Schema for the endpointpools API

func (*EndpointPool) DeepCopy

func (in *EndpointPool) DeepCopy() *EndpointPool

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

func (*EndpointPool) DeepCopyInto

func (in *EndpointPool) DeepCopyInto(out *EndpointPool)

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

func (*EndpointPool) DeepCopyObject

func (in *EndpointPool) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type EndpointPoolList

type EndpointPoolList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []EndpointPool `json:"items"`
}

EndpointPoolList contains a list of EndpointPool

func (*EndpointPoolList) DeepCopy

func (in *EndpointPoolList) DeepCopy() *EndpointPoolList

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

func (*EndpointPoolList) DeepCopyInto

func (in *EndpointPoolList) DeepCopyInto(out *EndpointPoolList)

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

func (*EndpointPoolList) DeepCopyObject

func (in *EndpointPoolList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type EndpointPoolSpec

type EndpointPoolSpec struct {

	// reference network name
	Network string `json:"network"`
	// reference subnet slice name, if empty, controller will chose one for pool
	SubnetSlice []SubnetSlice `json:"SubnetSlice,omitempty"`
	// expect endpoint pool size
	PoolSize int `json:"poolSize"`
}

EndpointPoolSpec defines the desired state of EndpointPool

func (*EndpointPoolSpec) DeepCopy

func (in *EndpointPoolSpec) DeepCopy() *EndpointPoolSpec

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

func (*EndpointPoolSpec) DeepCopyInto

func (in *EndpointPoolSpec) DeepCopyInto(out *EndpointPoolSpec)

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

type EndpointPoolStatus

type EndpointPoolStatus struct {

	// Phase
	Phase NetworkPhase `json:"phase"`
	// Message for phase
	Message string `json:"message,omitempty"`
	// current allocated ready endpoints
	AvailableEndpoints int `json:"availableEndpoints"`
}

EndpointPoolStatus defines the observed state of EndpointPool

func (*EndpointPoolStatus) DeepCopy

func (in *EndpointPoolStatus) DeepCopy() *EndpointPoolStatus

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

func (*EndpointPoolStatus) DeepCopyInto

func (in *EndpointPoolStatus) DeepCopyInto(out *EndpointPoolStatus)

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

type EndpointSpec

type EndpointSpec struct {

	// Type is interface type, veth, ipvlan, macvlan
	Type string `json:"type"`
	// IPs are ip addresses
	IPs []FixedIP `json:"ips"`
	// Mac is endpoint mac address
	MAC string `json:"mac"`
	// InterfaceName is interface name in pod
	InterfaceName string `json:"interfaceName,omitempty"`
	// Network is network name reference
	Network string `json:"network"`
	// SubnetSlice is subnet slice name reference
	SubnetSlice SubnetSlice `json:"subnetSlice"`
}

EndpointSpec defines the desired state of Endpoint

func (*EndpointSpec) DeepCopy

func (in *EndpointSpec) DeepCopy() *EndpointSpec

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

func (*EndpointSpec) DeepCopyInto

func (in *EndpointSpec) DeepCopyInto(out *EndpointSpec)

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

type EndpointStatus

type EndpointStatus struct {
	// Phase Unbound, Bound
	Phase NetworkPhase `json:"phase"`
	// Namespace is workload namespace
	Namespace string `json:"namespace,omitempty"`
	// Workload is name endpoint bind to
	Workload string `json:"workload,omitempty"`
	// Node is endpoint bind to
	Node string `json:"node,omitempty"`
}

EndpointStatus defines the observed state of Endpoint

func (*EndpointStatus) DeepCopy

func (in *EndpointStatus) DeepCopy() *EndpointStatus

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

func (*EndpointStatus) DeepCopyInto

func (in *EndpointStatus) DeepCopyInto(out *EndpointStatus)

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

type FixedIP

type FixedIP struct {
	Subnet string `json:"subnet"`
	IP     string `json:"ip"`
}

FixedIP defines ip with subnet

func (*FixedIP) DeepCopy

func (in *FixedIP) DeepCopy() *FixedIP

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

func (*FixedIP) DeepCopyInto

func (in *FixedIP) DeepCopyInto(out *FixedIP)

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

type IPBlock

type IPBlock struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   IPBlockSpec   `json:"spec,omitempty"`
	Status IPBlockStatus `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:resource:scope=Cluster +kubebuilder:subresource:status IPBlock is the Schema for the ipblocks API

func (*IPBlock) DeepCopy

func (in *IPBlock) DeepCopy() *IPBlock

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

func (*IPBlock) DeepCopyInto

func (in *IPBlock) DeepCopyInto(out *IPBlock)

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

func (*IPBlock) DeepCopyObject

func (in *IPBlock) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type IPBlockList

type IPBlockList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []IPBlock `json:"items"`
}

IPBlockList contains a list of IPBlock

func (*IPBlockList) DeepCopy

func (in *IPBlockList) DeepCopy() *IPBlockList

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

func (*IPBlockList) DeepCopyInto

func (in *IPBlockList) DeepCopyInto(out *IPBlockList)

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

func (*IPBlockList) DeepCopyObject

func (in *IPBlockList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type IPBlockSpec

type IPBlockSpec struct {

	// Network is network name reference
	Network string `json:"network"`
	// SubnetSlice is subnets in blocks
	SubnetSlice SubnetSlice `json:"subnetSlice,omitempty"`
	// NetMask is netmask ip block occupy
	NetMask int `json:"netMask"`
	// NodesAffinity is nodes bind this ip block, if empty, affinity all nodes
	NodesAffinity []string `json:"nodesAffinity,omitempty"`
}

IPBlockSpec defines the desired state of IPBlock

func (*IPBlockSpec) DeepCopy

func (in *IPBlockSpec) DeepCopy() *IPBlockSpec

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

func (*IPBlockSpec) DeepCopyInto

func (in *IPBlockSpec) DeepCopyInto(out *IPBlockSpec)

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

type IPBlockStatus

type IPBlockStatus struct {

	// Allocations, ip allocations
	Allocations map[string]int `json:"allocations,omitempty"`
	// Unallocated, ip unallocated
	Unallocated []string `json:"unallocated"`

	// Phase
	// Pending: ip block is waiting for allocating
	// Running: ip block allocated
	Phase NetworkPhase `json:"phase"`
	// Message : message for phase
	Message string `json:"message,omitempty"`
}

IPBlockStatus defines the observed state of IPBlock

func (*IPBlockStatus) DeepCopy

func (in *IPBlockStatus) DeepCopy() *IPBlockStatus

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

func (*IPBlockStatus) DeepCopyInto

func (in *IPBlockStatus) DeepCopyInto(out *IPBlockStatus)

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

type Interface

type Interface struct {
	// EndpointClaim name
	EndpointClaim string `json:"endpoint"`
	// Master if true, this is master interface
	Master bool `json:"master"`
}

func (*Interface) DeepCopy

func (in *Interface) DeepCopy() *Interface

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

func (*Interface) DeepCopyInto

func (in *Interface) DeepCopyInto(out *Interface)

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

type Network

type Network struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   NetworkSpec   `json:"spec,omitempty"`
	Status NetworkStatus `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:resource:scope=Cluster +kubebuilder:subresource:status Network is the Schema for the networks API

func (*Network) DeepCopy

func (in *Network) DeepCopy() *Network

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

func (*Network) DeepCopyInto

func (in *Network) DeepCopyInto(out *Network)

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

func (*Network) DeepCopyObject

func (in *Network) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type NetworkList

type NetworkList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Network `json:"items"`
}

NetworkList contains a list of Network

func (*NetworkList) DeepCopy

func (in *NetworkList) DeepCopy() *NetworkList

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

func (*NetworkList) DeepCopyInto

func (in *NetworkList) DeepCopyInto(out *NetworkList)

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

func (*NetworkList) DeepCopyObject

func (in *NetworkList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type NetworkPhase

type NetworkPhase string

type NetworkResourceType

type NetworkResourceType string

type NetworkSpec

type NetworkSpec struct {

	// Type is network type: host-gw, ovn
	Type string `json:"type"`
	// HostNic is data plane physic nic on host
	HostNic string `json:"hostNic,omitempty"`
	// SubnetSlices in network, could expand slices when ip exhausted
	SubnetSlices [][]string `json:"subnetSlices"`
}

NetworkSpec defines the desired state of Network

func (*NetworkSpec) DeepCopy

func (in *NetworkSpec) DeepCopy() *NetworkSpec

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

func (*NetworkSpec) DeepCopyInto

func (in *NetworkSpec) DeepCopyInto(out *NetworkSpec)

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

type NetworkStatus

type NetworkStatus struct {

	// Phase : Pending, Active, Failed
	Phase string `json:"phase"`
	// Message : message for phase
	Message string `json:"message"`
}

NetworkStatus defines the observed state of Network

func (*NetworkStatus) DeepCopy

func (in *NetworkStatus) DeepCopy() *NetworkStatus

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

func (*NetworkStatus) DeepCopyInto

func (in *NetworkStatus) DeepCopyInto(out *NetworkStatus)

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

type PodInfo

type PodInfo struct {
	Namespace string `json:"namespace"`
	Name      string `json:"name"`
}

PodInfo

func (*PodInfo) DeepCopy

func (in *PodInfo) DeepCopy() *PodInfo

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

func (*PodInfo) DeepCopyInto

func (in *PodInfo) DeepCopyInto(out *PodInfo)

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

type Route

type Route struct {
	Destination string `json:"destination"`
	GateWay     string `json:"gateway"`
}

EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN! NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized.

func (*Route) DeepCopy

func (in *Route) DeepCopy() *Route

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

func (*Route) DeepCopyInto

func (in *Route) DeepCopyInto(out *Route)

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

type Subnet

type Subnet struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   SubnetSpec   `json:"spec,omitempty"`
	Status SubnetStatus `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:resource:scope=Cluster +kubebuilder:subresource:status Name is the Schema for the subnets API

func (*Subnet) DeepCopy

func (in *Subnet) DeepCopy() *Subnet

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

func (*Subnet) DeepCopyInto

func (in *Subnet) DeepCopyInto(out *Subnet)

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

func (*Subnet) DeepCopyObject

func (in *Subnet) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type SubnetCIDR

type SubnetCIDR struct {
	Name string `json:"subnet"`
	CIDR string `json:"cidr"`
}

SubnetCIDR define subnet name and cidr block allocated

func (*SubnetCIDR) DeepCopy

func (in *SubnetCIDR) DeepCopy() *SubnetCIDR

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

func (*SubnetCIDR) DeepCopyInto

func (in *SubnetCIDR) DeepCopyInto(out *SubnetCIDR)

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

type SubnetList

type SubnetList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Subnet `json:"items"`
}

+kubebuilder:object:root=true +kubebuilder:resource:scope=Cluster SubnetList contains a list of Name

func (*SubnetList) DeepCopy

func (in *SubnetList) DeepCopy() *SubnetList

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

func (*SubnetList) DeepCopyInto

func (in *SubnetList) DeepCopyInto(out *SubnetList)

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

func (*SubnetList) DeepCopyObject

func (in *SubnetList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type SubnetSlice

type SubnetSlice []SubnetCIDR

SubnetSlice defines multiple subnets for one endpoint

func (SubnetSlice) DeepCopy

func (in SubnetSlice) DeepCopy() SubnetSlice

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

func (SubnetSlice) DeepCopyInto

func (in SubnetSlice) DeepCopyInto(out *SubnetSlice)

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

type SubnetSpec

type SubnetSpec struct {

	// Network name reference
	Network string `json:"network"`
	// CIDR for subnet
	CIDR string `json:"cidr"`
	// GateWay ip in subnet
	GateWay string `json:"gateway"`
	// Routes in subnet
	Routes []Route `json:"routes"`
}

SubnetSpec defines the desired state of Name

func (*SubnetSpec) DeepCopy

func (in *SubnetSpec) DeepCopy() *SubnetSpec

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

func (*SubnetSpec) DeepCopyInto

func (in *SubnetSpec) DeepCopyInto(out *SubnetSpec)

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

type SubnetStatus

type SubnetStatus struct {

	// Phase, Pend, Active, Failed
	Phase string `json:"phase"`
	// Message for phase
	Message string `json:"message,omitempty"`
}

SubnetStatus defines the observed state of Name

func (*SubnetStatus) DeepCopy

func (in *SubnetStatus) DeepCopy() *SubnetStatus

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

func (*SubnetStatus) DeepCopyInto

func (in *SubnetStatus) DeepCopyInto(out *SubnetStatus)

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

type Workload

type Workload struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   WorkloadSpec   `json:"spec,omitempty"`
	Status WorkloadStatus `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:subresource:status Workload is the Schema for the workloads API

func (*Workload) DeepCopy

func (in *Workload) DeepCopy() *Workload

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

func (*Workload) DeepCopyInto

func (in *Workload) DeepCopyInto(out *Workload)

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

func (*Workload) DeepCopyObject

func (in *Workload) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type WorkloadList

type WorkloadList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Workload `json:"items"`
}

WorkloadList contains a list of Workload

func (*WorkloadList) DeepCopy

func (in *WorkloadList) DeepCopy() *WorkloadList

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

func (*WorkloadList) DeepCopyInto

func (in *WorkloadList) DeepCopyInto(out *WorkloadList)

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

func (*WorkloadList) DeepCopyObject

func (in *WorkloadList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type WorkloadSpec

type WorkloadSpec struct {

	// Node is where workload running
	Node string `json:"node"`
	// Pod name this workload represent in same namespace
	Pod string `json:"pod"`
	// Pod UID
	PodUID string `json:"podUID"`
	// ContainerID is pause container id this workload bind to
	ContainerID string `json:"containerID"`
}

WorkloadSpec defines the desired state of Workload

func (*WorkloadSpec) DeepCopy

func (in *WorkloadSpec) DeepCopy() *WorkloadSpec

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

func (*WorkloadSpec) DeepCopyInto

func (in *WorkloadSpec) DeepCopyInto(out *WorkloadSpec)

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

type WorkloadStatus

type WorkloadStatus struct {

	// Phase : Initial, Ready
	Phase string `json:"phase"`
	// Interfaces : interfaces bind to workloads, first interface is primary
	// name: {network}-{ip}
	Interfaces []Interface `json:"interfaces"`
}

WorkloadStatus defines the observed state of Workload

func (*WorkloadStatus) DeepCopy

func (in *WorkloadStatus) DeepCopy() *WorkloadStatus

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

func (*WorkloadStatus) DeepCopyInto

func (in *WorkloadStatus) DeepCopyInto(out *WorkloadStatus)

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

Jump to

Keyboard shortcuts

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