MCPcopy Index your code
hub / github.com/devspace-sh/devspace / NewNode

Function NewNode

pkg/devspace/dependency/graph/graph.go:48–56  ·  view source on GitHub ↗
(id string, data interface{})

Source from the content-addressed store, hash-verified

46}
47
48func NewNode(id string, data interface{}) *Node {
49 return &Node{
50 ID: id,
51 Data: data,
52
53 Parents: make([]*Node, 0, 1),
54 Childs: make([]*Node, 0, 1),
55 }
56}
57
58// InsertNodeAt inserts a new node at the given parent position
59func (g *Graph) InsertNodeAt(parentID string, id string, data interface{}) (*Node, error) {

Callers 5

NewResolverFunction · 0.92
NewDependencyRegistryFunction · 0.92
orderVariablesMethod · 0.92
TestGraphFunction · 0.70
InsertNodeAtMethod · 0.70

Calls

no outgoing calls

Tested by 1

TestGraphFunction · 0.56