Documentation ¶
Overview ¶
+kubebuilder:object:generate=true +groupName=user.upbound.io +versionName=v1alpha1
Index ¶
- Constants
- Variables
- type Mapping
- func (in *Mapping) DeepCopy() *Mapping
- func (in *Mapping) DeepCopyInto(out *Mapping)
- func (in *Mapping) DeepCopyObject() runtime.Object
- func (mg *Mapping) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (tr *Mapping) GetConnectionDetailsMapping() map[string]string
- func (mg *Mapping) GetDeletionPolicy() xpv1.DeletionPolicy
- func (tr *Mapping) GetID() string
- func (tr *Mapping) GetObservation() (map[string]any, error)
- func (tr *Mapping) GetParameters() (map[string]any, error)
- func (mg *Mapping) GetProviderConfigReference() *xpv1.Reference
- func (mg *Mapping) GetProviderReference() *xpv1.Reference
- func (mg *Mapping) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
- func (mg *Mapping) GetTerraformResourceType() string
- func (tr *Mapping) GetTerraformSchemaVersion() int
- func (mg *Mapping) GetWriteConnectionSecretToReference() *xpv1.SecretReference
- func (tr *Mapping) LateInitialize(attrs []byte) (bool, error)
- func (mg *Mapping) SetConditions(c ...xpv1.Condition)
- func (mg *Mapping) SetDeletionPolicy(r xpv1.DeletionPolicy)
- func (tr *Mapping) SetObservation(obs map[string]any) error
- func (tr *Mapping) SetParameters(params map[string]any) error
- func (mg *Mapping) SetProviderConfigReference(r *xpv1.Reference)
- func (mg *Mapping) SetProviderReference(r *xpv1.Reference)
- func (mg *Mapping) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
- func (mg *Mapping) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
- type MappingList
- type MappingObservation
- type MappingParameters
- type MappingSpec
- type MappingStatus
Constants ¶
const ( CRDGroup = "user.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 ( Mapping_Kind = "Mapping" Mapping_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Mapping_Kind}.String() Mapping_KindAPIVersion = Mapping_Kind + "." + CRDGroupVersion.String() Mapping_GroupVersionKind = CRDGroupVersion.WithKind(Mapping_Kind) )
Repository type metadata.
Functions ¶
This section is empty.
Types ¶
type Mapping ¶
type Mapping struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec MappingSpec `json:"spec"` Status MappingStatus `json:"status,omitempty"` }
Mapping is the Schema for the Mappings API. Creates and manages a user mapping on a PostgreSQL server. +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="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,postgresql}
func (*Mapping) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Mapping.
func (*Mapping) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Mapping) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Mapping) GetCondition ¶
func (mg *Mapping) GetCondition(ct xpv1.ConditionType) xpv1.Condition
GetCondition of this Mapping.
func (*Mapping) GetConnectionDetailsMapping ¶
GetConnectionDetailsMapping for this Mapping
func (*Mapping) GetDeletionPolicy ¶
func (mg *Mapping) GetDeletionPolicy() xpv1.DeletionPolicy
GetDeletionPolicy of this Mapping.
func (*Mapping) GetObservation ¶
GetObservation of this Mapping
func (*Mapping) GetParameters ¶
GetParameters of this Mapping
func (*Mapping) GetProviderConfigReference ¶
GetProviderConfigReference of this Mapping.
func (*Mapping) GetProviderReference ¶
GetProviderReference of this Mapping. Deprecated: Use GetProviderConfigReference.
func (*Mapping) GetPublishConnectionDetailsTo ¶
func (mg *Mapping) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
GetPublishConnectionDetailsTo of this Mapping.
func (*Mapping) GetTerraformResourceType ¶
GetTerraformResourceType returns Terraform resource type for this Mapping
func (*Mapping) GetTerraformSchemaVersion ¶
GetTerraformSchemaVersion returns the associated Terraform schema version
func (*Mapping) GetWriteConnectionSecretToReference ¶
func (mg *Mapping) GetWriteConnectionSecretToReference() *xpv1.SecretReference
GetWriteConnectionSecretToReference of this Mapping.
func (*Mapping) LateInitialize ¶
LateInitialize this Mapping using its observed tfState. returns True if there are any spec changes for the resource.
func (*Mapping) SetConditions ¶
SetConditions of this Mapping.
func (*Mapping) SetDeletionPolicy ¶
func (mg *Mapping) SetDeletionPolicy(r xpv1.DeletionPolicy)
SetDeletionPolicy of this Mapping.
func (*Mapping) SetObservation ¶
SetObservation for this Mapping
func (*Mapping) SetParameters ¶
SetParameters for this Mapping
func (*Mapping) SetProviderConfigReference ¶
SetProviderConfigReference of this Mapping.
func (*Mapping) SetProviderReference ¶
SetProviderReference of this Mapping. Deprecated: Use SetProviderConfigReference.
func (*Mapping) SetPublishConnectionDetailsTo ¶
func (mg *Mapping) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
SetPublishConnectionDetailsTo of this Mapping.
func (*Mapping) SetWriteConnectionSecretToReference ¶
func (mg *Mapping) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
SetWriteConnectionSecretToReference of this Mapping.
type MappingList ¶
type MappingList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Mapping `json:"items"` }
MappingList contains a list of Mappings
func (*MappingList) DeepCopy ¶
func (in *MappingList) DeepCopy() *MappingList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MappingList.
func (*MappingList) DeepCopyInto ¶
func (in *MappingList) DeepCopyInto(out *MappingList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MappingList) DeepCopyObject ¶
func (in *MappingList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*MappingList) GetItems ¶
func (l *MappingList) GetItems() []resource.Managed
GetItems of this MappingList.
type MappingObservation ¶
type MappingObservation struct {
ID *string `json:"id,omitempty" tf:"id,omitempty"`
}
func (*MappingObservation) DeepCopy ¶
func (in *MappingObservation) DeepCopy() *MappingObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MappingObservation.
func (*MappingObservation) DeepCopyInto ¶
func (in *MappingObservation) DeepCopyInto(out *MappingObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MappingParameters ¶
type MappingParameters struct { // This clause specifies the options of the user mapping. The options typically define the actual user name and password of the mapping. Option names must be unique. The allowed option names and values are specific to the server's foreign-data wrapper. // This clause specifies the options of the user mapping. The options typically define the actual user name and password of the mapping. Option names must be unique. The allowed option names and values are specific to the server's foreign-data wrapper // +kubebuilder:validation:Optional Options map[string]*string `json:"options,omitempty" tf:"options,omitempty"` // The name of an existing server for which the user mapping is to be created. // Changing this value // will force the creation of a new resource as this value can only be set // when the user mapping is created. // The name of an existing server for which the user mapping is to be created // +kubebuilder:validation:Required ServerName *string `json:"serverName" tf:"server_name,omitempty"` // The name of an existing user that is mapped to foreign server. CURRENT_ROLE, CURRENT_USER, and USER match the name of the current user. When PUBLIC is specified, a so-called public mapping is created that is used when no user-specific mapping is applicable. // Changing this value // will force the creation of a new resource as this value can only be set // when the user mapping is created. // The name of an existing user that is mapped to foreign server. CURRENT_ROLE, CURRENT_USER, and USER match the name of the current user. When PUBLIC is specified, a so-called public mapping is created that is used when no user-specific mapping is applicable // +kubebuilder:validation:Required UserName *string `json:"userName" tf:"user_name,omitempty"` }
func (*MappingParameters) DeepCopy ¶
func (in *MappingParameters) DeepCopy() *MappingParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MappingParameters.
func (*MappingParameters) DeepCopyInto ¶
func (in *MappingParameters) DeepCopyInto(out *MappingParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MappingSpec ¶
type MappingSpec struct { v1.ResourceSpec `json:",inline"` ForProvider MappingParameters `json:"forProvider"` }
MappingSpec defines the desired state of Mapping
func (*MappingSpec) DeepCopy ¶
func (in *MappingSpec) DeepCopy() *MappingSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MappingSpec.
func (*MappingSpec) DeepCopyInto ¶
func (in *MappingSpec) DeepCopyInto(out *MappingSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MappingStatus ¶
type MappingStatus struct { v1.ResourceStatus `json:",inline"` AtProvider MappingObservation `json:"atProvider,omitempty"` }
MappingStatus defines the observed state of Mapping.
func (*MappingStatus) DeepCopy ¶
func (in *MappingStatus) DeepCopy() *MappingStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MappingStatus.
func (*MappingStatus) DeepCopyInto ¶
func (in *MappingStatus) DeepCopyInto(out *MappingStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.