Versions in this module Expand all Collapse all v0 v0.3.3 Nov 21, 2018 v0.3.2 Oct 31, 2018 v0.3.1 Oct 17, 2018 v0.3.0 Oct 12, 2018 Changes in this version + func HasStage(s []Stage, name string) (int, bool) + func IsCurrentStage(s []Stage, name string) bool + func IsUnknownInstruction(err error) bool + func Parse(ast *parser.Node) (stages []Stage, metaArgs []ArgCommand, err error) + func ParseInstruction(node *parser.Node) (interface{}, error) + type AddCommand struct + Chown string + func (c *AddCommand) Expand(expander SingleWordExpander) error + func (c *AddCommand) Name() string + func (c *AddCommand) String() string + type ArgCommand struct + func (c *ArgCommand) Expand(expander SingleWordExpander) error + func (c *ArgCommand) Name() string + func (c *ArgCommand) String() string + type BFlags struct + Args []string + Err error + func NewBFlags() *BFlags + func NewBFlagsWithArgs(args []string) *BFlags + func (bf *BFlags) AddBool(name string, def bool) *Flag + func (bf *BFlags) AddString(name string, def string) *Flag + func (bf *BFlags) AddStrings(name string) *Flag + func (bf *BFlags) Parse() error + type CmdCommand struct + func (c *CmdCommand) Name() string + func (c *CmdCommand) String() string + type Command interface + Name func() string + func ParseCommand(node *parser.Node) (Command, error) + type CopyCommand struct + Chown string + From string + func (c *CopyCommand) Expand(expander SingleWordExpander) error + func (c *CopyCommand) Name() string + func (c *CopyCommand) String() string + type EntrypointCommand struct + func (c *EntrypointCommand) Name() string + func (c *EntrypointCommand) String() string + type EnvCommand struct + Env KeyValuePairs + func (c *EnvCommand) Expand(expander SingleWordExpander) error + func (c *EnvCommand) Name() string + func (c *EnvCommand) String() string + type ExposeCommand struct + Ports []string + func (c *ExposeCommand) Name() string + func (c *ExposeCommand) String() string + type Flag struct + StringValues []string + Value string + func (fl *Flag) IsTrue() bool + func (fl *Flag) IsUsed() bool + type FlagType int + type HealthCheckCommand struct + Health *container.HealthConfig + func (c *HealthCheckCommand) Name() string + func (c *HealthCheckCommand) String() string + type KeyValuePair struct + Key string + Value string + func (kvp *KeyValuePair) String() string + type KeyValuePairOptional struct + Key string + Value *string + func (kvpo *KeyValuePairOptional) ValueString() string + type KeyValuePairs []KeyValuePair + type LabelCommand struct + Labels KeyValuePairs + func NewLabelCommand(k string, v string, NoExp bool) *LabelCommand + func (c *LabelCommand) Expand(expander SingleWordExpander) error + func (c *LabelCommand) Name() string + func (c *LabelCommand) String() string + type MaintainerCommand struct + Maintainer string + func (c *MaintainerCommand) Name() string + func (c *MaintainerCommand) String() string + type OnbuildCommand struct + Expression string + func (c *OnbuildCommand) Name() string + func (c *OnbuildCommand) String() string + type PlatformSpecific interface + CheckPlatform func(platform string) error + type RunCommand struct + func (c *RunCommand) Name() string + func (c *RunCommand) String() string + type ShellCommand struct + Shell strslice.StrSlice + func (c *ShellCommand) Name() string + func (c *ShellCommand) String() string + type ShellDependantCmdLine struct + CmdLine strslice.StrSlice + PrependShell bool + type SingleWordExpander func(word string) (string, error) + type SourcesAndDest []string + func (s SourcesAndDest) Dest() string + func (s SourcesAndDest) Sources() []string + type Stage struct + BaseName string + Commands []Command + Name string + Platform string + SourceCode string + func CurrentStage(s []Stage) (*Stage, error) + func (s *Stage) AddCommand(cmd Command) + type StopSignalCommand struct + Signal string + func (c *StopSignalCommand) CheckPlatform(platform string) error + func (c *StopSignalCommand) Expand(expander SingleWordExpander) error + func (c *StopSignalCommand) Name() string + func (c *StopSignalCommand) String() string + type SupportsSingleWordExpansion interface + Expand func(expander SingleWordExpander) error + type UnknownInstruction struct + Instruction string + Line int + func (e *UnknownInstruction) Error() string + type UserCommand struct + User string + func (c *UserCommand) Expand(expander SingleWordExpander) error + func (c *UserCommand) Name() string + func (c *UserCommand) String() string + type VolumeCommand struct + Volumes []string + func (c *VolumeCommand) Expand(expander SingleWordExpander) error + func (c *VolumeCommand) Name() string + func (c *VolumeCommand) String() string + type WorkdirCommand struct + Path string + func (c *WorkdirCommand) Expand(expander SingleWordExpander) error + func (c *WorkdirCommand) Name() string + func (c *WorkdirCommand) String() string