Versions in this module Expand all Collapse all v0 v0.3.3 May 19, 2020 Changes in this version + func ApplyChange(ctx context.Context, ds ipld.DAGService, nd *dag.ProtoNode, cs []*Change) (*dag.ProtoNode, error) + func DiffEnumerate(ctx context.Context, dserv ipld.NodeGetter, from, to cid.Cid) error + func MergeDiffs(a, b []*Change) ([]*Change, []Conflict) + func NewMemoryDagService() ipld.DAGService + type Change struct + After cid.Cid + Before cid.Cid + Path string + Type ChangeType + func Diff(ctx context.Context, ds ipld.DAGService, a, b ipld.Node) ([]*Change, error) + func (c *Change) String() string + type ChangeType int + const Add + const Mod + const Remove + type Conflict struct + A *Change + B *Change + type Editor struct + func NewDagEditor(root *dag.ProtoNode, source ipld.DAGService) *Editor + func (e *Editor) Finalize(ctx context.Context, ds ipld.DAGService) (*dag.ProtoNode, error) + func (e *Editor) GetDagService() ipld.DAGService + func (e *Editor) GetNode() *dag.ProtoNode + func (e *Editor) InsertNodeAtPath(ctx context.Context, pth string, toinsert ipld.Node, ...) error + func (e *Editor) RmLink(ctx context.Context, pth string) error