command

package
v0.0.0-...-7bb93db Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2019 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// InputNew     = "Input a new config file"
	UseOrigin    = "Use the origin config file"
	UseRuleFiles = "Use the configuration rules file to generate a new configuration file?"
)
View Source
const (
	TiDBAnsibleURL = "https://github.com/pingcap/tidb-ansible.git"
)

Variables

This section is empty.

Functions

func GetTiDBClustersTableString

func GetTiDBClustersTableString(tc []*models.TiDBCluster) string

func NewEnvCommand

func NewEnvCommand() *cobra.Command

func NewInitCommand

func NewInitCommand() *cobra.Command

func NewListCommand

func NewListCommand() *cobra.Command

func NewSearchCommand

func NewSearchCommand() *cobra.Command

func NewUpgradeCommand

func NewUpgradeCommand() *cobra.Command

Types

type Client

type Client interface {
	LoadTiDBClusters() ([]*models.TiDBCluster, error)
	GetTiDBClusterByHost(host string) ([]*models.TiDBCluster, error)
	GetTiDBClusterByName(name string) (*models.TiDBCluster, error)
	CreateTiDBCluster(tc *models.TiDBCluster) error
	UpdateTiDBCluster(tc *models.TiDBCluster) error
	SearchTiDBCluster(s map[string]interface{}) ([]*models.TiDBCluster, error)
}

type DeleteRules

type DeleteRules struct {
	Delete []string `yaml:"delete"`
}

type InitCommandFlags

type InitCommandFlags struct {
	Name        string
	Path        string
	Version     string
	Description string
}

type SearchCommandFlags

type SearchCommandFlags struct {
	Name    string
	Path    string
	Version string
	Status  string
	Host    string
}

type UpgradeCommandFlags

type UpgradeCommandFlags struct {
	TargetVersion string
	RuleFile      string
}

Jump to

Keyboard shortcuts

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