package
1.9.0
Repository: https://github.com/ipfs/go-unixfsnode.git
Documentation: pkg.go.dev

# Functions

AttemptHAMTShardFromNode attempts to read a HAMT shard from a general protobuf node.
No description provided by the author
NewUnixFSHAMTShard attempts to construct a UnixFSHAMTShard node from the base protobuf node plus a decoded UnixFSData structure.
NewUnixFSHAMTShardWithPreload attempts to construct a UnixFSHAMTShard node from the base protobuf node plus a decoded UnixFSData structure, and then iterate through and load the full set of hamt shards.

# Constants

ErrHAMTSizeInvalid indicates the HAMT's size property was not an exact power of 2.
ErrHAMTTooDeep indicates we attempted to load from a HAMT node that went past the depth of the tree.
ErrInvalidChildIndex indicates there is no link to load for the given child index.
ErrInvalidHashType indicates the HAMT node's hash function is unsupported (must be Murmur3).
ErrMissingLinkName indicates a link in a HAMT had no Name property (required for all HAMTs).
ErrNoDataField indicates the HAMT node's UnixFS structure lacked a data field, which is where a bit mask is stored.
ErrNoFanoutField indicates the HAMT node's UnixFS structure lacked a fanout field, which is required.
ErrNotProtobuf indicates an error attempting to load a HAMT from a non-protobuf node.
ErrNotUnixFSNode indicates an error attempting to load a HAMT from a generic protobuf node.
HashMurmur3 is the multiformats identifier for Murmur3.

# Structs

ErrInvalidLinkName indicates a link's name was too short for a HAMT.