task

package
v0.52.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2020 License: Apache-2.0 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 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
}

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