daggy

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter added in v0.13.0

type Filter []map[string]string

A Filter is a list of mappings that should be used for a Task.

func (Filter) Match added in v0.13.0

func (f Filter) Match(element forensicstore.JSONElement) bool

Match tests if an element matches the filter.

type Task added in v0.13.0

type Task struct {
	Command   string                 `yaml:"command"`
	Arguments map[string]interface{} `yaml:"arguments"`
	Requires  []string               `yaml:"requires"`
}

A Task is a single element in a workflow yml file.

type Workflow

type Workflow struct {
	Tasks map[string]Task `yaml:"tasks"`
	// contains filtered or unexported fields
}

Workflow can be used to parse workflow yml files.

func Parse

func Parse(workflowFile string) (*Workflow, error)

Parse reads a workflow file.

func (*Workflow) Run

func (workflow *Workflow) Run(storeDir string, plugins map[string]*cobra.Command) error

Run walks the direct acyclic graph to execute each task.

func (*Workflow) SetupGraph added in v0.13.0

func (workflow *Workflow) SetupGraph()

SetupGraph creates a direct acyclic graph of tasks.

Jump to

Keyboard shortcuts

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