tidb

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AreAllGroupAndInstancesReady

func AreAllGroupAndInstancesReady(cli client.Client, pdg *v1alpha1.PDGroup, kvg []*v1alpha1.TiKVGroup,
	dbg []*v1alpha1.TiDBGroup, flashg []*v1alpha1.TiFlashGroup, ticdcg []*v1alpha1.TiCDCGroup,
) error

func AreAllInstancesReady

func AreAllInstancesReady(cli client.Client, pdg *v1alpha1.PDGroup, kvg []*v1alpha1.TiKVGroup,
	dbg []*v1alpha1.TiDBGroup, flashg []*v1alpha1.TiFlashGroup, ticdcg []*v1alpha1.TiCDCGroup,
) error

func AreAllPDHealthy

func AreAllPDHealthy(cli client.Client, pdg *v1alpha1.PDGroup, checkGroup bool) error

func AreAllTiCDCHealthy

func AreAllTiCDCHealthy(cli client.Client, ticdcg *v1alpha1.TiCDCGroup, checkGroup bool) error

func AreAllTiDBHealthy

func AreAllTiDBHealthy(cli client.Client, dbg *v1alpha1.TiDBGroup, checkGroup bool) error

func AreAllTiFlashHealthy

func AreAllTiFlashHealthy(cli client.Client, flashg *v1alpha1.TiFlashGroup, checkGroup bool) error

func AreAllTiKVHealthy

func AreAllTiKVHealthy(cli client.Client, kvg *v1alpha1.TiKVGroup, checkGroup bool) error

func GetTiDBDSN

func GetTiDBDSN(host, user, password, database, params string, port int) string

func IsClusterReady

func IsClusterReady(cli client.Client, name, ns string) (*v1alpha1.Cluster, bool)

func IsTiDBConnectable

func IsTiDBConnectable(ctx context.Context, cli client.Client, fw k8s.PortForwarder,
	ns, tcName, dbgName, user, password, tlsSecretName string,
) error

IsTiDBConnectable checks whether the tidb cluster is connectable.

func IsTiDBInserted

func IsTiDBInserted(fw k8s.PortForwarder, ns, tc, user, password, dbName, tableName string) wait.ConditionFunc

IsTiDBInserted checks whether the tidb cluster has insert some data.

func PortForwardAndGetTiDBDSN

func PortForwardAndGetTiDBDSN(fw k8s.PortForwarder, ns, svcName,
	user, password, database, params string,
) (string, context.CancelFunc, error)

PortForwardAndGetTiDBDSN create a port forward for TiDB and return its DSN.

Types

This section is empty.

Jump to

Keyboard shortcuts

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