Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewReader ¶
func NewReader(src io.Reader, buildArgsMap map[string]string, defaultArgsMap map[string]string, consumedArgs *[]string) (io.Reader, error)
NewReader creates a io.Reader that will provide the contents of a def file with build-args replacements applied. src is an io.Reader from which the pre-replacement def file will be read. buildArgsMap provides the replacements requested by the user, and defaultArgsMap provides the replacements specified in the %arguments section of the def file (or build stage). The arguments actually encountered in the course of the replacement will be appended to the slice designated by consumedArgs.
func ReadDefaults ¶
func ReadDefaults(def types.Definition) map[string]string
ReadDefaults reads in the '%arguments' section of (one build stage of) a definition file, and returns the default argument values specified in that section as a map. If file contained no '%arguments' section, an empty map is returned.
Types ¶
This section is empty.