mysqldatabase

package
v0.6.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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 Wrap

Wrap wraps a MysqlDatabase

func (*Database) ConditionExists

ConditionExists returns a condition and whether it exists

func (*Database) GetClusterKey

func (db *Database) GetClusterKey() client.ObjectKey

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL