Versions in this module Expand all Collapse all v1 v1.0.0 Aug 15, 2021 Changes in this version + var MockVerifier = mockVerif + func AddOpFinish(ctx context.Context) (context.Context, func()) + func CommDR(in []byte) (out [32]byte) + type SectorMgr struct + func NewMockSectorMgr(genesisSectors []abi.SectorID) *SectorMgr + func (mgr *SectorMgr) AcquireSectorNumber() (abi.SectorNumber, error) + func (mgr *SectorMgr) AddPiece(ctx context.Context, sectorID storage.SectorRef, ...) (abi.PieceInfo, error) + func (mgr *SectorMgr) CheckProvable(ctx context.Context, pp abi.RegisteredPoStProof, ids []storage.SectorRef, ...) (map[abi.SectorID]string, error) + func (mgr *SectorMgr) FinalizeSector(context.Context, storage.SectorRef, []storage.Range) error + func (mgr *SectorMgr) ForceState(sid storage.SectorRef, st int) error + func (mgr *SectorMgr) GenerateWindowPoSt(ctx context.Context, minerID abi.ActorID, sectorInfo []proof2.SectorInfo, ...) ([]proof2.PoStProof, []abi.SectorID, error) + func (mgr *SectorMgr) GenerateWinningPoSt(ctx context.Context, minerID abi.ActorID, sectorInfo []proof2.SectorInfo, ...) ([]proof2.PoStProof, error) + func (mgr *SectorMgr) MarkCorrupted(sid storage.SectorRef, corrupted bool) error + func (mgr *SectorMgr) MarkFailed(sid storage.SectorRef, failed bool) error + func (mgr *SectorMgr) NewSector(ctx context.Context, sector storage.SectorRef) error + func (mgr *SectorMgr) ReadPiece(ctx context.Context, w io.Writer, sectorID storage.SectorRef, ...) error + func (mgr *SectorMgr) ReleaseUnsealed(ctx context.Context, sector storage.SectorRef, safeToFree []storage.Range) error + func (mgr *SectorMgr) Remove(ctx context.Context, sector storage.SectorRef) error + func (mgr *SectorMgr) ReturnAddPiece(ctx context.Context, callID storiface.CallID, pi abi.PieceInfo, ...) error + func (mgr *SectorMgr) ReturnFetch(ctx context.Context, callID storiface.CallID, err *storiface.CallError) error + func (mgr *SectorMgr) ReturnFinalizeSector(ctx context.Context, callID storiface.CallID, err *storiface.CallError) error + func (mgr *SectorMgr) ReturnMoveStorage(ctx context.Context, callID storiface.CallID, err *storiface.CallError) error + func (mgr *SectorMgr) ReturnReadPiece(ctx context.Context, callID storiface.CallID, ok bool, ...) error + func (mgr *SectorMgr) ReturnReleaseUnsealed(ctx context.Context, callID storiface.CallID, err *storiface.CallError) error + func (mgr *SectorMgr) ReturnSealCommit1(ctx context.Context, callID storiface.CallID, out storage.Commit1Out, ...) error + func (mgr *SectorMgr) ReturnSealCommit2(ctx context.Context, callID storiface.CallID, proof storage.Proof, ...) error + func (mgr *SectorMgr) ReturnSealPreCommit1(ctx context.Context, callID storiface.CallID, p1o storage.PreCommit1Out, ...) error + func (mgr *SectorMgr) ReturnSealPreCommit2(ctx context.Context, callID storiface.CallID, sealed storage.SectorCids, ...) error + func (mgr *SectorMgr) ReturnUnsealPiece(ctx context.Context, callID storiface.CallID, err *storiface.CallError) error + func (mgr *SectorMgr) SealCommit1(ctx context.Context, sid storage.SectorRef, ticket abi.SealRandomness, ...) (output storage.Commit1Out, err error) + func (mgr *SectorMgr) SealCommit2(ctx context.Context, sid storage.SectorRef, phase1Out storage.Commit1Out) (proof storage.Proof, err error) + func (mgr *SectorMgr) SealPreCommit1(ctx context.Context, sid storage.SectorRef, ticket abi.SealRandomness, ...) (out storage.PreCommit1Out, err error) + func (mgr *SectorMgr) SealPreCommit2(ctx context.Context, sid storage.SectorRef, phase1Out storage.PreCommit1Out) (cids storage.SectorCids, err error) + func (mgr *SectorMgr) StageFakeData(mid abi.ActorID, spt abi.RegisteredSealProof) (storage.SectorRef, []abi.PieceInfo, error)