task

package
v0.57.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 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 Command added in v0.53.0

type Command struct {
	EnvironmentVariables []Argument
	// Program is executable program
	Program   string
	Arguments []string
	// WorkingDirectory default is the current directory
	WorkingDirectory string
}

Command is a command to be executed as a sub-process

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
	Cmd       *Command
}

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