run

package
v0.0.0-...-c57eb44 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2021 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Running = iota
	Paused
	Restarting
	Exited
	Dead
	Unkown
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	Start    time.Time `json:"start"`
	Finish   time.Time `json:"finish"`
	ID       int       `json:"id"`
	ExitCode int       `json:"exit_code"`
	Runner   string    `json:"runner"`
	Running  bool      `json:"running"`
}

Data is struct used to specified required run data that abstraction should provide

type Run

type Run interface {
	Down() error
	Wait(context.Context) (status.Status, error)
	RunnerID() (string, error)
	RegisteredName() string
	Status() (Status, int, error)
	Data() Data
}

type Status

type Status int

Jump to

Keyboard shortcuts

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