executors

package
v0.0.0-...-5e0a7a3 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 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, parameters []string) (Result, error)

type Executor

type Executor interface {
	Execute(ctx context.Context, task tasks.Task, parameters []string) (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