v1alpha1

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

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

View Source
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"
)
View Source
const (
	// Group is the API Group for these resources
	Group = "database.azure.crossplane.io"
	// Version is the version of the API group
	Version = "v1alpha1"
	// APIVersion is the full version of this API group
	APIVersion = Group + "/" + Version
	// MysqlServerKind is the kind for the Azure MySQl Server resource
	MysqlServerKind = "mysqlserver"
	// MysqlServerKindAPIVersion is the full kind and version for the Azure MySQl Server resource
	MysqlServerKindAPIVersion = MysqlServerKind + "." + APIVersion
)

Variables

View Source
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 ValidVersionValues

func ValidVersionValues() []string

ValidVersionValues returns the valid set of engine version values.

Types

type MysqlServer

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

	Spec   MysqlServerSpec   `json:"spec,omitempty"`
	Status MysqlServerStatus `json:"status,omitempty"`
}

MysqlServer is the Schema for the instances API +k8s:openapi-gen=true +groupName=database.azure

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) Endpoint

func (m *MysqlServer) Endpoint() string

Endpoint returns the MySQL Server endpoint for connection

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(state bool)

SetBound sets the binding state of this resource

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 MysqlServerSpec

type MysqlServerSpec 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"`
}

MysqlServerSpec defines the desired state of MysqlServer

func NewMySQLServerSpec

func NewMySQLServerSpec(properties map[string]string) *MysqlServerSpec

NewMySQLServerSpec creates a new MySQLServerSpec based on the given properties map

func (*MysqlServerSpec) DeepCopy

func (in *MysqlServerSpec) DeepCopy() *MysqlServerSpec

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

func (*MysqlServerSpec) DeepCopyInto

func (in *MysqlServerSpec) DeepCopyInto(out *MysqlServerSpec)

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

type MysqlServerStatus

type MysqlServerStatus 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"`
}

MysqlServerStatus defines the observed state of MysqlServer

func (*MysqlServerStatus) DeepCopy

func (in *MysqlServerStatus) DeepCopy() *MysqlServerStatus

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

func (*MysqlServerStatus) DeepCopyInto

func (in *MysqlServerStatus) DeepCopyInto(out *MysqlServerStatus)

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

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 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.

Jump to

Keyboard shortcuts

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