Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the database v1alpha1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/crossplaneio/crossplane/pkg/apis/azure/database +k8s:defaulter-gen=TypeMeta +groupName=database.azure.crossplane.io
Package v1alpha1 contains API Schema definitions for the database v1alpha1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/crossplaneio/crossplane/pkg/azure/apis/azure/database +k8s:defaulter-gen=TypeMeta +groupName=database.azure.crossplane.io
Index ¶
- Constants
- Variables
- func ValidMySQLVersionValues() []string
- func ValidPostgreSQLVersionValues() []string
- type MysqlServer
- func (m *MysqlServer) ConnectionSecretName() string
- func (in *MysqlServer) DeepCopy() *MysqlServer
- func (in *MysqlServer) DeepCopyInto(out *MysqlServer)
- func (in *MysqlServer) DeepCopyObject() runtime.Object
- func (m *MysqlServer) GetSpec() *SQLServerSpec
- func (m *MysqlServer) GetStatus() *SQLServerStatus
- func (m *MysqlServer) IsAvailable() bool
- func (m *MysqlServer) IsBound() bool
- func (m *MysqlServer) ObjectReference() *v1.ObjectReference
- func (m *MysqlServer) OwnerReference() metav1.OwnerReference
- func (m *MysqlServer) SetBound(bound bool)
- func (m *MysqlServer) SetStatus(status *SQLServerStatus)
- type MysqlServerList
- type PostgresqlServer
- func (p *PostgresqlServer) ConnectionSecretName() string
- func (in *PostgresqlServer) DeepCopy() *PostgresqlServer
- func (in *PostgresqlServer) DeepCopyInto(out *PostgresqlServer)
- func (in *PostgresqlServer) DeepCopyObject() runtime.Object
- func (p *PostgresqlServer) GetSpec() *SQLServerSpec
- func (p *PostgresqlServer) GetStatus() *SQLServerStatus
- func (p *PostgresqlServer) IsAvailable() bool
- func (p *PostgresqlServer) IsBound() bool
- func (p *PostgresqlServer) ObjectReference() *v1.ObjectReference
- func (p *PostgresqlServer) OwnerReference() metav1.OwnerReference
- func (p *PostgresqlServer) SetBound(bound bool)
- func (p *PostgresqlServer) SetStatus(status *SQLServerStatus)
- type PostgresqlServerList
- type PricingTierSpec
- type SQLServer
- type SQLServerSpec
- type SQLServerStatus
- type StorageProfileSpec
Constants ¶
const ( Group = "database.azure.crossplane.io" Version = "v1alpha1" APIVersion = Group + "/" + Version MysqlServerKind = "mysqlserver" PostgresqlServerKind = "postgresqlserver" MysqlServerKindAPIVersion = MysqlServerKind + "." + APIVersion PostgresqlServerKindAPIVersion = PostgresqlServerKind + "." + APIVersion )
Kubernetes Group, Version, and Kind metadata.
const ( // OperationCreateServer is the operation type for creating a new mysql server OperationCreateServer = "createServer" // OperationCreateFirewallRules is the operation type for creating a firewall rule OperationCreateFirewallRules = "createFirewallRules" )
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} )
Functions ¶
func ValidMySQLVersionValues ¶ added in v0.2.0
func ValidMySQLVersionValues() []string
ValidMySQLVersionValues returns the valid set of engine version values.
func ValidPostgreSQLVersionValues ¶ added in v0.2.0
func ValidPostgreSQLVersionValues() []string
ValidPostgreSQLVersionValues returns the valid set of engine version values.
Types ¶
type MysqlServer ¶
type MysqlServer struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec SQLServerSpec `json:"spec,omitempty"` Status SQLServerStatus `json:"status,omitempty"` }
MysqlServer is the Schema for the instances API +k8s:openapi-gen=true +groupName=database.azure +kubebuilder:printcolumn:name="STATUS",type="string",JSONPath=".status.bindingPhase" +kubebuilder:printcolumn:name="STATE",type="string",JSONPath=".status.state" +kubebuilder:printcolumn:name="CLASS",type="string",JSONPath=".spec.classRef.name" +kubebuilder:printcolumn:name="VERSION",type="string",JSONPath=".spec.version" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp"
func (*MysqlServer) ConnectionSecretName ¶
func (m *MysqlServer) ConnectionSecretName() string
ConnectionSecretName returns a secret name from the reference
func (*MysqlServer) DeepCopy ¶
func (in *MysqlServer) DeepCopy() *MysqlServer
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MysqlServer.
func (*MysqlServer) DeepCopyInto ¶
func (in *MysqlServer) DeepCopyInto(out *MysqlServer)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MysqlServer) DeepCopyObject ¶
func (in *MysqlServer) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*MysqlServer) GetSpec ¶ added in v0.2.0
func (m *MysqlServer) GetSpec() *SQLServerSpec
GetSpec returns the MySQL server's spec.
func (*MysqlServer) GetStatus ¶ added in v0.2.0
func (m *MysqlServer) GetStatus() *SQLServerStatus
GetStatus returns the MySQL server's status.
func (*MysqlServer) IsAvailable ¶
func (m *MysqlServer) IsAvailable() bool
IsAvailable for usage/binding
func (*MysqlServer) IsBound ¶
func (m *MysqlServer) IsBound() bool
IsBound determines if the resource is in a bound binding state
func (*MysqlServer) ObjectReference ¶
func (m *MysqlServer) ObjectReference() *v1.ObjectReference
ObjectReference to this MySQL Server instance
func (*MysqlServer) OwnerReference ¶
func (m *MysqlServer) OwnerReference() metav1.OwnerReference
OwnerReference to use this instance as an owner
func (*MysqlServer) SetBound ¶
func (m *MysqlServer) SetBound(bound bool)
SetBound sets the binding state of this resource
func (*MysqlServer) SetStatus ¶ added in v0.2.0
func (m *MysqlServer) SetStatus(status *SQLServerStatus)
SetStatus sets the MySQL server's status.
type MysqlServerList ¶
type MysqlServerList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []MysqlServer `json:"items"` }
MysqlServerList contains a list of MysqlServer
func (*MysqlServerList) DeepCopy ¶
func (in *MysqlServerList) DeepCopy() *MysqlServerList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MysqlServerList.
func (*MysqlServerList) DeepCopyInto ¶
func (in *MysqlServerList) DeepCopyInto(out *MysqlServerList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MysqlServerList) DeepCopyObject ¶
func (in *MysqlServerList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PostgresqlServer ¶ added in v0.2.0
type PostgresqlServer struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec SQLServerSpec `json:"spec,omitempty"` Status SQLServerStatus `json:"status,omitempty"` }
PostgresqlServer is the Schema for the instances API +k8s:openapi-gen=true +groupName=database.azure +kubebuilder:printcolumn:name="STATUS",type="string",JSONPath=".status.bindingPhase" +kubebuilder:printcolumn:name="STATE",type="string",JSONPath=".status.state" +kubebuilder:printcolumn:name="CLASS",type="string",JSONPath=".spec.classRef.name" +kubebuilder:printcolumn:name="VERSION",type="string",JSONPath=".spec.version" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp"
func (*PostgresqlServer) ConnectionSecretName ¶ added in v0.2.0
func (p *PostgresqlServer) ConnectionSecretName() string
ConnectionSecretName returns a secret name from the reference
func (*PostgresqlServer) DeepCopy ¶ added in v0.2.0
func (in *PostgresqlServer) DeepCopy() *PostgresqlServer
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresqlServer.
func (*PostgresqlServer) DeepCopyInto ¶ added in v0.2.0
func (in *PostgresqlServer) DeepCopyInto(out *PostgresqlServer)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PostgresqlServer) DeepCopyObject ¶ added in v0.2.0
func (in *PostgresqlServer) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*PostgresqlServer) GetSpec ¶ added in v0.2.0
func (p *PostgresqlServer) GetSpec() *SQLServerSpec
GetSpec gets the PostgreSQL server's spec.
func (*PostgresqlServer) GetStatus ¶ added in v0.2.0
func (p *PostgresqlServer) GetStatus() *SQLServerStatus
GetStatus gets the PostgreSQL server's status.
func (*PostgresqlServer) IsAvailable ¶ added in v0.2.0
func (p *PostgresqlServer) IsAvailable() bool
IsAvailable for usage/binding
func (*PostgresqlServer) IsBound ¶ added in v0.2.0
func (p *PostgresqlServer) IsBound() bool
IsBound determines if the resource is in a bound binding state
func (*PostgresqlServer) ObjectReference ¶ added in v0.2.0
func (p *PostgresqlServer) ObjectReference() *v1.ObjectReference
ObjectReference to this PostgreSQL Server instance
func (*PostgresqlServer) OwnerReference ¶ added in v0.2.0
func (p *PostgresqlServer) OwnerReference() metav1.OwnerReference
OwnerReference to use this instance as an owner
func (*PostgresqlServer) SetBound ¶ added in v0.2.0
func (p *PostgresqlServer) SetBound(bound bool)
SetBound sets the binding state of this resource
func (*PostgresqlServer) SetStatus ¶ added in v0.2.0
func (p *PostgresqlServer) SetStatus(status *SQLServerStatus)
SetStatus sets the PostgreSQL server's status.
type PostgresqlServerList ¶ added in v0.2.0
type PostgresqlServerList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []PostgresqlServer `json:"items"` }
PostgresqlServerList contains a list of PostgresqlServer
func (*PostgresqlServerList) DeepCopy ¶ added in v0.2.0
func (in *PostgresqlServerList) DeepCopy() *PostgresqlServerList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresqlServerList.
func (*PostgresqlServerList) DeepCopyInto ¶ added in v0.2.0
func (in *PostgresqlServerList) DeepCopyInto(out *PostgresqlServerList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PostgresqlServerList) DeepCopyObject ¶ added in v0.2.0
func (in *PostgresqlServerList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PricingTierSpec ¶
type PricingTierSpec struct { Tier string `json:"tier"` VCores int `json:"vcores"` Family string `json:"family"` }
PricingTierSpec represents the performance and cost oriented properties of the server
func (*PricingTierSpec) DeepCopy ¶
func (in *PricingTierSpec) DeepCopy() *PricingTierSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PricingTierSpec.
func (*PricingTierSpec) DeepCopyInto ¶
func (in *PricingTierSpec) DeepCopyInto(out *PricingTierSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SQLServer ¶ added in v0.2.0
type SQLServer interface { corev1alpha1.Resource metav1.Object OwnerReference() metav1.OwnerReference GetSpec() *SQLServerSpec GetStatus() *SQLServerStatus SetStatus(*SQLServerStatus) }
SQLServer represents a generic Azure SQL server.
type SQLServerSpec ¶ added in v0.2.0
type SQLServerSpec struct { ResourceGroupName string `json:"resourceGroupName"` Location string `json:"location"` PricingTier PricingTierSpec `json:"pricingTier"` StorageProfile StorageProfileSpec `json:"storageProfile"` AdminLoginName string `json:"adminLoginName"` Version string `json:"version"` SSLEnforced bool `json:"sslEnforced,omitempty"` // Kubernetes object references ClaimRef *v1.ObjectReference `json:"claimRef,omitempty"` ClassRef *v1.ObjectReference `json:"classRef,omitempty"` ProviderRef v1.LocalObjectReference `json:"providerRef"` ConnectionSecretRef v1.LocalObjectReference `json:"connectionSecretRef,omitempty"` // ReclaimPolicy identifies how to handle the cloud resource after the deletion of this type ReclaimPolicy corev1alpha1.ReclaimPolicy `json:"reclaimPolicy,omitempty"` }
SQLServerSpec defines the desired state of SQLServer
func NewSQLServerSpec ¶ added in v0.2.0
func NewSQLServerSpec(properties map[string]string) *SQLServerSpec
NewSQLServerSpec creates a new SQLServerSpec based on the given properties map
func (*SQLServerSpec) DeepCopy ¶ added in v0.2.0
func (in *SQLServerSpec) DeepCopy() *SQLServerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SQLServerSpec.
func (*SQLServerSpec) DeepCopyInto ¶ added in v0.2.0
func (in *SQLServerSpec) DeepCopyInto(out *SQLServerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SQLServerStatus ¶ added in v0.2.0
type SQLServerStatus struct { corev1alpha1.ConditionedStatus corev1alpha1.BindingStatusPhase State string `json:"state,omitempty"` Message string `json:"message,omitempty"` // the external ID to identify this resource in the cloud provider ProviderID string `json:"providerID,omitempty"` // Endpoint of the MySQL Server instance used in connection strings Endpoint string `json:"endpoint,omitempty"` // RunningOperation stores any current long running operation for this instance across // reconciliation attempts. This will be a serialized Azure MySQL Server API object that will // be used to check the status and completion of the operation during each reconciliation. // Once the operation has completed, this field will be cleared out. RunningOperation string `json:"runningOperation,omitempty"` // RunningOperationType is the type of the currently running operation RunningOperationType string `json:"runningOperationType,omitempty"` }
SQLServerStatus defines the observed state of SQLServer
func (*SQLServerStatus) DeepCopy ¶ added in v0.2.0
func (in *SQLServerStatus) DeepCopy() *SQLServerStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SQLServerStatus.
func (*SQLServerStatus) DeepCopyInto ¶ added in v0.2.0
func (in *SQLServerStatus) DeepCopyInto(out *SQLServerStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StorageProfileSpec ¶
type StorageProfileSpec struct { StorageGB int `json:"storageGB"` BackupRetentionDays int `json:"backupRetentionDays,omitempty"` GeoRedundantBackup bool `json:"geoRedundantBackup,omitempty"` }
StorageProfileSpec represents storage related properties of the server
func (*StorageProfileSpec) DeepCopy ¶
func (in *StorageProfileSpec) DeepCopy() *StorageProfileSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageProfileSpec.
func (*StorageProfileSpec) DeepCopyInto ¶
func (in *StorageProfileSpec) DeepCopyInto(out *StorageProfileSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.