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

Struct StmtEdge

lang/ast/structs.go:2741–2750  ·  view source on GitHub ↗

StmtEdge is a representation of a dependency. It also supports send/recv. Edges represents that the first resource (Kind/Name) listed in the EdgeHalfList should happen in the resource graph *before* the next resource in the list. If there are multiple StmtEdgeHalf structs listed, then they should re

Source from the content-addressed store, hash-verified

2739// names are compatible and listed. In this case of Send/Recv, only lists of
2740// length two are legal.
2741type StmtEdge struct {
2742 interfaces.Textarea
2743
2744 data *interfaces.Data
2745
2746 EdgeHalfList []*StmtEdgeHalf // represents a chain of edges
2747
2748 // TODO: should notify be an Expr?
2749 Notify bool // specifies that this edge sends a notification as well
2750}
2751
2752// String returns a short representation of this statement.
2753func (obj *StmtEdge) String() string {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected