Documentation
¶
Index ¶
- func NewExecutor(name string, useCache, tty bool) (executor.Executor, error)
- type Builder
- func (b *Builder) AddVerb(name string, vd *verbDefinition)
- func (b *Builder) Close() error
- func (b *Builder) ImageID() string
- func (b *Builder) Mrb() *mruby.Mrb
- func (b *Builder) Run(script string) (*mruby.MrbValue, error)
- func (b *Builder) RunCode(val *mruby.MrbValue, stackKeep int) (*mruby.MrbValue, int, 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) ImageID ¶
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) RunCode ¶ added in v0.3.3
RunCode runs the ruby value (a proc) and returns the result.
Click to show internal directories.
Click to hide internal directories.