Documentation ¶
Index ¶
- Constants
- func ApplyChange(ctx context.Context, ds dag.DAGService, nd *dag.Node, cs []*Change) (*dag.Node, error)
- func MergeDiffs(a, b []*Change) ([]*Change, []Conflict)
- func NewMemoryDagService() dag.DAGService
- type Change
- type Conflict
- type Editor
- func (e *Editor) Finalize(ds dag.DAGService) (*dag.Node, error)
- func (e *Editor) GetDagService() dag.DAGService
- func (e *Editor) GetNode() *dag.Node
- func (e *Editor) InsertNodeAtPath(ctx context.Context, pth string, toinsert *dag.Node, create func() *dag.Node) error
- func (e *Editor) RmLink(ctx context.Context, pth string) error
Constants ¶
View Source
const ( Add = iota Remove Mod )
Variables ¶
This section is empty.
Functions ¶
func ApplyChange ¶ added in v0.3.8
func MergeDiffs ¶ added in v0.3.8
func NewMemoryDagService ¶ added in v0.4.0
func NewMemoryDagService() dag.DAGService
Types ¶
type Editor ¶
type Editor struct {
// contains filtered or unexported fields
}
func NewDagEditor ¶
func NewDagEditor(root *dag.Node, source dag.DAGService) *Editor
root is the node to be modified, source is the dagstore to pull nodes from (optional)
func (*Editor) GetDagService ¶ added in v0.3.8
func (e *Editor) GetDagService() dag.DAGService
func (*Editor) InsertNodeAtPath ¶
Click to show internal directories.
Click to hide internal directories.