Documentation ¶
Index ¶
Constants ¶
View Source
const ( ProductsParamName = "products" OSArchFlagName = "os-arch" )
Variables ¶
View Source
var ( ProductsParam = flag.StringSlice{ Name: ProductsParamName, Usage: "Products for which action should be performed", Optional: true, } OSArchFlag = flag.StringFlag{ Name: OSArchFlagName, Usage: "GOOS-GOARCH for the command (comma-separate for multiple values)", } )
Functions ¶
func ScriptEnvVariables ¶
func ScriptEnvVariables(buildSpec params.ProductBuildSpec, outputProductDir string) map[string]string
Types ¶
type BuildFunc ¶
type BuildFunc func(buildSpecWithDeps []params.ProductBuildSpecWithDeps, stdout io.Writer) error
func ProcessSerially ¶
func ProcessSerially(f func(buildSpec params.ProductBuildSpecWithDeps, stdout io.Writer) error) BuildFunc
ProcessSerially returns a BuildFunc that processes each of the provided specs in order using the provided function. If the function returns an error for any of the specifications, the function immediately returns that error.
func ProcessSeriallyBatchErrors ¶
func ProcessSeriallyBatchErrors(f func(buildSpec params.ProductBuildSpecWithDeps, stdout io.Writer) error) BuildFunc
ProcessSeriallyBatchErrors returns a BuildFunc that processes each of the provided specs in order using the provided function. If the function returns an error for any of the specifications, it is stored, but the function will will continue processing the provided specifications. The function return nil if no errors occurred; otherwise, it returns a SpecErrors error that contains the individual errors.
type OSArchFilter ¶
func NewOSArchFilter ¶
func NewOSArchFilter(osArchs string) (OSArchFilter, error)
type ProcessFunc ¶
type SpecErrors ¶
func (*SpecErrors) Error ¶
func (e *SpecErrors) Error() string
Click to show internal directories.
Click to hide internal directories.