sectorblocks

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2021 License: Apache-2.0, MIT Imports: 18 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 {
	*storage.Miner
	// contains filtered or unexported fields
}

func NewSectorBlocks

func NewSectorBlocks(miner *storage.Miner, ds dtypes.MetadataDS) *SectorBlocks

func (*SectorBlocks) AddPiece

func (*SectorBlocks) GetRefs

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

func (*SectorBlocks) GetSize

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

func (*SectorBlocks) Has

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

func (*SectorBlocks) List

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

Jump to

Keyboard shortcuts

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