builder

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2020 License: MPL-2.0 Imports: 43 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 {
	Platform              *specs.Platform
	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 earthly 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
	CacheImports         map[string]bool
	CacheExport          string
	MaxCacheExport       string
	UseInlineCache       bool
	SaveInlineCache      bool
	ImageResolveMode     llb.ResolveMode
	CleanCollection      *cleanup.Collection
	VarCollection        *variables.Collection
	BuildContextProvider *provider.BuildContextProvider
	GitLookup            *buildcontext.GitLookup
	UseFakeDep           bool
}

Opt represent builder options.

Jump to

Keyboard shortcuts

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