Documentation ¶
Index ¶
- func Dependencies(index int, stages []instructions.Stage, buildArgs *BuildArgs) ([]string, error)
- func Parse(b []byte) ([]instructions.Stage, error)
- func ParseCommands(cmdArray []string) ([]instructions.Command, error)
- func ResolveStages(stages []instructions.Stage)
- func ValidateTarget(stages []instructions.Stage, target string) error
- type BuildArgs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Dependencies ¶
Dependencies returns a list of files in this stage that will be needed in later stages
func Parse ¶
func Parse(b []byte) ([]instructions.Stage, error)
Parse parses the contents of a Dockerfile and returns a list of commands
func ParseCommands ¶
func ParseCommands(cmdArray []string) ([]instructions.Command, error)
ParseCommands parses an array of commands into an array of instructions.Command; used for onbuild
func ResolveStages ¶
func ResolveStages(stages []instructions.Stage)
ResolveStages resolves any calls to previous stages with names to indices Ex. --from=second_stage should be --from=1 for easier processing later on
func ValidateTarget ¶ added in v0.3.0
func ValidateTarget(stages []instructions.Stage, target string) error
Types ¶
type BuildArgs ¶
func NewBuildArgs ¶
func (*BuildArgs) ReplacementEnvs ¶
ReplacementEnvs returns a list of filtered environment variables
Click to show internal directories.
Click to hide internal directories.