operatorutil

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAddPeer

func CheckAddPeer(re *require.Assertions, op *operator.Operator, kind operator.OpKind, storeID uint64)

CheckAddPeer checks if the operator is to add peer on specified store.

func CheckMultiTargetTransferLeader

func CheckMultiTargetTransferLeader(re *require.Assertions, op *operator.Operator, kind operator.OpKind, sourceID uint64, targetIDs []uint64)

CheckMultiTargetTransferLeader checks if the operator is to transfer leader from the specified source to one of the target stores.

func CheckRemovePeer

func CheckRemovePeer(re *require.Assertions, op *operator.Operator, storeID uint64)

CheckRemovePeer checks if the operator is to remove peer on specified store.

func CheckSteps

func CheckSteps(re *require.Assertions, op *operator.Operator, steps []operator.OpStep)

CheckSteps checks if the operator matches the given steps.

func CheckTransferLeader

func CheckTransferLeader(re *require.Assertions, op *operator.Operator, kind operator.OpKind, sourceID, targetID uint64)

CheckTransferLeader checks if the operator is to transfer leader between the specified source and target stores.

func CheckTransferLeaderFrom

func CheckTransferLeaderFrom(re *require.Assertions, op *operator.Operator, kind operator.OpKind, sourceID uint64)

CheckTransferLeaderFrom checks if the operator is to transfer leader out of the specified store.

func CheckTransferLearner

func CheckTransferLearner(re *require.Assertions, op *operator.Operator, kind operator.OpKind, sourceID, targetID uint64)

CheckTransferLearner checks if the operator is to transfer learner between the specified source and target stores.

func CheckTransferPeer

func CheckTransferPeer(re *require.Assertions, op *operator.Operator, kind operator.OpKind, sourceID, targetID uint64)

CheckTransferPeer checks if the operator is to transfer peer between the specified source and target stores.

func CheckTransferPeerWithLeaderTransfer

func CheckTransferPeerWithLeaderTransfer(re *require.Assertions, op *operator.Operator, kind operator.OpKind, sourceID, targetID uint64)

CheckTransferPeerWithLeaderTransfer checks if the operator is to transfer peer between the specified source and target stores and it meanwhile transfers the leader out of source store.

func CheckTransferPeerWithLeaderTransferFrom

func CheckTransferPeerWithLeaderTransferFrom(re *require.Assertions, op *operator.Operator, kind operator.OpKind, sourceID uint64)

CheckTransferPeerWithLeaderTransferFrom checks if the operator is to transfer peer out of the specified store and it meanwhile transfers the leader out of the store.

Types

This section is empty.

Jump to

Keyboard shortcuts

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