Documentation
¶
Index ¶
- Variables
- 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)
- type BuildArgs
- func (b *BuildArgs) AddArg(key string, value *string)
- func (b *BuildArgs) AddMetaArgs(metaArgs []instructions.ArgCommand)
- func (b *BuildArgs) Clone() *BuildArgs
- func (b *BuildArgs) GetAllAllowed() map[string]string
- func (b *BuildArgs) GetAllMeta() map[string]string
- func (b *BuildArgs) InitPredefinedArgs(customPlatform string, lastStage string) error
- func (b *BuildArgs) RemoveArg(key string)
- func (b *BuildArgs) ReplacementEnvs(envs []string) []string
Constants ¶
This section is empty.
Variables ¶
var GetRemoteOnBuild = getRemoteOnBuild
Functions ¶
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)
Types ¶
type BuildArgs ¶
type BuildArgs struct {
// contains filtered or unexported fields
}
BuildArgs manages arguments used by the builder
func NewBuildArgs ¶
func (*BuildArgs) AddMetaArgs ¶
func (b *BuildArgs) AddMetaArgs(metaArgs []instructions.ArgCommand)
AddMetaArgs adds the supplied args map to b's allowedMetaArgs
func (*BuildArgs) GetAllAllowed ¶
GetAllAllowed returns a mapping with all the allowed args
func (*BuildArgs) GetAllMeta ¶
GetAllMeta returns a mapping with all the meta args
func (*BuildArgs) InitPredefinedArgs ¶
Initialize predefined build args s.a.: TARGETOS, TARGETARCH, BUILDPLATFORM, TARGETPLATFORM ...
func (*BuildArgs) RemoveArg ¶ added in v1.27.3
RemoveArg removes a key from allowedBuildArgs. Called by EnvCommand when an ENV instruction follows an ARG of the same name in the same stage, so that the ENV value takes precedence in subsequent instructions.
func (*BuildArgs) ReplacementEnvs ¶
ReplacementEnvs returns a list of filtered environment variables