v1

package
v1.7.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DMMasterCheckDNSV1 string = `` /* 184-byte string literal not displayed */

TODO: refactor to confine the checking script within the package

Functions

func RenderDMMasterStartScript

func RenderDMMasterStartScript(model *DMMasterStartScriptModel) (string, error)

func RenderDMWorkerStartScript

func RenderDMWorkerStartScript(model *DMWorkerStartScriptModel) (string, error)

func RenderPDStartScript

func RenderPDStartScript(tc *v1alpha1.TidbCluster) (string, error)

func RenderPumpStartScript

func RenderPumpStartScript(tc *v1alpha1.TidbCluster) (string, error)

func RenderTiCDCStartScript

func RenderTiCDCStartScript(tc *v1alpha1.TidbCluster) (string, error)

func RenderTiDBInitInitStartScript

func RenderTiDBInitInitStartScript(model *TiDBInitInitStartScriptModel) (string, error)

func RenderTiDBInitStartScript

func RenderTiDBInitStartScript(model *TiDBInitStartScriptModel) (string, error)

func RenderTiDBStartScript

func RenderTiDBStartScript(tc *v1alpha1.TidbCluster) (string, error)

func RenderTiFlashInitScript

func RenderTiFlashInitScript(tc *v1alpha1.TidbCluster) (string, error)

func RenderTiFlashStartScript

func RenderTiFlashStartScript(tc *v1alpha1.TidbCluster) (string, error)

func RenderTiFlashStartScriptWithStartArgs added in v1.6.0

func RenderTiFlashStartScriptWithStartArgs(tc *v1alpha1.TidbCluster) (string, error)

func RenderTiKVStartScript

func RenderTiKVStartScript(tc *v1alpha1.TidbCluster) (string, error)

Types

type CommonModel

type CommonModel struct {
	AcrossK8s     bool   // same as tc.spec.acrossK8s
	ClusterDomain string // same as tc.spec.clusterDomain
}

func (CommonModel) FormatClusterDomain

func (c CommonModel) FormatClusterDomain() string

type DMMasterStartScriptModel

type DMMasterStartScriptModel struct {
	Scheme            string
	DataDir           string
	CheckDomainScript string
}

type DMWorkerStartScriptModel

type DMWorkerStartScriptModel struct {
	DataDir       string
	MasterAddress string
}

type PDStartScriptModel

type PDStartScriptModel struct {
	CommonModel

	Scheme            string
	DataDir           string
	CheckDomainScript string
	PDStartTimeout    int
}

type PumpStartScriptModel

type PumpStartScriptModel struct {
	CommonModel

	Scheme      string
	ClusterName string
	PDAddr      string
	LogLevel    string
	Namespace   string
}

func (*PumpStartScriptModel) FormatPumpZone

func (pssm *PumpStartScriptModel) FormatPumpZone() string

type TiDBInitInitStartScriptModel

type TiDBInitInitStartScriptModel struct {
	ClusterName     string
	TiDBServicePort int32
}

type TiDBInitStartScriptModel

type TiDBInitStartScriptModel struct {
	ClusterName     string
	PermitHost      string
	PasswordSet     bool
	InitSQL         bool
	TLS             bool
	SkipCA          bool
	CAPath          string
	CertPath        string
	KeyPath         string
	TiDBServicePort int32
}

type TiKVStartScriptModel

type TiKVStartScriptModel struct {
	CommonModel

	EnableAdvertiseStatusAddr bool
	AdvertiseStatusAddr       string
	DataDir                   string
	PDAddress                 string
	Addr                      string
	StatusAddr                string
}

type TidbStartScriptModel

type TidbStartScriptModel struct {
	CommonModel

	EnablePlugin    bool
	PluginDirectory string
	PluginList      string
	Path            string
}

type TiflashStartScriptModel added in v1.6.0

type TiflashStartScriptModel struct {
	CommonModel

	AdvertiseAddr             string
	EnableAdvertiseStatusAddr bool
	AdvertiseStatusAddr       string
	Addr                      string
	PDAddress                 string
}

Jump to

Keyboard shortcuts

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