smtestutil

package
v1.7.5 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: Apache-2.0, MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MinerStub

func NewMinerStub

func NewMinerStub(ctrl *gomock.Controller) *MinerStub

func (*MinerStub) ForDeal

func (ms *MinerStub) ForDeal(dp *types.DealParams, publishCid, finalPublishCid cid.Cid, dealId abi.DealID, sectorsStatusDealId abi.DealID, sectorId abi.SectorNumber,
	offset abi.PaddedPieceSize) *MinerStubBuilder

func (*MinerStub) UnblockAddPiece

func (ms *MinerStub) UnblockAddPiece(id uuid.UUID)

func (*MinerStub) UnblockCommp added in v1.4.0

func (ms *MinerStub) UnblockCommp(id uuid.UUID)

func (*MinerStub) UnblockPublish

func (ms *MinerStub) UnblockPublish(id uuid.UUID)

func (*MinerStub) UnblockWaitForPublish

func (ms *MinerStub) UnblockWaitForPublish(id uuid.UUID)

type MinerStubBuilder

type MinerStubBuilder struct {
	// contains filtered or unexported fields
}

func (*MinerStubBuilder) Output

func (mb *MinerStubBuilder) Output() *StubbedMinerOutput

func (*MinerStubBuilder) SetupAddPiece

func (mb *MinerStubBuilder) SetupAddPiece(blocking bool) *MinerStubBuilder

func (*MinerStubBuilder) SetupAddPieceFailure

func (mb *MinerStubBuilder) SetupAddPieceFailure(err error)

func (*MinerStubBuilder) SetupAnnounce added in v1.5.1

func (mb *MinerStubBuilder) SetupAnnounce(blocking bool, announce bool) *MinerStubBuilder

func (*MinerStubBuilder) SetupCommp added in v1.4.0

func (mb *MinerStubBuilder) SetupCommp(blocking bool, optional bool) *MinerStubBuilder

func (*MinerStubBuilder) SetupCommpFailure added in v1.4.0

func (mb *MinerStubBuilder) SetupCommpFailure(err error)

func (*MinerStubBuilder) SetupNoOp

func (mb *MinerStubBuilder) SetupNoOp() *MinerStubBuilder

func (*MinerStubBuilder) SetupPublish

func (mb *MinerStubBuilder) SetupPublish(blocking bool) *MinerStubBuilder

func (*MinerStubBuilder) SetupPublishConfirm

func (mb *MinerStubBuilder) SetupPublishConfirm(blocking bool) *MinerStubBuilder

func (*MinerStubBuilder) SetupPublishConfirmFailure

func (mb *MinerStubBuilder) SetupPublishConfirmFailure(err error) *MinerStubBuilder

func (*MinerStubBuilder) SetupPublishFailure

func (mb *MinerStubBuilder) SetupPublishFailure(err error) *MinerStubBuilder

type StubbedMinerOutput

type StubbedMinerOutput struct {
	PublishCid          cid.Cid
	FinalPublishCid     cid.Cid
	DealID              abi.DealID
	SectorsStatusDealID abi.DealID
	SealedBytes         *[]byte
	SectorID            abi.SectorNumber
	Offset              abi.PaddedPieceSize
}

Jump to

Keyboard shortcuts

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