Help us shape the future of Go! Take the 2026 Go Developer Survey

command

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2017 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const UsageTemplate = `` /* 822-byte string literal not displayed */

UsageTemplate will used to generate a help information

Variables

This section is empty.

Functions

func InitPDClient

func InitPDClient(cmd *cobra.Command) error

InitPDClient initialize pd client from cmd

func NewAddOperatorCommand

func NewAddOperatorCommand() *cobra.Command

NewAddOperatorCommand returns a command to add operators.

func NewAddPeerCommand

func NewAddPeerCommand() *cobra.Command

NewAddPeerCommand returns a command to add region peer.

func NewAddSchedulerCommand

func NewAddSchedulerCommand() *cobra.Command

NewAddSchedulerCommand returns a command to add scheduler.

func NewAddTableIDCommand

func NewAddTableIDCommand() *cobra.Command

NewAddTableIDCommand returns a add sub-command of namespaceCmd

func NewClusterCommand

func NewClusterCommand() *cobra.Command

NewClusterCommand return a cluster subcommand of rootCmd

func NewConfigCommand

func NewConfigCommand() *cobra.Command

NewConfigCommand return a config subcommand of rootCmd

func NewCreateNamespaceCommand

func NewCreateNamespaceCommand() *cobra.Command

NewCreateNamespaceCommand returns a create sub-command of namespaceCmd

func NewDeleteMemberCommand

func NewDeleteMemberCommand() *cobra.Command

NewDeleteMemberCommand return a delete subcommand of memberCmd

func NewDeleteStoreCommand

func NewDeleteStoreCommand() *cobra.Command

NewDeleteStoreCommand return a delete subcommand of storeCmd

func NewEvictLeaderSchedulerCommand

func NewEvictLeaderSchedulerCommand() *cobra.Command

NewEvictLeaderSchedulerCommand returns a command to add a evict-leader-scheduler.

func NewExitCommand

func NewExitCommand() *cobra.Command

NewExitCommand New a exit subcommand of the rootCmd

func NewGrantLeaderSchedulerCommand

func NewGrantLeaderSchedulerCommand() *cobra.Command

NewGrantLeaderSchedulerCommand returns a command to add a grant-leader-scheduler.

func NewHealthCommand

func NewHealthCommand() *cobra.Command

NewHealthCommand return a health subcommand of rootCmd

func NewHotReadRegionCommand

func NewHotReadRegionCommand() *cobra.Command

NewHotReadRegionCommand return a hot read regions subcommand of hotSpotCmd

func NewHotSpotCommand

func NewHotSpotCommand() *cobra.Command

NewHotSpotCommand return a hot subcommand of rootCmd

func NewHotStoreCommand

func NewHotStoreCommand() *cobra.Command

NewHotStoreCommand return a hot stores subcommand of hotSpotCmd

func NewHotWriteRegionCommand

func NewHotWriteRegionCommand() *cobra.Command

NewHotWriteRegionCommand return a hot regions subcommand of hotSpotCmd

func NewLabelCommand

func NewLabelCommand() *cobra.Command

NewLabelCommand return a member subcommand of rootCmd

func NewLabelListStoresCommand

func NewLabelListStoresCommand() *cobra.Command

NewLabelListStoresCommand return a label subcommand of labelCmd

func NewLabelStoreCommand

func NewLabelStoreCommand() *cobra.Command

NewLabelStoreCommand returns a label subcommand of storeCmd.

func NewLeaderMemberCommand

func NewLeaderMemberCommand() *cobra.Command

NewLeaderMemberCommand return a leader subcommand of memberCmd

func NewMemberCommand

func NewMemberCommand() *cobra.Command

NewMemberCommand return a member subcommand of rootCmd

func NewOperatorCommand

func NewOperatorCommand() *cobra.Command

NewOperatorCommand returns a operator command.

func NewPingCommand

func NewPingCommand() *cobra.Command

NewPingCommand return a ping subcommand of rootCmd

func NewRegionCommand

func NewRegionCommand() *cobra.Command

NewRegionCommand return a region subcommand of rootCmd

func NewRegionWithKeyCommand

func NewRegionWithKeyCommand() *cobra.Command

NewRegionWithKeyCommand return a region with key subcommand of regionCmd

func NewRemoveNamespaceStoreCommand

func NewRemoveNamespaceStoreCommand() *cobra.Command

NewRemoveNamespaceStoreCommand returns a rm subcommand of storeNsCmd.

func NewRemoveOperatorCommand

func NewRemoveOperatorCommand() *cobra.Command

NewRemoveOperatorCommand returns a command to remove operators.

func NewRemovePeerCommand

func NewRemovePeerCommand() *cobra.Command

NewRemovePeerCommand returns a command to add region peer.

func NewRemoveSchedulerCommand

func NewRemoveSchedulerCommand() *cobra.Command

NewRemoveSchedulerCommand returns a command to remove scheduler.

func NewRemoveTableIDCommand

func NewRemoveTableIDCommand() *cobra.Command

NewRemoveTableIDCommand returns a remove sub-command of namespaceCmd

func NewSchedulerCommand

func NewSchedulerCommand() *cobra.Command

NewSchedulerCommand returns a scheduler command.

func NewSetConfigCommand

func NewSetConfigCommand() *cobra.Command

NewSetConfigCommand return a set subcommand of configCmd

func NewSetNamespaceStoreCommand

func NewSetNamespaceStoreCommand() *cobra.Command

NewSetNamespaceStoreCommand returns a set subcommand of storeNsCmd.

func NewSetStoreWeightCommand

func NewSetStoreWeightCommand() *cobra.Command

NewSetStoreWeightCommand returns a weight subcommand of storeCmd.

func NewShowAllConfigCommand

func NewShowAllConfigCommand() *cobra.Command

NewShowAllConfigCommand return a show all subcommand of show subcommand

func NewShowConfigCommand

func NewShowConfigCommand() *cobra.Command

NewShowConfigCommand return a show subcommand of configCmd

func NewShowOperatorCommand

func NewShowOperatorCommand() *cobra.Command

NewShowOperatorCommand returns a command to show operators.

func NewShowSchedulerCommand

func NewShowSchedulerCommand() *cobra.Command

NewShowSchedulerCommand returns a command to show schedulers.

func NewShuffleLeaderSchedulerCommand

func NewShuffleLeaderSchedulerCommand() *cobra.Command

NewShuffleLeaderSchedulerCommand returns a command to add a shuffle-leader-scheduler.

func NewShuffleRegionSchedulerCommand

func NewShuffleRegionSchedulerCommand() *cobra.Command

NewShuffleRegionSchedulerCommand returns a command to add a shuffle-region-scheduler.

func NewStoreCommand

func NewStoreCommand() *cobra.Command

NewStoreCommand return a store subcommand of rootCmd

func NewTSOCommand

func NewTSOCommand() *cobra.Command

NewTSOCommand return a ping subcommand of rootCmd

func NewTableNamespaceCommand

func NewTableNamespaceCommand() *cobra.Command

NewTableNamespaceCommand return a table namespace sub-command of rootCmd

func NewTransferLeaderCommand

func NewTransferLeaderCommand() *cobra.Command

NewTransferLeaderCommand returns a command to transfer leader.

func NewTransferPeerCommand

func NewTransferPeerCommand() *cobra.Command

NewTransferPeerCommand returns a command to transfer region.

func NewTransferRegionCommand

func NewTransferRegionCommand() *cobra.Command

NewTransferRegionCommand returns a command to transfer region.

Types

This section is empty.

Jump to

Keyboard shortcuts

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