Add initial "autoedge" plumbing

This allows for resources to automatically add necessary edges to the
graph so that the event system doesn't have to work overtime due to
sub-optimal execution order.
This commit is contained in:
James Shubin
2016-02-23 00:13:58 -05:00
parent 54615dc03b
commit c999f0c2cd
10 changed files with 491 additions and 3 deletions

4
pkg.go
View File

@@ -278,6 +278,10 @@ func (obj *PkgRes) CheckApply(apply bool) (stateok bool, err error) {
return false, nil // success
}
func (obj *PkgRes) AutoEdges() AutoEdge {
return nil
}
func (obj *PkgRes) Compare(res Res) bool {
switch res.(type) {
case *PkgRes: