dag

package
v1.21.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Config config.Config
}

func DefaultConfig

func DefaultConfig() *Config

type DAG

type DAG interface {
	Init(context.Context, []Task) error
	Deinit(context.Context) error
	Run(context.Context, func(string, runner.File, []string, runner.Livelog) error, runner.Livelog) error
}

func New

func New(_ context.Context, cfg *Config) DAG

type Dag

type Dag struct {
	Vertex []Vertex
	Edge   []Edge
}

type Edge

type Edge struct {
	From string
	To   string
}

type Task

type Task struct {
	Name     string
	File     runner.File
	Commands []string
	Depends  []string
}

type Vertex

type Vertex struct {
	Name     string
	File     runner.File
	Commands []string
}

Jump to

Keyboard shortcuts

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