builder

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2020 License: MPL-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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

func (b *Builder) Build(ctx context.Context, mts *earthfile2llb.MultiTargetStates, noOutput bool, push bool) error

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) 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, push bool) 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) error

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

Jump to

Keyboard shortcuts

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