v1alpha1

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

+kubebuilder:object:generate=true +groupName=replication.postgresql.upbound.io +versionName=v1alpha1

Index

Constants

View Source
const (
	CRDGroup   = "replication.postgresql.upbound.io"
	CRDVersion = "v1alpha1"
)

Package type metadata.

Variables

View Source
var (
	// CRDGroupVersion is the API Group Version used to register the objects
	CRDGroupVersion = schema.GroupVersion{Group: CRDGroup, Version: CRDVersion}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: CRDGroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var (
	Slot_Kind             = "Slot"
	Slot_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: Slot_Kind}.String()
	Slot_KindAPIVersion   = Slot_Kind + "." + CRDGroupVersion.String()
	Slot_GroupVersionKind = CRDGroupVersion.WithKind(Slot_Kind)
)

Repository type metadata.

Functions

This section is empty.

Types

type Slot

type Slot struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.plugin) || (has(self.initProvider) && has(self.initProvider.plugin))",message="spec.forProvider.plugin is a required parameter"
	Spec   SlotSpec   `json:"spec"`
	Status SlotStatus `json:"status,omitempty"`
}

Slot is the Schema for the Slots API. Creates and manages a replication slot on a PostgreSQL server. +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,postgresql}

func (*Slot) DeepCopy

func (in *Slot) DeepCopy() *Slot

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

func (*Slot) DeepCopyInto

func (in *Slot) DeepCopyInto(out *Slot)

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

func (*Slot) DeepCopyObject

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

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

func (*Slot) GetCondition

func (mg *Slot) GetCondition(ct xpv1.ConditionType) xpv1.Condition

GetCondition of this Slot.

func (*Slot) GetConnectionDetailsMapping

func (tr *Slot) GetConnectionDetailsMapping() map[string]string

GetConnectionDetailsMapping for this Slot

func (*Slot) GetDeletionPolicy

func (mg *Slot) GetDeletionPolicy() xpv1.DeletionPolicy

GetDeletionPolicy of this Slot.

func (*Slot) GetID

func (tr *Slot) GetID() string

GetID returns ID of underlying Terraform resource of this Slot

func (*Slot) GetInitParameters

func (tr *Slot) GetInitParameters() (map[string]any, error)

GetInitParameters of this Slot

func (*Slot) GetManagementPolicies

func (mg *Slot) GetManagementPolicies() xpv1.ManagementPolicies

GetManagementPolicies of this Slot.

func (*Slot) GetMergedParameters

func (tr *Slot) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error)

GetInitParameters of this Slot

func (*Slot) GetObservation

func (tr *Slot) GetObservation() (map[string]any, error)

GetObservation of this Slot

func (*Slot) GetParameters

func (tr *Slot) GetParameters() (map[string]any, error)

GetParameters of this Slot

func (*Slot) GetProviderConfigReference

func (mg *Slot) GetProviderConfigReference() *xpv1.Reference

GetProviderConfigReference of this Slot.

func (*Slot) GetPublishConnectionDetailsTo

func (mg *Slot) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo

GetPublishConnectionDetailsTo of this Slot.

func (*Slot) GetTerraformResourceType

func (mg *Slot) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this Slot

func (*Slot) GetTerraformSchemaVersion

func (tr *Slot) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*Slot) GetWriteConnectionSecretToReference

func (mg *Slot) GetWriteConnectionSecretToReference() *xpv1.SecretReference

GetWriteConnectionSecretToReference of this Slot.

func (*Slot) Hub

func (tr *Slot) Hub()

Hub marks this type as a conversion hub.

func (*Slot) LateInitialize

func (tr *Slot) LateInitialize(attrs []byte) (bool, error)

LateInitialize this Slot using its observed tfState. returns True if there are any spec changes for the resource.

func (*Slot) SetConditions

func (mg *Slot) SetConditions(c ...xpv1.Condition)

SetConditions of this Slot.

func (*Slot) SetDeletionPolicy

func (mg *Slot) SetDeletionPolicy(r xpv1.DeletionPolicy)

SetDeletionPolicy of this Slot.

func (*Slot) SetManagementPolicies

func (mg *Slot) SetManagementPolicies(r xpv1.ManagementPolicies)

SetManagementPolicies of this Slot.

func (*Slot) SetObservation

func (tr *Slot) SetObservation(obs map[string]any) error

SetObservation for this Slot

func (*Slot) SetParameters

func (tr *Slot) SetParameters(params map[string]any) error

SetParameters for this Slot

func (*Slot) SetProviderConfigReference

func (mg *Slot) SetProviderConfigReference(r *xpv1.Reference)

SetProviderConfigReference of this Slot.

func (*Slot) SetPublishConnectionDetailsTo

func (mg *Slot) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)

SetPublishConnectionDetailsTo of this Slot.

func (*Slot) SetWriteConnectionSecretToReference

func (mg *Slot) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)

SetWriteConnectionSecretToReference of this Slot.

type SlotInitParameters

type SlotInitParameters struct {

	// Which database to create the replication slot on. Defaults to provider database.
	// Sets the database to add the replication slot to
	Database *string `json:"database,omitempty" tf:"database,omitempty"`

	// The name of the replication slot.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// Sets the output plugin.
	// Sets the output plugin to use
	Plugin *string `json:"plugin,omitempty" tf:"plugin,omitempty"`
}

func (*SlotInitParameters) DeepCopy

func (in *SlotInitParameters) DeepCopy() *SlotInitParameters

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

func (*SlotInitParameters) DeepCopyInto

func (in *SlotInitParameters) DeepCopyInto(out *SlotInitParameters)

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

type SlotList

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

SlotList contains a list of Slots

func (*SlotList) DeepCopy

func (in *SlotList) DeepCopy() *SlotList

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

func (*SlotList) DeepCopyInto

func (in *SlotList) DeepCopyInto(out *SlotList)

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

func (*SlotList) DeepCopyObject

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

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

func (*SlotList) GetItems

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

GetItems of this SlotList.

type SlotObservation

type SlotObservation struct {

	// Which database to create the replication slot on. Defaults to provider database.
	// Sets the database to add the replication slot to
	Database *string `json:"database,omitempty" tf:"database,omitempty"`

	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// The name of the replication slot.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// Sets the output plugin.
	// Sets the output plugin to use
	Plugin *string `json:"plugin,omitempty" tf:"plugin,omitempty"`
}

func (*SlotObservation) DeepCopy

func (in *SlotObservation) DeepCopy() *SlotObservation

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

func (*SlotObservation) DeepCopyInto

func (in *SlotObservation) DeepCopyInto(out *SlotObservation)

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

type SlotParameters

type SlotParameters struct {

	// Which database to create the replication slot on. Defaults to provider database.
	// Sets the database to add the replication slot to
	// +kubebuilder:validation:Optional
	Database *string `json:"database,omitempty" tf:"database,omitempty"`

	// The name of the replication slot.
	// +kubebuilder:validation:Optional
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// Sets the output plugin.
	// Sets the output plugin to use
	// +kubebuilder:validation:Optional
	Plugin *string `json:"plugin,omitempty" tf:"plugin,omitempty"`
}

func (*SlotParameters) DeepCopy

func (in *SlotParameters) DeepCopy() *SlotParameters

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

func (*SlotParameters) DeepCopyInto

func (in *SlotParameters) DeepCopyInto(out *SlotParameters)

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

type SlotSpec

type SlotSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     SlotParameters `json:"forProvider"`
	// THIS IS A BETA FIELD. It will be honored
	// unless the Management Policies feature flag is disabled.
	// InitProvider holds the same fields as ForProvider, with the exception
	// of Identifier and other resource reference fields. The fields that are
	// in InitProvider are merged into ForProvider when the resource is created.
	// The same fields are also added to the terraform ignore_changes hook, to
	// avoid updating them after creation. This is useful for fields that are
	// required on creation, but we do not desire to update them after creation,
	// for example because of an external controller is managing them, like an
	// autoscaler.
	InitProvider SlotInitParameters `json:"initProvider,omitempty"`
}

SlotSpec defines the desired state of Slot

func (*SlotSpec) DeepCopy

func (in *SlotSpec) DeepCopy() *SlotSpec

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

func (*SlotSpec) DeepCopyInto

func (in *SlotSpec) DeepCopyInto(out *SlotSpec)

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

type SlotStatus

type SlotStatus struct {
	v1.ResourceStatus `json:",inline"`
	AtProvider        SlotObservation `json:"atProvider,omitempty"`
}

SlotStatus defines the observed state of Slot.

func (*SlotStatus) DeepCopy

func (in *SlotStatus) DeepCopy() *SlotStatus

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

func (*SlotStatus) DeepCopyInto

func (in *SlotStatus) DeepCopyInto(out *SlotStatus)

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