Documentation ¶
Index ¶
- Constants
- type Database
- func (db *Database) ConditionExists(ct mysqlv1alpha1.MysqlDatabaseConditionType) (*mysqlv1alpha1.MysqlDatabaseCondition, bool)
- func (db *Database) GetClusterKey() client.ObjectKey
- func (db *Database) Unwrap() *mysqlv1alpha1.MysqlDatabase
- func (db *Database) UpdateCondition(condType mysqlv1alpha1.MysqlDatabaseConditionType, ...) (cond *mysqlv1alpha1.MysqlDatabaseCondition, changed bool)
Constants ¶
View Source
const ( // ProvisionSucceeded is used as the reason for the condition ProvisionSucceeded = "ProvisionSucceeded" // ProvisionFailed the reason when creation fails ProvisionFailed = "ProvisionFailed" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct {
*mysqlv1alpha1.MysqlDatabase
}
Database is a wrapper over MysqlDatabase k8s resource
func (*Database) ConditionExists ¶
func (db *Database) ConditionExists( ct mysqlv1alpha1.MysqlDatabaseConditionType, ) ( *mysqlv1alpha1.MysqlDatabaseCondition, bool, )
ConditionExists returns a condition and whether it exists
func (*Database) GetClusterKey ¶
GetClusterKey is a helper function that returns the mysql cluster object key
func (*Database) Unwrap ¶
func (db *Database) Unwrap() *mysqlv1alpha1.MysqlDatabase
Unwrap returns the MysqlDatabase object
func (*Database) UpdateCondition ¶
func (db *Database) UpdateCondition( condType mysqlv1alpha1.MysqlDatabaseConditionType, status corev1.ConditionStatus, reason, message string, ) ( cond *mysqlv1alpha1.MysqlDatabaseCondition, changed bool, )
UpdateCondition updates the site's condition matching the given type
Click to show internal directories.
Click to hide internal directories.