Documentation ¶
Overview ¶
Package v1alpha1 contains managed resources for alibaba database services such as RDS. +kubebuilder:object:generate=true +groupName=database.alibaba.crossplane.io +versionName=v1alpha1
Index ¶
- Constants
- Variables
- type Endpoint
- type RDSInstance
- func (in *RDSInstance) DeepCopy() *RDSInstance
- func (in *RDSInstance) DeepCopyInto(out *RDSInstance)
- func (in *RDSInstance) DeepCopyObject() runtime.Object
- func (mg *RDSInstance) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (mg *RDSInstance) GetDeletionPolicy() xpv1.DeletionPolicy
- func (mg *RDSInstance) GetProviderConfigReference() *xpv1.Reference
- func (mg *RDSInstance) GetProviderReference() *xpv1.Reference
- func (mg *RDSInstance) GetWriteConnectionSecretToReference() *xpv1.SecretReference
- func (mg *RDSInstance) SetConditions(c ...xpv1.Condition)
- func (mg *RDSInstance) SetDeletionPolicy(r xpv1.DeletionPolicy)
- func (mg *RDSInstance) SetProviderConfigReference(r *xpv1.Reference)
- func (mg *RDSInstance) SetProviderReference(r *xpv1.Reference)
- func (mg *RDSInstance) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
- type RDSInstanceList
- type RDSInstanceObservation
- type RDSInstanceParameters
- type RDSInstanceSpec
- type RDSInstanceStatus
Constants ¶
const ( MysqlEngine = "MySQL" PostgresqlEngine = "PostgreSQL" )
SQL database engines.
const ( // The instance is healthy and available RDSInstanceStateRunning = "Running" // The instance is being created. The instance is inaccessible while it is being created. RDSInstanceStateCreating = "Creating" // The instance is being deleted. RDSInstanceStateDeleting = "Deleting" )
RDS instance states.
const ( Group = "database.alibaba.crossplane.io" Version = "v1alpha1" )
Package type metadata.
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: Group, Version: Version} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} )
var ( RDSInstanceKind = reflect.TypeOf(RDSInstance{}).Name() RDSInstanceGroupKind = schema.GroupKind{Group: Group, Kind: RDSInstanceKind}.String() RDSInstanceKindAPIVersion = RDSInstanceKind + "." + SchemeGroupVersion.String() RDSInstanceGroupVersionKind = SchemeGroupVersion.WithKind(RDSInstanceKind) )
RDSInstanceClass type metadata.
Functions ¶
This section is empty.
Types ¶
type Endpoint ¶
type Endpoint struct { // Address specifies the DNS address of the DB instance. Address string `json:"address,omitempty"` // Port specifies the port that the database engine is listening on. Port string `json:"port,omitempty"` }
Endpoint is the database endpoint
func (*Endpoint) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Endpoint.
func (*Endpoint) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RDSInstance ¶
type RDSInstance struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec RDSInstanceSpec `json:"spec"` Status RDSInstanceStatus `json:"status,omitempty"` }
An RDSInstance is a managed resource that represents an RDS 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="STATE",type="string",JSONPath=".status.atProvider.dbInstanceStatus" +kubebuilder:printcolumn:name="ENGINE",type="string",JSONPath=".spec.forProvider.engine" +kubebuilder:printcolumn:name="VERSION",type="string",JSONPath=".spec.forProvider.engineVersion" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,alibaba}
func (*RDSInstance) DeepCopy ¶
func (in *RDSInstance) DeepCopy() *RDSInstance
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RDSInstance.
func (*RDSInstance) DeepCopyInto ¶
func (in *RDSInstance) DeepCopyInto(out *RDSInstance)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RDSInstance) DeepCopyObject ¶
func (in *RDSInstance) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*RDSInstance) GetCondition ¶
func (mg *RDSInstance) GetCondition(ct xpv1.ConditionType) xpv1.Condition
GetCondition of this RDSInstance.
func (*RDSInstance) GetDeletionPolicy ¶
func (mg *RDSInstance) GetDeletionPolicy() xpv1.DeletionPolicy
GetDeletionPolicy of this RDSInstance.
func (*RDSInstance) GetProviderConfigReference ¶
func (mg *RDSInstance) GetProviderConfigReference() *xpv1.Reference
GetProviderConfigReference of this RDSInstance.
func (*RDSInstance) GetProviderReference ¶
func (mg *RDSInstance) GetProviderReference() *xpv1.Reference
GetProviderReference of this RDSInstance. Deprecated: Use GetProviderConfigReference.
func (*RDSInstance) GetWriteConnectionSecretToReference ¶
func (mg *RDSInstance) GetWriteConnectionSecretToReference() *xpv1.SecretReference
GetWriteConnectionSecretToReference of this RDSInstance.
func (*RDSInstance) SetConditions ¶
func (mg *RDSInstance) SetConditions(c ...xpv1.Condition)
SetConditions of this RDSInstance.
func (*RDSInstance) SetDeletionPolicy ¶
func (mg *RDSInstance) SetDeletionPolicy(r xpv1.DeletionPolicy)
SetDeletionPolicy of this RDSInstance.
func (*RDSInstance) SetProviderConfigReference ¶
func (mg *RDSInstance) SetProviderConfigReference(r *xpv1.Reference)
SetProviderConfigReference of this RDSInstance.
func (*RDSInstance) SetProviderReference ¶
func (mg *RDSInstance) SetProviderReference(r *xpv1.Reference)
SetProviderReference of this RDSInstance. Deprecated: Use SetProviderConfigReference.
func (*RDSInstance) SetWriteConnectionSecretToReference ¶
func (mg *RDSInstance) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
SetWriteConnectionSecretToReference of this RDSInstance.
type RDSInstanceList ¶
type RDSInstanceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []RDSInstance `json:"items"` }
RDSInstanceList contains a list of RDSInstance
func (*RDSInstanceList) DeepCopy ¶
func (in *RDSInstanceList) DeepCopy() *RDSInstanceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RDSInstanceList.
func (*RDSInstanceList) DeepCopyInto ¶
func (in *RDSInstanceList) DeepCopyInto(out *RDSInstanceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RDSInstanceList) DeepCopyObject ¶
func (in *RDSInstanceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*RDSInstanceList) GetItems ¶
func (l *RDSInstanceList) GetItems() []resource.Managed
GetItems of this RDSInstanceList.
type RDSInstanceObservation ¶
type RDSInstanceObservation struct { // DBInstanceStatus specifies the current state of this database. DBInstanceStatus string `json:"dbInstanceStatus,omitempty"` // DBInstanceID specifies the DB instance ID. DBInstanceID string `json:"dbInstanceID"` // AccountReady specifies whether the initial user account (username + password) is ready AccountReady bool `json:"accountReady"` }
RDSInstanceObservation is the representation of the current state that is observed.
func (*RDSInstanceObservation) DeepCopy ¶
func (in *RDSInstanceObservation) DeepCopy() *RDSInstanceObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RDSInstanceObservation.
func (*RDSInstanceObservation) DeepCopyInto ¶
func (in *RDSInstanceObservation) DeepCopyInto(out *RDSInstanceObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RDSInstanceParameters ¶
type RDSInstanceParameters struct { // Engine is the name of the database engine to be used for this instance. // Engine is a required field. // +immutable Engine string `json:"engine"` // EngineVersion indicates the database engine version. // MySQL:5.5/5.6/5.7/8.0 // PostgreSQL:9.4/10.0/11.0/12.0 EngineVersion string `json:"engineVersion"` // DBInstanceClass is the machine class of the instance, e.g. "rds.pg.s1.small" DBInstanceClass string `json:"dbInstanceClass"` // DBInstanceStorageInGB indicates the size of the storage in GB. // Increments by 5GB. // For "rds.pg.s1.small", the range is 20-600 (GB). // See https://help.aliyun.com/document_detail/26312.html DBInstanceStorageInGB int `json:"dbInstanceStorageInGB"` // SecurityIPList is the IP whitelist for RDS instances SecurityIPList string `json:"securityIPList"` // MasterUsername is the name for the master user. // MySQL // Constraints: // * Required for MySQL. // * Must be 1 to 16 letters or numbers. // * First character must be a letter. // * Cannot be a reserved word for the chosen database engine. // PostgreSQL // Constraints: // * Required for PostgreSQL. // * Must be 1 to 63 letters or numbers. // * First character must be a letter. // * Cannot be a reserved word for the chosen database engine. // +immutable // +optional MasterUsername string `json:"masterUsername"` }
RDSInstanceParameters define the desired state of an RDS instance.
func (*RDSInstanceParameters) DeepCopy ¶
func (in *RDSInstanceParameters) DeepCopy() *RDSInstanceParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RDSInstanceParameters.
func (*RDSInstanceParameters) DeepCopyInto ¶
func (in *RDSInstanceParameters) DeepCopyInto(out *RDSInstanceParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RDSInstanceSpec ¶
type RDSInstanceSpec struct { xpv1.ResourceSpec `json:",inline"` ForProvider RDSInstanceParameters `json:"forProvider"` }
An RDSInstanceSpec defines the desired state of an RDSInstance.
func (*RDSInstanceSpec) DeepCopy ¶
func (in *RDSInstanceSpec) DeepCopy() *RDSInstanceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RDSInstanceSpec.
func (*RDSInstanceSpec) DeepCopyInto ¶
func (in *RDSInstanceSpec) DeepCopyInto(out *RDSInstanceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RDSInstanceStatus ¶
type RDSInstanceStatus struct { xpv1.ResourceStatus `json:",inline"` AtProvider RDSInstanceObservation `json:"atProvider,omitempty"` }
An RDSInstanceStatus represents the observed state of an RDSInstance.
func (*RDSInstanceStatus) DeepCopy ¶
func (in *RDSInstanceStatus) DeepCopy() *RDSInstanceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RDSInstanceStatus.
func (*RDSInstanceStatus) DeepCopyInto ¶
func (in *RDSInstanceStatus) DeepCopyInto(out *RDSInstanceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.