types

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2016 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StartEvent = EventType(iota + 1)
	OutputEvent
	EndEvent
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Type     EventType
	Task     string
	Time     time.Time
	Body     []byte
	ExitCode int
}

func NewEndEvent

func NewEndEvent(taskName string, exitCode int) *Event

func NewOutputEvent

func NewOutputEvent(taskName string, body []byte) *Event

func NewStartEvent

func NewStartEvent(taskName string) *Event

type EventType added in v0.2.0

type EventType int

type Task

type Task struct {
	Name        string
	Description string
	Time        bool
	Run         string
	Executor    string
	Pre         []string
	Post        []string
	Env         []string
	Workdir     string
}

Task is a representation of a dogfile task

type TaskMap

type TaskMap map[string]*Task

TaskMap is a map in which the key is a task name and the value is a Task object

Jump to

Keyboard shortcuts

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