v1alpha1

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the runtime cloud v1alpha1 API group +kubebuilder:object:generate=true +groupName=runtime.cloud.antrea.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects.
	GroupVersion = schema.GroupVersion{Group: "runtime.cloud.antrea.io", Version: "v1alpha1"}

	// 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
)
View Source
var SchemeGroupVersion = GroupVersion

SchemeGroupVersion is group version used to register these objects.

Functions

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type AddressType added in v0.5.0

type AddressType string
const (
	// AddressTypeInternalIP is internal IP.
	AddressTypeInternalIP AddressType = "InternalIP"
	// AddressTypeExternalIP external IP.
	AddressTypeExternalIP AddressType = "ExternalIP"
)

type CloudProvider added in v0.5.0

type CloudProvider string
const (
	// AzureCloudProvider specifies Azure.
	AzureCloudProvider CloudProvider = "Azure"
	// AWSCloudProvider specifies AWS.
	AWSCloudProvider CloudProvider = "AWS"
)

type IPAddress added in v0.5.0

type IPAddress struct {
	AddressType AddressType `json:"addressType"`
	Address     string      `json:"address"`
}

func (*IPAddress) DeepCopy added in v0.5.0

func (in *IPAddress) DeepCopy() *IPAddress

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

func (*IPAddress) DeepCopyInto added in v0.5.0

func (in *IPAddress) DeepCopyInto(out *IPAddress)

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

type NetworkInterface added in v0.5.0

type NetworkInterface struct {
	Name string `json:"name,omitempty"`
	// Hardware address of the interface.
	MAC string `json:"mac,omitempty"`
	// IP addresses of this NetworkInterface.
	IPs []IPAddress `json:"ips,omitempty"`
}

NetworkInterface contains information pertaining to NetworkInterface.

func (*NetworkInterface) DeepCopy added in v0.5.0

func (in *NetworkInterface) DeepCopy() *NetworkInterface

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

func (*NetworkInterface) DeepCopyInto added in v0.5.0

func (in *NetworkInterface) DeepCopyInto(out *NetworkInterface)

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

type NetworkPolicyStatus

type NetworkPolicyStatus struct {
	// Realization shows the status of a NetworkPolicy.
	Realization Realization
	// Reason shows the error message on NetworkPolicy application error.
	Reason string
}

func (*NetworkPolicyStatus) DeepCopy

func (in *NetworkPolicyStatus) DeepCopy() *NetworkPolicyStatus

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

func (*NetworkPolicyStatus) DeepCopyInto

func (in *NetworkPolicyStatus) DeepCopyInto(out *NetworkPolicyStatus)

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

type Realization

type Realization string
const (
	Success    Realization = "SUCCESS"
	InProgress Realization = "IN-PROGRESS"
	Failed     Realization = "FAILED"
)

type VMState added in v0.5.0

type VMState string
const (
	Running      VMState = "running"
	Stopped      VMState = "stopped"
	Stopping     VMState = "stopping"
	ShuttingDown VMState = "shutting down"
	Starting     VMState = "starting"
	Unknown      VMState = "unknown"
)

func (VMState) String added in v0.5.0

func (this VMState) String() string

type VirtualMachine added in v0.5.0

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

	Spec   VirtualMachineSpec   `json:"spec,omitempty"`
	Status VirtualMachineStatus `json:"status,omitempty"`
}

VirtualMachine is the Schema for the virtualmachines API A virtualMachine object is created automatically based on matching criteria specification of CloudEntitySelector.

func (*VirtualMachine) DeepCopy added in v0.5.0

func (in *VirtualMachine) DeepCopy() *VirtualMachine

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

func (*VirtualMachine) DeepCopyInto added in v0.5.0

func (in *VirtualMachine) DeepCopyInto(out *VirtualMachine)

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

func (*VirtualMachine) DeepCopyObject added in v0.5.0

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

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

type VirtualMachineList added in v0.5.0

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

VirtualMachineList contains a list of VirtualMachine.

func (*VirtualMachineList) DeepCopy added in v0.5.0

func (in *VirtualMachineList) DeepCopy() *VirtualMachineList

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

func (*VirtualMachineList) DeepCopyInto added in v0.5.0

func (in *VirtualMachineList) DeepCopyInto(out *VirtualMachineList)

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

func (*VirtualMachineList) DeepCopyObject added in v0.5.0

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

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

type VirtualMachinePolicy

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

	Status VirtualMachinePolicyStatus `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:subresource:status VirtualMachinePolicy is the Schema for the VirtualMachinePolicy API. A VirtualMachinePolicy object is converted from cloud.NetworkPolicyStatus for external access.

func (*VirtualMachinePolicy) DeepCopy

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

func (*VirtualMachinePolicy) DeepCopyInto

func (in *VirtualMachinePolicy) DeepCopyInto(out *VirtualMachinePolicy)

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

func (*VirtualMachinePolicy) DeepCopyObject

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

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

type VirtualMachinePolicyList

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

+kubebuilder:object:root=true VirtualMachinePolicyList contains a list of VirtualMachinePolicy.

func (*VirtualMachinePolicyList) DeepCopy

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

func (*VirtualMachinePolicyList) DeepCopyInto

func (in *VirtualMachinePolicyList) DeepCopyInto(out *VirtualMachinePolicyList)

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

func (*VirtualMachinePolicyList) DeepCopyObject

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

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

type VirtualMachinePolicyStatus

type VirtualMachinePolicyStatus struct {
	// Realization shows the summary of applied network policy status.
	Realization Realization `json:"realization,omitempty"`
	// NetworkPolicyDetails shows all the statuses of applied network policies.
	NetworkPolicyDetails map[string]*NetworkPolicyStatus `json:"networkPolicyStatus,omitempty"`
}

VirtualMachinePolicyStatus defines the observed state of VirtualMachinePolicy. It contains observable parameters.

func (*VirtualMachinePolicyStatus) DeepCopy

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

func (*VirtualMachinePolicyStatus) DeepCopyInto

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

type VirtualMachineSpec added in v0.6.0

type VirtualMachineSpec struct {
	// User tags of this VirtualMachine.
	Tags map[string]string `json:"tags,omitempty"`
}

func (*VirtualMachineSpec) DeepCopy added in v0.6.0

func (in *VirtualMachineSpec) DeepCopy() *VirtualMachineSpec

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

func (*VirtualMachineSpec) DeepCopyInto added in v0.6.0

func (in *VirtualMachineSpec) DeepCopyInto(out *VirtualMachineSpec)

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

type VirtualMachineStatus added in v0.5.0

type VirtualMachineStatus struct {
	// Provider specifies cloud provider of this VirtualMachine.
	Provider CloudProvider `json:"provider,omitempty"`
	// Discovered tags of this VirtualMachine from cloud.
	Tags map[string]string `json:"tags,omitempty"`
	// NetworkInterfaces is array of NetworkInterfaces attached to this VirtualMachine.
	NetworkInterfaces []NetworkInterface `json:"networkInterfaces,omitempty"`
	// State indicates current state of the VirtualMachine.
	State VMState `json:"state,omitempty"`
	// Region indicates the cloud region of the VirtualMachine.
	Region string `json:"region,omitempty"`
	// Agented specifies if VM runs in agented mode, default is false.
	Agented bool `json:"agented"`
	// CloudId is the cloud assigned ID of the VM.
	CloudId string `json:"cloudId,omitempty"`
	// CloudName is the cloud assigned name of the VM.
	CloudName string `json:"cloudName,omitempty"`
	// CloudVpcId is the VPC ID this VirtualMachine belongs to.
	CloudVpcId string `json:"cloudVpcId,omitempty"`
	// CloudVpcName is the VPC Name this VirtualMachine belongs to.
	CloudVpcName string `json:"cloudVpcName,omitempty"`
}

VirtualMachineStatus defines the observed state of VirtualMachine It contains observable parameters.

func (*VirtualMachineStatus) DeepCopy added in v0.5.0

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

func (*VirtualMachineStatus) DeepCopyInto added in v0.5.0

func (in *VirtualMachineStatus) DeepCopyInto(out *VirtualMachineStatus)

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

type Vpc added in v0.3.0

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

	Status VpcStatus `json:"status,omitempty"`
}

Vpc is the Schema for the Vpc API. A Vpc object is automatically created upon CloudProviderAccount CR add.

func (*Vpc) DeepCopy added in v0.3.0

func (in *Vpc) DeepCopy() *Vpc

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

func (*Vpc) DeepCopyInto added in v0.3.0

func (in *Vpc) DeepCopyInto(out *Vpc)

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

func (*Vpc) DeepCopyObject added in v0.3.0

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

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

type VpcList added in v0.3.0

type VpcList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`

	Items []Vpc `json:"items"`
}

VpcList is a list of Vpc objects.

func (*VpcList) DeepCopy added in v0.3.0

func (in *VpcList) DeepCopy() *VpcList

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

func (*VpcList) DeepCopyInto added in v0.3.0

func (in *VpcList) DeepCopyInto(out *VpcList)

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

func (*VpcList) DeepCopyObject added in v0.3.0

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

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

type VpcStatus added in v0.4.0

type VpcStatus struct {
	// CloudName is the cloud assigned name of the VPC.
	CloudName string `json:"cloudName,omitempty"`
	// CloudId is the cloud assigned ID of the VPC.
	CloudId string `json:"cloudId,omitempty"`
	// Provider specifies cloud provider of the VPC.
	Provider CloudProvider `json:"provider,omitempty"`
	// Region indicates the cloud region of the VPC.
	Region string `json:"region,omitempty"`
	// Tags indicates tags associated with the VPC.
	Tags map[string]string `json:"tags,omitempty"`
	// Cidrs is the IPv4 CIDR block associated with the VPC.
	Cidrs []string `json:"cidrs,omitempty"`
	// Managed flag indicates if the VPC is managed by Nephe.
	Managed bool `json:"managed"`
}

func (*VpcStatus) DeepCopy added in v0.4.0

func (in *VpcStatus) DeepCopy() *VpcStatus

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

func (*VpcStatus) DeepCopyInto added in v0.4.0

func (in *VpcStatus) DeepCopyInto(out *VpcStatus)

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