Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ZbuildfileNotFound = xerrors.New("zbuildfile not found")
ZbuildfileNotFound is an error returned when there's no zbuild.yml file found in the build context.
Functions ¶
func Load ¶
func Load( ctx context.Context, solver statesolver.StateSolver, buildOpts builddef.BuildOpts, ) (*builddef.BuildDef, error)
Load uses a StateSolver to load a zbuildfile and its lockfile (as specified by the BuildOpts). Since a StateSolver is used, this function can be called either from a Buildkit builder (with no direct access to the filesystem) or from a CLI binary. ZbuildfileNotFound is returned when the zbuild file could not be found. However, if the lockfile is not found, the BuildDef.RawLocks property is left empty. Also, this function doesn't check if the loaded RawLocks are out-of-sync with the RawConfig, so it's the caller responsibility to do so.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.