Documentation ¶
Index ¶
- func InitHTTPSClient(CAPath, CertPath, KeyPath string) error
- func NewAddLearnerCommand() *cobra.Command
- func NewAddOperatorCommand() *cobra.Command
- func NewAddPeerCommand() *cobra.Command
- func NewAddSchedulerCommand() *cobra.Command
- func NewBalanceAdjacentRegionSchedulerCommand() *cobra.Command
- func NewBalanceHotRegionSchedulerCommand() *cobra.Command
- func NewBalanceLeaderSchedulerCommand() *cobra.Command
- func NewBalanceRegionSchedulerCommand() *cobra.Command
- func NewCheckOperatorCommand() *cobra.Command
- func NewClusterCommand() *cobra.Command
- func NewConfigCommand() *cobra.Command
- func NewConfigSchedulerCommand() *cobra.Command
- func NewDeleteConfigCommand() *cobra.Command
- func NewDeleteLabelPropertyConfigCommand() *cobra.Command
- func NewDeleteMemberCommand() *cobra.Command
- func NewDeleteStoreByAddrCommand() *cobra.Command
- func NewDeleteStoreCommand() *cobra.Command
- func NewEvictLeaderSchedulerCommand() *cobra.Command
- func NewExitCommand() *cobra.Command
- func NewGrantLeaderSchedulerCommand() *cobra.Command
- func NewHealthCommand() *cobra.Command
- func NewHotReadRegionCommand() *cobra.Command
- func NewHotSpotCommand() *cobra.Command
- func NewHotStoreCommand() *cobra.Command
- func NewHotWriteRegionCommand() *cobra.Command
- func NewLabelCommand() *cobra.Command
- func NewLabelListStoresCommand() *cobra.Command
- func NewLabelSchedulerCommand() *cobra.Command
- func NewLabelStoreCommand() *cobra.Command
- func NewLeaderMemberCommand() *cobra.Command
- func NewLoadPluginCommand() *cobra.Command
- func NewLogCommand() *cobra.Command
- func NewMemberCommand() *cobra.Command
- func NewMergeRegionCommand() *cobra.Command
- func NewOperatorCommand() *cobra.Command
- func NewPauseSchedulerCommand() *cobra.Command
- func NewPingCommand() *cobra.Command
- func NewPlacementRulesCommand() *cobra.Command
- func NewPluginCommand() *cobra.Command
- func NewRandomMergeSchedulerCommand() *cobra.Command
- func NewRegionCommand() *cobra.Command
- func NewRegionWithCheckCommand() *cobra.Command
- func NewRegionWithKeyCommand() *cobra.Command
- func NewRegionWithSiblingCommand() *cobra.Command
- func NewRegionWithStoreCommand() *cobra.Command
- func NewRegionsWithStartKeyCommand() *cobra.Command
- func NewRemoveOperatorCommand() *cobra.Command
- func NewRemovePeerCommand() *cobra.Command
- func NewRemoveSchedulerCommand() *cobra.Command
- func NewRemoveTombStoneCommand() *cobra.Command
- func NewRemoveTombStoneCommandDeprecated() *cobra.Command
- func NewResumeSchedulerCommand() *cobra.Command
- func NewScatterRangeSchedulerCommand() *cobra.Command
- func NewScatterRegionCommand() *cobra.Command
- func NewSchedulerCommand() *cobra.Command
- func NewSetAllLimitCommand() *cobra.Command
- func NewSetClusterVersionCommand() *cobra.Command
- func NewSetConfigCommand() *cobra.Command
- func NewSetLabelPropertyCommand() *cobra.Command
- func NewSetStoreWeightCommand() *cobra.Command
- func NewSetStoresCommand() *cobra.Command
- func NewShowAllConfigCommand() *cobra.Command
- func NewShowAllStoresLimitCommand() *cobra.Command
- func NewShowClusterVersionCommand() *cobra.Command
- func NewShowConfigCommand() *cobra.Command
- func NewShowLabelPropertyCommand() *cobra.Command
- func NewShowOperatorCommand() *cobra.Command
- func NewShowReplicationConfigCommand() *cobra.Command
- func NewShowScheduleConfigCommand() *cobra.Command
- func NewShowSchedulerCommand() *cobra.Command
- func NewShowStoresCommand() *cobra.Command
- func NewShuffleHotRegionSchedulerCommand() *cobra.Command
- func NewShuffleLeaderSchedulerCommand() *cobra.Command
- func NewShuffleRegionSchedulerCommand() *cobra.Command
- func NewSplitRegionCommand() *cobra.Command
- func NewStoreCommand() *cobra.Command
- func NewStoreLimitCommand() *cobra.Command
- func NewStoreLimitSceneCommand() *cobra.Command
- func NewStoresCommand() *cobra.Command
- func NewTSOCommand() *cobra.Command
- func NewTransferLeaderCommand() *cobra.Command
- func NewTransferPeerCommand() *cobra.Command
- func NewTransferRegionCommand() *cobra.Command
- func NewUnloadPluginCommand() *cobra.Command
- type BodyOption
- type DoFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitHTTPSClient ¶
InitHTTPSClient creates https client with ca file
func NewAddLearnerCommand ¶
NewAddLearnerCommand returns a command to add region learner.
func NewAddOperatorCommand ¶
NewAddOperatorCommand returns a command to add operators.
func NewAddPeerCommand ¶
NewAddPeerCommand returns a command to add region peer.
func NewAddSchedulerCommand ¶
NewAddSchedulerCommand returns a command to add scheduler.
func NewBalanceAdjacentRegionSchedulerCommand ¶
NewBalanceAdjacentRegionSchedulerCommand returns a command to add a balance-adjacent-region-scheduler.
func NewBalanceHotRegionSchedulerCommand ¶
NewBalanceHotRegionSchedulerCommand returns a command to add a balance-hot-region-scheduler.
func NewBalanceLeaderSchedulerCommand ¶
NewBalanceLeaderSchedulerCommand returns a command to add a balance-leader-scheduler.
func NewBalanceRegionSchedulerCommand ¶
NewBalanceRegionSchedulerCommand returns a command to add a balance-region-scheduler.
func NewCheckOperatorCommand ¶
NewCheckOperatorCommand returns a command to show status of the operator.
func NewClusterCommand ¶
NewClusterCommand return a cluster subcommand of rootCmd
func NewConfigCommand ¶
NewConfigCommand return a config subcommand of rootCmd
func NewConfigSchedulerCommand ¶ added in v3.1.0
NewConfigSchedulerCommand returns commands to config scheduler.
func NewDeleteConfigCommand ¶
NewDeleteConfigCommand a set subcommand of cfgCmd
func NewDeleteLabelPropertyConfigCommand ¶
NewDeleteLabelPropertyConfigCommand a set subcommand of delete subcommand.
func NewDeleteMemberCommand ¶
NewDeleteMemberCommand return a delete subcommand of memberCmd
func NewDeleteStoreByAddrCommand ¶ added in v3.1.0
NewDeleteStoreByAddrCommand returns a subcommand of delete
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 NewHealthCommand ¶
NewHealthCommand return a health subcommand of rootCmd
func NewHotReadRegionCommand ¶
NewHotReadRegionCommand return a hot read regions subcommand of hotSpotCmd
func NewHotSpotCommand ¶
NewHotSpotCommand return a hot subcommand of rootCmd
func NewHotStoreCommand ¶
NewHotStoreCommand return a hot stores subcommand of hotSpotCmd
func NewHotWriteRegionCommand ¶
NewHotWriteRegionCommand return a hot regions subcommand of hotSpotCmd
func NewLabelCommand ¶
NewLabelCommand return a member subcommand of rootCmd
func NewLabelListStoresCommand ¶
NewLabelListStoresCommand return a label subcommand of labelCmd
func NewLabelSchedulerCommand ¶
NewLabelSchedulerCommand returns a command to add a label-scheduler.
func NewLabelStoreCommand ¶
NewLabelStoreCommand returns a label subcommand of storeCmd.
func NewLeaderMemberCommand ¶
NewLeaderMemberCommand return a leader subcommand of memberCmd
func NewLoadPluginCommand ¶ added in v3.1.0
NewLoadPluginCommand return a load subcommand of plugin command
func NewLogCommand ¶
NewLogCommand New a log subcommand of the rootCmd
func NewMemberCommand ¶
NewMemberCommand return a member subcommand of rootCmd
func NewMergeRegionCommand ¶
NewMergeRegionCommand returns a command to merge two regions.
func NewOperatorCommand ¶
NewOperatorCommand returns a operator command.
func NewPauseSchedulerCommand ¶ added in v3.1.0
NewPauseSchedulerCommand returns a command to pause a scheduler.
func NewPingCommand ¶
NewPingCommand return a ping subcommand of rootCmd
func NewPlacementRulesCommand ¶ added in v3.1.0
NewPlacementRulesCommand placement rules subcommand
func NewPluginCommand ¶ added in v3.1.0
NewPluginCommand a set subcommand of plugin command
func NewRandomMergeSchedulerCommand ¶
NewRandomMergeSchedulerCommand returns a command to add a random-merge-scheduler.
func NewRegionCommand ¶
NewRegionCommand returns a region subcommand of rootCmd
func NewRegionWithCheckCommand ¶
NewRegionWithCheckCommand returns a region with check subcommand of regionCmd
func NewRegionWithKeyCommand ¶
NewRegionWithKeyCommand return a region with key subcommand of regionCmd
func NewRegionWithSiblingCommand ¶
NewRegionWithSiblingCommand returns a region with sibling subcommand of regionCmd
func NewRegionWithStoreCommand ¶
NewRegionWithStoreCommand returns regions with store subcommand of regionCmd
func NewRegionsWithStartKeyCommand ¶
NewRegionsWithStartKeyCommand returns regions from startkey subcommand of regionCmd.
func NewRemoveOperatorCommand ¶
NewRemoveOperatorCommand returns a command to remove operators.
func NewRemovePeerCommand ¶
NewRemovePeerCommand returns a command to add region peer.
func NewRemoveSchedulerCommand ¶
NewRemoveSchedulerCommand returns a command to remove scheduler.
func NewRemoveTombStoneCommand ¶
NewRemoveTombStoneCommand returns a tombstone subcommand of storesCmd.
func NewRemoveTombStoneCommandDeprecated ¶ added in v3.1.0
NewRemoveTombStoneCommandDeprecated returns a tombstone subcommand of storesCmd.
func NewResumeSchedulerCommand ¶ added in v3.1.0
NewResumeSchedulerCommand returns a command to resume a scheduler.
func NewScatterRangeSchedulerCommand ¶
NewScatterRangeSchedulerCommand returns a command to add a scatter-range-scheduler.
func NewScatterRegionCommand ¶
NewScatterRegionCommand returns a command to scatter a region.
func NewSchedulerCommand ¶
NewSchedulerCommand returns a scheduler command.
func NewSetAllLimitCommand ¶
NewSetAllLimitCommand returns a set limit subcommand of set command.
func NewSetClusterVersionCommand ¶
NewSetClusterVersionCommand creates a set subcommand of set subcommand
func NewSetConfigCommand ¶
NewSetConfigCommand return a set subcommand of configCmd
func NewSetLabelPropertyCommand ¶
NewSetLabelPropertyCommand creates a set subcommand of set subcommand
func NewSetStoreWeightCommand ¶
NewSetStoreWeightCommand returns a weight subcommand of storeCmd.
func NewSetStoresCommand ¶
NewSetStoresCommand returns a set subcommand of storesCmd.
func NewShowAllConfigCommand ¶
NewShowAllConfigCommand return a show all subcommand of show subcommand
func NewShowAllStoresLimitCommand ¶ added in v3.1.1
NewShowAllStoresLimitCommand return a show limit subcommand of show command
func NewShowClusterVersionCommand ¶
NewShowClusterVersionCommand returns a cluster version subcommand of show subcommand.
func NewShowConfigCommand ¶
NewShowConfigCommand return a show subcommand of configCmd
func NewShowLabelPropertyCommand ¶
NewShowLabelPropertyCommand returns a show label property subcommand of show subcommand.
func NewShowOperatorCommand ¶
NewShowOperatorCommand returns a command to show operators.
func NewShowReplicationConfigCommand ¶
NewShowReplicationConfigCommand return a show all subcommand of show subcommand
func NewShowScheduleConfigCommand ¶ added in v3.1.0
NewShowScheduleConfigCommand return a show all subcommand of show subcommand
func NewShowSchedulerCommand ¶
NewShowSchedulerCommand returns a command to show schedulers.
func NewShowStoresCommand ¶
NewShowStoresCommand returns a show subcommand of storesCmd.
func NewShuffleHotRegionSchedulerCommand ¶
NewShuffleHotRegionSchedulerCommand returns a command to add a shuffle-hot-region-scheduler.
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 NewSplitRegionCommand ¶
NewSplitRegionCommand returns a command to split a region.
func NewStoreCommand ¶
NewStoreCommand return a stores subcommand of rootCmd
func NewStoreLimitCommand ¶ added in v3.1.0
NewStoreLimitCommand returns a limit subcommand of storeCmd.
func NewStoreLimitSceneCommand ¶ added in v3.1.0
NewStoreLimitSceneCommand returns a limit-scene command for store command
func NewStoresCommand ¶
NewStoresCommand returns 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.
func NewUnloadPluginCommand ¶ added in v3.1.0
NewUnloadPluginCommand return a unload subcommand of plugin command
Types ¶
type BodyOption ¶ added in v3.1.0
type BodyOption func(*bodyOption)
BodyOption sets the type and content of the body