sectorblocks

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2020 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 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 added in v0.3.0

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