v1alpha2

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Overview

Package v1alpha2 contains managed resources for AWS database services such as RDS. +kubebuilder:object:generate=true +groupName=database.aws.crossplane.io +versionName=v1alpha2

Index

Constants

View Source
const (
	MysqlEngine      = "mysql"
	PostgresqlEngine = "postgres"
)

SQL database engines.

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

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 (
	RDSInstanceKind             = reflect.TypeOf(RDSInstance{}).Name()
	RDSInstanceKindAPIVersion   = RDSInstanceKind + "." + SchemeGroupVersion.String()
	RDSInstanceGroupVersionKind = SchemeGroupVersion.WithKind(RDSInstanceKind)
)

RDSInstance type metadata.

View Source
var (
	RDSInstanceClassKind             = reflect.TypeOf(RDSInstanceClass{}).Name()
	RDSInstanceClassKindAPIVersion   = RDSInstanceClassKind + "." + SchemeGroupVersion.String()
	RDSInstanceClassGroupVersionKind = SchemeGroupVersion.WithKind(RDSInstanceClassKind)
)

RDSInstanceClass type metadata.

Functions

This section is empty.

Types

type RDSInstance

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

	Spec   RDSInstanceSpec   `json:"spec,omitempty"`
	Status RDSInstanceStatus `json:"status,omitempty"`
}

An RDSInstance is a managed resource that represents an AWS Relational Database Service instance. +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.engineVersion" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp"

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

func (i *RDSInstance) GetBindingPhase() runtimev1alpha1.BindingPhase

GetBindingPhase of this RDSInstance.

func (*RDSInstance) GetClaimReference

func (i *RDSInstance) GetClaimReference() *corev1.ObjectReference

GetClaimReference of this RDSInstance.

func (*RDSInstance) GetNonPortableClassReference

func (i *RDSInstance) GetNonPortableClassReference() *corev1.ObjectReference

GetNonPortableClassReference of this RDSInstance.

func (*RDSInstance) GetReclaimPolicy

func (i *RDSInstance) GetReclaimPolicy() runtimev1alpha1.ReclaimPolicy

GetReclaimPolicy of this RDSInstance.

func (*RDSInstance) GetWriteConnectionSecretToReference

func (i *RDSInstance) GetWriteConnectionSecretToReference() corev1.LocalObjectReference

GetWriteConnectionSecretToReference of this RDSInstance.

func (*RDSInstance) SetBindingPhase

func (i *RDSInstance) SetBindingPhase(p runtimev1alpha1.BindingPhase)

SetBindingPhase of this RDSInstance.

func (*RDSInstance) SetClaimReference

func (i *RDSInstance) SetClaimReference(r *corev1.ObjectReference)

SetClaimReference of this RDSInstance.

func (*RDSInstance) SetConditions

func (i *RDSInstance) SetConditions(c ...runtimev1alpha1.Condition)

SetConditions of this RDSInstance.

func (*RDSInstance) SetNonPortableClassReference

func (i *RDSInstance) SetNonPortableClassReference(r *corev1.ObjectReference)

SetNonPortableClassReference of this RDSInstance.

func (*RDSInstance) SetReclaimPolicy

func (i *RDSInstance) SetReclaimPolicy(p runtimev1alpha1.ReclaimPolicy)

SetReclaimPolicy of this RDSInstance.

func (*RDSInstance) SetWriteConnectionSecretToReference

func (i *RDSInstance) SetWriteConnectionSecretToReference(r corev1.LocalObjectReference)

SetWriteConnectionSecretToReference of this RDSInstance.

type RDSInstanceClass

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

	// SpecTemplate is a template for the spec of a dynamically provisioned
	// RDSInstance.
	SpecTemplate RDSInstanceClassSpecTemplate `json:"specTemplate"`
}

An RDSInstanceClass is a non-portable resource class. It defines the desired spec of resource claims that use it to dynamically provision a managed resource. +kubebuilder:printcolumn:name="PROVIDER-REF",type="string",JSONPath=".specTemplate.providerRef.name" +kubebuilder:printcolumn:name="RECLAIM-POLICY",type="string",JSONPath=".specTemplate.reclaimPolicy" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp"

func (*RDSInstanceClass) DeepCopy

func (in *RDSInstanceClass) DeepCopy() *RDSInstanceClass

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

func (*RDSInstanceClass) DeepCopyInto

func (in *RDSInstanceClass) DeepCopyInto(out *RDSInstanceClass)

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

func (*RDSInstanceClass) DeepCopyObject

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

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

func (*RDSInstanceClass) GetReclaimPolicy

func (i *RDSInstanceClass) GetReclaimPolicy() runtimev1alpha1.ReclaimPolicy

GetReclaimPolicy of this RDSInstanceClass.

func (*RDSInstanceClass) SetReclaimPolicy

func (i *RDSInstanceClass) SetReclaimPolicy(p runtimev1alpha1.ReclaimPolicy)

SetReclaimPolicy of this RDSInstanceClass.

type RDSInstanceClassList

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

RDSInstanceClassList contains a list of cloud memorystore resource classes.

func (*RDSInstanceClassList) DeepCopy

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

func (*RDSInstanceClassList) DeepCopyInto

func (in *RDSInstanceClassList) DeepCopyInto(out *RDSInstanceClassList)

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

func (*RDSInstanceClassList) DeepCopyObject

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

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

type RDSInstanceClassSpecTemplate

type RDSInstanceClassSpecTemplate struct {
	runtimev1alpha1.NonPortableClassSpecTemplate `json:",inline"`
	RDSInstanceParameters                        `json:",inline"`
}

An RDSInstanceClassSpecTemplate is a template for the spec of a dynamically provisioned RDSInstance.

func (*RDSInstanceClassSpecTemplate) DeepCopy

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

func (*RDSInstanceClassSpecTemplate) DeepCopyInto

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

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.

type RDSInstanceParameters

type RDSInstanceParameters struct {
	// MasterUsername for this RDSInstance.
	MasterUsername string `json:"masterUsername"`

	// Engine for this RDSInstance - either mysql or postgres.
	// +kubebuilder:validation:Enum=mysql;postgres
	Engine string `json:"engine"`

	// EngineVersion for this RDS instance, for example "5.6".
	// +optional
	EngineVersion string `json:"engineVersion,omitempty"`

	// Class of this RDS instance, for example "db.t2.micro".
	Class string `json:"class"`

	// Size in GB of this RDS instance.
	Size int64 `json:"size"`

	// SubnetGroupName specifies a database subnet group for the RDS instance.
	// The new instance is created in the VPC associated with the DB subnet
	// group. If no DB subnet group is specified, then the instance is not
	// created in a VPC.
	// +optional
	SubnetGroupName string `json:"subnetGroupName,omitempty"`

	// SecurityGroups that will allow the RDS instance to be accessed over the network.
	// +optional
	SecurityGroups []string `json:"securityGroups,omitempty"`
}

RDSInstanceParameters define the desired state of an AWS Relational Database Service instance.

func (*RDSInstanceParameters) DeepCopy

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 {
	runtimev1alpha1.ResourceSpec `json:",inline"`
	RDSInstanceParameters        `json:",inline"`
}

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 RDSInstanceState

type RDSInstanceState string

RDSInstanceState represents the state of an RDS instance.

const (
	// The instance is healthy and available
	RDSInstanceStateAvailable RDSInstanceState = "available"
	// The instance is being created. The instance is inaccessible while it is being created.
	RDSInstanceStateCreating RDSInstanceState = "creating"
	// The instance is being deleted.
	RDSInstanceStateDeleting RDSInstanceState = "deleting"
	// The instance has failed and Amazon RDS can't recover it. Perform a point-in-time restore to the latest restorable time of the instance to recover the data.
	RDSInstanceStateFailed RDSInstanceState = "failed"
)

RDS instance states.

type RDSInstanceStatus

type RDSInstanceStatus struct {
	runtimev1alpha1.ResourceStatus `json:",inline"`

	// State of this RDS instance.
	State string `json:"state,omitempty"`

	// ProviderID is the AWS identifier for this RDS instance.
	ProviderID string `json:"providerID,omitempty"`

	// InstanceName of this RDS instance.
	InstanceName string `json:"instanceName,omitempty"`

	// Endpoint of this RDS instance.
	Endpoint string `json:"endpoint,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.

Jump to

Keyboard shortcuts

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