Documentation ¶
Index ¶
- Variables
- func AddOpFinish(ctx context.Context) (context.Context, func())
- func CommDR(in []byte) (out [32]byte)
- type SectorMgr
- func (mgr *SectorMgr) AcquireSectorNumber() (abi.SectorNumber, error)
- func (mgr *SectorMgr) AddPiece(ctx context.Context, sectorId abi.SectorID, ...) (abi.PieceInfo, error)
- func (mgr *SectorMgr) CheckProvable(ctx context.Context, spt abi.RegisteredSealProof, ids []abi.SectorID) ([]abi.SectorID, error)
- func (mgr *SectorMgr) FinalizeSector(context.Context, abi.SectorID, []storage.Range) error
- func (mgr *SectorMgr) GenerateWindowPoSt(ctx context.Context, minerID abi.ActorID, sectorInfo []abi.SectorInfo, ...) ([]abi.PoStProof, []abi.SectorID, error)
- func (mgr *SectorMgr) GenerateWinningPoSt(ctx context.Context, minerID abi.ActorID, sectorInfo []abi.SectorInfo, ...) ([]abi.PoStProof, error)
- func (mgr *SectorMgr) MarkFailed(sid abi.SectorID, failed bool) error
- func (mgr *SectorMgr) NewSector(ctx context.Context, sector abi.SectorID) error
- func (mgr *SectorMgr) ReadPiece(ctx context.Context, w io.Writer, sectorID abi.SectorID, ...) error
- func (mgr *SectorMgr) ReleaseUnsealed(ctx context.Context, sector abi.SectorID, safeToFree []storage.Range) error
- func (mgr *SectorMgr) Remove(ctx context.Context, sector abi.SectorID) error
- func (mgr *SectorMgr) SealCommit1(ctx context.Context, sid abi.SectorID, ticket abi.SealRandomness, ...) (output storage.Commit1Out, err error)
- func (mgr *SectorMgr) SealCommit2(ctx context.Context, sid abi.SectorID, phase1Out storage.Commit1Out) (proof storage.Proof, err error)
- func (mgr *SectorMgr) SealPreCommit1(ctx context.Context, sid abi.SectorID, ticket abi.SealRandomness, ...) (out storage.PreCommit1Out, err error)
- func (mgr *SectorMgr) SealPreCommit2(ctx context.Context, sid abi.SectorID, phase1Out storage.PreCommit1Out) (cids storage.SectorCids, err error)
- func (mgr *SectorMgr) SectorSize() abi.SectorSize
- func (mgr *SectorMgr) StageFakeData(mid abi.ActorID) (abi.SectorID, []abi.PieceInfo, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var MockVerifier = mockVerif{}
Functions ¶
Types ¶
type SectorMgr ¶
type SectorMgr struct {
// contains filtered or unexported fields
}
func NewMockSectorMgr ¶
func NewMockSectorMgr(ssize abi.SectorSize, genesisSectors []abi.SectorID) *SectorMgr
func (*SectorMgr) AcquireSectorNumber ¶
func (mgr *SectorMgr) AcquireSectorNumber() (abi.SectorNumber, error)
func (*SectorMgr) CheckProvable ¶
func (*SectorMgr) FinalizeSector ¶
func (*SectorMgr) GenerateWindowPoSt ¶
func (*SectorMgr) GenerateWinningPoSt ¶
func (*SectorMgr) MarkFailed ¶
func (*SectorMgr) ReadPiece ¶
func (mgr *SectorMgr) ReadPiece(ctx context.Context, w io.Writer, sectorID abi.SectorID, offset storiface.UnpaddedByteIndex, size abi.UnpaddedPieceSize, randomness abi.SealRandomness, c cid.Cid) error
func (*SectorMgr) ReleaseUnsealed ¶
func (*SectorMgr) SealCommit1 ¶
func (mgr *SectorMgr) SealCommit1(ctx context.Context, sid abi.SectorID, ticket abi.SealRandomness, seed abi.InteractiveSealRandomness, pieces []abi.PieceInfo, cids storage.SectorCids) (output storage.Commit1Out, err error)
func (*SectorMgr) SealCommit2 ¶
func (*SectorMgr) SealPreCommit1 ¶
func (*SectorMgr) SealPreCommit2 ¶
func (mgr *SectorMgr) SealPreCommit2(ctx context.Context, sid abi.SectorID, phase1Out storage.PreCommit1Out) (cids storage.SectorCids, err error)
func (*SectorMgr) SectorSize ¶
func (mgr *SectorMgr) SectorSize() abi.SectorSize
Click to show internal directories.
Click to hide internal directories.