Documentation ¶
Index ¶
- Variables
- func AddOpFinish(ctx context.Context) (context.Context, func())
- func CommDR(in []byte) (out [32]byte)
- func PreSeal(spt abi.RegisteredSealProof, maddr address.Address, sectors int) (*genesis.Miner, *types.KeyInfo, error)
- type SectorMgr
- func (mgr *SectorMgr) AcquireSectorNumber() (abi.SectorNumber, error)
- func (mgr *SectorMgr) AddPiece(ctx context.Context, sectorID storiface.SectorRef, ...) (abi.PieceInfo, error)
- func (mgr *SectorMgr) CheckProvable(ctx context.Context, pp abi.RegisteredPoStProof, ids []storiface.SectorRef, ...) (map[abi.SectorID]string, error)
- func (mgr *SectorMgr) DataCid(ctx context.Context, size abi.UnpaddedPieceSize, r io.Reader) (abi.PieceInfo, error)
- func (mgr *SectorMgr) DownloadSectorData(ctx context.Context, sector storiface.SectorRef, finalized bool, ...) error
- func (mgr *SectorMgr) Fail()
- func (mgr *SectorMgr) FinalizeReplicaUpdate(context.Context, storiface.SectorRef, []storiface.Range) error
- func (mgr *SectorMgr) FinalizeSector(context.Context, storiface.SectorRef, []storiface.Range) error
- func (mgr *SectorMgr) ForceState(sid storiface.SectorRef, st int) error
- func (mgr *SectorMgr) GenerateSectorKeyFromData(ctx context.Context, sector storiface.SectorRef, commD cid.Cid) error
- func (mgr *SectorMgr) GenerateWindowPoSt(ctx context.Context, minerID abi.ActorID, ...) ([]prooftypes.PoStProof, []abi.SectorID, error)
- func (mgr *SectorMgr) GenerateWindowPoStWithVanilla(ctx context.Context, proofType abi.RegisteredPoStProof, minerID abi.ActorID, ...) (prooftypes.PoStProof, error)
- func (mgr *SectorMgr) GenerateWinningPoSt(ctx context.Context, minerID abi.ActorID, ...) ([]prooftypes.PoStProof, error)
- func (mgr *SectorMgr) GenerateWinningPoStWithVanilla(ctx context.Context, proofType abi.RegisteredPoStProof, minerID abi.ActorID, ...) ([]prooftypes.PoStProof, error)
- func (mgr *SectorMgr) IsUnsealed(ctx context.Context, sector storiface.SectorRef, ...) (bool, error)
- func (mgr *SectorMgr) MarkCorrupted(sid storiface.SectorRef, corrupted bool) error
- func (mgr *SectorMgr) MarkFailed(sid storiface.SectorRef, failed bool) error
- func (mgr *SectorMgr) NewSector(ctx context.Context, sector storiface.SectorRef) error
- func (mgr *SectorMgr) ProveReplicaUpdate1(ctx context.Context, sector storiface.SectorRef, ...) (storiface.ReplicaVanillaProofs, error)
- func (mgr *SectorMgr) ProveReplicaUpdate2(ctx context.Context, sector storiface.SectorRef, ...) (storiface.ReplicaUpdateProof, error)
- func (mgr *SectorMgr) ReadPiece(ctx context.Context, sector storiface.SectorRef, ...) (mount.Reader, bool, error)
- func (mgr *SectorMgr) ReleaseReplicaUpgrade(ctx context.Context, sector storiface.SectorRef) error
- func (mgr *SectorMgr) ReleaseSealed(ctx context.Context, sid storiface.SectorRef) error
- func (mgr *SectorMgr) ReleaseSectorKey(ctx context.Context, sector storiface.SectorRef) error
- func (mgr *SectorMgr) ReleaseUnsealed(ctx context.Context, sector storiface.SectorRef, safeToFree []storiface.Range) error
- func (mgr *SectorMgr) Remove(ctx context.Context, sector storiface.SectorRef) error
- func (mgr *SectorMgr) ReplicaUpdate(ctx context.Context, sid storiface.SectorRef, pieces []abi.PieceInfo) (storiface.ReplicaUpdateOut, error)
- func (mgr *SectorMgr) ReturnAddPiece(ctx context.Context, callID storiface.CallID, pi abi.PieceInfo, ...) error
- func (mgr *SectorMgr) ReturnDataCid(ctx context.Context, callID storiface.CallID, pi abi.PieceInfo, ...) error
- func (mgr *SectorMgr) ReturnDownloadSector(ctx context.Context, callID storiface.CallID, err *storiface.CallError) error
- func (mgr *SectorMgr) ReturnFetch(ctx context.Context, callID storiface.CallID, err *storiface.CallError) error
- func (mgr *SectorMgr) ReturnFinalizeReplicaUpdate(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) ReturnGenerateSectorKeyFromData(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) ReturnProveReplicaUpdate1(ctx context.Context, callID storiface.CallID, ...) error
- func (mgr *SectorMgr) ReturnProveReplicaUpdate2(ctx context.Context, callID storiface.CallID, out storiface.ReplicaUpdateProof, ...) 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) ReturnReplicaUpdate(ctx context.Context, callID storiface.CallID, out storiface.ReplicaUpdateOut, ...) error
- func (mgr *SectorMgr) ReturnSealCommit1(ctx context.Context, callID storiface.CallID, out storiface.Commit1Out, ...) error
- func (mgr *SectorMgr) ReturnSealCommit2(ctx context.Context, callID storiface.CallID, proof storiface.Proof, ...) error
- func (mgr *SectorMgr) ReturnSealPreCommit1(ctx context.Context, callID storiface.CallID, p1o storiface.PreCommit1Out, ...) error
- func (mgr *SectorMgr) ReturnSealPreCommit2(ctx context.Context, callID storiface.CallID, sealed storiface.SectorCids, ...) error
- func (mgr *SectorMgr) ReturnUnsealPiece(ctx context.Context, callID storiface.CallID, err *storiface.CallError) error
- func (mgr *SectorMgr) SealCommit1(ctx context.Context, sid storiface.SectorRef, ticket abi.SealRandomness, ...) (output storiface.Commit1Out, err error)
- func (mgr *SectorMgr) SealCommit2(ctx context.Context, sid storiface.SectorRef, phase1Out storiface.Commit1Out) (proof storiface.Proof, err error)
- func (mgr *SectorMgr) SealPreCommit1(ctx context.Context, sid storiface.SectorRef, ticket abi.SealRandomness, ...) (out storiface.PreCommit1Out, err error)
- func (mgr *SectorMgr) SealPreCommit2(ctx context.Context, sid storiface.SectorRef, ...) (cids storiface.SectorCids, err error)
- func (mgr *SectorMgr) SectorsUnsealPiece(ctx context.Context, sector storiface.SectorRef, ...) error
- func (mgr *SectorMgr) StageFakeData(mid abi.ActorID, spt abi.RegisteredSealProof) (storiface.SectorRef, []abi.PieceInfo, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var MockProver = MockVerifier
View Source
var MockVerifier = mockVerifProver{ // contains filtered or unexported fields }
Functions ¶
Types ¶
type SectorMgr ¶
type SectorMgr struct {
// contains filtered or unexported fields
}
func NewMockSectorMgr ¶
func (*SectorMgr) AcquireSectorNumber ¶
func (mgr *SectorMgr) AcquireSectorNumber() (abi.SectorNumber, error)
func (*SectorMgr) CheckProvable ¶
func (*SectorMgr) DownloadSectorData ¶ added in v1.17.2
func (*SectorMgr) FinalizeReplicaUpdate ¶
func (*SectorMgr) FinalizeSector ¶
func (*SectorMgr) ForceState ¶
func (*SectorMgr) GenerateSectorKeyFromData ¶
func (*SectorMgr) GenerateWindowPoSt ¶
func (mgr *SectorMgr) GenerateWindowPoSt(ctx context.Context, minerID abi.ActorID, xSectorInfo []prooftypes.ExtendedSectorInfo, randomness abi.PoStRandomness) ([]prooftypes.PoStProof, []abi.SectorID, error)
func (*SectorMgr) GenerateWindowPoStWithVanilla ¶
func (mgr *SectorMgr) GenerateWindowPoStWithVanilla(ctx context.Context, proofType abi.RegisteredPoStProof, minerID abi.ActorID, randomness abi.PoStRandomness, proofs [][]byte, partitionIdx int) (prooftypes.PoStProof, error)
func (*SectorMgr) GenerateWinningPoSt ¶
func (mgr *SectorMgr) GenerateWinningPoSt(ctx context.Context, minerID abi.ActorID, xSectorInfo []prooftypes.ExtendedSectorInfo, randomness abi.PoStRandomness) ([]prooftypes.PoStProof, error)
func (*SectorMgr) GenerateWinningPoStWithVanilla ¶
func (mgr *SectorMgr) GenerateWinningPoStWithVanilla(ctx context.Context, proofType abi.RegisteredPoStProof, minerID abi.ActorID, randomness abi.PoStRandomness, proofs [][]byte) ([]prooftypes.PoStProof, error)
func (*SectorMgr) IsUnsealed ¶
func (*SectorMgr) MarkCorrupted ¶
func (*SectorMgr) MarkFailed ¶
func (*SectorMgr) ProveReplicaUpdate1 ¶
func (*SectorMgr) ProveReplicaUpdate2 ¶
func (mgr *SectorMgr) ProveReplicaUpdate2(ctx context.Context, sector storiface.SectorRef, sectorKey, newSealed, newUnsealed cid.Cid, vanillaProofs storiface.ReplicaVanillaProofs) (storiface.ReplicaUpdateProof, error)
func (*SectorMgr) ReadPiece ¶
func (mgr *SectorMgr) ReadPiece(ctx context.Context, sector storiface.SectorRef, offset storiface.UnpaddedByteIndex, size abi.UnpaddedPieceSize, ticket abi.SealRandomness, unsealed cid.Cid) (mount.Reader, bool, error)
func (*SectorMgr) ReleaseReplicaUpgrade ¶
func (*SectorMgr) ReleaseSealed ¶
func (*SectorMgr) ReleaseSectorKey ¶
func (*SectorMgr) ReleaseUnsealed ¶
func (*SectorMgr) ReplicaUpdate ¶
func (*SectorMgr) ReturnAddPiece ¶
func (*SectorMgr) ReturnDataCid ¶
func (*SectorMgr) ReturnDownloadSector ¶ added in v1.17.2
func (*SectorMgr) ReturnFetch ¶
func (*SectorMgr) ReturnFinalizeReplicaUpdate ¶
func (*SectorMgr) ReturnFinalizeSector ¶
func (*SectorMgr) ReturnGenerateSectorKeyFromData ¶
func (*SectorMgr) ReturnMoveStorage ¶
func (*SectorMgr) ReturnProveReplicaUpdate1 ¶
func (*SectorMgr) ReturnProveReplicaUpdate2 ¶
func (*SectorMgr) ReturnReadPiece ¶
func (*SectorMgr) ReturnReleaseUnsealed ¶
func (*SectorMgr) ReturnReplicaUpdate ¶
func (*SectorMgr) ReturnSealCommit1 ¶
func (*SectorMgr) ReturnSealCommit2 ¶
func (*SectorMgr) ReturnSealPreCommit1 ¶
func (*SectorMgr) ReturnSealPreCommit2 ¶
func (*SectorMgr) ReturnUnsealPiece ¶
func (*SectorMgr) SealCommit1 ¶
func (mgr *SectorMgr) SealCommit1(ctx context.Context, sid storiface.SectorRef, ticket abi.SealRandomness, seed abi.InteractiveSealRandomness, pieces []abi.PieceInfo, cids storiface.SectorCids) (output storiface.Commit1Out, err error)
func (*SectorMgr) SealCommit2 ¶
func (*SectorMgr) SealPreCommit1 ¶
func (*SectorMgr) SealPreCommit2 ¶
func (mgr *SectorMgr) SealPreCommit2(ctx context.Context, sid storiface.SectorRef, phase1Out storiface.PreCommit1Out) (cids storiface.SectorCids, err error)
func (*SectorMgr) SectorsUnsealPiece ¶
func (mgr *SectorMgr) SectorsUnsealPiece(ctx context.Context, sector storiface.SectorRef, offset storiface.UnpaddedByteIndex, size abi.UnpaddedPieceSize, randomness abi.SealRandomness, commd *cid.Cid) error
Click to show internal directories.
Click to hide internal directories.