Documentation ¶
Index ¶
Constants ¶
View Source
const ( MySQLDatabase string = "mysql" PostgreSQLDatabase string = "postgres" )
Variables ¶
This section is empty.
Functions ¶
func GetTypeFromConnectionString ¶ added in v1.12.0
Types ¶
type Info ¶
type Info struct { SecretName string DatabaseName string ExternalDBType string External bool ReaderEndpoints bool DatabaseCheckURL bool // contains filtered or unexported fields }
Info contains information on a database connection.
func GenerateDatabaseInfoFromSecret ¶
GenerateDatabaseInfoFromSecret takes a secret and returns database based on the characteristics of the secret.
func (*Info) HasDatabaseCheckURL ¶
HasDatabaseCheckURL returns if the database has an endpoint check defined.
func (*Info) HasReaderEndpoints ¶ added in v1.8.0
HasReaderEndpoints returns if the database has reader endpoints defined.
func (*Info) IsExternal ¶
IsExternal defines if the database is external or not.
Directories ¶
Path | Synopsis |
---|---|
mysql_operator
|
|
v1alpha1
Package v1alpha1 contains API Schema definitions for the mysql v1alpha1 API group +kubebuilder:object:generate:=true +groupName=mysql.presslabs.org
|
Package v1alpha1 contains API Schema definitions for the mysql v1alpha1 API group +kubebuilder:object:generate:=true +groupName=mysql.presslabs.org |
Click to show internal directories.
Click to hide internal directories.