args

package
v1.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2024 License: BSD-3-Clause Imports: 10 Imported by: 0

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 ReadBuildArgs

func ReadBuildArgs(args []string, argFile string) (map[string]string, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL