pdctl

package
v4.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckRegionsInfo

func CheckRegionsInfo(c *check.C, output api.RegionsInfo, expected []*core.RegionInfo)

CheckRegionsInfo is used to check the test results.

func CheckStoresInfo

func CheckStoresInfo(c *check.C, stores []*api.StoreInfo, want []*metapb.Store)

CheckStoresInfo is used to check the test results.

func ExecuteCommandC

func ExecuteCommandC(root *cobra.Command, args ...string) (c *cobra.Command, output []byte, err error)

ExecuteCommandC is used for test purpose.

func GetEcho

func GetEcho(args []string) string

GetEcho is used to get echo from stdout.

func InitCommand

func InitCommand() *cobra.Command

InitCommand is used to initialize command.

func MustPutRegion

func MustPutRegion(c *check.C, cluster *tests.TestCluster, regionID, storeID uint64, start, end []byte, opts ...core.RegionCreateOption) *core.RegionInfo

MustPutRegion is used for test purpose.

func MustPutStore

func MustPutStore(c *check.C, svr *server.Server, id uint64, state metapb.StoreState, labels []*metapb.StoreLabel)

MustPutStore is used for test purpose.

Types

This section is empty.

Jump to

Keyboard shortcuts

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