Versions in this module Expand all Collapse all v0 v0.1.0 Sep 13, 2023 Changes in this version + type Database struct + Spec DatabaseSpec + func (in *Database) DeepCopy() *Database + func (in *Database) DeepCopyInto(out *Database) + func (in *Database) DeepCopyObject() runtime.Object + type DatabaseList struct + Items []Database + func (in *DatabaseList) DeepCopy() *DatabaseList + func (in *DatabaseList) DeepCopyInto(out *DatabaseList) + func (in *DatabaseList) DeepCopyObject() runtime.Object + type DatabaseRef struct + CreatedSecret NamespacedName + Name string + PasswordSecret Secret + Privileges []Name + func (in *DatabaseRef) DeepCopy() *DatabaseRef + func (in *DatabaseRef) DeepCopyInto(out *DatabaseRef) + type DatabaseSpec struct + MySQL *MySQLConfig + PostgreSQL *PostgreSQLConfig + Type DatabaseType + func (in *DatabaseSpec) DeepCopy() *DatabaseSpec + func (in *DatabaseSpec) DeepCopyInto(out *DatabaseSpec) type DatabaseType + const MySQL + type MySQLConfig struct + DatabaseName string + Host string + PasswordSecret Secret + Port int + User string + UsersHostname string + func (in *MySQLConfig) DeepCopy() *MySQLConfig + func (in *MySQLConfig) DeepCopyInto(out *MySQLConfig) + type Name struct + Name string + func (in *Name) DeepCopy() *Name + func (in *Name) DeepCopyInto(out *Name) + func (n Name) ToNamespacedName() types.NamespacedName + type NamespacedName struct + Name string + Namespace string + func (in *NamespacedName) DeepCopy() *NamespacedName + func (in *NamespacedName) DeepCopyInto(out *NamespacedName) + func (n NamespacedName) ToNamespacedName() types.NamespacedName type PostgreSQLConfig + SSLCAKey Secret + SSLCredentialsSecret NamespacedName + type PostgresSSLMode string + const SSLModeALLOW + const SSLModeDISABLE + const SSLModePREFER + const SSLModeREQUIRE + const SSLModeVERIFYCA + const SSLModeVERIFYFULL + type PrivilegeSpec struct + Database string + On string + Privilege PrivilegeType + func (in *PrivilegeSpec) DeepCopy() *PrivilegeSpec + func (in *PrivilegeSpec) DeepCopyInto(out *PrivilegeSpec) + type Privileges struct + Privileges []PrivilegeSpec + func (in *Privileges) DeepCopy() *Privileges + func (in *Privileges) DeepCopyInto(out *Privileges) + func (in *Privileges) DeepCopyObject() runtime.Object + type PrivilegesList struct + Items []Privileges + func (in *PrivilegesList) DeepCopy() *PrivilegesList + func (in *PrivilegesList) DeepCopyInto(out *PrivilegesList) + func (in *PrivilegesList) DeepCopyObject() runtime.Object type Secret + Key string + Secret NamespacedName + type StatusSummary struct + Message string + Ready bool + func (in *StatusSummary) DeepCopy() *StatusSummary + func (in *StatusSummary) DeepCopyInto(out *StatusSummary) type UserSpec + Databases []DatabaseRef type UserStatus + Summary StatusSummary v0.0.5 Jan 14, 2023 v0.0.4 Nov 2, 2022 v0.0.3 Nov 2, 2022 Changes in this version + var AddToScheme = SchemeBuilder.AddToScheme + var AllTablesSchemaRegex = regexp.MustCompile(string(ALLTABLESSCHEMA)) + var GroupVersion = schema.GroupVersion + var SchemeBuilder = &scheme.Builder + type Config struct + Spec ConfigSpec + Status ConfigStatus + func (in *Config) DeepCopy() *Config + func (in *Config) DeepCopyInto(out *Config) + func (in *Config) DeepCopyObject() runtime.Object + func (r *Config) Default() + func (r *Config) SetupWebhookWithManager(mgr ctrl.Manager) error + func (r *Config) ValidateCreate() error + func (r *Config) ValidateDelete() error + func (r *Config) ValidateUpdate(old runtime.Object) error + type ConfigList struct + Items []Config + func (in *ConfigList) DeepCopy() *ConfigList + func (in *ConfigList) DeepCopyInto(out *ConfigList) + func (in *ConfigList) DeepCopyObject() runtime.Object + type ConfigSpec struct + DatabaseType DatabaseType + PostgreSQL PostgreSQLConfig + func (in *ConfigSpec) DeepCopy() *ConfigSpec + func (in *ConfigSpec) DeepCopyInto(out *ConfigSpec) + type ConfigStatus struct + func (in *ConfigStatus) DeepCopy() *ConfigStatus + func (in *ConfigStatus) DeepCopyInto(out *ConfigStatus) + type DatabaseConfig struct + Name string + Namespace string + func (in *DatabaseConfig) DeepCopy() *DatabaseConfig + func (in *DatabaseConfig) DeepCopyInto(out *DatabaseConfig) + type DatabaseType string + const PostgreSQL + type PostgreSQLConfig struct + DatabaseName string + Host string + PasswordSecret Secret + Port int + SSLCredentials SSLSecrets + SSLMode database.PostgresSSLMode + User string + func (in *PostgreSQLConfig) DeepCopy() *PostgreSQLConfig + func (in *PostgreSQLConfig) DeepCopyInto(out *PostgreSQLConfig) + type Privilege struct + Database string + On string + Privilege PrivilegeType + func (in *Privilege) DeepCopy() *Privilege + func (in *Privilege) DeepCopyInto(out *Privilege) + type PrivilegeType string + const ALL + const ALLPRIVILEGES + const ALLTABLESSCHEMA + const ALTERSYSTEM + const CONNECT + const CREATE + const DELETE + const EXECUTE + const INSERT + const REFERENCES + const SELECT + const SET + const TEMP + const TEMPORARY + const TRIGGER + const TRUNCATE + const UPDATE + const USAGE + func (p PrivilegeType) IsAllPrivilegeType() bool + func (p PrivilegeType) IsAllTableSchemaPrivilegeType() bool + func (p PrivilegeType) IsDatabasePrivilegeType() bool + func (p PrivilegeType) IsEmpty() bool + func (p PrivilegeType) IsTablePrivilegeType() bool + type SSLSecrets struct + CASecret Secret + UserSecret Secret + func (in *SSLSecrets) DeepCopy() *SSLSecrets + func (in *SSLSecrets) DeepCopyInto(out *SSLSecrets) + type Secret struct + Name string + Namespace string + func (in *Secret) DeepCopy() *Secret + func (in *Secret) DeepCopyInto(out *Secret) + type User struct + Spec UserSpec + Status UserStatus + func (in *User) DeepCopy() *User + func (in *User) DeepCopyInto(out *User) + func (in *User) DeepCopyObject() runtime.Object + func (r *User) Default() + func (r *User) SetDbConfigs(dbConfigs []DatabaseConfig) *User + func (r *User) SetPasswordSecret(name, namespace string) *User + func (r *User) SetPrivileges(privileges []Privilege) *User + func (r *User) SetupWebhookWithManager(mgr ctrl.Manager) error + func (r *User) ValidateCreate() error + func (r *User) ValidateDelete() error + func (r *User) ValidateUpdate(old runtime.Object) error + type UserList struct + Items []User + func (in *UserList) DeepCopy() *UserList + func (in *UserList) DeepCopyInto(out *UserList) + func (in *UserList) DeepCopyObject() runtime.Object + type UserSpec struct + DatabaseConfigs []DatabaseConfig + PasswordSecret Secret + Privileges []Privilege + func (in *UserSpec) DeepCopy() *UserSpec + func (in *UserSpec) DeepCopyInto(out *UserSpec) + type UserStatus struct + func (in *UserStatus) DeepCopy() *UserStatus + func (in *UserStatus) DeepCopyInto(out *UserStatus)