MCPcopy Index your code
hub / github.com/koding/kite / Kites

Method Kites

kontrol/node.go:96–111  ·  view source on GitHub ↗

Kites returns a list of kites that are gathered by collecting recursively all nodes under the current node.

()

Source from the content-addressed store, hash-verified

94// Kites returns a list of kites that are gathered by collecting recursively
95// all nodes under the current node.
96func (n *Node) Kites() (Kites, error) {
97 // Get all nodes recursively.
98 nodes := n.Flatten()
99
100 // Convert etcd nodes to kites.
101 var err error
102 kites := make(Kites, len(nodes))
103 for i, n := range nodes {
104 kites[i], err = n.Kite()
105 if err != nil {
106 return nil, err
107 }
108 }
109
110 return kites, nil
111}

Callers 1

GetMethod · 0.95

Calls 2

FlattenMethod · 0.95
KiteMethod · 0.95

Tested by

no test coverage detected