Documentation ¶
Index ¶
- func FormatDagNode(node ipld.Node, codecStr string) []byte
- func Merge(inputPaths []string, outputPath string) error
- func RandomCID() cid.Cid
- type FixtureNode
- type UnixfsDag
- func (d *UnixfsDag) MustGetCIDsInHAMTTraversal(path []string, child string) []string
- func (d *UnixfsDag) MustGetChildrenCids(names ...string) []string
- func (d *UnixfsDag) MustGetCid(names ...string) string
- func (d *UnixfsDag) MustGetCidWithCodec(codec uint64, names ...string) string
- func (d *UnixfsDag) MustGetCidsInHAMT(names ...string) []string
- func (d *UnixfsDag) MustGetDescendants(names ...string) [](*FixtureNode)
- func (d *UnixfsDag) MustGetDescendantsCids(names ...string) []string
- func (d *UnixfsDag) MustGetFormattedDagNode(codecStr string, names ...string) []byte
- func (d *UnixfsDag) MustGetNode(names ...string) *FixtureNode
- func (d *UnixfsDag) MustGetRawData(names ...string) []byte
- func (d *UnixfsDag) MustGetRoot() *FixtureNode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatDagNode ¶
Types ¶
type FixtureNode ¶
type FixtureNode struct {
// contains filtered or unexported fields
}
func (*FixtureNode) Base32Cid ¶
func (n *FixtureNode) Base32Cid() string
func (*FixtureNode) Cid ¶
func (n *FixtureNode) Cid() cid.Cid
func (*FixtureNode) Formatted ¶
func (n *FixtureNode) Formatted(codecStr string) []byte
func (*FixtureNode) RawData ¶
func (n *FixtureNode) RawData() []byte
func (*FixtureNode) ReadFile ¶
func (n *FixtureNode) ReadFile() string
func (*FixtureNode) ToFile ¶
func (n *FixtureNode) ToFile() files.File
type UnixfsDag ¶
type UnixfsDag struct {
// contains filtered or unexported fields
}
func MustOpenUnixfsCar ¶
func (*UnixfsDag) MustGetCIDsInHAMTTraversal ¶
MustGetCIDsInHAMTTraversal returns the cids needed for a given HAMT traversal. Does not include the HAMT root.
func (*UnixfsDag) MustGetChildrenCids ¶
func (*UnixfsDag) MustGetCid ¶
func (*UnixfsDag) MustGetCidWithCodec ¶
func (*UnixfsDag) MustGetCidsInHAMT ¶
MustGetCidsInHAMT returns the cids in the HAMT at the given path. Does not include the CID of the HAMT root
func (*UnixfsDag) MustGetDescendants ¶
func (d *UnixfsDag) MustGetDescendants(names ...string) [](*FixtureNode)
func (*UnixfsDag) MustGetDescendantsCids ¶
func (*UnixfsDag) MustGetFormattedDagNode ¶
func (*UnixfsDag) MustGetNode ¶
func (d *UnixfsDag) MustGetNode(names ...string) *FixtureNode
func (*UnixfsDag) MustGetRawData ¶
func (*UnixfsDag) MustGetRoot ¶
func (d *UnixfsDag) MustGetRoot() *FixtureNode
Click to show internal directories.
Click to hide internal directories.