orchestrator

package
v0.18.1 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventSDK added in v0.15.0

type EventSDK interface {
	GetStream(f *eventsdk.Filter) *eventsdk.Listener
}

EventSDK event interface needed for the orchestrator

type ExecutionSDK added in v0.15.0

type ExecutionSDK interface {
	Stream(ctx context.Context, req *api.StreamExecutionRequest) (chan *execution.Execution, chan error, error)
	Get(hash hash.Hash) (*execution.Execution, error)
	Create(req *api.CreateExecutionRequest) (*execution.Execution, error)
}

ExecutionSDK execution interface needed for the orchestrator

type Orchestrator

type Orchestrator struct {
	ErrC chan error
	// contains filtered or unexported fields
}

Orchestrator manages the executions based on the definition of the processes

func New

func New(event EventSDK, execution ExecutionSDK, process ProcessSDK, runner RunnerSDK) *Orchestrator

New creates a new Process instance

func (*Orchestrator) Start

func (s *Orchestrator) Start() error

Start the process engine

type ProcessSDK added in v0.15.0

type ProcessSDK interface {
	List() ([]*process.Process, error)
}

ProcessSDK process interface needed for the orchestrator

type RunnerSDK added in v0.17.0

type RunnerSDK interface {
	List(f *runnersdk.Filter) ([]*runner.Runner, error)
}

RunnerSDK is the interface of the runner sdk needed for the orchestrator

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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