task

package
v0.60.0 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Argument

type Argument struct {
	Key   string
	Value interface{}
}

Argument is key value struct that should be passed in a service call

type Metadata

type Metadata struct {
	Name string
	Time struct {
		// StaredAt the time when the step was started execution
		StartedAt time.Time
		// FinishedAt the time when the step finished execution
		FinishedAt time.Time
	}
}

Metadata holds all the metadata of a pipeline

type Runner added in v0.60.0

type Runner interface {
	Run() error
}

Runner to run task in the same process of instead of calling

type Spec

type Spec struct {
	Service   string
	Endpoint  string
	Arguments []Argument
}

Spec is the spec of a task

type Task

type Task struct {
	Metadata Metadata
	Spec     Spec
	Runner   Runner
}

Task is a task a pipeline should execute

Jump to

Keyboard shortcuts

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