Documentation ¶
Index ¶
- type MinerStub
- func (ms *MinerStub) ForDeal(dp *types.DealParams, publishCid, finalPublishCid cid.Cid, dealId abi.DealID, ...) *MinerStubBuilder
- func (ms *MinerStub) UnblockAddPiece(id uuid.UUID)
- func (ms *MinerStub) UnblockCommp(id uuid.UUID)
- func (ms *MinerStub) UnblockPublish(id uuid.UUID)
- func (ms *MinerStub) UnblockWaitForPublish(id uuid.UUID)
- type MinerStubBuilder
- func (mb *MinerStubBuilder) Output() *StubbedMinerOutput
- func (mb *MinerStubBuilder) SetupAddPiece(blocking bool) *MinerStubBuilder
- func (mb *MinerStubBuilder) SetupAddPieceFailure(err error)
- func (mb *MinerStubBuilder) SetupAnnounce(blocking bool, announce bool) *MinerStubBuilder
- func (mb *MinerStubBuilder) SetupCommp(blocking bool, optional bool) *MinerStubBuilder
- func (mb *MinerStubBuilder) SetupCommpFailure(err error)
- func (mb *MinerStubBuilder) SetupNoOp() *MinerStubBuilder
- func (mb *MinerStubBuilder) SetupPublish(blocking bool) *MinerStubBuilder
- func (mb *MinerStubBuilder) SetupPublishConfirm(blocking bool) *MinerStubBuilder
- func (mb *MinerStubBuilder) SetupPublishConfirmFailure(err error) *MinerStubBuilder
- func (mb *MinerStubBuilder) SetupPublishFailure(err error) *MinerStubBuilder
- type StubbedMinerOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MinerStub ¶
type MinerStub struct { *mock_types.MockDealPublisher *mock_types.MockChainDealManager *mock_types.MockPieceAdder *mock_types.MockCommpCalculator *mock_types.MockIndexProvider *mock_sealingpipeline.MockAPI // contains filtered or unexported fields }
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 (*MinerStub) UnblockCommp ¶ added in v1.4.0
func (*MinerStub) UnblockPublish ¶
func (*MinerStub) UnblockWaitForPublish ¶
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 }
Click to show internal directories.
Click to hide internal directories.