v1alpha1

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

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

Index

Constants

View Source
const (
	CRDGroup   = "user.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 (
	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

func (in *Mapping) DeepCopy() *Mapping

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

func (*Mapping) DeepCopyInto

func (in *Mapping) DeepCopyInto(out *Mapping)

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

func (*Mapping) DeepCopyObject

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

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

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

GetConnectionDetailsMapping for this Mapping

func (*Mapping) GetDeletionPolicy

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

GetDeletionPolicy of this Mapping.

func (*Mapping) GetID

func (tr *Mapping) GetID() string

GetID returns ID of underlying Terraform resource of this Mapping

func (*Mapping) GetObservation

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

GetObservation of this Mapping

func (*Mapping) GetParameters

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

GetParameters of this Mapping

func (*Mapping) GetProviderConfigReference

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

GetProviderConfigReference of this Mapping.

func (*Mapping) GetProviderReference

func (mg *Mapping) GetProviderReference() *xpv1.Reference

GetProviderReference of this Mapping. Deprecated: Use GetProviderConfigReference.

func (*Mapping) GetPublishConnectionDetailsTo

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

GetPublishConnectionDetailsTo of this Mapping.

func (*Mapping) GetTerraformResourceType

func (mg *Mapping) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this Mapping

func (*Mapping) GetTerraformSchemaVersion

func (tr *Mapping) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*Mapping) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this Mapping.

func (*Mapping) LateInitialize

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

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

func (*Mapping) SetConditions

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

SetConditions of this Mapping.

func (*Mapping) SetDeletionPolicy

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

SetDeletionPolicy of this Mapping.

func (*Mapping) SetObservation

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

SetObservation for this Mapping

func (*Mapping) SetParameters

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

SetParameters for this Mapping

func (*Mapping) SetProviderConfigReference

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

SetProviderConfigReference of this Mapping.

func (*Mapping) SetProviderReference

func (mg *Mapping) SetProviderReference(r *xpv1.Reference)

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.

Jump to

Keyboard shortcuts

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