sectorblocks

package
v1.29.0-rc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 22, 2024 License: Apache-2.0, MIT Imports: 17 Imported by: 15

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("not found")

Functions

func DealIDToDsKey added in v0.3.0

func DealIDToDsKey(dealID abi.DealID) datastore.Key

func DsKeyToDealID added in v0.3.0

func DsKeyToDealID(key datastore.Key) (uint64, error)

Types

type SectorBlocks

type SectorBlocks struct {
	SectorBuilder
	// contains filtered or unexported fields
}

func NewSectorBlocks

func NewSectorBlocks(sb SectorBuilder, ds dtypes.MetadataDS) *SectorBlocks

func (*SectorBlocks) AddPiece added in v0.3.0

func (*SectorBlocks) GetRefs

func (st *SectorBlocks) GetRefs(ctx context.Context, dealID abi.DealID) ([]api.SealedRef, error)

func (*SectorBlocks) GetSize

func (st *SectorBlocks) GetSize(ctx context.Context, dealID abi.DealID) (uint64, error)

func (*SectorBlocks) Has

func (st *SectorBlocks) Has(ctx context.Context, dealID abi.DealID) (bool, error)

func (*SectorBlocks) List

func (st *SectorBlocks) List(ctx context.Context) (map[uint64][]api.SealedRef, error)

type SectorBuilder added in v1.11.1

type SectorBuilder interface {
	SectorAddPieceToAny(ctx context.Context, size abi.UnpaddedPieceSize, r storiface.Data, d piece.PieceDealInfo) (api.SectorOffset, error)
	SectorsStatus(ctx context.Context, sid abi.SectorNumber, showOnChainInfo bool) (api.SectorInfo, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL