MCPcopy
hub / github.com/purpleidea/mgmt / Load

Method Load

engine/graph/engine.go:172–178  ·  view source on GitHub ↗

Load a new graph into the engine. Offline graph operations will be performed on this graph. To switch it to the active graph, and run it, use Commit.

(newGraph *pgraph.Graph)

Source from the content-addressed store, hash-verified

170// Load a new graph into the engine. Offline graph operations will be performed
171// on this graph. To switch it to the active graph, and run it, use Commit.
172func (obj *Engine) Load(newGraph *pgraph.Graph) error {
173 if obj.nextGraph != nil {
174 return fmt.Errorf("can't overwrite pending graph, use abort")
175 }
176 obj.nextGraph = newGraph
177 return nil
178}
179
180// Abort the pending graph and any work in progress on it. After this call you
181// may Load a new graph.

Callers 9

TestAstFunc3Function · 0.95
ShutdownMethod · 0.95
getDataMethod · 0.45
RefreshMethod · 0.45
CheckApplyMethod · 0.45
newFakeInitFunction · 0.45
SentMethod · 0.45
ReversalCleanupMethod · 0.45
ProcessMethod · 0.45

Calls

no outgoing calls

Tested by 2

TestAstFunc3Function · 0.76
newFakeInitFunction · 0.36