tidb

package
v0.0.0-...-d89597d Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderPDStartScript

func RenderPDStartScript(model *PDStartScriptModel) (string, error)

func RenderTiDBStartScript

func RenderTiDBStartScript(model *TidbStartScriptModel) (string, error)

func RenderTiKVStartScript

func RenderTiKVStartScript(model *TiKVStartScriptModel) (string, error)

Types

type PDStartScriptModel

type PDStartScriptModel struct {
}

type TiDBClusterRecommendation

type TiDBClusterRecommendation struct {
	*v1alpha1.TidbCluster
}

func RecommendedTiDBCluster

func RecommendedTiDBCluster(ns string, name string) *TiDBClusterRecommendation

tidb-operator do not have sane defaults yet, do a recommendation

func (*TiDBClusterRecommendation) EnablePump

func (*TiDBClusterRecommendation) Make

func (*TiDBClusterRecommendation) PDReplicas

func (*TiDBClusterRecommendation) TiDBReplicas

func (t *TiDBClusterRecommendation) TiDBReplicas(replicas int32) *TiDBClusterRecommendation

func (*TiDBClusterRecommendation) TiKVReplicas

func (t *TiDBClusterRecommendation) TiKVReplicas(replicas int32) *TiDBClusterRecommendation

type TiKVStartScriptModel

type TiKVStartScriptModel struct {
}

type TidbOps

type TidbOps struct {
	// contains filtered or unexported fields
}

TidbOps knows how to operate TiDB on k8s

func New

func New(cli client.Client) *TidbOps

func (*TidbOps) ApplyDiscovery

func (t *TidbOps) ApplyDiscovery(tc *v1alpha1.TidbCluster) error

func (*TidbOps) ApplyPDConfigMap

func (t *TidbOps) ApplyPDConfigMap(tc *v1alpha1.TidbCluster) error

func (*TidbOps) ApplyTiDBCluster

func (t *TidbOps) ApplyTiDBCluster(tc *v1alpha1.TidbCluster) error

func (*TidbOps) ApplyTiDBConfigMap

func (t *TidbOps) ApplyTiDBConfigMap(tc *v1alpha1.TidbCluster) error

func (*TidbOps) ApplyTiKVConfigMap

func (t *TidbOps) ApplyTiKVConfigMap(tc *v1alpha1.TidbCluster) error

func (*TidbOps) DeleteDrainer

func (t *TidbOps) DeleteDrainer(drainer appsv1.StatefulSet) error

func (*TidbOps) DeleteTiDBCluster

func (t *TidbOps) DeleteTiDBCluster(tc *v1alpha1.TidbCluster) error

func (*TidbOps) DeployDrainer

func (t *TidbOps) DeployDrainer(source *v1alpha1.TidbCluster, target string) (*appsv1.StatefulSet, error)

func (*TidbOps) GetTiDBService

func (t *TidbOps) GetTiDBService(tc *v1alpha1.TidbCluster) (*corev1.Service, error)

func (*TidbOps) WaitTiDBClusterReady

func (t *TidbOps) WaitTiDBClusterReady(tc *v1alpha1.TidbCluster, timeout time.Duration) error

type TidbStartScriptModel

type TidbStartScriptModel struct {
	ClusterName string
}

Jump to

Keyboard shortcuts

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