Documentation ¶
Overview ¶
Package v1 contains API Schema definitions for the postgres v1 API group +kubebuilder:object:generate=true +groupName=postgres.brose.bike
Index ¶
- Constants
- Variables
- func PgUserKind() string
- type DatabasePrivilege
- type FunctionPrivilege
- type PgDatabase
- func (in *PgDatabase) DeepCopy() *PgDatabase
- func (in *PgDatabase) DeepCopyInto(out *PgDatabase)
- func (in *PgDatabase) DeepCopyObject() runtime.Object
- func (d *PgDatabase) GetConditions() []metav1.Condition
- func (d *PgDatabase) GetInstanceId() types.NamespacedName
- func (d *PgDatabase) GetInstanceIdString() string
- func (d *PgDatabase) SetConditions(conditions []metav1.Condition)
- func (d *PgDatabase) ToNamespacedName() string
- type PgDatabaseDefaultPrivileges
- func (in *PgDatabaseDefaultPrivileges) DeepCopy() *PgDatabaseDefaultPrivileges
- func (in *PgDatabaseDefaultPrivileges) DeepCopyInto(out *PgDatabaseDefaultPrivileges)
- func (dp *PgDatabaseDefaultPrivileges) FunctionPrivilegesStr() []string
- func (dp *PgDatabaseDefaultPrivileges) PrivilegesStr() []string
- func (dp *PgDatabaseDefaultPrivileges) SequencePrivilegesStr() []string
- func (dp *PgDatabaseDefaultPrivileges) TablePrivilegesStr() []string
- func (dp *PgDatabaseDefaultPrivileges) TypePrivilegesStr() []string
- type PgDatabaseDeletion
- type PgDatabaseList
- type PgDatabasePublicPrivileges
- type PgDatabasePublicSchema
- type PgDatabaseSpec
- type PgDatabaseStatus
- type PgInstance
- type PgInstanceList
- type PgInstanceRef
- type PgInstanceSpec
- func (in *PgInstanceSpec) DeepCopy() *PgInstanceSpec
- func (in *PgInstanceSpec) DeepCopyInto(out *PgInstanceSpec)
- func (s *PgInstanceSpec) GetDatabase(ctx context.Context, r client.Reader, namespace string) (string, error)
- func (s *PgInstanceSpec) GetHostname(ctx context.Context, r client.Reader, namespace string) (string, error)
- func (s *PgInstanceSpec) GetPassword(ctx context.Context, r client.Reader, namespace string) (string, error)
- func (s *PgInstanceSpec) GetPort(ctx context.Context, r client.Reader, namespace string) (int, error)
- func (s *PgInstanceSpec) GetSSLMode(ctx context.Context, r client.Reader, namespace string) (string, error)
- func (s *PgInstanceSpec) GetUsername(ctx context.Context, r client.Reader, namespace string) (string, error)
- type PgInstanceStatus
- type PgProperty
- func (in *PgProperty) DeepCopy() *PgProperty
- func (in *PgProperty) DeepCopyInto(out *PgProperty)
- func (p *PgProperty) GetPropertyValue(ctx context.Context, r client.Reader, namespace string, name string) (string, error)
- func (p *PgProperty) GetPropertyValueWithDefault(ctx context.Context, r client.Reader, namespace string, name string, ...) (string, error)
- type PgUser
- func (in *PgUser) DeepCopy() *PgUser
- func (in *PgUser) DeepCopyInto(out *PgUser)
- func (in *PgUser) DeepCopyObject() runtime.Object
- func (u *PgUser) GetConditions() []metav1.Condition
- func (u *PgUser) GetInstanceId() types.NamespacedName
- func (u *PgUser) GetInstanceIdString() string
- func (u *PgUser) SetConditions(conditions []metav1.Condition)
- func (u *PgUser) ToNamespacedName() string
- type PgUserDatabase
- type PgUserList
- type PgUserSecret
- type PgUserSpec
- type PgUserStatus
- type SchemaPrivilege
- type SequencePrivilege
- type TablePrivilege
- type TypePrivilege
Constants ¶
const ( PgConnectedConditionReasonConSucceeded = "ConnectionSucceeded" PgConnectedConditionReasonConFailed = "ConnectionFailed" )
const DefaultFinalizerPgDatabase = "postgres.brose.bike/pgdatabase"
DefaultFinalizerPgDatabase contains the name for the default finalizer of the PgDatabase resource
const DefaultFinalizerPgUser = "postgres.brose.bike/pgloginrole"
const PgConnectedConditionType string = "postgres.brose.bike/connected"
const PgDatabaseDefaultPrivilegesConditionType string = "pgdatabase.postgres.brose.bike/default-privileges"
const PgDatabaseExistsConditionType string = "pgdatabase.postgres.brose.bike/exists"
const PgDatabaseExtensionsConditionType string = "pgdatabase.postgres.brose.bike/extensions"
const PgUserDatabasesExistsConditionType string = "pguser.postgres.brose.bike/databases"
const PgUserExistsConditionType string = "pguser.postgres.brose.bike/exists"
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "postgres.brose.bike", Version: "v1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
func PgUserKind ¶ added in v0.0.2
func PgUserKind() string
Types ¶
type DatabasePrivilege ¶ added in v0.0.2
type DatabasePrivilege string
+kubebuilder:validation:Enum=CONNECT;CREATE
const ( // Allows the grantee to connect to the database. This privilege is checked at connection startup (in addition to checking any restrictions imposed by pg_hba.conf). ConnectDatabasePrivilege DatabasePrivilege = "CONNECT" // Allows new schemas and publications to be created within the database, and allows trusted extensions to be installed within the database. CreateDatabasePrivilege DatabasePrivilege = "CREATE" )
type FunctionPrivilege ¶ added in v0.0.2
type FunctionPrivilege string
+kubebuilder:validation:Enum=EXECUTE
type PgDatabase ¶
type PgDatabase struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec PgDatabaseSpec `json:"spec,omitempty"` Status PgDatabaseStatus `json:"status,omitempty"` }
PgDatabase is the Schema for the pgdatabases API
func (*PgDatabase) DeepCopy ¶
func (in *PgDatabase) DeepCopy() *PgDatabase
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PgDatabase.
func (*PgDatabase) DeepCopyInto ¶
func (in *PgDatabase) DeepCopyInto(out *PgDatabase)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PgDatabase) DeepCopyObject ¶
func (in *PgDatabase) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*PgDatabase) GetConditions ¶
func (d *PgDatabase) GetConditions() []metav1.Condition
func (*PgDatabase) GetInstanceId ¶
func (d *PgDatabase) GetInstanceId() types.NamespacedName
func (*PgDatabase) GetInstanceIdString ¶
func (d *PgDatabase) GetInstanceIdString() string
func (*PgDatabase) SetConditions ¶
func (d *PgDatabase) SetConditions(conditions []metav1.Condition)
func (*PgDatabase) ToNamespacedName ¶
func (d *PgDatabase) ToNamespacedName() string
type PgDatabaseDefaultPrivileges ¶
type PgDatabaseDefaultPrivileges struct { // Name specifies the name of the schema for which the default privileges should be granted. SchemaName string `json:"schemaName"` // Roles specifies the name of the roles for which the privileges should be granted Roles []string `json:"roles"` // SchemaPrivileges specifies the privileges on this schema which should be granted to the roles SchemaPrivileges []SchemaPrivilege `json:"schemaPrivileges,omitempty"` // TablePrivileges specifies the name of the privileges on tables which should be granted to the roles TablePrivileges []TablePrivilege `json:"tablePrivileges,omitempty"` // SequencePrivileges specifies the name of the privileges on tables which should be granted to the roles SequencePrivileges []SequencePrivilege `json:"sequencePrivileges,omitempty"` // FunctionPrivileges specifies the name of the privileges on tables which should be granted to the roles FunctionPrivileges []FunctionPrivilege `json:"functionPrivileges,omitempty"` // TypePrivileges specifies the name of the privileges on tables which should be granted to the roles TypePrivileges []TypePrivilege `json:"typePrivileges,omitempty"` }
func (*PgDatabaseDefaultPrivileges) DeepCopy ¶
func (in *PgDatabaseDefaultPrivileges) DeepCopy() *PgDatabaseDefaultPrivileges
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PgDatabaseDefaultPrivileges.
func (*PgDatabaseDefaultPrivileges) DeepCopyInto ¶
func (in *PgDatabaseDefaultPrivileges) DeepCopyInto(out *PgDatabaseDefaultPrivileges)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PgDatabaseDefaultPrivileges) FunctionPrivilegesStr ¶ added in v0.0.2
func (dp *PgDatabaseDefaultPrivileges) FunctionPrivilegesStr() []string
func (*PgDatabaseDefaultPrivileges) PrivilegesStr ¶ added in v0.0.2
func (dp *PgDatabaseDefaultPrivileges) PrivilegesStr() []string
func (*PgDatabaseDefaultPrivileges) SequencePrivilegesStr ¶ added in v0.0.2
func (dp *PgDatabaseDefaultPrivileges) SequencePrivilegesStr() []string
func (*PgDatabaseDefaultPrivileges) TablePrivilegesStr ¶ added in v0.0.2
func (dp *PgDatabaseDefaultPrivileges) TablePrivilegesStr() []string
func (*PgDatabaseDefaultPrivileges) TypePrivilegesStr ¶ added in v0.0.2
func (dp *PgDatabaseDefaultPrivileges) TypePrivilegesStr() []string
type PgDatabaseDeletion ¶
type PgDatabaseDeletion struct { // Drop specifies if the database should be dropped on deletion (defaults to false) Drop bool `json:"drop,omitempty"` // Wait specifies if the finalizer should wait for the database to be deleted manually Wait bool `json:"wait,omitempty"` }
func (*PgDatabaseDeletion) DeepCopy ¶
func (in *PgDatabaseDeletion) DeepCopy() *PgDatabaseDeletion
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PgDatabaseDeletion.
func (*PgDatabaseDeletion) DeepCopyInto ¶
func (in *PgDatabaseDeletion) DeepCopyInto(out *PgDatabaseDeletion)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PgDatabaseList ¶
type PgDatabaseList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []PgDatabase `json:"items"` }
PgDatabaseList contains a list of PgDatabase
func (*PgDatabaseList) DeepCopy ¶
func (in *PgDatabaseList) DeepCopy() *PgDatabaseList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PgDatabaseList.
func (*PgDatabaseList) DeepCopyInto ¶
func (in *PgDatabaseList) DeepCopyInto(out *PgDatabaseList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PgDatabaseList) DeepCopyObject ¶
func (in *PgDatabaseList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PgDatabasePublicPrivileges ¶
type PgDatabasePublicPrivileges struct { // Revoke the public privileges from all database object Revoke bool `json:"revoke"` }
func (*PgDatabasePublicPrivileges) DeepCopy ¶
func (in *PgDatabasePublicPrivileges) DeepCopy() *PgDatabasePublicPrivileges
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PgDatabasePublicPrivileges.
func (*PgDatabasePublicPrivileges) DeepCopyInto ¶
func (in *PgDatabasePublicPrivileges) DeepCopyInto(out *PgDatabasePublicPrivileges)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PgDatabasePublicSchema ¶
type PgDatabasePublicSchema struct { // Revoke the public privileges from all database object Drop bool `json:"drop"` }
func (*PgDatabasePublicSchema) DeepCopy ¶
func (in *PgDatabasePublicSchema) DeepCopy() *PgDatabasePublicSchema
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PgDatabasePublicSchema.
func (*PgDatabasePublicSchema) DeepCopyInto ¶
func (in *PgDatabasePublicSchema) DeepCopyInto(out *PgDatabasePublicSchema)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PgDatabaseSpec ¶
type PgDatabaseSpec struct { // Instance identifies the PgInstanceConnection which should be used Instance PgInstanceRef `json:"instance"` // DeletionBehavior specifies what should happen when the manifest gets deleted DeletionBehavior PgDatabaseDeletion `json:"deletion"` // Extensions which should exist in this database Extensions []string `json:"extensions,omitempty"` // DefaultPrivileges defines the default privileges for schemas in this database DefaultPrivileges []PgDatabaseDefaultPrivileges `json:"defaultPrivileges,omitempty"` // PublicPrivileges revokes and Public stuff in postgres PublicPrivileges PgDatabasePublicPrivileges `json:"publicPrivileges"` // PublicSchema dropped PublicSchema PgDatabasePublicSchema `json:"publicSchema"` }
PgDatabaseSpec defines the desired state of PgDatabase
func (*PgDatabaseSpec) DeepCopy ¶
func (in *PgDatabaseSpec) DeepCopy() *PgDatabaseSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PgDatabaseSpec.
func (*PgDatabaseSpec) DeepCopyInto ¶
func (in *PgDatabaseSpec) DeepCopyInto(out *PgDatabaseSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PgDatabaseStatus ¶
type PgDatabaseStatus struct { // Conditions represent the current connection state Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"` }
PgDatabaseStatus defines the observed state of PgDatabase
func (*PgDatabaseStatus) DeepCopy ¶
func (in *PgDatabaseStatus) DeepCopy() *PgDatabaseStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PgDatabaseStatus.
func (*PgDatabaseStatus) DeepCopyInto ¶
func (in *PgDatabaseStatus) DeepCopyInto(out *PgDatabaseStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PgInstance ¶
type PgInstance struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec PgInstanceSpec `json:"spec,omitempty"` Status PgInstanceStatus `json:"status,omitempty"` }
PgInstance is the Schema for the pginstances API
func (*PgInstance) DeepCopy ¶
func (in *PgInstance) DeepCopy() *PgInstance
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PgInstance.
func (*PgInstance) DeepCopyInto ¶
func (in *PgInstance) DeepCopyInto(out *PgInstance)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PgInstance) DeepCopyObject ¶
func (in *PgInstance) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*PgInstance) GetConditions ¶
func (i *PgInstance) GetConditions() []metav1.Condition
func (*PgInstance) SetConditions ¶
func (i *PgInstance) SetConditions(conditions []metav1.Condition)
type PgInstanceList ¶
type PgInstanceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []PgInstance `json:"items"` }
PgInstanceList contains a list of PgInstance
func (*PgInstanceList) DeepCopy ¶
func (in *PgInstanceList) DeepCopy() *PgInstanceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PgInstanceList.
func (*PgInstanceList) DeepCopyInto ¶
func (in *PgInstanceList) DeepCopyInto(out *PgInstanceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PgInstanceList) DeepCopyObject ¶
func (in *PgInstanceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PgInstanceRef ¶
type PgInstanceRef struct { // Namespace defines the namespace in which the PgInstanceConnection is located Namespace string `json:"namespace"` // Name identifies the PgInstanceConnection which should be used Name string `json:"name"` }
PgInstanceRef identifies the PgInstanceConnection which should be used
func (*PgInstanceRef) DeepCopy ¶
func (in *PgInstanceRef) DeepCopy() *PgInstanceRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PgInstanceRef.
func (*PgInstanceRef) DeepCopyInto ¶
func (in *PgInstanceRef) DeepCopyInto(out *PgInstanceRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PgInstanceRef) ToNamespacedName ¶
func (i *PgInstanceRef) ToNamespacedName() types.NamespacedName
type PgInstanceSpec ¶
type PgInstanceSpec struct { // The Hostname of the server which should be managed Hostname PgProperty `json:"host,omitempty"` // The Port of the server which should be managed, defaults to 5432 Port PgProperty `json:"port,omitempty"` // The Username for the Administrator User which will be used to create, update and delete databases and users Username PgProperty `json:"username,omitempty"` // The Password for the Administrator User which will be used to create, update and delete databases and users Password PgProperty `json:"password,omitempty"` // The Maintenance Database which should be used to establish the connection, defaults to 'postgres' Database PgProperty `json:"database,omitempty"` // The SSLMode which should be used for the connection, defaults to 'none' SSLMode PgProperty `json:"sslMode,omitempty"` }
PgInstanceSpec defines the desired state of PgInstance
func (*PgInstanceSpec) DeepCopy ¶
func (in *PgInstanceSpec) DeepCopy() *PgInstanceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PgInstanceSpec.
func (*PgInstanceSpec) DeepCopyInto ¶
func (in *PgInstanceSpec) DeepCopyInto(out *PgInstanceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PgInstanceSpec) GetDatabase ¶
func (*PgInstanceSpec) GetHostname ¶
func (*PgInstanceSpec) GetPassword ¶
func (*PgInstanceSpec) GetSSLMode ¶
func (*PgInstanceSpec) GetUsername ¶
type PgInstanceStatus ¶
type PgInstanceStatus struct { // Conditions represent the current connection state Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"` }
PgInstanceStatus defines the observed state of PgInstance
func (*PgInstanceStatus) DeepCopy ¶
func (in *PgInstanceStatus) DeepCopy() *PgInstanceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PgInstanceStatus.
func (*PgInstanceStatus) DeepCopyInto ¶
func (in *PgInstanceStatus) DeepCopyInto(out *PgInstanceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PgProperty ¶
type PgProperty struct { // The value for this property // +optional Value string `json:"value,omitempty" protobuf:"bytes,1,opt,name=value"` // Selects a key of a ConfigMap. // +optional ConfigMapKeyRef *coreV1.ConfigMapKeySelector `json:"configMapKeyRef,omitempty" protobuf:"bytes,2,opt,name=configMapKeyRef"` // Selects a key of a secret in the pod's namespace // +optional SecretKeyRef *coreV1.SecretKeySelector `json:"secretKeyRef,omitempty" protobuf:"bytes,3,opt,name=secretKeyRef"` }
func (*PgProperty) DeepCopy ¶
func (in *PgProperty) DeepCopy() *PgProperty
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PgProperty.
func (*PgProperty) DeepCopyInto ¶
func (in *PgProperty) DeepCopyInto(out *PgProperty)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PgProperty) GetPropertyValue ¶
type PgUser ¶
type PgUser struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec PgUserSpec `json:"spec,omitempty"` Status PgUserStatus `json:"status,omitempty"` }
PgUser is the Schema for the pgusers API
func (*PgUser) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PgUser.
func (*PgUser) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PgUser) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*PgUser) GetConditions ¶
func (*PgUser) GetInstanceId ¶
func (u *PgUser) GetInstanceId() types.NamespacedName
func (*PgUser) GetInstanceIdString ¶
func (*PgUser) SetConditions ¶
func (*PgUser) ToNamespacedName ¶
type PgUserDatabase ¶
type PgUserDatabase struct { // Name contains the Database Name on the postgres instance Name string `json:"name,omitempty"` // Owner is the optional value which allows to set this user as owner of a database // +optional Owner *bool `json:"owner,omitempty"` // Privileges contains the names of the privileges the user needs on the database Privileges []DatabasePrivilege `json:"privileges"` }
PgUserDatabase represents the database a user would like to connect to
func (*PgUserDatabase) DeepCopy ¶
func (in *PgUserDatabase) DeepCopy() *PgUserDatabase
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PgUserDatabase.
func (*PgUserDatabase) DeepCopyInto ¶
func (in *PgUserDatabase) DeepCopyInto(out *PgUserDatabase)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PgUserDatabase) IsOwner ¶ added in v0.0.2
func (d *PgUserDatabase) IsOwner() bool
type PgUserList ¶
type PgUserList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []PgUser `json:"items"` }
PgUserList contains a list of PgUser
func (*PgUserList) DeepCopy ¶
func (in *PgUserList) DeepCopy() *PgUserList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PgUserList.
func (*PgUserList) DeepCopyInto ¶
func (in *PgUserList) DeepCopyInto(out *PgUserList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PgUserList) DeepCopyObject ¶
func (in *PgUserList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PgUserSecret ¶
type PgUserSecret struct { // Name identifies the PgLoginRoleSecret which should be used Name string `json:"name,omitempty"` }
PgLoginRoleSecret identifies the PgLoginRoleSecret which should be used
func (*PgUserSecret) DeepCopy ¶
func (in *PgUserSecret) DeepCopy() *PgUserSecret
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PgUserSecret.
func (*PgUserSecret) DeepCopyInto ¶
func (in *PgUserSecret) DeepCopyInto(out *PgUserSecret)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PgUserSpec ¶
type PgUserSpec struct { // Instance identifies the PgInstanceConnection which should be used Instance PgInstanceRef `json:"instance"` // Secret is an example field of PgLoginRole Secret *PgUserSecret `json:"secret,omitempty"` // Databases is an example field of PgLoginRole Databases []PgUserDatabase `json:"databases,omitempty"` }
PgUserSpec defines the desired state of PgUser
func (*PgUserSpec) DeepCopy ¶
func (in *PgUserSpec) DeepCopy() *PgUserSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PgUserSpec.
func (*PgUserSpec) DeepCopyInto ¶
func (in *PgUserSpec) DeepCopyInto(out *PgUserSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PgUserStatus ¶
type PgUserStatus struct { // Conditions represent the current connection state // Supported Condition Types: // - postgres.brose.bike/login-role-exists true if login role exists false if not // - postgres.brose.bike/connected true if the instance is reachable false if not Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"` }
PgUserStatus defines the observed state of PgUser
func (*PgUserStatus) DeepCopy ¶
func (in *PgUserStatus) DeepCopy() *PgUserStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PgUserStatus.
func (*PgUserStatus) DeepCopyInto ¶
func (in *PgUserStatus) DeepCopyInto(out *PgUserStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SchemaPrivilege ¶ added in v0.0.2
type SchemaPrivilege string
+kubebuilder:validation:Enum=USAGE;CREATE
type SequencePrivilege ¶ added in v0.0.2
type SequencePrivilege string
+kubebuilder:validation:Enum=SELECT;UPDATE;USAGE
type TablePrivilege ¶ added in v0.0.2
type TablePrivilege string
+kubebuilder:validation:Enum=SELECT;INSERT;UPDATE;DELETE;TRUNCATE;REFERENCES;TRIGGER