v1beta1

package
v1.8.4 Latest Latest
Warning

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

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

Documentation

Overview

Package v1beta1 contains API Schema definitions for the network v1beta1 API group +kubebuilder:object:generate=true +groupName=alibabacloud.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "alibabacloud.com", Version: "v1beta1"}

	// 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 AllocationType

type AllocationType struct {
	// +kubebuilder:default:=Auto
	// +kubebuilder:validation:Required
	Type IPAllocType `json:"type"`
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Enum=Follow;TTL;Never
	ReleaseStrategy ReleaseStrategy `json:"releaseStrategy"`
	ReleaseAfter    string          `json:"releaseAfter,omitempty"` // go type 5m0s
}

AllocationType ip type and release strategy

func (*AllocationType) DeepCopy

func (in *AllocationType) DeepCopy() *AllocationType

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

func (*AllocationType) DeepCopyInto

func (in *AllocationType) DeepCopyInto(out *AllocationType)

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

type IPAllocType

type IPAllocType string

IPAllocType is the type for eip alloc strategy

const (
	IPAllocTypeAuto   IPAllocType = "Auto"
	IPAllocTypeStatic IPAllocType = "Static"
)

IPAllocType

type PodEIP

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

	Spec   PodEIPSpec   `json:"spec,omitempty"`
	Status PodEIPStatus `json:"status,omitempty"`
}

PodEIP is the Schema for the podeips API

func (*PodEIP) DeepCopy

func (in *PodEIP) DeepCopy() *PodEIP

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

func (*PodEIP) DeepCopyInto

func (in *PodEIP) DeepCopyInto(out *PodEIP)

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

func (*PodEIP) DeepCopyObject

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

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

type PodEIPList

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

PodEIPList contains a list of PodEIP

func (*PodEIPList) DeepCopy

func (in *PodEIPList) DeepCopy() *PodEIPList

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

func (*PodEIPList) DeepCopyInto

func (in *PodEIPList) DeepCopyInto(out *PodEIPList)

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

func (*PodEIPList) DeepCopyObject

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

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

type PodEIPSpec

type PodEIPSpec struct {
	// +kubebuilder:validation:Required
	AllocationID string `json:"allocationID"`

	BandwidthPackageID string `json:"bandwidthPackageID,omitempty"`

	// +kubebuilder:validation:Required
	AllocationType AllocationType `json:"allocationType"`
}

PodEIPSpec defines the desired state of PodEIP

func (*PodEIPSpec) DeepCopy

func (in *PodEIPSpec) DeepCopy() *PodEIPSpec

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

func (*PodEIPSpec) DeepCopyInto

func (in *PodEIPSpec) DeepCopyInto(out *PodEIPSpec)

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

type PodEIPStatus

type PodEIPStatus struct {
	// eni
	NetworkInterfaceID string `json:"networkInterfaceID,omitempty"`
	PrivateIPAddress   string `json:"privateIPAddress,omitempty"`
	// eip
	EipAddress            string `json:"eipAddress,omitempty"`
	ISP                   string `json:"isp,omitempty"`
	InternetChargeType    string `json:"internetChargeType,omitempty"`
	ResourceGroupID       string `json:"resourceGroupID,omitempty"`
	Name                  string `json:"name,omitempty"`
	PublicIpAddressPoolID string `json:"publicIpAddressPoolID,omitempty"` // nolint
	Status                string `json:"status,omitempty"`

	// BandwidthPackageID
	BandwidthPackageID string `json:"bandwidthPackageID,omitempty"`

	// PodLastSeen is the timestamp when pod resource last seen
	PodLastSeen metav1.Time `json:"podLastSeen,omitempty"`
}

PodEIPStatus defines the observed state of PodEIP

func (*PodEIPStatus) DeepCopy

func (in *PodEIPStatus) DeepCopy() *PodEIPStatus

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

func (*PodEIPStatus) DeepCopyInto

func (in *PodEIPStatus) DeepCopyInto(out *PodEIPStatus)

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

type ReleaseStrategy

type ReleaseStrategy string

ReleaseStrategy is the type for eip release strategy

const (
	ReleaseStrategyFollow ReleaseStrategy = "Follow" // default policy
	ReleaseStrategyTTL    ReleaseStrategy = "TTL"
	ReleaseStrategyNever  ReleaseStrategy = "Never"
)

ReleaseStrategy

Jump to

Keyboard shortcuts

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