v1alpha1

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the SLB v1alpha1 API group +kubebuilder:object:generate=true +groupName=slb.alibaba.crossplane.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "slb.alibaba.crossplane.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 (
	// CLBKind is the kind of CLB
	CLBKind = reflect.TypeOf(CLB{}).Name()

	// CLBGroupKind is the group and kind of CLB
	CLBGroupKind = schema.GroupKind{Group: GroupVersion.Group, Kind: CLBKind}.String()

	// CLBGroupVersionKind is the group, version and kind of CLB
	CLBGroupVersionKind = GroupVersion.WithKind(CLBKind)
)

Functions

This section is empty.

Types

type CLB

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

	Spec   CLBSpec   `json:"spec,omitempty"`
	Status CLBStatus `json:"status,omitempty"`
}

CLB is a managed resource that represents an CLB instance +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,alibaba},shortName=redis

func (*CLB) DeepCopy

func (in *CLB) DeepCopy() *CLB

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

func (*CLB) DeepCopyInto

func (in *CLB) DeepCopyInto(out *CLB)

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

func (*CLB) DeepCopyObject

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

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

func (*CLB) GetCondition

func (mg *CLB) GetCondition(ct xpv1.ConditionType) xpv1.Condition

GetCondition of this CLB.

func (*CLB) GetDeletionPolicy

func (mg *CLB) GetDeletionPolicy() xpv1.DeletionPolicy

GetDeletionPolicy of this CLB.

func (*CLB) GetProviderConfigReference

func (mg *CLB) GetProviderConfigReference() *xpv1.Reference

GetProviderConfigReference of this CLB.

func (*CLB) GetProviderReference

func (mg *CLB) GetProviderReference() *xpv1.Reference

GetProviderReference of this CLB. Deprecated: Use GetProviderConfigReference.

func (*CLB) GetWriteConnectionSecretToReference

func (mg *CLB) GetWriteConnectionSecretToReference() *xpv1.SecretReference

GetWriteConnectionSecretToReference of this CLB.

func (*CLB) SetConditions

func (mg *CLB) SetConditions(c ...xpv1.Condition)

SetConditions of this CLB.

func (*CLB) SetDeletionPolicy

func (mg *CLB) SetDeletionPolicy(r xpv1.DeletionPolicy)

SetDeletionPolicy of this CLB.

func (*CLB) SetProviderConfigReference

func (mg *CLB) SetProviderConfigReference(r *xpv1.Reference)

SetProviderConfigReference of this CLB.

func (*CLB) SetProviderReference

func (mg *CLB) SetProviderReference(r *xpv1.Reference)

SetProviderReference of this CLB. Deprecated: Use SetProviderConfigReference.

func (*CLB) SetWriteConnectionSecretToReference

func (mg *CLB) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)

SetWriteConnectionSecretToReference of this CLB.

type CLBList

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

CLBList contains a list of CLB

func (*CLBList) DeepCopy

func (in *CLBList) DeepCopy() *CLBList

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

func (*CLBList) DeepCopyInto

func (in *CLBList) DeepCopyInto(out *CLBList)

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

func (*CLBList) DeepCopyObject

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

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

func (*CLBList) GetItems

func (l *CLBList) GetItems() []resource.Managed

GetItems of this CLBList.

type CLBObservation

type CLBObservation struct {
	LoadBalancerID               *string `json:"loadBalancerID,omitempty"`
	CreateTime                   *string `json:"CreateTime,omitempty"`
	NetworkType                  *string `json:"NetworkType,omitempty"`
	MasterZoneID                 *string `json:"MasterZoneId,omitempty"`
	ModificationProtectionReason *string `json:"ModificationProtectionReason,omitempty"`
	ModificationProtectionStatus *string `json:"ModificationProtectionStatus,omitempty"`
	LoadBalancerStatus           *string `json:"LoadBalancerStatus,omitempty"`
	ResourceGroupID              *string `json:"ResourceGroupId,omitempty"`
	DeleteProtection             *string `json:"DeleteProtection,omitempty"`
	// Though `Address` is one of the Parameter, but if the parameter it's not set, it still can be generated.
	Address *string `json:"address,omitempty"`
}

CLBObservation is the representation of the current state that is observed.

func (*CLBObservation) DeepCopy

func (in *CLBObservation) DeepCopy() *CLBObservation

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

func (*CLBObservation) DeepCopyInto

func (in *CLBObservation) DeepCopyInto(out *CLBObservation)

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

type CLBParameter

type CLBParameter struct {
	// Region is the ID of the region where you want to create the SLB instance.
	Region *string `json:"region"`
	// AddressType is the type of IP address that the SLB instance uses to provide services. Valid values:
	// internet: After an Internet-facing SLB instance is created, the system assigns a public IP address to the SLB instance.
	// Then, the SLB instance can forward requests from the Internet.
	// intranet: After an internal-facing SLB instance is created, the system assigns a private IP address to the SLB instance.
	// Then, the SLB instance can forward only internal requests.
	AddressType *string `json:"addressType,omitempty"`

	// Address is the IP address
	Address *string `json:"address,omitempty"`

	// Bandwidth is the maximum bandwidth value of the listener. Unit: Mbit/s.
	// Valid values: -1 and 1 to 5120.
	// -1: For a pay-by-data-transfer Internet-facing SLB instance, you can set the value to -1. This indicates that
	// the bandwidth is unlimited.
	// 1 to 5120: For a pay-by-bandwidth Internet-facing SLB instance, you can specify a bandwidth cap for each listener.
	// The sum of bandwidth limit values of all listeners cannot exceed the maximum bandwidth value of the SLB instance.
	Bandwidth *int32 `json:"bandwidth,omitempty"`

	// InternetChargeType is the metering method of the Internet-facing SLB instance. Valid values:
	// paybytraffic (default): pay-by-data-transfer
	// +kubebuilder:default:=paybytraffic
	InternetChargeType *string `json:"internetChargeType,omitempty"`

	// VpcID is the ID of the virtual private cloud (VPC) to which the SLB instance belongs.
	VpcID *string `json:"vpcId,omitempty"`

	// VSwitchID is the ID of the vSwitch to which the SLB instance is attached.
	// To create an SLB instance that is deployed in a VPC, you must set this parameter. If you specify this parameter,
	// the value of the AddressType parameter is set to intranet by default.
	VSwitchID *string `json:"vSwitchId,omitempty"`

	// LoadBalancerSpec is the specification of the SLB instance.
	// The types of SLB instance that you can create vary by region.
	// +kubebuilder:validation:Enum:=slb.s1.small;slb.s2.small;slb.s2.medium;slb.s3.small;slb.s3.medium;slb.s3.large
	LoadBalancerSpec *string `json:"loadBalancerSpec,omitempty"`

	// ClientToken that is used to ensure the idempotence of the request. You can use the client to generate the value,
	// but you must ensure that it is unique among different requests. The token can contain only ASCII characters and
	// cannot exceed 64 characters in length.
	ClientToken *string `json:"clientToken,omitempty"`

	OwnerID                      *int64  `json:"ownerId,omitempty"`
	ResourceOwnerAccount         *string `json:"resourceOwnerAccount,omitempty"`
	ResourceOwnerID              *int64  `json:"resourceOwnerId,omitempty"`
	OwnerAccount                 *string `json:"ownerAccount,omitempty"`
	MasterZoneID                 *string `json:"masterZoneId,omitempty"`
	SlaveZoneID                  *string `json:"slaveZoneId,omitempty"`
	ResourceGroupID              *string `json:"resourceGroupId,omitempty"`
	PayType                      *string `json:"payType,omitempty"`
	PricingCycle                 *string `json:"pricingCycle,omitempty"`
	Duration                     *int32  `json:"duration,omitempty"`
	AutoPay                      *bool   `json:"autoPay,omitempty"`
	AddressIPVersion             *string `json:"addressIPVersion,omitempty"`
	DeleteProtection             *string `json:"deleteProtection,omitempty"`
	ModificationProtectionStatus *string `json:"modificationProtectionStatus,omitempty"`
	ModificationProtectionReason *string `json:"modificationProtectionReason,omitempty"`
}

CLBParameter is the isolated place to store files

func (*CLBParameter) DeepCopy

func (in *CLBParameter) DeepCopy() *CLBParameter

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

func (*CLBParameter) DeepCopyInto

func (in *CLBParameter) DeepCopyInto(out *CLBParameter)

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

type CLBSpec

type CLBSpec struct {
	runtimev1.ResourceSpec `json:",inline"`
	ForProvider            CLBParameter `json:"forProvider"`
}

CLBSpec defines the desired state of CLB

func (*CLBSpec) DeepCopy

func (in *CLBSpec) DeepCopy() *CLBSpec

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

func (*CLBSpec) DeepCopyInto

func (in *CLBSpec) DeepCopyInto(out *CLBSpec)

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

type CLBStatus

type CLBStatus struct {
	runtimev1.ResourceStatus `json:",inline"`
	AtProvider               CLBObservation `json:"atProvider,omitempty"`
}

CLBStatus defines the observed state of CLB

func (*CLBStatus) DeepCopy

func (in *CLBStatus) DeepCopy() *CLBStatus

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

func (*CLBStatus) DeepCopyInto

func (in *CLBStatus) DeepCopyInto(out *CLBStatus)

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