Documentation ¶
Index ¶
- func CarBytesLinkSystem(t *testing.T, carReader io.ReaderAt) ipld.LinkSystem
- func CompareDirEntries(t *testing.T, a, b DirEntry)
- type DirEntry
- func BuildDirectory(t *testing.T, linkSys *linking.LinkSystem, children []DirEntry, sharded bool) DirEntry
- func CarToDirEntry(t *testing.T, carReader io.ReaderAt, root cid.Cid, expectFull bool) DirEntry
- func GenerateDirectory(t *testing.T, linkSys *linking.LinkSystem, randReader io.Reader, ...) DirEntry
- func GenerateDirectoryFrom(t *testing.T, linkSys *linking.LinkSystem, randReader io.Reader, ...) DirEntry
- func GenerateFile(t *testing.T, linkSys *linking.LinkSystem, randReader io.Reader, size int) DirEntry
- func ToDirEntry(t *testing.T, linkSys linking.LinkSystem, rootCid cid.Cid, expectFull bool) DirEntry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CarBytesLinkSystem ¶ added in v0.5.0
func CompareDirEntries ¶
Types ¶
type DirEntry ¶
type DirEntry struct { Path string Content []byte Root cid.Cid SelfCids []cid.Cid TSize uint64 Children []DirEntry }
DirEntry represents a flattened directory entry, where Path is from the root of the directory and Content is the file contents. It is intended that a DirEntry slice can be used to represent a full-depth directory without needing nesting.
func BuildDirectory ¶ added in v0.5.0
func CarToDirEntry ¶ added in v0.5.0
func GenerateDirectory ¶
func GenerateDirectoryFrom ¶ added in v0.5.0
func GenerateFile ¶
func ToDirEntry ¶
Click to show internal directories.
Click to hide internal directories.