exec

package
v0.0.0-...-ea498fe Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2017 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInvalidExecutor is returned when executor of unknown type is attempted to create
	ErrInvalidExecutor = errors.New("Invalid executor type")
)

Functions

func AsUnixStatusCode

func AsUnixStatusCode(err error) int

AsUnixStatusCode takes an error and resolves Unix status code from it

Types

type Executor

type Executor interface {
	SaveFile(relative string, data []byte) error
	Run(filename string, stdout chan<- []byte) error
	Cleanup() error
}

Executor is a object that is capable of executing a build

func New

func New(b build.Build) (Executor, error)

New creates a new Executor

func NewWithEnvironment

func NewWithEnvironment(b build.Build, env []string) (Executor, error)

NewWithEnvironment creates a new Executor with environment

Jump to

Keyboard shortcuts

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