Documentation ¶
Index ¶
- Constants
- type MySQLUser
- func (u *MySQLUser) ConditionExists(ct mysqlv1alpha1.MysqlUserConditionType) (*mysqlv1alpha1.MySQLUserCondition, bool)
- func (u *MySQLUser) GetClusterKey() client.ObjectKey
- func (u *MySQLUser) GetKey() client.ObjectKey
- func (u *MySQLUser) Unwrap() *mysqlv1alpha1.MysqlUser
- func (u *MySQLUser) UpdateStatusCondition(condType mysqlv1alpha1.MysqlUserConditionType, status v1.ConditionStatus, ...) (cond *mysqlv1alpha1.MySQLUserCondition, changed bool)
Constants ¶
View Source
const ( // ProvisionFailedReason is the condition reason when MysqlUser provisioning // has failed. ProvisionFailedReason = "ProvisionFailed" // ProvisionInProgressReason is the reason when MysqlUser provisioning has // started. ProvisionInProgressReason = "ProvisionInProgress" // ProvisionSucceededReason the reason used when provision was successful. ProvisionSucceededReason = "ProvisionSucceeded" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MySQLUser ¶
type MySQLUser struct {
*mysqlv1alpha1.MysqlUser
}
MySQLUser embeds mysqlv1alpha1.MysqlUser and adds utility functions
func Wrap ¶
func Wrap(u *mysqlv1alpha1.MysqlUser) *MySQLUser
Wrap wraps a mysqlv1alpha1.AccountBinding into an AccountBinding object
func (*MySQLUser) ConditionExists ¶
func (u *MySQLUser) ConditionExists( ct mysqlv1alpha1.MysqlUserConditionType, ) ( *mysqlv1alpha1.MySQLUserCondition, bool, )
ConditionExists returns a condition and whether it exists
func (*MySQLUser) GetClusterKey ¶
GetClusterKey returns the MysqlUser's MySQLCluster key
func (*MySQLUser) GetKey ¶
GetKey return the user key. Usually used for logging or for runtime.Client.Get as key
func (*MySQLUser) Unwrap ¶
func (u *MySQLUser) Unwrap() *mysqlv1alpha1.MysqlUser
Unwrap returns the wrapped AccountBinding object
func (*MySQLUser) UpdateStatusCondition ¶
func (u *MySQLUser) UpdateStatusCondition( condType mysqlv1alpha1.MysqlUserConditionType, status v1.ConditionStatus, reason, message string, ) ( cond *mysqlv1alpha1.MySQLUserCondition, changed bool, )
UpdateStatusCondition sets the condition to a status. for example Ready condition to True, or False
Click to show internal directories.
Click to hide internal directories.