Documentation ¶
Overview ¶
Package validate provides methods to validate a build.
Index ¶
- Constants
- func CheckBuild(b *cb.Build) error
- func CheckBuildSteps(steps []*cb.BuildStep) error
- func CheckImages(images []string) error
- func CheckSubstitutionTemplate(images []string, steps []*cb.BuildStep, substitutions map[string]string) error
- func CheckSubstitutions(substitutions map[string]string) error
Constants ¶
View Source
const ( // StartStep is a build step WaitFor dependency that is always satisfied. StartStep = "-" // MaxImageLength is the max length of image value. Used in other packages. MaxImageLength = 1000 )
Variables ¶
This section is empty.
Functions ¶
func CheckBuild ¶
CheckBuild returns nil if build is valid, otherwise a descriptive canonical error.
func CheckBuildSteps ¶
CheckBuildSteps checks the number of steps, and their content.
func CheckImages ¶
CheckImages checks the number of images and image's length are under limits.
func CheckSubstitutionTemplate ¶
func CheckSubstitutionTemplate(images []string, steps []*cb.BuildStep, substitutions map[string]string) error
CheckSubstitutionTemplate checks that all the substitution variables are used and all the variables found in the template are used too.
func CheckSubstitutions ¶
CheckSubstitutions validates the substitutions map.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.