Documentation ¶
Overview ¶
nolint: golint, errcheck
Index ¶
- func BackupForCluster(cluster *api.MysqlCluster) gomegatypes.GomegaMatcher
- func BackupHaveCondition(condType api.BackupConditionType, status core.ConditionStatus) gomegatypes.GomegaMatcher
- func BackupWithName(name string) gomegatypes.GomegaMatcher
- func DrainChan(requests <-chan reconcile.Request)
- func ListAllBackupsFn(c client.Client, options *client.ListOptions) func() []api.MysqlBackup
- func NewTestLogger(w io.Writer, options ...zap.Option) logr.Logger
- func NodeConditions(master, replicating, lagged, readOnly bool) []api.NodeCondition
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BackupForCluster ¶ added in v0.2.2
func BackupForCluster(cluster *api.MysqlCluster) gomegatypes.GomegaMatcher
BackupForCluster is gomega matcher that matches a backup which is for given cluster
func BackupHaveCondition ¶
func BackupHaveCondition(condType api.BackupConditionType, status core.ConditionStatus) gomegatypes.GomegaMatcher
BackupHaveCondition is a helper func that returns a matcher to check for an existing condition in condition list list
func BackupWithName ¶ added in v0.2.3
func BackupWithName(name string) gomegatypes.GomegaMatcher
BackupWithName is a gomega matcher that matchers a backup with the given name
func ListAllBackupsFn ¶ added in v0.2.2
func ListAllBackupsFn(c client.Client, options *client.ListOptions) func() []api.MysqlBackup
ListAllBackupsFn returns a helper function that can be used with gomega Eventually and Consistently
func NewTestLogger ¶
NewTestLogger returns a logger good for tests
func NodeConditions ¶ added in v0.2.2
func NodeConditions(master, replicating, lagged, readOnly bool) []api.NodeCondition
NodeConditions returns a list of api.NodeConditions for a node
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.