sectorblocks

package
v0.0.0-...-484cccf Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: Apache-2.0, MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func DealIDToDsKey

func DealIDToDsKey(dealID abi.DealID) datastore.Key

func DsKeyToDealID

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

Types

type SealSerialization

type SealSerialization uint8
const (
	SerializationUnixfs0 SealSerialization = 'u'
)

type SectorBlocks

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

func NewSectorBlocks

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

func (*SectorBlocks) AddPiece

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

type SectorBuilder interface {
	SectorAddPieceToAny(ctx context.Context, size abi.UnpaddedPieceSize, r storiface.Data, d api.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