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

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