Add NodeTree to the scheduler cache

This commit is contained in:
Bobby (Babak) Salamat
2018-07-27 11:56:29 -07:00
parent c1896c97ea
commit a5045d107e
5 changed files with 42 additions and 13 deletions

View File

@@ -125,6 +125,9 @@ type Cache interface {
// IsUpToDate returns true if the given NodeInfo matches the current data in the cache.
IsUpToDate(n *NodeInfo) bool
// NodeTree returns a node tree structure
NodeTree() *NodeTree
}
// Snapshot is a snapshot of cache state