Documentation ¶
Overview ¶
Package depgraph provides a resource dependency graph suitable for scheduling work.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Graph ¶
type Graph struct {
// contains filtered or unexported fields
}
A Graph schedules work for a DAG of resources.
func New ¶
func New(res catalog.Resource_List) (*Graph, error)
New builds a graph from a list of dependencies or returns an error if the dependency information contains inconsistencies.
func (*Graph) MarkFailure ¶
Mark marks a resource as "completed with failure" and returns the list of resource IDs that depended on this resource, either directly or indirectly. Any resource on the returned list will never appear in the ready list.
Click to show internal directories.
Click to hide internal directories.