builder

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2016 License: Apache-2.0 Imports: 16 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewExecutor

func NewExecutor(name string, useCache, tty bool) (executor.Executor, error)

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

Types

type Builder

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

Builder implements the builder core.

func NewBuilder

func NewBuilder(tty bool, omitFuncs []string) (*Builder, error)

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

func (*Builder) AddVerb

func (b *Builder) AddVerb(name string, fn verbFunc, args mruby.ArgSpec)

AddVerb adds a function to the mruby dispatch as well as adding hooks around the call to ensure containers are committed and intermediate layers are cleared.

func (*Builder) Close

func (b *Builder) Close() error

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

func (*Builder) FinalCommit added in v0.3.1

func (b *Builder) FinalCommit(ok bool)

FinalCommit instructs the builder to perform the final commit at builder termination time. This, however, should not happen if instructed not to or in cases where the builder may be paused e.g., the repl.

func (*Builder) ImageID

func (b *Builder) ImageID() string

ImageID returns the latest known Image identifier that we committed. At the end of the run this will be the golden docker image.

func (*Builder) Run

func (b *Builder) Run(script string) (*mruby.MrbValue, error)

Run the script.

func (*Builder) SetCache

func (b *Builder) SetCache(useCache bool)

SetCache sets the caching strategy for builds. Turn on to use caching, off to not. The default is set to whether or not the environment variable (NO_CACHE) is non-empty.

func (*Builder) Tag

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

Tag tags the last image yielded by the builder with the provided name.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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