Documentation
¶
Overview ¶
+kubebuilder:object:generate=true +groupName=default.postgresql.upbound.io +versionName=v1alpha1
Index ¶
- Constants
- Variables
- type Privileges
- func (in *Privileges) DeepCopy() *Privileges
- func (in *Privileges) DeepCopyInto(out *Privileges)
- func (in *Privileges) DeepCopyObject() runtime.Object
- func (mg *Privileges) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (tr *Privileges) GetConnectionDetailsMapping() map[string]string
- func (mg *Privileges) GetDeletionPolicy() xpv1.DeletionPolicy
- func (tr *Privileges) GetID() string
- func (tr *Privileges) GetInitParameters() (map[string]any, error)
- func (mg *Privileges) GetManagementPolicies() xpv1.ManagementPolicies
- func (tr *Privileges) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error)
- func (tr *Privileges) GetObservation() (map[string]any, error)
- func (tr *Privileges) GetParameters() (map[string]any, error)
- func (mg *Privileges) GetProviderConfigReference() *xpv1.Reference
- func (mg *Privileges) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
- func (mg *Privileges) GetTerraformResourceType() string
- func (tr *Privileges) GetTerraformSchemaVersion() int
- func (mg *Privileges) GetWriteConnectionSecretToReference() *xpv1.SecretReference
- func (tr *Privileges) Hub()
- func (tr *Privileges) LateInitialize(attrs []byte) (bool, error)
- func (mg *Privileges) SetConditions(c ...xpv1.Condition)
- func (mg *Privileges) SetDeletionPolicy(r xpv1.DeletionPolicy)
- func (mg *Privileges) SetManagementPolicies(r xpv1.ManagementPolicies)
- func (tr *Privileges) SetObservation(obs map[string]any) error
- func (tr *Privileges) SetParameters(params map[string]any) error
- func (mg *Privileges) SetProviderConfigReference(r *xpv1.Reference)
- func (mg *Privileges) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
- func (mg *Privileges) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
- type PrivilegesInitParameters
- type PrivilegesList
- type PrivilegesObservation
- type PrivilegesParameters
- type PrivilegesSpec
- type PrivilegesStatus
Constants ¶
const ( CRDGroup = "default.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 ( Privileges_Kind = "Privileges" Privileges_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Privileges_Kind}.String() Privileges_KindAPIVersion = Privileges_Kind + "." + CRDGroupVersion.String() Privileges_GroupVersionKind = CRDGroupVersion.WithKind(Privileges_Kind) )
Repository type metadata.
Functions ¶
This section is empty.
Types ¶
type Privileges ¶
type Privileges 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.database) || (has(self.initProvider) && has(self.initProvider.database))",message="spec.forProvider.database is a required parameter"
// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.objectType) || (has(self.initProvider) && has(self.initProvider.objectType))",message="spec.forProvider.objectType is a required parameter"
// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.owner) || (has(self.initProvider) && has(self.initProvider.owner))",message="spec.forProvider.owner is a required parameter"
// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.privileges) || (has(self.initProvider) && has(self.initProvider.privileges))",message="spec.forProvider.privileges is a required parameter"
// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.role) || (has(self.initProvider) && has(self.initProvider.role))",message="spec.forProvider.role is a required parameter"
Spec PrivilegesSpec `json:"spec"`
Status PrivilegesStatus `json:"status,omitempty"`
}
Privileges is the Schema for the Privilegess API. Creates and manages default privileges given to a user for a database schema. +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 (*Privileges) DeepCopy ¶
func (in *Privileges) DeepCopy() *Privileges
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Privileges.
func (*Privileges) DeepCopyInto ¶
func (in *Privileges) DeepCopyInto(out *Privileges)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Privileges) DeepCopyObject ¶
func (in *Privileges) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Privileges) GetCondition ¶
func (mg *Privileges) GetCondition(ct xpv1.ConditionType) xpv1.Condition
GetCondition of this Privileges.
func (*Privileges) GetConnectionDetailsMapping ¶
func (tr *Privileges) GetConnectionDetailsMapping() map[string]string
GetConnectionDetailsMapping for this Privileges
func (*Privileges) GetDeletionPolicy ¶
func (mg *Privileges) GetDeletionPolicy() xpv1.DeletionPolicy
GetDeletionPolicy of this Privileges.
func (*Privileges) GetID ¶
func (tr *Privileges) GetID() string
GetID returns ID of underlying Terraform resource of this Privileges
func (*Privileges) GetInitParameters ¶
func (tr *Privileges) GetInitParameters() (map[string]any, error)
GetInitParameters of this Privileges
func (*Privileges) GetManagementPolicies ¶
func (mg *Privileges) GetManagementPolicies() xpv1.ManagementPolicies
GetManagementPolicies of this Privileges.
func (*Privileges) GetMergedParameters ¶
func (tr *Privileges) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error)
GetInitParameters of this Privileges
func (*Privileges) GetObservation ¶
func (tr *Privileges) GetObservation() (map[string]any, error)
GetObservation of this Privileges
func (*Privileges) GetParameters ¶
func (tr *Privileges) GetParameters() (map[string]any, error)
GetParameters of this Privileges
func (*Privileges) GetProviderConfigReference ¶
func (mg *Privileges) GetProviderConfigReference() *xpv1.Reference
GetProviderConfigReference of this Privileges.
func (*Privileges) GetPublishConnectionDetailsTo ¶
func (mg *Privileges) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
GetPublishConnectionDetailsTo of this Privileges.
func (*Privileges) GetTerraformResourceType ¶
func (mg *Privileges) GetTerraformResourceType() string
GetTerraformResourceType returns Terraform resource type for this Privileges
func (*Privileges) GetTerraformSchemaVersion ¶
func (tr *Privileges) GetTerraformSchemaVersion() int
GetTerraformSchemaVersion returns the associated Terraform schema version
func (*Privileges) GetWriteConnectionSecretToReference ¶
func (mg *Privileges) GetWriteConnectionSecretToReference() *xpv1.SecretReference
GetWriteConnectionSecretToReference of this Privileges.
func (*Privileges) LateInitialize ¶
func (tr *Privileges) LateInitialize(attrs []byte) (bool, error)
LateInitialize this Privileges using its observed tfState. returns True if there are any spec changes for the resource.
func (*Privileges) SetConditions ¶
func (mg *Privileges) SetConditions(c ...xpv1.Condition)
SetConditions of this Privileges.
func (*Privileges) SetDeletionPolicy ¶
func (mg *Privileges) SetDeletionPolicy(r xpv1.DeletionPolicy)
SetDeletionPolicy of this Privileges.
func (*Privileges) SetManagementPolicies ¶
func (mg *Privileges) SetManagementPolicies(r xpv1.ManagementPolicies)
SetManagementPolicies of this Privileges.
func (*Privileges) SetObservation ¶
func (tr *Privileges) SetObservation(obs map[string]any) error
SetObservation for this Privileges
func (*Privileges) SetParameters ¶
func (tr *Privileges) SetParameters(params map[string]any) error
SetParameters for this Privileges
func (*Privileges) SetProviderConfigReference ¶
func (mg *Privileges) SetProviderConfigReference(r *xpv1.Reference)
SetProviderConfigReference of this Privileges.
func (*Privileges) SetPublishConnectionDetailsTo ¶
func (mg *Privileges) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
SetPublishConnectionDetailsTo of this Privileges.
func (*Privileges) SetWriteConnectionSecretToReference ¶
func (mg *Privileges) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
SetWriteConnectionSecretToReference of this Privileges.
type PrivilegesInitParameters ¶
type PrivilegesInitParameters struct {
// The database to grant default privileges for this role.
// The database to grant default privileges for this role
Database *string `json:"database,omitempty" tf:"database,omitempty"`
// The PostgreSQL object type to set the default privileges on (one of: table, sequence, function, type, schema).
// The PostgreSQL object type to set the default privileges on (one of: table, sequence, function, type, schema)
ObjectType *string `json:"objectType,omitempty" tf:"object_type,omitempty"`
// Role for which apply default privileges (You can change default privileges only for objects that will be created by yourself or by roles that you are a member of).
// Target role for which to alter default privileges.
Owner *string `json:"owner,omitempty" tf:"owner,omitempty"`
// The list of privileges to apply as default privileges. An empty list could be provided to revoke all default privileges for this role.
// The list of privileges to apply as default privileges
// +listType=set
Privileges []*string `json:"privileges,omitempty" tf:"privileges,omitempty"`
// The name of the role to which grant default privileges on.
// The name of the role to which grant default privileges on
Role *string `json:"role,omitempty" tf:"role,omitempty"`
// The database schema to set default privileges for this role.
// The database schema to set default privileges for this role
Schema *string `json:"schema,omitempty" tf:"schema,omitempty"`
// Permit the grant recipient to grant it to others
WithGrantOption *bool `json:"withGrantOption,omitempty" tf:"with_grant_option,omitempty"`
}
func (*PrivilegesInitParameters) DeepCopy ¶
func (in *PrivilegesInitParameters) DeepCopy() *PrivilegesInitParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrivilegesInitParameters.
func (*PrivilegesInitParameters) DeepCopyInto ¶
func (in *PrivilegesInitParameters) DeepCopyInto(out *PrivilegesInitParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PrivilegesList ¶
type PrivilegesList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Privileges `json:"items"`
}
PrivilegesList contains a list of Privilegess
func (*PrivilegesList) DeepCopy ¶
func (in *PrivilegesList) DeepCopy() *PrivilegesList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrivilegesList.
func (*PrivilegesList) DeepCopyInto ¶
func (in *PrivilegesList) DeepCopyInto(out *PrivilegesList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PrivilegesList) DeepCopyObject ¶
func (in *PrivilegesList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*PrivilegesList) GetItems ¶
func (l *PrivilegesList) GetItems() []resource.Managed
GetItems of this PrivilegesList.
type PrivilegesObservation ¶
type PrivilegesObservation struct {
// The database to grant default privileges for this role.
// The database to grant default privileges for this role
Database *string `json:"database,omitempty" tf:"database,omitempty"`
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// The PostgreSQL object type to set the default privileges on (one of: table, sequence, function, type, schema).
// The PostgreSQL object type to set the default privileges on (one of: table, sequence, function, type, schema)
ObjectType *string `json:"objectType,omitempty" tf:"object_type,omitempty"`
// Role for which apply default privileges (You can change default privileges only for objects that will be created by yourself or by roles that you are a member of).
// Target role for which to alter default privileges.
Owner *string `json:"owner,omitempty" tf:"owner,omitempty"`
// The list of privileges to apply as default privileges. An empty list could be provided to revoke all default privileges for this role.
// The list of privileges to apply as default privileges
// +listType=set
Privileges []*string `json:"privileges,omitempty" tf:"privileges,omitempty"`
// The name of the role to which grant default privileges on.
// The name of the role to which grant default privileges on
Role *string `json:"role,omitempty" tf:"role,omitempty"`
// The database schema to set default privileges for this role.
// The database schema to set default privileges for this role
Schema *string `json:"schema,omitempty" tf:"schema,omitempty"`
// Permit the grant recipient to grant it to others
WithGrantOption *bool `json:"withGrantOption,omitempty" tf:"with_grant_option,omitempty"`
}
func (*PrivilegesObservation) DeepCopy ¶
func (in *PrivilegesObservation) DeepCopy() *PrivilegesObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrivilegesObservation.
func (*PrivilegesObservation) DeepCopyInto ¶
func (in *PrivilegesObservation) DeepCopyInto(out *PrivilegesObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PrivilegesParameters ¶
type PrivilegesParameters struct {
// The database to grant default privileges for this role.
// The database to grant default privileges for this role
// +kubebuilder:validation:Optional
Database *string `json:"database,omitempty" tf:"database,omitempty"`
// The PostgreSQL object type to set the default privileges on (one of: table, sequence, function, type, schema).
// The PostgreSQL object type to set the default privileges on (one of: table, sequence, function, type, schema)
// +kubebuilder:validation:Optional
ObjectType *string `json:"objectType,omitempty" tf:"object_type,omitempty"`
// Role for which apply default privileges (You can change default privileges only for objects that will be created by yourself or by roles that you are a member of).
// Target role for which to alter default privileges.
// +kubebuilder:validation:Optional
Owner *string `json:"owner,omitempty" tf:"owner,omitempty"`
// The list of privileges to apply as default privileges. An empty list could be provided to revoke all default privileges for this role.
// The list of privileges to apply as default privileges
// +kubebuilder:validation:Optional
// +listType=set
Privileges []*string `json:"privileges,omitempty" tf:"privileges,omitempty"`
// The name of the role to which grant default privileges on.
// The name of the role to which grant default privileges on
// +kubebuilder:validation:Optional
Role *string `json:"role,omitempty" tf:"role,omitempty"`
// The database schema to set default privileges for this role.
// The database schema to set default privileges for this role
// +kubebuilder:validation:Optional
Schema *string `json:"schema,omitempty" tf:"schema,omitempty"`
// Permit the grant recipient to grant it to others
// +kubebuilder:validation:Optional
WithGrantOption *bool `json:"withGrantOption,omitempty" tf:"with_grant_option,omitempty"`
}
func (*PrivilegesParameters) DeepCopy ¶
func (in *PrivilegesParameters) DeepCopy() *PrivilegesParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrivilegesParameters.
func (*PrivilegesParameters) DeepCopyInto ¶
func (in *PrivilegesParameters) DeepCopyInto(out *PrivilegesParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PrivilegesSpec ¶
type PrivilegesSpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider PrivilegesParameters `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 PrivilegesInitParameters `json:"initProvider,omitempty"`
}
PrivilegesSpec defines the desired state of Privileges
func (*PrivilegesSpec) DeepCopy ¶
func (in *PrivilegesSpec) DeepCopy() *PrivilegesSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrivilegesSpec.
func (*PrivilegesSpec) DeepCopyInto ¶
func (in *PrivilegesSpec) DeepCopyInto(out *PrivilegesSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PrivilegesStatus ¶
type PrivilegesStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider PrivilegesObservation `json:"atProvider,omitempty"`
}
PrivilegesStatus defines the observed state of Privileges.
func (*PrivilegesStatus) DeepCopy ¶
func (in *PrivilegesStatus) DeepCopy() *PrivilegesStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrivilegesStatus.
func (*PrivilegesStatus) DeepCopyInto ¶
func (in *PrivilegesStatus) DeepCopyInto(out *PrivilegesStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.