# Packages
No description provided by the author
# Functions
BuildDirectory builds a directory from the given children, storing the blocks in the provided LinkSystem and returns a DirEntry representation of the directory.
CompareDirEntries is a safe, recursive comparison between two DirEntry values.
GenerateDirectory generates a random UnixFS directory that aims for the requested targetSize (in bytes, although it is likely to fall somewhere under this number), storing the blocks in the provided LinkSystem and returns a DirEntry representation of the directory.
GenerateDirectoryFrom is the same as GenerateDirectory but allows the caller to specify a directory path to start from.
GenerateFile generates a random unixfs file of the given size, storing the blocks in the provided LinkSystem and returns a DirEntry representation of the file.
ToDirEntry takes a LinkSystem containing UnixFS data and builds a DirEntry tree representing the file and directory structure it finds starting at the rootCid.
ToDirEntryFrom is the same as ToDirEntry but allows specifying a rootPath such that the resulting DirEntry tree will all have that path as a prefix.
UnixFSDirectory generates a random UnixFS directory that aims for the requested targetSize (in bytes, although it is likely to fall somewhere under this number), storing the blocks in the provided LinkSystem and returns a DirEntry representation of the directory.
Generate a file of `size` random bytes, packaged into UnixFS structure, stored in the provided LinkSystem and returns a DirEntry representation of the file.
WithChildGenerator sets the child generator used by UnixFSDirectory control over the direct children of a directory is required.
WithChunker sets the chunker used by the Generate* functions.
WithDirname sets the directory name used by UnixFSDirectory where a root directory name is required.
WithRandReader sets the random reader used by the Generate* functions.
WithShardBitwidth sets the shard fanout for the generated directory.
WrapContent embeds the content we want in some random nested content such that it's fetchable under the provided path.
# Structs
DirEntry represents a flattened directory entry, where Path is from the root of the directory and Content is the file contents.
# Type aliases
ChildGeneratorFn is a function that generates a child DirEntry for a directory.
Option is a functional option for the Generate* functions.