Documentation ¶
Index ¶
- func GetOnBuildInstructions(config *v1.Config, stageNameToIdx map[string]string) ([]instructions.Command, error)
- func MakeKanikoStages(opts *config.KanikoOptions, stages []instructions.Stage, ...) ([]config.KanikoStage, error)
- func Parse(b []byte) ([]instructions.Stage, []instructions.ArgCommand, error)
- func ParseCommands(cmdArray []string) ([]instructions.Command, error)
- func ParseStages(opts *config.KanikoOptions) ([]instructions.Stage, []instructions.ArgCommand, error)
- func ResolveCrossStageCommands(cmds []instructions.Command, stageNameToIdx map[string]string)
- type BuildArgs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetOnBuildInstructions ¶
func MakeKanikoStages ¶
func MakeKanikoStages(opts *config.KanikoOptions, stages []instructions.Stage, metaArgs []instructions.ArgCommand) ([]config.KanikoStage, error)
func Parse ¶
func Parse(b []byte) ([]instructions.Stage, []instructions.ArgCommand, 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 ParseStages ¶
func ParseStages(opts *config.KanikoOptions) ([]instructions.Stage, []instructions.ArgCommand, error)
func ResolveCrossStageCommands ¶
func ResolveCrossStageCommands(cmds []instructions.Command, stageNameToIdx map[string]string)
ResolveCrossStageCommands resolves any calls to previous stages with names to indices Ex. --from=secondStage should be --from=1 for easier processing later on As third party library lowers stage name in FROM instruction, this function resolves stage case insensitively.
Types ¶
type BuildArgs ¶
func NewBuildArgs ¶
func (*BuildArgs) AddMetaArgs ¶
func (b *BuildArgs) AddMetaArgs(metaArgs []instructions.ArgCommand)
AddMetaArgs adds the supplied args map to b's allowedMetaArgs
func (*BuildArgs) ReplacementEnvs ¶
ReplacementEnvs returns a list of filtered environment variables
Click to show internal directories.
Click to hide internal directories.