Documentation ¶
Index ¶
- Constants
- type ReleaseStorageFunc
- type SealCalls
- func (sb *SealCalls) CheckUnsealedCID(ctx context.Context, s storiface.SectorRef) (cid.Cid, error)
- func (sb *SealCalls) DecodeSDR(ctx context.Context, taskID harmonytask.TaskID, sector storiface.SectorRef) error
- func (sb *SealCalls) DecodeSnap(ctx context.Context, taskID harmonytask.TaskID, commD, commK cid.Cid, ...) error
- func (sb *SealCalls) EncodeUpdate(ctx context.Context, sectorKeyCid cid.Cid, taskID harmonytask.TaskID, ...) (sealedCID cid.Cid, unsealedCID cid.Cid, err error)
- func (sb *SealCalls) FinalizeSector(ctx context.Context, sector storiface.SectorRef, keepUnsealed bool) error
- func (sb *SealCalls) GenerateSDR(ctx context.Context, taskID harmonytask.TaskID, into storiface.SectorFileType, ...) error
- func (sb *SealCalls) GenerateSynthPoRep()
- func (sb *SealCalls) LocalStorage(ctx context.Context) ([]storiface.StoragePath, error)
- func (sb *SealCalls) MoveStorage(ctx context.Context, sector storiface.SectorRef, taskID *harmonytask.TaskID) error
- func (sb *SealCalls) MoveStorageSnap(ctx context.Context, sector storiface.SectorRef, taskID *harmonytask.TaskID) error
- func (sb *SealCalls) PieceReader(ctx context.Context, id storiface.PieceNumber) (io.ReadCloser, error)
- func (sb *SealCalls) PoRepSnark(ctx context.Context, sn storiface.SectorRef, sealed, unsealed cid.Cid, ...) ([]byte, error)
- func (sb *SealCalls) PreFetch(ctx context.Context, sector storiface.SectorRef, task *harmonytask.TaskID) (fsPath, pathID storiface.SectorPaths, ...)
- func (sb *SealCalls) ProveUpdate(ctx context.Context, proofType abi.RegisteredUpdateProof, ...) ([]byte, error)
- func (sb *SealCalls) RemovePiece(ctx context.Context, id storiface.PieceNumber) error
- func (sb *SealCalls) Storage(taskToSectorRef func(taskID harmonytask.TaskID) (SectorRef, error), ...) *TaskStorage
- func (sb *SealCalls) SyntheticProofs(ctx context.Context, task *harmonytask.TaskID, sector storiface.SectorRef, ...) error
- func (sb *SealCalls) TreeD(ctx context.Context, sector storiface.SectorRef, unsealed cid.Cid, ...) error
- func (sb *SealCalls) TreeRC(ctx context.Context, task *harmonytask.TaskID, sector storiface.SectorRef, ...) (scid cid.Cid, ucid cid.Cid, err error)
- func (sb *SealCalls) WritePiece(ctx context.Context, taskID *harmonytask.TaskID, pieceID storiface.PieceNumber, ...) error
- type SectorRef
- type StorageReservation
- type TaskStorage
Constants ¶
View Source
const C1CheckNumber = 3
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReleaseStorageFunc ¶
type ReleaseStorageFunc func() // free storage reservation
type SealCalls ¶
type SealCalls struct {
// contains filtered or unexported fields
}
type ExternPrecommit2 func(ctx context.Context, sector storiface.SectorRef, cache, sealed string, pc1out storiface.PreCommit1Out) (sealedCID cid.Cid, unsealedCID cid.Cid, err error)
type ExternalSealer struct { PreCommit2 ExternPrecommit2 }
func NewSealCalls ¶
func (*SealCalls) CheckUnsealedCID ¶ added in v1.23.1
func (*SealCalls) DecodeSnap ¶ added in v1.23.1
func (*SealCalls) EncodeUpdate ¶ added in v1.23.0
func (*SealCalls) FinalizeSector ¶
func (*SealCalls) GenerateSDR ¶
func (sb *SealCalls) GenerateSDR(ctx context.Context, taskID harmonytask.TaskID, into storiface.SectorFileType, sector storiface.SectorRef, ticket abi.SealRandomness, commDcid cid.Cid) error
func (*SealCalls) GenerateSynthPoRep ¶
func (sb *SealCalls) GenerateSynthPoRep()
func (*SealCalls) LocalStorage ¶
func (*SealCalls) MoveStorage ¶
func (*SealCalls) MoveStorageSnap ¶ added in v1.23.0
func (*SealCalls) PieceReader ¶
func (sb *SealCalls) PieceReader(ctx context.Context, id storiface.PieceNumber) (io.ReadCloser, error)
func (*SealCalls) PoRepSnark ¶
func (*SealCalls) PreFetch ¶
func (sb *SealCalls) PreFetch(ctx context.Context, sector storiface.SectorRef, task *harmonytask.TaskID) (fsPath, pathID storiface.SectorPaths, releaseSector func(...storiface.SectorFileType), err error)
PreFetch fetches the sector file to local storage before SDR and TreeRC Tasks
func (*SealCalls) ProveUpdate ¶ added in v1.23.0
func (*SealCalls) RemovePiece ¶
func (*SealCalls) Storage ¶
func (sb *SealCalls) Storage(taskToSectorRef func(taskID harmonytask.TaskID) (SectorRef, error), alloc, existing storiface.SectorFileType, ssize abi.SectorSize, pathType storiface.PathType, MinFreeStoragePercentage float64) *TaskStorage
func (*SealCalls) SyntheticProofs ¶ added in v1.23.0
func (*SealCalls) WritePiece ¶
type SectorRef ¶
type SectorRef struct { SpID int64 `db:"sp_id"` SectorNumber int64 `db:"sector_number"` RegSealProof abi.RegisteredSealProof `db:"reg_seal_proof"` }
type StorageReservation ¶
type StorageReservation struct { SectorRef SectorRef Release ReleaseStorageFunc Paths storiface.SectorPaths PathIDs storiface.SectorPaths Alloc, Existing storiface.SectorFileType }
type TaskStorage ¶
type TaskStorage struct { // Minimum free storage percentage cutoff for reservation rejection MinFreeStoragePercentage float64 // contains filtered or unexported fields }
func (*TaskStorage) HasCapacity ¶
func (t *TaskStorage) HasCapacity() bool
Source Files ¶
Click to show internal directories.
Click to hide internal directories.