pipeline

package module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 7, 2019 License: MIT Imports: 12 Imported by: 0

README

pipeline

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Executor

type Executor interface {
	ID() string
	Name() string
	Context() context.Context
	Init(pipeline *Pipeline, name string)
	Run()
}

type Pipeline

type Pipeline struct {
	// contains filtered or unexported fields
}

func NewPipeline

func NewPipeline(configPath string) *Pipeline

func (*Pipeline) AddTask

func (pipeline *Pipeline) AddTask(e Executor, name string)

func (*Pipeline) Context

func (pipeline *Pipeline) Context() context.Context

func (*Pipeline) Done

func (pipeline *Pipeline) Done() <-chan struct{}

func (*Pipeline) Run

func (pipeline *Pipeline) Run()

func (*Pipeline) Stop

func (pipeline *Pipeline) Stop()

func (*Pipeline) TearDown

func (pipeline *Pipeline) TearDown(name string, uuid uuid.UUID)

type Task

type Task struct {
	// contains filtered or unexported fields
}

func (*Task) Context

func (t *Task) Context() context.Context

func (*Task) Done

func (t *Task) Done() <-chan struct{}

func (*Task) ID

func (t *Task) ID() string

func (*Task) Init

func (t *Task) Init(pipeline *Pipeline, name string)

func (*Task) Name

func (t *Task) Name() string

func (*Task) TearDown

func (t *Task) TearDown()

Jump to

Keyboard shortcuts

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