car

package
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2024 License: Apache-2.0, MIT, Apache-2.0, + 1 more Imports: 40 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatDagNode

func FormatDagNode(node ipld.Node, codecStr string) []byte

func Merge

func Merge(inputPaths []string, outputPath string) error

func RandomCID

func RandomCID() cid.Cid

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 MustOpenUnixfsCar(file string) *UnixfsDag

func (*UnixfsDag) MustGetCIDsInHAMTTraversal

func (d *UnixfsDag) MustGetCIDsInHAMTTraversal(path []string, child string) []string

MustGetCIDsInHAMTTraversal returns the cids needed for a given HAMT traversal. Does not include the HAMT root.

func (*UnixfsDag) MustGetChildrenCids

func (d *UnixfsDag) MustGetChildrenCids(names ...string) []string

func (*UnixfsDag) MustGetCid

func (d *UnixfsDag) MustGetCid(names ...string) string

func (*UnixfsDag) MustGetCidWithCodec

func (d *UnixfsDag) MustGetCidWithCodec(codec uint64, names ...string) string

func (*UnixfsDag) MustGetCidsInHAMT

func (d *UnixfsDag) MustGetCidsInHAMT(names ...string) []string

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 (d *UnixfsDag) MustGetDescendantsCids(names ...string) []string

func (*UnixfsDag) MustGetFormattedDagNode

func (d *UnixfsDag) MustGetFormattedDagNode(codecStr string, names ...string) []byte

func (*UnixfsDag) MustGetNode

func (d *UnixfsDag) MustGetNode(names ...string) *FixtureNode

func (*UnixfsDag) MustGetRawData

func (d *UnixfsDag) MustGetRawData(names ...string) []byte

func (*UnixfsDag) MustGetRoot

func (d *UnixfsDag) MustGetRoot() *FixtureNode

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL