v1alpha1

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package v1alpha1 contains portable resource claims for database services such as MySQL or PostgreSQL. +kubebuilder:object:generate=true +groupName=database.crossplane.io +versionName=v1alpha1

Index

Constants

View Source
const (
	Group   = "database.crossplane.io"
	Version = "v1alpha1"
)

Package type metadata.

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}
)
View Source
var (
	MySQLInstanceKind             = reflect.TypeOf(MySQLInstance{}).Name()
	MySQLInstanceKindAPIVersion   = MySQLInstanceKind + "." + SchemeGroupVersion.String()
	MySQLInstanceGroupVersionKind = SchemeGroupVersion.WithKind(MySQLInstanceKind)
)

MySQLInstance type metadata.

View Source
var (
	MySQLInstanceClassKind             = reflect.TypeOf(MySQLInstanceClass{}).Name()
	MySQLInstanceClassKindAPIVersion   = MySQLInstanceClassKind + "." + SchemeGroupVersion.String()
	MySQLInstanceClassGroupVersionKind = SchemeGroupVersion.WithKind(MySQLInstanceClassKind)
)

MySQLInstanceClass type metadata.

View Source
var (
	MySQLInstanceClassListKind             = reflect.TypeOf(MySQLInstanceClassList{}).Name()
	MySQLInstanceClassListKindAPIVersion   = MySQLInstanceClassListKind + "." + SchemeGroupVersion.String()
	MySQLInstanceClassListGroupVersionKind = SchemeGroupVersion.WithKind(MySQLInstanceClassListKind)
)

MySQLInstanceClassList type metadata.

View Source
var (
	PostgreSQLInstanceKind             = reflect.TypeOf(PostgreSQLInstance{}).Name()
	PostgreSQLInstanceKindAPIVersion   = PostgreSQLInstanceKind + "." + SchemeGroupVersion.String()
	PostgreSQLInstanceGroupVersionKind = SchemeGroupVersion.WithKind(PostgreSQLInstanceKind)
)

PostgreSQLInstance type metadata.

View Source
var (
	PostgreSQLInstanceClassKind             = reflect.TypeOf(PostgreSQLInstanceClass{}).Name()
	PostgreSQLInstanceClassKindAPIVersion   = PostgreSQLInstanceClassKind + "." + SchemeGroupVersion.String()
	PostgreSQLInstanceClassGroupVersionKind = SchemeGroupVersion.WithKind(PostgreSQLInstanceClassKind)
)

PostgreSQLInstanceClass type metadata.

View Source
var (
	PostgreSQLInstanceClassListKind             = reflect.TypeOf(PostgreSQLInstanceClassList{}).Name()
	PostgreSQLInstanceClassListKindAPIVersion   = PostgreSQLInstanceClassListKind + "." + SchemeGroupVersion.String()
	PostgreSQLInstanceClassListGroupVersionKind = SchemeGroupVersion.WithKind(PostgreSQLInstanceClassListKind)
)

PostgreSQLInstanceClassList type metadata.

Functions

This section is empty.

Types

type MySQLInstance

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

	Spec   MySQLInstanceSpec                   `json:"spec,omitempty"`
	Status runtimev1alpha1.ResourceClaimStatus `json:"status,omitempty"`
}

A MySQLInstance is a portable resource claim that may be satisfied by binding to a MySQL managed resource such as an AWS RDS instance or a GCP CloudSQL instance. +kubebuilder:printcolumn:name="STATUS",type="string",JSONPath=".status.bindingPhase" +kubebuilder:printcolumn:name="CLASS",type="string",JSONPath=".spec.classRef.name" +kubebuilder:printcolumn:name="VERSION",type="string",JSONPath=".spec.engineVersion" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status

func (*MySQLInstance) DeepCopy

func (in *MySQLInstance) DeepCopy() *MySQLInstance

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

func (*MySQLInstance) DeepCopyInto

func (in *MySQLInstance) DeepCopyInto(out *MySQLInstance)

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

func (*MySQLInstance) DeepCopyObject

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

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

func (*MySQLInstance) GetBindingPhase

func (cm *MySQLInstance) GetBindingPhase() runtimev1alpha1.BindingPhase

GetBindingPhase of this MySQLInstance.

func (*MySQLInstance) GetCondition added in v0.4.0

GetCondition of this MySQLInstance.

func (*MySQLInstance) GetPortableClassReference

func (cm *MySQLInstance) GetPortableClassReference() *corev1.LocalObjectReference

GetPortableClassReference of this MySQLInstance.

func (*MySQLInstance) GetResourceReference

func (cm *MySQLInstance) GetResourceReference() *corev1.ObjectReference

GetResourceReference of this MySQLInstance.

func (*MySQLInstance) GetWriteConnectionSecretToReference

func (cm *MySQLInstance) GetWriteConnectionSecretToReference() corev1.LocalObjectReference

GetWriteConnectionSecretToReference of this MySQLInstance.

func (*MySQLInstance) SetBindingPhase

func (cm *MySQLInstance) SetBindingPhase(p runtimev1alpha1.BindingPhase)

SetBindingPhase of this MySQLInstance.

func (*MySQLInstance) SetConditions

func (cm *MySQLInstance) SetConditions(c ...runtimev1alpha1.Condition)

SetConditions of this MySQLInstance.

func (*MySQLInstance) SetPortableClassReference

func (cm *MySQLInstance) SetPortableClassReference(r *corev1.LocalObjectReference)

SetPortableClassReference of this MySQLInstance.

func (*MySQLInstance) SetResourceReference

func (cm *MySQLInstance) SetResourceReference(r *corev1.ObjectReference)

SetResourceReference of this MySQLInstance.

func (*MySQLInstance) SetWriteConnectionSecretToReference

func (cm *MySQLInstance) SetWriteConnectionSecretToReference(r corev1.LocalObjectReference)

SetWriteConnectionSecretToReference of this MySQLInstance.

type MySQLInstanceClass

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

	runtimev1alpha1.PortableClass `json:",inline"`
}

MySQLInstanceClass contains a namespace-scoped portable class for MySQLInstance

func (*MySQLInstanceClass) DeepCopy

func (in *MySQLInstanceClass) DeepCopy() *MySQLInstanceClass

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

func (*MySQLInstanceClass) DeepCopyInto

func (in *MySQLInstanceClass) DeepCopyInto(out *MySQLInstanceClass)

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

func (*MySQLInstanceClass) DeepCopyObject

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

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

type MySQLInstanceClassList

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

MySQLInstanceClassList contains a list of MySQLInstanceClass.

func (*MySQLInstanceClassList) DeepCopy

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

func (*MySQLInstanceClassList) DeepCopyInto

func (in *MySQLInstanceClassList) DeepCopyInto(out *MySQLInstanceClassList)

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

func (*MySQLInstanceClassList) DeepCopyObject

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

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

func (*MySQLInstanceClassList) GetPortableClassItems

func (csl *MySQLInstanceClassList) GetPortableClassItems() []resource.PortableClass

GetPortableClassItems of this MySQLInstanceClassList.

func (*MySQLInstanceClassList) SetPortableClassItems

func (csl *MySQLInstanceClassList) SetPortableClassItems(i []resource.PortableClass)

SetPortableClassItems of this MySQLInstanceClassList.

type MySQLInstanceList

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

MySQLInstanceList contains a list of MySQLInstance.

func (*MySQLInstanceList) DeepCopy

func (in *MySQLInstanceList) DeepCopy() *MySQLInstanceList

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

func (*MySQLInstanceList) DeepCopyInto

func (in *MySQLInstanceList) DeepCopyInto(out *MySQLInstanceList)

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

func (*MySQLInstanceList) DeepCopyObject

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

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

type MySQLInstanceSpec

type MySQLInstanceSpec struct {
	runtimev1alpha1.ResourceClaimSpec `json:",inline"`

	// EngineVersion specifies the desired MySQL engine version, e.g. 5.7.
	// +kubebuilder:validation:Enum="5.6";"5.7"
	EngineVersion string `json:"engineVersion,omitempty"`
}

MySQLInstanceSpec specifies the desired state of a MySQLInstance.

func (*MySQLInstanceSpec) DeepCopy

func (in *MySQLInstanceSpec) DeepCopy() *MySQLInstanceSpec

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

func (*MySQLInstanceSpec) DeepCopyInto

func (in *MySQLInstanceSpec) DeepCopyInto(out *MySQLInstanceSpec)

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

type PostgreSQLInstance

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

	Spec   PostgreSQLInstanceSpec              `json:"spec,omitempty"`
	Status runtimev1alpha1.ResourceClaimStatus `json:"status,omitempty"`
}

A PostgreSQLInstance is a portable resource claim that may be satisfied by binding to a PostgreSQL managed resource such as an AWS RDS instance or a GCP CloudSQL instance. PostgreSQLInstance is the CRD type for abstract PostgreSQL database instances +kubebuilder:printcolumn:name="STATUS",type="string",JSONPath=".status.bindingPhase" +kubebuilder:printcolumn:name="CLASS",type="string",JSONPath=".spec.classRef.name" +kubebuilder:printcolumn:name="VERSION",type="string",JSONPath=".spec.engineVersion" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status

func (*PostgreSQLInstance) DeepCopy

func (in *PostgreSQLInstance) DeepCopy() *PostgreSQLInstance

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

func (*PostgreSQLInstance) DeepCopyInto

func (in *PostgreSQLInstance) DeepCopyInto(out *PostgreSQLInstance)

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

func (*PostgreSQLInstance) DeepCopyObject

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

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

func (*PostgreSQLInstance) GetBindingPhase

func (cm *PostgreSQLInstance) GetBindingPhase() runtimev1alpha1.BindingPhase

GetBindingPhase of this PostgreSQLInstance.

func (*PostgreSQLInstance) GetCondition added in v0.4.0

GetCondition of this PostgreSQLInstance.

func (*PostgreSQLInstance) GetPortableClassReference

func (cm *PostgreSQLInstance) GetPortableClassReference() *corev1.LocalObjectReference

GetPortableClassReference of this PostgreSQLInstance.

func (*PostgreSQLInstance) GetResourceReference

func (cm *PostgreSQLInstance) GetResourceReference() *corev1.ObjectReference

GetResourceReference of this PostgreSQLInstance.

func (*PostgreSQLInstance) GetWriteConnectionSecretToReference

func (cm *PostgreSQLInstance) GetWriteConnectionSecretToReference() corev1.LocalObjectReference

GetWriteConnectionSecretToReference of this PostgreSQLInstance.

func (*PostgreSQLInstance) SetBindingPhase

func (cm *PostgreSQLInstance) SetBindingPhase(p runtimev1alpha1.BindingPhase)

SetBindingPhase of this PostgreSQLInstance.

func (*PostgreSQLInstance) SetConditions

func (cm *PostgreSQLInstance) SetConditions(c ...runtimev1alpha1.Condition)

SetConditions of this PostgreSQLInstance.

func (*PostgreSQLInstance) SetPortableClassReference

func (cm *PostgreSQLInstance) SetPortableClassReference(r *corev1.LocalObjectReference)

SetPortableClassReference of this PostgreSQLInstance.

func (*PostgreSQLInstance) SetResourceReference

func (cm *PostgreSQLInstance) SetResourceReference(r *corev1.ObjectReference)

SetResourceReference of this PostgreSQLInstance.

func (*PostgreSQLInstance) SetWriteConnectionSecretToReference

func (cm *PostgreSQLInstance) SetWriteConnectionSecretToReference(r corev1.LocalObjectReference)

SetWriteConnectionSecretToReference of this PostgreSQLInstance.

type PostgreSQLInstanceClass

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

	runtimev1alpha1.PortableClass `json:",inline"`
}

PostgreSQLInstanceClass contains a namespace-scoped portable class for PostgreSQLInstance

func (*PostgreSQLInstanceClass) DeepCopy

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

func (*PostgreSQLInstanceClass) DeepCopyInto

func (in *PostgreSQLInstanceClass) DeepCopyInto(out *PostgreSQLInstanceClass)

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

func (*PostgreSQLInstanceClass) DeepCopyObject

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

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

type PostgreSQLInstanceClassList

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

PostgreSQLInstanceClassList contains a list of PostgreSQLInstanceClass.

func (*PostgreSQLInstanceClassList) DeepCopy

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

func (*PostgreSQLInstanceClassList) DeepCopyInto

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

func (*PostgreSQLInstanceClassList) DeepCopyObject

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

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

func (*PostgreSQLInstanceClassList) GetPortableClassItems

func (csl *PostgreSQLInstanceClassList) GetPortableClassItems() []resource.PortableClass

GetPortableClassItems of this PostgreSQLInstanceClassList.

func (*PostgreSQLInstanceClassList) SetPortableClassItems

func (csl *PostgreSQLInstanceClassList) SetPortableClassItems(i []resource.PortableClass)

SetPortableClassItems of this PostgreSQLInstanceClassList.

type PostgreSQLInstanceList

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

PostgreSQLInstanceList contains a list of PostgreSQLInstance.

func (*PostgreSQLInstanceList) DeepCopy

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

func (*PostgreSQLInstanceList) DeepCopyInto

func (in *PostgreSQLInstanceList) DeepCopyInto(out *PostgreSQLInstanceList)

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

func (*PostgreSQLInstanceList) DeepCopyObject

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

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

type PostgreSQLInstanceSpec

type PostgreSQLInstanceSpec struct {
	runtimev1alpha1.ResourceClaimSpec `json:",inline"`

	// EngineVersion specifies the desired PostgreSQL engine version, e.g. 9.6.
	// +kubebuilder:validation:Enum="9.6"
	EngineVersion string `json:"engineVersion,omitempty"`
}

PostgreSQLInstanceSpec specifies the desired state of a PostgreSQLInstance. PostgreSQLInstance.

func (*PostgreSQLInstanceSpec) DeepCopy

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

func (*PostgreSQLInstanceSpec) DeepCopyInto

func (in *PostgreSQLInstanceSpec) DeepCopyInto(out *PostgreSQLInstanceSpec)

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