cluster

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ClusterCmd *cobra.Command // represents the cluster command

)

Functions

func Execute

func Execute()

Execute executes the root command

func GetEnv

func GetEnv(envVar string) (bool, string)

func InstallCluster

func InstallCluster(ops utils.ClusterOptions) error

func PatrolCluster

func PatrolCluster(ops utils.ClusterOptions) error

func ReadClusterOptionsByName

func ReadClusterOptionsByName(cmd *cobra.Command) (utils.ClusterOptions, error)

func StartCluster

func StartCluster(clusterOpts utils.ClusterOptions) error

func StopCluster

func StopCluster(ops utils.ClusterOptions) error

func UninstallCluster

func UninstallCluster(ops utils.ClusterOptions) error

func UpgradeCluster

func UpgradeCluster(ops utils.ClusterOptions, newV string) error

Types

type LocalTemplate

type LocalTemplate struct {
	GlobalUser      string   // global.user in yaml template
	GlobalGroup     string   // global.group in yaml template
	GlobalSSHPort   int      // global.ssh_port in yaml template
	GlobalDeployDir string   // global.deploy_dir in yaml template
	GlobalLogDir    string   // global.deploy_dir in yaml template
	GlobalDataDir   string   // global.data_dir in yaml template
	GlobalArch      string   // global.arch in yaml template
	TSMetaServers   []string // ts-meta-servers in yaml template
	TSSqlServers    []string // ts-sql-servers in yaml template
	TSStoreServers  []string // ts-store-servers in yaml template
	GrafanaServers  []string // grafana_servers in yaml template
}

LocalTemplate contains the variables for print local template.

type TemplateOptions

type TemplateOptions struct {
	Full  bool // print full template
	Local bool // print and render local template
}

TemplateOptions contains the options for print topology template.

Jump to

Keyboard shortcuts

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