builder

package
v0.3.12 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2020 License: MPL-2.0 Imports: 36 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
	Push                  bool
	NoOutput              bool
	OnlyFinalTargetImages bool
	OnlyArtifact          *domain.Artifact
	OnlyArtifactDestPath  string
}

BuildOpt is a collection of build options.

type Builder

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

Builder executes Earthly builds.

func NewBuilder

func NewBuilder(ctx context.Context, opt Opt) (*Builder, error)

NewBuilder returns a new earth Builder.

func (*Builder) BuildTarget added in v0.3.11

func (b *Builder) BuildTarget(ctx context.Context, target domain.Target, opt BuildOpt) (*states.MultiTarget, error)

BuildTarget executes the build of a given Earthly target.

func (*Builder) MakeImageAsTarBuilderFun added in v0.3.2

func (b *Builder) MakeImageAsTarBuilderFun() states.DockerBuilderFun

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

type Opt added in v0.3.11

type Opt struct {
	SessionID            string
	BkClient             *client.Client
	Console              conslogging.ConsoleLogger
	Verbose              bool
	Attachables          []session.Attachable
	Enttlmnts            []entitlements.Entitlement
	NoCache              bool
	RemoteCache          string
	ImageResolveMode     llb.ResolveMode
	CleanCollection      *cleanup.Collection
	VarCollection        *variables.Collection
	BuildContextProvider *provider.BuildContextProvider
}

Opt represent builder options.

Jump to

Keyboard shortcuts

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