task

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2017 License: Apache-2.0 Imports: 15 Imported by: 6 modules, 10 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	Init = iota
	Running
	Succeeded
	Failed
	Skipped
	Aborted
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Task

type Task struct {
	Name           string
	Command        string
	Directory      string
	Parallel       []*Task
	Serial         []*Task
	Stdout         *bytes.Buffer
	Stderr         *bytes.Buffer
	CombinedOutput *bytes.Buffer
	Status         int
	Cmd            *exec.Cmd
	Include        string
	OnlyIf         string   `yaml:"only_if"`
	WaitFor        *WaitFor `yaml:"wait_for"`
}

func (*Task) Run

func (t *Task) Run(ctx context.Context, cancel context.CancelFunc, prevTask *Task) error

type WaitFor

type WaitFor struct {
	Host  string
	Port  int
	File  string
	State string
	Delay float64
}

Jump to

Keyboard shortcuts

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