Documentation
¶
Index ¶
- Constants
- func NewErrBadFSEntries(errs []ErrBadFSEntry) error
- func NewErrBadFSEntry(fsEntryID id.FSEntryID, err error) error
- func NewErrBadNodes(errs []ErrBadNode, shardID id.ShardID, goodCIDs *cid.Set) error
- type ErrBadFSEntries
- type ErrBadFSEntry
- type ErrBadNode
- type ErrBadNodes
- type ErrEmpty
- type RetriableError
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 NewErrBadNodes ¶
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 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
Click to show internal directories.
Click to hide internal directories.