v1

package
v1.4.5 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2023 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 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
}

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
}

Jump to

Keyboard shortcuts

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