Documentation
¶
Index ¶
- func AreAllGroupAndInstancesReady(cli client.Client, pdg *v1alpha1.PDGroup, kvg []*v1alpha1.TiKVGroup, ...) error
- func AreAllInstancesReady(cli client.Client, pdg *v1alpha1.PDGroup, kvg []*v1alpha1.TiKVGroup, ...) error
- func AreAllPDHealthy(cli client.Client, pdg *v1alpha1.PDGroup, checkGroup bool) error
- func AreAllTiCDCHealthy(cli client.Client, ticdcg *v1alpha1.TiCDCGroup, checkGroup bool) error
- func AreAllTiDBHealthy(cli client.Client, dbg *v1alpha1.TiDBGroup, checkGroup bool) error
- func AreAllTiFlashHealthy(cli client.Client, flashg *v1alpha1.TiFlashGroup, checkGroup bool) error
- func AreAllTiKVHealthy(cli client.Client, kvg *v1alpha1.TiKVGroup, checkGroup bool) error
- func GetTiDBDSN(host, user, password, database, params string, port int) string
- func IsClusterReady(cli client.Client, name, ns string) (*v1alpha1.Cluster, bool)
- func IsTiDBConnectable(ctx context.Context, cli client.Client, fw k8s.PortForwarder, ...) error
- func IsTiDBInserted(fw k8s.PortForwarder, ns, tc, user, password, dbName, tableName string) wait.ConditionFunc
- func PortForwardAndGetTiDBDSN(fw k8s.PortForwarder, ns, svcName, user, password, database, params string) (string, context.CancelFunc, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AreAllInstancesReady ¶
func AreAllPDHealthy ¶
func AreAllTiCDCHealthy ¶
func AreAllTiDBHealthy ¶
func AreAllTiFlashHealthy ¶
func AreAllTiKVHealthy ¶
func GetTiDBDSN ¶
func IsClusterReady ¶
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.
Click to show internal directories.
Click to hide internal directories.