Documentation ¶
Index ¶
- func IsTidbClusterAvaiable(tc *v1alpha1.TidbCluster, minReadyDuration time.Duration, now time.Time) bool
- func IsTidbClusterReady(tc *v1alpha1.TidbCluster) bool
- func WaitForTidbClusterCondition(c versioned.Interface, ns, name string, timeout time.Duration, ...) error
- func WaitForTidbClusterReady(c versioned.Interface, ns, name string, timeout time.Duration, ...) error
- type TidbClusterCondition
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsTidbClusterAvaiable ¶
func IsTidbClusterAvaiable(tc *v1alpha1.TidbCluster, minReadyDuration time.Duration, now time.Time) bool
IsTidbClusterAvaiable returns true if a tidbcluster is ready for at least minReadyDuration duration; false otherwise.
func IsTidbClusterReady ¶
func IsTidbClusterReady(tc *v1alpha1.TidbCluster) bool
IsTidbClusterReady returns true if a tidbcluster is ready; false otherwise.
func WaitForTidbClusterCondition ¶
func WaitForTidbClusterCondition(c versioned.Interface, ns, name string, timeout time.Duration, condition TidbClusterCondition) error
WaitForTidbClusterCondition waits for a TidbCluster to be matched to the given condition.
Types ¶
type TidbClusterCondition ¶
type TidbClusterCondition func(tc *v1alpha1.TidbCluster) (bool, error)
Click to show internal directories.
Click to hide internal directories.