Documentation ¶
Index ¶
- Constants
- func GetTiDBClustersTableString(tc []*models.TiDBCluster) string
- func NewEnvCommand() *cobra.Command
- func NewInitCommand() *cobra.Command
- func NewListCommand() *cobra.Command
- func NewSearchCommand() *cobra.Command
- func NewUpgradeCommand() *cobra.Command
- type Client
- type DeleteRules
- type InitCommandFlags
- type SearchCommandFlags
- type UpgradeCommandFlags
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 NewInitCommand ¶
func NewListCommand ¶
func NewSearchCommand ¶
func NewUpgradeCommand ¶
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 SearchCommandFlags ¶
type UpgradeCommandFlags ¶
Click to show internal directories.
Click to hide internal directories.