executor

package
v0.8.15 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2020 License: MIT Imports: 8 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

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

Builder is an executor builder

func DefaultExecutorBuilder

func DefaultExecutorBuilder() (*Builder, error)

DefaultExecutorBuilder create new Builder of docker runner

func (*Builder) Build

func (b *Builder) Build() Executor

Build returns a executor

func (*Builder) EndFunc

func (b *Builder) EndFunc(f func(context.Context, error)) *Builder

EndFunc set a endFunc

func (*Builder) InitFunc added in v0.8.4

func (b *Builder) InitFunc(f func(context.Context)) *Builder

InitFunc set a initFunc

func (*Builder) LogFunc

func (b *Builder) LogFunc(f runner.LogFunc) *Builder

LogFunc set a LogFunc

func (*Builder) StartFunc

func (b *Builder) StartFunc(f func(context.Context)) *Builder

StartFunc set a startFunc

type Executor

type Executor interface {
	Execute(ctx context.Context, target job.Target, cmd ...string) error
}

Executor is job executor

Directories

Path Synopsis
Package mock_executor is a generated GoMock package.
Package mock_executor is a generated GoMock package.

Jump to

Keyboard shortcuts

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