task

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type State

type State int
const (
	Ready State = iota
	Running
	Canceled
	Failed
	Done
	Interrupted
)

func (State) String

func (s State) String() string

type Task

type Task struct {
	Id uuid.UUID `json:"id"`
	// Run is used to save the name of the main/master container for this service
	Run      string                 `json:"run"`
	Service  string                 `json:"service"`
	Project  string                 `json:"project"`
	Branch   string                 `json:"branch"`
	Commit   string                 `json:"commit"`
	Creation time.Time              `json:"creation"`
	Args     map[string]interface{} `json:"Args"`
	State    State
}

func (*Task) Logs added in v0.2.2

func (t *Task) Logs(ctx context.Context, follow bool) (io.ReadCloser, error)

Logs steam logs of the current run

func (*Task) Validate

func (t *Task) Validate() error

Jump to

Keyboard shortcuts

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