Documentation ¶
Index ¶
- func CheckAddPeer(c *check.C, op *schedule.Operator, kind schedule.OperatorKind, storeID uint64)
- func CheckRemovePeer(c *check.C, op *schedule.Operator, storeID uint64)
- func CheckTransferLeader(c *check.C, op *schedule.Operator, kind schedule.OperatorKind, ...)
- func CheckTransferLeaderFrom(c *check.C, op *schedule.Operator, kind schedule.OperatorKind, sourceID uint64)
- func CheckTransferPeer(c *check.C, op *schedule.Operator, kind schedule.OperatorKind, ...)
- func CheckTransferPeerWithLeaderTransfer(c *check.C, op *schedule.Operator, kind schedule.OperatorKind, ...)
- func CheckTransferPeerWithLeaderTransferFrom(c *check.C, op *schedule.Operator, kind schedule.OperatorKind, sourceID uint64)
- func WaitUntil(c *check.C, f CheckFunc)
- type CheckFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAddPeer ¶
CheckAddPeer checks if the operator is to add peer on specified store.
func CheckRemovePeer ¶
CheckRemovePeer checks if the operator is to remove peer on specified store.
func CheckTransferLeader ¶
func CheckTransferLeader(c *check.C, op *schedule.Operator, kind schedule.OperatorKind, sourceID, targetID uint64)
CheckTransferLeader checks if the operator is to transfer leader between the specified source and target stores.
func CheckTransferLeaderFrom ¶
func CheckTransferLeaderFrom(c *check.C, op *schedule.Operator, kind schedule.OperatorKind, sourceID uint64)
CheckTransferLeaderFrom checks if the operator is to transfer leader out of the specified store.
func CheckTransferPeer ¶
func CheckTransferPeer(c *check.C, op *schedule.Operator, kind schedule.OperatorKind, sourceID, targetID uint64)
CheckTransferPeer checks if the operator is to transfer peer between the specified source and target stores.
func CheckTransferPeerWithLeaderTransfer ¶
func CheckTransferPeerWithLeaderTransfer(c *check.C, op *schedule.Operator, kind schedule.OperatorKind, 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(c *check.C, op *schedule.Operator, kind schedule.OperatorKind, 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.