pdctl

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckRegionInfo

func CheckRegionInfo(re *require.Assertions, output *api.RegionInfo, expected *core.RegionInfo)

CheckRegionInfo is used to check the test results.

func CheckRegionsInfo

func CheckRegionsInfo(re *require.Assertions, output *api.RegionsInfo, expected []*core.RegionInfo)

CheckRegionsInfo is used to check the test results.

func CheckStoresInfo

func CheckStoresInfo(re *require.Assertions, stores []*api.StoreInfo, want []*api.StoreInfo)

CheckStoresInfo is used to check the test results. CheckStoresInfo will not check Store.State because this field has been omitted pd-ctl output

func ExecuteCommand

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

ExecuteCommand is used for test purpose.

func MustPutRegion

func MustPutRegion(re *require.Assertions, cluster *tests.TestCluster, regionID, storeID uint64, start, end []byte, opts ...core.RegionCreateOption) *core.RegionInfo

MustPutRegion is used for test purpose.

func MustPutStore

func MustPutStore(re *require.Assertions, svr *server.Server, store *metapb.Store)

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