Documentation ¶
Index ¶
- Constants
- func Chunk(ctx context.Context, dag ipld.DAGService, reader io.Reader) (ipld.Node, error)
- func Diff(ctx context.Context, ds ipld.DAGService, before, after ipld.Node) (map[string]dagutils.ChangeType, error)
- func IsAncestor(ctx context.Context, ds ipld.NodeGetter, parent, child cid.Cid) (bool, error)
- func ReadCar(bs blockstore.Blockstore, r io.Reader) (cid.Cid, error)
- func Status(ctx context.Context, ds ipld.DAGService, tree ipld.Node, id cid.Cid) (map[string]dagutils.ChangeType, error)
- func Walk(ctx context.Context, ds ipld.NodeGetter, id cid.Cid, visit func(cid.Cid) bool) error
- func WriteCar(ctx context.Context, ds ipld.NodeGetter, head cid.Cid, refs *cid.Set, ...) error
Constants ¶
View Source
const DefaultChunker = "buzhash"
DefaultChunker is the name of the default chunker algorithm.
Variables ¶
This section is empty.
Functions ¶
func Diff ¶
func Diff(ctx context.Context, ds ipld.DAGService, before, after ipld.Node) (map[string]dagutils.ChangeType, error)
Diff returns a flattened map of changes between before and after.
func IsAncestor ¶
IsAncestor returns true if child is an ancestor of parent.
func ReadCar ¶
func ReadCar(bs blockstore.Blockstore, r io.Reader) (cid.Cid, error)
ReadCar reads the car into the given dag and returns the root cid.
func Status ¶
func Status(ctx context.Context, ds ipld.DAGService, tree ipld.Node, id cid.Cid) (map[string]dagutils.ChangeType, error)
Status returns the changes between the given tree and commit with id.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.