Documentation ¶
Index ¶
- Variables
- func AddOpFinish(ctx context.Context) (context.Context, func())
- func PreSeal(ssize uint64, maddr address.Address, sectors int) (*genesis.GenesisMiner, error)
- type SBMock
- func (sb *SBMock) AcquireSectorId() (uint64, error)
- func (sb *SBMock) AddPiece(ctx context.Context, size uint64, sectorId uint64, r io.Reader, ...) (sectorbuilder.PublicPieceInfo, error)
- func (sb *SBMock) AddWorker(context.Context, sectorbuilder.WorkerCfg) (<-chan sectorbuilder.WorkerTask, error)
- func (sb *SBMock) AllocSectorPath(typ fs.DataType, sectorID uint64, cache bool) (fs.SectorPath, error)
- func (sb *SBMock) CanCommit(sectorID uint64) (bool, error)
- func (sb *SBMock) ComputeElectionPoSt(sectorInfo sectorbuilder.SortedPublicSectorInfo, challengeSeed []byte, ...) ([]byte, error)
- func (sb *SBMock) DropStaged(context.Context, uint64) error
- func (sb *SBMock) FailSector(sid uint64) error
- func (sb *SBMock) FinalizeSector(context.Context, uint64) error
- func (sb *SBMock) GenerateEPostCandidates(sectorInfo sectorbuilder.SortedPublicSectorInfo, ...) ([]sectorbuilder.EPostCandidate, error)
- func (sb *SBMock) GenerateFallbackPoSt(sectorbuilder.SortedPublicSectorInfo, [sectorbuilder.CommLen]byte, []uint64) ([]sectorbuilder.EPostCandidate, []byte, error)
- func (sb *SBMock) GetPath(string, string) (string, error)
- func (sb *SBMock) RateLimit() func()
- func (sb *SBMock) ReadPieceFromSealedSector(ctx context.Context, sectorID uint64, offset uint64, size uint64, ...) (io.ReadCloser, error)
- func (sb *SBMock) ReleaseSector(fs.DataType, fs.SectorPath)
- func (sb *SBMock) Scrub(sectorbuilder.SortedPublicSectorInfo) []*sectorbuilder.Fault
- func (sb *SBMock) SealCommit(ctx context.Context, sid uint64, ticket sectorbuilder.SealTicket, ...) ([]byte, error)
- func (sb *SBMock) SealPreCommit(ctx context.Context, sid uint64, ticket sectorbuilder.SealTicket, ...) (sectorbuilder.RawSealPreCommitOutput, error)
- func (sb *SBMock) SectorPath(typ fs.DataType, sectorID uint64) (fs.SectorPath, error)
- func (sb *SBMock) SectorSize() uint64
- func (sb *SBMock) StageFakeData() (uint64, []sectorbuilder.PublicPieceInfo, error)
- func (sb *SBMock) TaskDone(context.Context, uint64, sectorbuilder.SealRes) error
- func (sb *SBMock) WorkerStats() sectorbuilder.WorkerStats
Constants ¶
This section is empty.
Variables ¶
View Source
var MockVerifier = mockVerif{}
Functions ¶
Types ¶
type SBMock ¶
type SBMock struct {
// contains filtered or unexported fields
}
func NewMockSectorBuilder ¶
func (*SBMock) AcquireSectorId ¶
func (*SBMock) AllocSectorPath ¶ added in v0.2.8
func (*SBMock) ComputeElectionPoSt ¶
func (*SBMock) DropStaged ¶ added in v0.2.8
func (*SBMock) FailSector ¶
func (*SBMock) FinalizeSector ¶ added in v0.2.8
func (*SBMock) GenerateEPostCandidates ¶
func (*SBMock) GenerateFallbackPoSt ¶
func (*SBMock) ReadPieceFromSealedSector ¶
func (*SBMock) ReleaseSector ¶ added in v0.2.8
func (sb *SBMock) ReleaseSector(fs.DataType, fs.SectorPath)
func (*SBMock) Scrub ¶
func (sb *SBMock) Scrub(sectorbuilder.SortedPublicSectorInfo) []*sectorbuilder.Fault
func (*SBMock) SealCommit ¶
func (*SBMock) SealPreCommit ¶
func (*SBMock) SectorPath ¶ added in v0.2.8
func (*SBMock) SectorSize ¶
func (*SBMock) StageFakeData ¶
func (*SBMock) WorkerStats ¶
func (sb *SBMock) WorkerStats() sectorbuilder.WorkerStats
Click to show internal directories.
Click to hide internal directories.