graph

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JobGraph

type JobGraph struct {
	// contains filtered or unexported fields
}

func NewJobGraph

func NewJobGraph(jobs []*config.Job) JobGraph

func (*JobGraph) BuildGraph

func (j *JobGraph) BuildGraph(jobs []*config.Job)

func (*JobGraph) ResolveTarget

func (j *JobGraph) ResolveTarget(target string, callback func(*config.Job) error) []error

func (*JobGraph) WaitForDeps

func (j *JobGraph) WaitForDeps(n *Node, callback func(*config.Job) error) func(*config.Job) error

type Node

type Node struct {
	Job  *config.Job
	Done chan bool
}

func NewNode

func NewNode(job *config.Job) *Node

func (Node) ID

func (n Node) ID() int64

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL