Documentation ¶
Index ¶
- Variables
- func DealIDToDsKey(dealID abi.DealID) datastore.Key
- func DsKeyToDealID(key datastore.Key) (uint64, error)
- type SealSerialization
- type SectorBlocks
- func (st *SectorBlocks) AddPiece(ctx context.Context, size abi.UnpaddedPieceSize, r io.Reader, ...) (abi.SectorNumber, abi.PaddedPieceSize, error)
- func (st *SectorBlocks) GetRefs(dealID abi.DealID) ([]api.SealedRef, error)
- func (st *SectorBlocks) GetSize(dealID abi.DealID) (uint64, error)
- func (st *SectorBlocks) Has(dealID abi.DealID) (bool, error)
- func (st *SectorBlocks) List() (map[uint64][]api.SealedRef, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("not found")
Functions ¶
func DealIDToDsKey ¶ added in v0.3.0
func DsKeyToDealID ¶ added in v0.3.0
Types ¶
type SealSerialization ¶
type SealSerialization uint8
const (
SerializationUnixfs0 SealSerialization = 'u'
)
type SectorBlocks ¶
func NewSectorBlocks ¶
func NewSectorBlocks(miner *storage.Miner, ds dtypes.MetadataDS) *SectorBlocks
func (*SectorBlocks) AddPiece ¶ added in v0.3.0
func (st *SectorBlocks) AddPiece(ctx context.Context, size abi.UnpaddedPieceSize, r io.Reader, d sealing.DealInfo) (abi.SectorNumber, abi.PaddedPieceSize, error)
Click to show internal directories.
Click to hide internal directories.