Documentation
¶
Overview ¶
+kubebuilder:object:generate=true +groupName=replication.postgresql.upbound.io +versionName=v1alpha1
Index ¶
- Constants
- Variables
- type Slot
- func (in *Slot) DeepCopy() *Slot
- func (in *Slot) DeepCopyInto(out *Slot)
- func (in *Slot) DeepCopyObject() runtime.Object
- func (mg *Slot) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (tr *Slot) GetConnectionDetailsMapping() map[string]string
- func (mg *Slot) GetDeletionPolicy() xpv1.DeletionPolicy
- func (tr *Slot) GetID() string
- func (tr *Slot) GetInitParameters() (map[string]any, error)
- func (mg *Slot) GetManagementPolicies() xpv1.ManagementPolicies
- func (tr *Slot) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error)
- func (tr *Slot) GetObservation() (map[string]any, error)
- func (tr *Slot) GetParameters() (map[string]any, error)
- func (mg *Slot) GetProviderConfigReference() *xpv1.Reference
- func (mg *Slot) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
- func (mg *Slot) GetTerraformResourceType() string
- func (tr *Slot) GetTerraformSchemaVersion() int
- func (mg *Slot) GetWriteConnectionSecretToReference() *xpv1.SecretReference
- func (tr *Slot) Hub()
- func (tr *Slot) LateInitialize(attrs []byte) (bool, error)
- func (mg *Slot) SetConditions(c ...xpv1.Condition)
- func (mg *Slot) SetDeletionPolicy(r xpv1.DeletionPolicy)
- func (mg *Slot) SetManagementPolicies(r xpv1.ManagementPolicies)
- func (tr *Slot) SetObservation(obs map[string]any) error
- func (tr *Slot) SetParameters(params map[string]any) error
- func (mg *Slot) SetProviderConfigReference(r *xpv1.Reference)
- func (mg *Slot) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
- func (mg *Slot) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
- type SlotInitParameters
- type SlotList
- type SlotObservation
- type SlotParameters
- type SlotSpec
- type SlotStatus
Constants ¶
const ( CRDGroup = "replication.postgresql.upbound.io" CRDVersion = "v1alpha1" )
Package type metadata.
Variables ¶
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 )
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Slot.
func (*Slot) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Slot) DeepCopyObject ¶
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 ¶
GetConnectionDetailsMapping for this Slot
func (*Slot) GetDeletionPolicy ¶
func (mg *Slot) GetDeletionPolicy() xpv1.DeletionPolicy
GetDeletionPolicy of this Slot.
func (*Slot) GetInitParameters ¶
GetInitParameters of this Slot
func (*Slot) GetManagementPolicies ¶
func (mg *Slot) GetManagementPolicies() xpv1.ManagementPolicies
GetManagementPolicies of this Slot.
func (*Slot) GetMergedParameters ¶
GetInitParameters of this Slot
func (*Slot) GetObservation ¶
GetObservation of this Slot
func (*Slot) GetParameters ¶
GetParameters of this Slot
func (*Slot) GetProviderConfigReference ¶
GetProviderConfigReference of this Slot.
func (*Slot) GetPublishConnectionDetailsTo ¶
func (mg *Slot) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
GetPublishConnectionDetailsTo of this Slot.
func (*Slot) GetTerraformResourceType ¶
GetTerraformResourceType returns Terraform resource type for this Slot
func (*Slot) GetTerraformSchemaVersion ¶
GetTerraformSchemaVersion returns the associated Terraform schema version
func (*Slot) GetWriteConnectionSecretToReference ¶
func (mg *Slot) GetWriteConnectionSecretToReference() *xpv1.SecretReference
GetWriteConnectionSecretToReference of this Slot.
func (*Slot) LateInitialize ¶
LateInitialize this Slot using its observed tfState. returns True if there are any spec changes for the resource.
func (*Slot) SetConditions ¶
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 ¶
SetObservation for this Slot
func (*Slot) SetParameters ¶
SetParameters for this Slot
func (*Slot) SetProviderConfigReference ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SlotList.
func (*SlotList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SlotList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SlotSpec.
func (*SlotSpec) DeepCopyInto ¶
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.