tidbcluster

package
v1.1.12 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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.

func WaitForTidbClusterReady

func WaitForTidbClusterReady(c versioned.Interface, ns, name string, timeout time.Duration, minReadyDuration time.Duration) error

WaitForTidbClusterReady waits for a TidbClusterCondition to be ready for at least minReadyDuration duration.

Types

type TidbClusterCondition

type TidbClusterCondition func(tc *v1alpha1.TidbCluster) (bool, error)

Jump to

Keyboard shortcuts

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