defloader

package
v0.0.0-...-25f2897 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2020 License: MIT Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

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