executors

package
v0.0.0-...-2fb38fc Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DockerExecutor

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

func NewDockerExecutor

func NewDockerExecutor(client *client.Client) *DockerExecutor

func (DockerExecutor) Execute

func (e DockerExecutor) Execute(ctx context.Context, task tasks.Task) (Result, error)

type Executor

type Executor interface {
	Execute(ctx context.Context, task tasks.Task) (Result, error)
}

type Result

type Result struct {
	StatusCode int
	Output     string
	Error      string
}

Jump to

Keyboard shortcuts

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