Documentation ¶
Index ¶
- Constants
- func InitPDClient(cmd *cobra.Command) error
- func NewAddOperatorCommand() *cobra.Command
- func NewAddSchedulerCommand() *cobra.Command
- func NewConfigCommand() *cobra.Command
- func NewDeleteMemberCommand() *cobra.Command
- func NewDeleteStoreCommand() *cobra.Command
- func NewEvictLeaderSchedulerCommand() *cobra.Command
- func NewExitCommand() *cobra.Command
- func NewGrantLeaderSchedulerCommand() *cobra.Command
- func NewLabelCommand() *cobra.Command
- func NewLabelListStoresCommand() *cobra.Command
- func NewLeaderMemberCommand() *cobra.Command
- func NewMemberCommand() *cobra.Command
- func NewOperatorCommand() *cobra.Command
- func NewPingCommand() *cobra.Command
- func NewRegionCommand() *cobra.Command
- func NewRegionWithKeyCommand() *cobra.Command
- func NewRemoveOperatorCommand() *cobra.Command
- func NewRemoveSchedulerCommand() *cobra.Command
- func NewSchedulerCommand() *cobra.Command
- func NewSetConfigCommand() *cobra.Command
- func NewShowAllConfigCommand() *cobra.Command
- func NewShowConfigCommand() *cobra.Command
- func NewShowOperatorCommand() *cobra.Command
- func NewShowSchedulerCommand() *cobra.Command
- func NewShuffleLeaderSchedulerCommand() *cobra.Command
- func NewShuffleRegionSchedulerCommand() *cobra.Command
- func NewStoreCommand() *cobra.Command
- func NewTSOCommand() *cobra.Command
- func NewTransferLeaderCommand() *cobra.Command
- func NewTransferPeerCommand() *cobra.Command
- func NewTransferRegionCommand() *cobra.Command
Constants ¶
const UsageTemplate = `` /* 822-byte string literal not displayed */
UsageTemplate will used to generate a help information
Variables ¶
This section is empty.
Functions ¶
func InitPDClient ¶
InitPDClient initialize pd client from cmd
func NewAddOperatorCommand ¶
NewAddOperatorCommand returns a command to add operators.
func NewAddSchedulerCommand ¶
NewAddSchedulerCommand returns a command to add scheduler.
func NewConfigCommand ¶
NewConfigCommand return a config subcommand of rootCmd
func NewDeleteMemberCommand ¶
NewDeleteMemberCommand return a delete subcommand of memberCmd
func NewDeleteStoreCommand ¶
NewDeleteStoreCommand return a delete subcommand of storeCmd
func NewEvictLeaderSchedulerCommand ¶
NewEvictLeaderSchedulerCommand returns a command to add a evict-leader-scheduler.
func NewExitCommand ¶
NewExitCommand New a exit subcommand of the rootCmd
func NewGrantLeaderSchedulerCommand ¶
NewGrantLeaderSchedulerCommand returns a command to add a grant-leader-scheduler.
func NewLabelCommand ¶
NewLabelCommand return a member subcommand of rootCmd
func NewLabelListStoresCommand ¶
NewLabelListStoresCommand return a label subcommand of labelCmd
func NewLeaderMemberCommand ¶
NewLeaderMemberCommand return a leader subcommand of memberCmd
func NewMemberCommand ¶
NewMemberCommand return a member subcommand of rootCmd
func NewOperatorCommand ¶
NewOperatorCommand returns a operator command.
func NewPingCommand ¶
NewPingCommand return a ping subcommand of rootCmd
func NewRegionCommand ¶
NewRegionCommand return a region subcommand of rootCmd
func NewRegionWithKeyCommand ¶
NewRegionWithKeyCommand return a region with key subcommand of regionCmd
func NewRemoveOperatorCommand ¶
NewRemoveOperatorCommand returns a command to remove operators.
func NewRemoveSchedulerCommand ¶
NewRemoveSchedulerCommand returns a command to remove scheduler.
func NewSchedulerCommand ¶
NewSchedulerCommand returns a scheduler command.
func NewSetConfigCommand ¶
NewSetConfigCommand return a set subcommand of configCmd
func NewShowAllConfigCommand ¶
NewShowAllConfigCommand return a show all subcommand of show subcommand
func NewShowConfigCommand ¶
NewShowConfigCommand return a show subcommand of configCmd
func NewShowOperatorCommand ¶
NewShowOperatorCommand returns a command to show operators.
func NewShowSchedulerCommand ¶
NewShowSchedulerCommand returns a command to show schedulers.
func NewShuffleLeaderSchedulerCommand ¶
NewShuffleLeaderSchedulerCommand returns a command to add a shuffle-leader-scheduler.
func NewShuffleRegionSchedulerCommand ¶
NewShuffleRegionSchedulerCommand returns a command to add a shuffle-region-scheduler.
func NewStoreCommand ¶
NewStoreCommand return a store subcommand of rootCmd
func NewTSOCommand ¶
NewTSOCommand return a ping subcommand of rootCmd
func NewTransferLeaderCommand ¶
NewTransferLeaderCommand returns a command to transfer leader.
func NewTransferPeerCommand ¶
NewTransferPeerCommand returns a command to transfer region.
func NewTransferRegionCommand ¶
NewTransferRegionCommand returns a command to transfer region.
Types ¶
This section is empty.