dealdata

package
v1.23.1 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: Apache-2.0, MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnsealedCidFromPieces added in v1.23.1

func UnsealedCidFromPieces(ctx context.Context, db *harmonydb.DB, spId, sectorNumber int64) (cid.Cid, error)

Types

type DealData

type DealData struct {
	CommD        cid.Cid
	Data         io.Reader
	IsUnpadded   bool
	PieceInfos   []abi.PieceInfo
	KeepUnsealed bool
	Close        func()
}

func DealDataSDRPoRep

func DealDataSDRPoRep(ctx context.Context, db *harmonydb.DB, sc *ffi.SealCalls, spId, sectorNumber int64, spt abi.RegisteredSealProof, commDOnly bool) (*DealData, error)

func DealDataSnap

func DealDataSnap(ctx context.Context, db *harmonydb.DB, sc *ffi.SealCalls, spId, sectorNumber int64, spt abi.RegisteredSealProof) (*DealData, error)

type UrlPieceReader

type UrlPieceReader struct {
	Url     string
	RawSize int64 // the exact number of bytes read, if we read more or less that's an error
	// contains filtered or unexported fields
}

func NewUrlReader

func NewUrlReader(p string, rs int64) *UrlPieceReader

func (*UrlPieceReader) Close

func (u *UrlPieceReader) Close() error

func (*UrlPieceReader) Read

func (u *UrlPieceReader) Read(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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