builder

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2020 License: MPL-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildOpt added in v0.3.2

type BuildOpt struct {
	PrintSuccess bool
	NoOutput     bool
	Push         bool
}

BuildOpt is a collection of build options.

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

Builder provides a earth commands executor.

func NewBuilder

func NewBuilder(ctx context.Context, bkClient *client.Client, console conslogging.ConsoleLogger, attachables []session.Attachable, enttlmnts []entitlements.Entitlement, noCache bool, remoteCache string) (*Builder, error)

NewBuilder returns a new earth Builder.

func (*Builder) Build

Build performs the build for the given multi target states, outputting images for all sub-targets and artifacts for all local sub-targets.

func (*Builder) BuildOnlyArtifact

func (b *Builder) BuildOnlyArtifact(ctx context.Context, mts *earthfile2llb.MultiTargetStates, artifact domain.Artifact, destPath string, opt BuildOpt) error

BuildOnlyArtifact performs the build for the given multi target states, outputting only the provided artifact of the final states.

func (*Builder) BuildOnlyImages

func (b *Builder) BuildOnlyImages(ctx context.Context, mts *earthfile2llb.MultiTargetStates, opt BuildOpt) error

BuildOnlyImages performs the build for the given multi target states, outputting only images of the final states.

func (*Builder) BuildOnlyLastImageAsTar

func (b *Builder) BuildOnlyLastImageAsTar(ctx context.Context, mts *earthfile2llb.MultiTargetStates, dockerTag string, outFile string, opt BuildOpt) error

BuildOnlyLastImageAsTar performs the build for the given multi target states, and outputs only a docker tar of the last saved image.

func (*Builder) MakeArtifactBuilderFun added in v0.3.2

func (b *Builder) MakeArtifactBuilderFun() func(context.Context, *earthfile2llb.MultiTargetStates, domain.Artifact, string) error

MakeArtifactBuilderFun returns a function that can be used to build artifacts.

func (*Builder) MakeImageAsTarBuilderFun added in v0.3.2

func (b *Builder) MakeImageAsTarBuilderFun() func(context.Context, *earthfile2llb.MultiTargetStates, string, string) error

MakeImageAsTarBuilderFun returns a fun which can be used to build an image as a tar.

Jump to

Keyboard shortcuts

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