v1alpha1

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package v1alpha1 contains the database resources of the in-cluster provider. +kubebuilder:object:generate=true +groupName=database.in-cluster.crossplane.io +versionName=v1alpha1

Index

Constants

View Source
const (
	Group   = "database.in-cluster.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 (
	PostgresKind             = reflect.TypeOf(Postgres{}).Name()
	PostgresGroupKind        = schema.GroupKind{Group: Group, Kind: PostgresKind}.String()
	PostgresKindAPIVersion   = PostgresKind + "." + SchemeGroupVersion.String()
	PostgresGroupVersionKind = SchemeGroupVersion.WithKind(PostgresKind)
)

Provider type metadata.

Functions

This section is empty.

Types

type Postgres

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

	Spec   PostgresSpec   `json:"spec"`
	Status PostgresStatus `json:"status,omitempty"`
}

An Postgres is a managed resource that represents a Postgres database. +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="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws}

func (*Postgres) DeepCopy

func (in *Postgres) DeepCopy() *Postgres

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

func (*Postgres) DeepCopyInto

func (in *Postgres) DeepCopyInto(out *Postgres)

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

func (*Postgres) DeepCopyObject

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

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

func (*Postgres) GetCondition

GetCondition of this Postgres.

func (*Postgres) GetDeletionPolicy

func (mg *Postgres) GetDeletionPolicy() runtimev1alpha1.DeletionPolicy

GetDeletionPolicy of this Postgres.

func (*Postgres) GetProviderConfigReference

func (mg *Postgres) GetProviderConfigReference() *runtimev1alpha1.Reference

GetProviderConfigReference of this Postgres.

func (*Postgres) GetProviderReference

func (mg *Postgres) GetProviderReference() *runtimev1alpha1.Reference

GetProviderReference of this Postgres. Deprecated: Use GetProviderConfigReference.

func (*Postgres) GetWriteConnectionSecretToReference

func (mg *Postgres) GetWriteConnectionSecretToReference() *runtimev1alpha1.SecretReference

GetWriteConnectionSecretToReference of this Postgres.

func (*Postgres) SetConditions

func (mg *Postgres) SetConditions(c ...runtimev1alpha1.Condition)

SetConditions of this Postgres.

func (*Postgres) SetDeletionPolicy

func (mg *Postgres) SetDeletionPolicy(r runtimev1alpha1.DeletionPolicy)

SetDeletionPolicy of this Postgres.

func (*Postgres) SetProviderConfigReference

func (mg *Postgres) SetProviderConfigReference(r *runtimev1alpha1.Reference)

SetProviderConfigReference of this Postgres.

func (*Postgres) SetProviderReference

func (mg *Postgres) SetProviderReference(r *runtimev1alpha1.Reference)

SetProviderReference of this Postgres. Deprecated: Use SetProviderConfigReference.

func (*Postgres) SetWriteConnectionSecretToReference

func (mg *Postgres) SetWriteConnectionSecretToReference(r *runtimev1alpha1.SecretReference)

SetWriteConnectionSecretToReference of this Postgres.

type PostgresExternalStatus

type PostgresExternalStatus struct {
	// The status of the PVC for this Postgres database
	PVCStatus string `json:"pvcStatus"`
}

PostgresExternalStatus keeps the state for the external resource

func (*PostgresExternalStatus) DeepCopy

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

func (*PostgresExternalStatus) DeepCopyInto

func (in *PostgresExternalStatus) DeepCopyInto(out *PostgresExternalStatus)

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

type PostgresList

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

PostgresList contains a list of Postgres databases

func (*PostgresList) DeepCopy

func (in *PostgresList) DeepCopy() *PostgresList

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

func (*PostgresList) DeepCopyInto

func (in *PostgresList) DeepCopyInto(out *PostgresList)

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

func (*PostgresList) DeepCopyObject

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

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

func (*PostgresList) GetItems

func (l *PostgresList) GetItems() []resource.Managed

GetItems of this PostgresList.

type PostgresParameters

type PostgresParameters struct {

	// DatabaseSize is the size of the database in a valid Go notation
	// e.g., 1Gi
	// +immutable
	DatabaseSize string `json:"databaseSize"`

	// MasterUsername is the name for the master user.
	// 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,omitempty"`

	// Database specifies the default database to be created with the image
	// +optional
	// +immutable
	Database *string `json:"database,omitempty"`

	// StorageClass specifies the storage classed used for the PVC.
	// +optional
	// +immutable
	StorageClass *string `json:"storageClass,omitempty"`

	// Port is the port number on which Postgres will listen for connections.
	// +optional
	// +immutable
	Port *int `json:"port,omitempty"`

	// MasterPasswordSecretRef references the secret that contains the password used
	// in the creation of this RDS instance. If no reference is given, a password
	// will be auto-generated.
	// +optional
	// +immutable
	MasterPasswordSecretRef *runtimev1alpha1.SecretKeySelector `json:"masterPasswordSecretRef,omitempty"`
}

PostgresParameters define the desired state of an AWS IAM Role.

func (*PostgresParameters) DeepCopy

func (in *PostgresParameters) DeepCopy() *PostgresParameters

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

func (*PostgresParameters) DeepCopyInto

func (in *PostgresParameters) DeepCopyInto(out *PostgresParameters)

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

type PostgresSpec

type PostgresSpec struct {
	runtimev1alpha1.ResourceSpec `json:",inline"`
	ForProvider                  PostgresParameters `json:"forProvider"`
}

An PostgresSpec defines the desired state of an Postgres.

func (*PostgresSpec) DeepCopy

func (in *PostgresSpec) DeepCopy() *PostgresSpec

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

func (*PostgresSpec) DeepCopyInto

func (in *PostgresSpec) DeepCopyInto(out *PostgresSpec)

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

type PostgresStatus

type PostgresStatus struct {
	runtimev1alpha1.ResourceStatus `json:",inline"`
	AtProvider                     PostgresExternalStatus `json:"atProvider"`
}

An PostgresStatus represents the observed state of an Postgres.

func (*PostgresStatus) DeepCopy

func (in *PostgresStatus) DeepCopy() *PostgresStatus

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

func (*PostgresStatus) DeepCopyInto

func (in *PostgresStatus) DeepCopyInto(out *PostgresStatus)

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