Documentation ¶
Overview ¶
Package graph implements graph traversal and creation algorithms for the recipe dependency tree.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Installer ¶
type Installer struct { Name string Runner runner.Installer Dependencies []RecipeLoader }
type RecipeIndex ¶
func Generate ¶
func Generate(installers []runner.Installer, rconfig RemoteConfig) (RecipeIndex, error)
Generate produces a graph for each recipe.
func (RecipeIndex) Dump ¶
func (ri RecipeIndex) Dump()
func (RecipeIndex) Traverse ¶
func (ri RecipeIndex) Traverse(ctx context.Context, fn TraverseFn) error
Traverse traverses all recipes in the graph. It will only present recipes that it has presented all dependencies for.
type RecipeLoader ¶
RecipeLoader implements a recipe graph where some recipes may not be loaded yet.
type RemoteConfig ¶
type RemoteConfig struct {
Path string
}
RemoteConfig configures how we pull dependencies.
type TraverseFn ¶
func TraverseOnce ¶
func TraverseOnce(fn TraverseFn) TraverseFn
TraverseOnce returns a TraverseFn that only calls fn on each target once.
Click to show internal directories.
Click to hide internal directories.