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)
- type Change
- type Conflict
- type Editor
- func (e *Editor) GetDagService() dag.DAGService
- func (e *Editor) GetNode() *dag.Node
- func (e *Editor) InsertNodeAtPath(ctx context.Context, path string, toinsert *dag.Node, create func() *dag.Node) error
- func (e *Editor) RmLink(ctx context.Context, path string) error
- func (e *Editor) WriteOutputTo(ds dag.DAGService) 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
Types ¶
type Editor ¶
type Editor struct {
// contains filtered or unexported fields
}
func NewDagEditor ¶
func NewDagEditor(ds dag.DAGService, root *dag.Node) *Editor
func (*Editor) GetDagService ¶ added in v0.3.8
func (e *Editor) GetDagService() dag.DAGService
func (*Editor) InsertNodeAtPath ¶
func (*Editor) WriteOutputTo ¶ added in v0.3.8
func (e *Editor) WriteOutputTo(ds dag.DAGService) error
Click to show internal directories.
Click to hide internal directories.