Documentation
¶
Index ¶
- func DockerignoreExists(opts *config.KanikoOptions) bool
- func Parse(b []byte) ([]instructions.Stage, []instructions.ArgCommand, error)
- func ParseCommands(cmdArray []string) ([]instructions.Command, error)
- func ParseDockerignore(opts *config.KanikoOptions) ([]string, error)
- func Stages(opts *config.KanikoOptions) ([]config.KanikoStage, error)
- type BuildArgs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DockerignoreExists ¶ added in v0.6.0
func DockerignoreExists(opts *config.KanikoOptions) bool
DockerignoreExists returns true if .dockerignore exists in the source context
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 ParseDockerignore ¶ added in v0.6.0
func ParseDockerignore(opts *config.KanikoOptions) ([]string, error)
ParseDockerignore returns a list of all paths in .dockerignore
func Stages ¶ added in v0.4.0
func Stages(opts *config.KanikoOptions) ([]config.KanikoStage, error)
Stages parses a Dockerfile and returns an array of KanikoStage
Types ¶
type BuildArgs ¶
func NewBuildArgs ¶
func (*BuildArgs) AddMetaArgs ¶ added in v0.6.0
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.