Versions in this module Expand all Collapse all v1 v1.1.0 Mar 22, 2019 Changes in this version + const NoBaseImageSpecifier + var ErrNoFROM = fmt.Errorf("no FROM statement found") + var LogExecutor = logExecutor + var NoopExecutor = noopExecutor + func BashQuote(env string) string + func ExportEnv(env []string) string + func ParseDockerfile(r io.Reader) (*parser.Node, error) + func ParseDockerignore(root string) ([]string, error) + func ParseFile(path string) (*parser.Node, error) + func ProcessWord(word string, env []string) (string, error) + func ProcessWords(word string, env []string) ([]string, error) + func SplitBy(node *parser.Node, value string) []*parser.Node + func SplitChildren(node *parser.Node, value string) []*parser.Node + type Builder struct + AllowedArgs map[string]bool + Args map[string]string + Author string + CmdSet bool + Env []string + Excludes []string + PendingCopies []Copy + PendingRuns []Run + PendingVolumes VolumeSet + RunConfig docker.Config + Volumes VolumeSet + Warnings []string + func NewBuilder(args map[string]string) *Builder + func (b *Builder) Arguments() []string + func (b *Builder) Config() *docker.Config + func (b *Builder) From(node *parser.Node) (string, error) + func (b *Builder) FromImage(image *docker.Image, node *parser.Node) error + func (b *Builder) RequiresStart(node *parser.Node) bool + func (b *Builder) Run(step *Step, exec Executor, noRunsRemaining bool) error + func (b *Builder) Step() *Step + type Copy struct + Chown string + Dest string + Download bool + From string + FromFS bool + Src []string + type Executor interface + Copy func(excludes []string, copies ...Copy) error + EnsureContainerPath func(path string) error + Preserve func(path string) error + Run func(run Run, config docker.Config) error + UnrecognizedInstruction func(step *Step) error + type Run struct + Args []string + Shell bool + type Stage struct + Builder *Builder + Name string + Node *parser.Node + Position int + type Stages []Stage + func NewStages(node *parser.Node, b *Builder) (Stages, error) + func (stages Stages) ByName(name string) (Stage, bool) + func (stages Stages) ByTarget(target string) (Stages, bool) + func (stages Stages) ThroughTarget(target string) (Stages, bool) + type Step struct + Args []string + Attrs map[string]bool + Command string + Env []string + Flags []string + Message string + Original string + func (b *Step) Resolve(ast *parser.Node) error + type StepFunc func(*Builder, []string, map[string]bool, []string, string) error + type VolumeSet []string + func (s *VolumeSet) Add(path string) bool + func (s VolumeSet) Covers(path string) bool + func (s VolumeSet) Has(path string) bool