types

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2025 License: Apache-2.0, MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const MinPiecePayload = 127

MinPiecePayload is the minimum payload size for a piece CID to be computed. technically, 65 will work for go-fil-commp-hashhash, but 127 is the minimum for commcid.DataCommitmentToPieceCidv2 to succeed. (and this number isn't public)

Variables

This section is empty.

Functions

func NewErrBadFSEntries

func NewErrBadFSEntries(errs []ErrBadFSEntry) error

func NewErrBadFSEntry

func NewErrBadFSEntry(fsEntryID id.FSEntryID, err error) error

func NewErrBadNodes

func NewErrBadNodes(errs []ErrBadNode, shardID id.ShardID, goodCIDs *cid.Set) error

Types

type ErrBadFSEntries

type ErrBadFSEntries struct {
	// contains filtered or unexported fields
}

func (ErrBadFSEntries) Error

func (e ErrBadFSEntries) Error() string

func (ErrBadFSEntries) Errs

func (e ErrBadFSEntries) Errs() []ErrBadFSEntry

func (ErrBadFSEntries) Unwrap

func (e ErrBadFSEntries) Unwrap() []error

type ErrBadFSEntry

type ErrBadFSEntry struct {
	// contains filtered or unexported fields
}

ErrBadFSEntry indicates that a DAG scan cannot be read or is otherwise invalid.

func (ErrBadFSEntry) Error

func (e ErrBadFSEntry) Error() string

func (ErrBadFSEntry) FsEntryID

func (e ErrBadFSEntry) FsEntryID() id.FSEntryID

func (ErrBadFSEntry) Unwrap

func (e ErrBadFSEntry) Unwrap() error

type ErrBadNode

type ErrBadNode struct {
	// contains filtered or unexported fields
}

ErrBadNode indicates that a node cannot be read or is otherwise invalid.

func NewErrBadNode

func NewErrBadNode(cid cid.Cid, err error) ErrBadNode

func (ErrBadNode) CID

func (e ErrBadNode) CID() cid.Cid

func (ErrBadNode) Error

func (e ErrBadNode) Error() string

func (ErrBadNode) Unwrap

func (e ErrBadNode) Unwrap() error

type ErrBadNodes

type ErrBadNodes struct {
	// contains filtered or unexported fields
}

ErrBadNodes wraps multiple ErrBadNode errors from the same operation.

func (ErrBadNodes) Error

func (e ErrBadNodes) Error() string

func (ErrBadNodes) Errs

func (e ErrBadNodes) Errs() []ErrBadNode

func (ErrBadNodes) GoodCIDs

func (e ErrBadNodes) GoodCIDs() *cid.Set

func (ErrBadNodes) ShardID

func (e ErrBadNodes) ShardID() id.ShardID

func (ErrBadNodes) Unwrap

func (e ErrBadNodes) Unwrap() []error

type ErrEmpty

type ErrEmpty struct {
	Field string
}

func (ErrEmpty) Error

func (e ErrEmpty) Error() string

type RetriableError

type RetriableError struct {
	// contains filtered or unexported fields
}

func NewRetriableError

func NewRetriableError(err error) RetriableError

func (RetriableError) Error

func (e RetriableError) Error() string

func (RetriableError) Unwrap

func (e RetriableError) Unwrap() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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