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: 0

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