worker

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Worker

type Worker interface {
	Start(ctx context.Context) (<-chan string, error)
	Stop(ctx context.Context, timeout *time.Duration)
	Stopped() <-chan int64
}

Worker represents a container executor. It has a lifetime of a single command execution.

func New added in v0.9.0

func New(command data.CommandRequest, token rest.Token) (Worker, error)

New will build and return a new Worker for a single command execution.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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