builder

package
v0.0.0-...-67d9101 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2017 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewExecutor

func NewExecutor(name string, globals *types.Global) (executor.Executor, error)

NewExecutor returns a valid executor for the given name, or error.

Types

type BuildConfig

type BuildConfig struct {
	Globals  *types.Global
	Runner   chan struct{}
	FileName string
	Vars     map[string]string
}

BuildConfig is a struct containing the configuration for the builder.

type Builder

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

Builder implements the builder core.

func NewBuilder

func NewBuilder(bc BuildConfig) (*Builder, error)

NewBuilder creates a new builder. Returns error on docker or mruby issues.

func (*Builder) Close

func (b *Builder) Close() error

Close tears down all functions of the builder, preparing it for exit.

func (*Builder) Config

func (b *Builder) Config() *BuildConfig

Config returns the BuildConfig associated with this builder

func (*Builder) Result

func (b *Builder) Result() types.BuildResult

Result returns the latest cached result from any run invocation. The behavior is undefined if called before any Run()-style invocation.

func (*Builder) Run

func (b *Builder) Run() types.BuildResult

Run runs the script set by the BuildConfig. It closes the run channel when it finishes.

func (*Builder) Tag

func (b *Builder) Tag(tag string) error

Tag the image with the name

func (*Builder) Wait

func (b *Builder) Wait() types.BuildResult

Wait waits for the build to complete.

Directories

Path Synopsis
Package command - command for the box builder Documentation is deliberately simple here, it maps directly to the verbs and functions in the box builder documentation: https://box-builder.github.io/box.
Package command - command for the box builder Documentation is deliberately simple here, it maps directly to the verbs and functions in the box builder documentation: https://box-builder.github.io/box.

Jump to

Keyboard shortcuts

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