Documentation ¶
Overview ¶
Package v1alpha1 contains the core resources of the Template provider. +kubebuilder:object:generate=true +groupName=postgresql.sql.crossplane.io +versionName=v1alpha1
Index ¶
- Constants
- Variables
- type Database
- func (in *Database) DeepCopy() *Database
- func (in *Database) DeepCopyInto(out *Database)
- func (in *Database) DeepCopyObject() runtime.Object
- func (mg *Database) GetCondition(ct runtimev1alpha1.ConditionType) runtimev1alpha1.Condition
- func (mg *Database) GetDeletionPolicy() runtimev1alpha1.DeletionPolicy
- func (mg *Database) GetProviderConfigReference() *runtimev1alpha1.Reference
- func (mg *Database) GetProviderReference() *runtimev1alpha1.Reference
- func (mg *Database) GetWriteConnectionSecretToReference() *runtimev1alpha1.SecretReference
- func (mg *Database) SetConditions(c ...runtimev1alpha1.Condition)
- func (mg *Database) SetDeletionPolicy(r runtimev1alpha1.DeletionPolicy)
- func (mg *Database) SetProviderConfigReference(r *runtimev1alpha1.Reference)
- func (mg *Database) SetProviderReference(r *runtimev1alpha1.Reference)
- func (mg *Database) SetWriteConnectionSecretToReference(r *runtimev1alpha1.SecretReference)
- type DatabaseList
- type DatabaseParameters
- type DatabaseSpec
- type DatabaseStatus
- type ProviderConfig
- func (in *ProviderConfig) DeepCopy() *ProviderConfig
- func (in *ProviderConfig) DeepCopyInto(out *ProviderConfig)
- func (in *ProviderConfig) DeepCopyObject() runtime.Object
- func (p *ProviderConfig) GetCondition(ct runtimev1alpha1.ConditionType) runtimev1alpha1.Condition
- func (p *ProviderConfig) GetUsers() int64
- func (p *ProviderConfig) SetConditions(c ...runtimev1alpha1.Condition)
- func (p *ProviderConfig) SetUsers(i int64)
- type ProviderConfigList
- type ProviderConfigSpec
- type ProviderConfigStatus
- type ProviderConfigUsage
- func (in *ProviderConfigUsage) DeepCopy() *ProviderConfigUsage
- func (in *ProviderConfigUsage) DeepCopyInto(out *ProviderConfigUsage)
- func (in *ProviderConfigUsage) DeepCopyObject() runtime.Object
- func (p *ProviderConfigUsage) GetProviderConfigReference() runtimev1alpha1.Reference
- func (p *ProviderConfigUsage) GetResourceReference() runtimev1alpha1.TypedReference
- func (p *ProviderConfigUsage) SetProviderConfigReference(r runtimev1alpha1.Reference)
- func (p *ProviderConfigUsage) SetResourceReference(r runtimev1alpha1.TypedReference)
- type ProviderConfigUsageList
- type ProviderCredentials
Constants ¶
const ( Group = "postgresql.sql.crossplane.io" Version = "v1alpha1" )
Package type metadata.
const ( // CredentialsSourcePostgreSQLConnectionSecret indicates that a provider // should acquire credentials from a connection secret written by a managed // resource that represents a PostgreSQL server. CredentialsSourcePostgreSQLConnectionSecret runtimev1alpha1.CredentialsSource = "PostgreSQLConnectionSecret" )
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: Group, Version: Version} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} )
var ( ProviderConfigKind = reflect.TypeOf(ProviderConfig{}).Name() ProviderConfigGroupKind = schema.GroupKind{Group: Group, Kind: ProviderConfigKind}.String() ProviderConfigKindAPIVersion = ProviderConfigKind + "." + SchemeGroupVersion.String() ProviderConfigGroupVersionKind = SchemeGroupVersion.WithKind(ProviderConfigKind) )
ProviderConfig type metadata.
var ( ProviderConfigUsageKind = reflect.TypeOf(ProviderConfigUsage{}).Name() ProviderConfigUsageGroupKind = schema.GroupKind{Group: Group, Kind: ProviderConfigUsageKind}.String() ProviderConfigUsageKindAPIVersion = ProviderConfigUsageKind + "." + SchemeGroupVersion.String() ProviderConfigUsageGroupVersionKind = SchemeGroupVersion.WithKind(ProviderConfigUsageKind) ProviderConfigUsageListKind = reflect.TypeOf(ProviderConfigUsageList{}).Name() ProviderConfigUsageListGroupKind = schema.GroupKind{Group: Group, Kind: ProviderConfigUsageListKind}.String() ProviderConfigUsageListKindAPIVersion = ProviderConfigUsageListKind + "." + SchemeGroupVersion.String() ProviderConfigUsageListGroupVersionKind = SchemeGroupVersion.WithKind(ProviderConfigUsageListKind) )
ProviderConfigUsage type metadata.
var ( DatabaseKind = reflect.TypeOf(Database{}).Name() DatabaseGroupKind = schema.GroupKind{Group: Group, Kind: DatabaseKind}.String() DatabaseKindAPIVersion = DatabaseKind + "." + SchemeGroupVersion.String() DatabaseGroupVersionKind = SchemeGroupVersion.WithKind(DatabaseKind) )
Database type metadata.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec DatabaseSpec `json:"spec"` Status DatabaseStatus `json:"status,omitempty"` }
A Database represents the declarative state of a PostgreSQL database. +kubebuilder:subresource:status +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="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:resource:scope=Cluster
func (*Database) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Database.
func (*Database) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Database) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Database) GetCondition ¶
func (mg *Database) GetCondition(ct runtimev1alpha1.ConditionType) runtimev1alpha1.Condition
GetCondition of this Database.
func (*Database) GetDeletionPolicy ¶
func (mg *Database) GetDeletionPolicy() runtimev1alpha1.DeletionPolicy
GetDeletionPolicy of this Database.
func (*Database) GetProviderConfigReference ¶
func (mg *Database) GetProviderConfigReference() *runtimev1alpha1.Reference
GetProviderConfigReference of this Database.
func (*Database) GetProviderReference ¶
func (mg *Database) GetProviderReference() *runtimev1alpha1.Reference
GetProviderReference of this Database. Deprecated: Use GetProviderConfigReference.
func (*Database) GetWriteConnectionSecretToReference ¶
func (mg *Database) GetWriteConnectionSecretToReference() *runtimev1alpha1.SecretReference
GetWriteConnectionSecretToReference of this Database.
func (*Database) SetConditions ¶
func (mg *Database) SetConditions(c ...runtimev1alpha1.Condition)
SetConditions of this Database.
func (*Database) SetDeletionPolicy ¶
func (mg *Database) SetDeletionPolicy(r runtimev1alpha1.DeletionPolicy)
SetDeletionPolicy of this Database.
func (*Database) SetProviderConfigReference ¶
func (mg *Database) SetProviderConfigReference(r *runtimev1alpha1.Reference)
SetProviderConfigReference of this Database.
func (*Database) SetProviderReference ¶
func (mg *Database) SetProviderReference(r *runtimev1alpha1.Reference)
SetProviderReference of this Database. Deprecated: Use SetProviderConfigReference.
func (*Database) SetWriteConnectionSecretToReference ¶
func (mg *Database) SetWriteConnectionSecretToReference(r *runtimev1alpha1.SecretReference)
SetWriteConnectionSecretToReference of this Database.
type DatabaseList ¶
type DatabaseList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Database `json:"items"` }
DatabaseList contains a list of Database
func (*DatabaseList) DeepCopy ¶
func (in *DatabaseList) DeepCopy() *DatabaseList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatabaseList.
func (*DatabaseList) DeepCopyInto ¶
func (in *DatabaseList) DeepCopyInto(out *DatabaseList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DatabaseList) DeepCopyObject ¶
func (in *DatabaseList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*DatabaseList) GetItems ¶
func (l *DatabaseList) GetItems() []resource.Managed
GetItems of this DatabaseList.
type DatabaseParameters ¶
type DatabaseParameters struct { // The role name of the user who will own the new database, or DEFAULT to // use the default (namely, the user executing the command). To create a // database owned by another role, you must be a direct or indirect member // of that role, or be a superuser. Owner *string `json:"owner,omitempty"` // The name of the template from which to create the new database, or // DEFAULT to use the default template (template1). Template *string `json:"template,omitempty"` // Character set encoding to use in the new database. Specify a string // constant (e.g., 'SQL_ASCII'), or an integer encoding number, or DEFAULT // to use the default encoding (namely, the encoding of the template // database). The character sets supported by the PostgreSQL server are // described in Section 23.3.1. See below for additional restrictions. Encoding *string `json:"encoding,omitempty"` // Collation order (LC_COLLATE) to use in the new database. This affects the // sort order applied to strings, e.g. in queries with ORDER BY, as well as // the order used in indexes on text columns. The default is to use the // collation order of the template database. See below for additional // restrictions. LCCollate *string `json:"lcCollate,omitempty"` // Character classification (LC_CTYPE) to use in the new database. This // affects the categorization of characters, e.g. lower, upper and digit. // The default is to use the character classification of the template // database. See below for additional restrictions. LCCType *string `json:"lcCType,omitempty"` // The name of the tablespace that will be associated with the new database, // or DEFAULT to use the template database's tablespace. This tablespace // will be the default tablespace used for objects created in this database. // See CREATE TABLESPACE for more information. Tablespace *string `json:"tablespace,omitempty"` // If false then no one can connect to this database. The default is true, // allowing connections (except as restricted by other mechanisms, such as // GRANT/REVOKE CONNECT). AllowConnections *bool `json:"allowConnections,omitempty"` // How many concurrent connections can be made to this database. -1 (the // default) means no limit. ConnectionLimit *int `json:"connectionLimit,omitempty"` // If true, then this database can be cloned by any user with CREATEDB // privileges; if false (the default), then only superusers or the owner of // the database can clone it. IsTemplate *bool `json:"isTemplate,omitempty"` }
DatabaseParameters are the configurable fields of a Database.
func (*DatabaseParameters) DeepCopy ¶
func (in *DatabaseParameters) DeepCopy() *DatabaseParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatabaseParameters.
func (*DatabaseParameters) DeepCopyInto ¶
func (in *DatabaseParameters) DeepCopyInto(out *DatabaseParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DatabaseSpec ¶
type DatabaseSpec struct { runtimev1alpha1.ResourceSpec `json:",inline"` ForProvider DatabaseParameters `json:"forProvider"` }
A DatabaseSpec defines the desired state of a Database.
func (*DatabaseSpec) DeepCopy ¶
func (in *DatabaseSpec) DeepCopy() *DatabaseSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatabaseSpec.
func (*DatabaseSpec) DeepCopyInto ¶
func (in *DatabaseSpec) DeepCopyInto(out *DatabaseSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DatabaseStatus ¶
type DatabaseStatus struct {
runtimev1alpha1.ResourceStatus `json:",inline"`
}
A DatabaseStatus represents the observed state of a Database.
func (*DatabaseStatus) DeepCopy ¶
func (in *DatabaseStatus) DeepCopy() *DatabaseStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatabaseStatus.
func (*DatabaseStatus) DeepCopyInto ¶
func (in *DatabaseStatus) DeepCopyInto(out *DatabaseStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProviderConfig ¶
type ProviderConfig struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ProviderConfigSpec `json:"spec"` Status ProviderConfigStatus `json:"status,omitempty"` }
A ProviderConfig configures a Template provider. +kubebuilder:subresource:status +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:printcolumn:name="SECRET-NAME",type="string",JSONPath=".spec.credentialsSecretRef.name",priority=1 +kubebuilder:resource:scope=Cluster
func (*ProviderConfig) DeepCopy ¶
func (in *ProviderConfig) DeepCopy() *ProviderConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProviderConfig.
func (*ProviderConfig) DeepCopyInto ¶
func (in *ProviderConfig) DeepCopyInto(out *ProviderConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProviderConfig) DeepCopyObject ¶
func (in *ProviderConfig) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ProviderConfig) GetCondition ¶
func (p *ProviderConfig) GetCondition(ct runtimev1alpha1.ConditionType) runtimev1alpha1.Condition
GetCondition of this ProviderConfig.
func (*ProviderConfig) GetUsers ¶
func (p *ProviderConfig) GetUsers() int64
GetUsers of this ProviderConfig.
func (*ProviderConfig) SetConditions ¶
func (p *ProviderConfig) SetConditions(c ...runtimev1alpha1.Condition)
SetConditions of this ProviderConfig.
func (*ProviderConfig) SetUsers ¶
func (p *ProviderConfig) SetUsers(i int64)
SetUsers of this ProviderConfig.
type ProviderConfigList ¶
type ProviderConfigList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ProviderConfig `json:"items"` }
ProviderConfigList contains a list of ProviderConfig.
func (*ProviderConfigList) DeepCopy ¶
func (in *ProviderConfigList) DeepCopy() *ProviderConfigList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProviderConfigList.
func (*ProviderConfigList) DeepCopyInto ¶
func (in *ProviderConfigList) DeepCopyInto(out *ProviderConfigList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProviderConfigList) DeepCopyObject ¶
func (in *ProviderConfigList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ProviderConfigSpec ¶
type ProviderConfigSpec struct { // Credentials required to authenticate to this provider. Credentials ProviderCredentials `json:"credentials"` }
A ProviderConfigSpec defines the desired state of a ProviderConfig.
func (*ProviderConfigSpec) DeepCopy ¶
func (in *ProviderConfigSpec) DeepCopy() *ProviderConfigSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProviderConfigSpec.
func (*ProviderConfigSpec) DeepCopyInto ¶
func (in *ProviderConfigSpec) DeepCopyInto(out *ProviderConfigSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProviderConfigStatus ¶
type ProviderConfigStatus struct {
runtimev1alpha1.ProviderConfigStatus `json:",inline"`
}
A ProviderConfigStatus reflects the observed state of a ProviderConfig.
func (*ProviderConfigStatus) DeepCopy ¶
func (in *ProviderConfigStatus) DeepCopy() *ProviderConfigStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProviderConfigStatus.
func (*ProviderConfigStatus) DeepCopyInto ¶
func (in *ProviderConfigStatus) DeepCopyInto(out *ProviderConfigStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProviderConfigUsage ¶
type ProviderConfigUsage struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` runtimev1alpha1.ProviderConfigUsage `json:",inline"` }
A ProviderConfigUsage indicates that a resource is using a ProviderConfig. +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:printcolumn:name="CONFIG-NAME",type="string",JSONPath=".providerConfigRef.name" +kubebuilder:printcolumn:name="RESOURCE-KIND",type="string",JSONPath=".resourceRef.kind" +kubebuilder:printcolumn:name="RESOURCE-NAME",type="string",JSONPath=".resourceRef.name" +kubebuilder:resource:scope=Cluster
func (*ProviderConfigUsage) DeepCopy ¶
func (in *ProviderConfigUsage) DeepCopy() *ProviderConfigUsage
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProviderConfigUsage.
func (*ProviderConfigUsage) DeepCopyInto ¶
func (in *ProviderConfigUsage) DeepCopyInto(out *ProviderConfigUsage)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProviderConfigUsage) DeepCopyObject ¶
func (in *ProviderConfigUsage) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ProviderConfigUsage) GetProviderConfigReference ¶
func (p *ProviderConfigUsage) GetProviderConfigReference() runtimev1alpha1.Reference
GetProviderConfigReference of this ProviderConfigUsage.
func (*ProviderConfigUsage) GetResourceReference ¶
func (p *ProviderConfigUsage) GetResourceReference() runtimev1alpha1.TypedReference
GetResourceReference of this ProviderConfigUsage.
func (*ProviderConfigUsage) SetProviderConfigReference ¶
func (p *ProviderConfigUsage) SetProviderConfigReference(r runtimev1alpha1.Reference)
SetProviderConfigReference of this ProviderConfigUsage.
func (*ProviderConfigUsage) SetResourceReference ¶
func (p *ProviderConfigUsage) SetResourceReference(r runtimev1alpha1.TypedReference)
SetResourceReference of this ProviderConfigUsage.
type ProviderConfigUsageList ¶
type ProviderConfigUsageList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ProviderConfigUsage `json:"items"` }
ProviderConfigUsageList contains a list of ProviderConfigUsage
func (*ProviderConfigUsageList) DeepCopy ¶
func (in *ProviderConfigUsageList) DeepCopy() *ProviderConfigUsageList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProviderConfigUsageList.
func (*ProviderConfigUsageList) DeepCopyInto ¶
func (in *ProviderConfigUsageList) DeepCopyInto(out *ProviderConfigUsageList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProviderConfigUsageList) DeepCopyObject ¶
func (in *ProviderConfigUsageList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ProviderConfigUsageList) GetItems ¶
func (p *ProviderConfigUsageList) GetItems() []resource.ProviderConfigUsage
GetItems of this ProviderConfigUsageList.
type ProviderCredentials ¶
type ProviderCredentials struct { // Source of the provider credentials. // +kubebuilder:validation:Enum=PostgreSQLConnectionSecret Source runtimev1alpha1.CredentialsSource `json:"source"` // A CredentialsSecretRef is a reference to a PostgreSQL connection secret // that contains the credentials that must be used to connect to the // provider. +optional ConnectionSecretRef *runtimev1alpha1.SecretReference `json:"connectionSecretRef,omitempty"` }
ProviderCredentials required to authenticate.
func (*ProviderCredentials) DeepCopy ¶
func (in *ProviderCredentials) DeepCopy() *ProviderCredentials
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProviderCredentials.
func (*ProviderCredentials) DeepCopyInto ¶
func (in *ProviderCredentials) DeepCopyInto(out *ProviderCredentials)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.