Documentation ¶
Index ¶
- func NewExecutor(name string, useCache, tty bool) (executor.Executor, error)
- type Builder
- func (b *Builder) AddVerb(name string, fn verbFunc, args mruby.ArgSpec)
- func (b *Builder) Close() error
- func (b *Builder) FinalCommit(ok bool)
- func (b *Builder) ImageID() string
- func (b *Builder) Run(script string) (*mruby.MrbValue, error)
- func (b *Builder) SetCache(useCache bool)
- func (b *Builder) Tag(name string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder implements the builder core.
func NewBuilder ¶
NewBuilder creates a new builder. Returns error on docker or mruby issues.
func (*Builder) AddVerb ¶
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) FinalCommit ¶ added in v0.3.1
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 ¶
ImageID returns the latest known Image identifier that we committed. At the end of the run this will be the golden docker image.
Click to show internal directories.
Click to hide internal directories.