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: ? modules, 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

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