builder

package
v0.8.17 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: MPL-2.0 Imports: 52 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PhaseInit is the phase text for the init phase.
	PhaseInit = "Init 🚀"
	// PhaseBuild is the phase text for the build phase.
	PhaseBuild = "Build 🔧"
	// PhasePush is the phase text for the push phase.
	PhasePush = "Push Summary ⏫"
	// PhaseOutput is the phase text for the output phase.
	PhaseOutput = "Local Output Summary 🎁"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildOpt

type BuildOpt struct {
	ProjectAdder               ProjectAdder
	OnlyArtifact               *domain.Artifact
	Logbus                     *logbus.Bus
	LocalArtifactWhiteList     *gatewaycrafter.LocalArtifactWhiteList
	PlatformResolver           *platutil.Resolver
	BuiltinArgs                variables.DefaultArgs
	OnlyArtifactDestPath       string
	Runner                     string
	OnlyFinalTargetImages      bool
	NoOutput                   bool
	EnableGatewayClientLogging bool
	CI                         bool
	GlobalWaitBlockFtr         bool
	Push                       bool
	PrintPhases                bool
	AllowPrivileged            bool
}

BuildOpt is a collection of build options.

type Builder

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

Builder executes EarthBuild builds.

func NewBuilder

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

NewBuilder returns a new earthly Builder.

func (*Builder) BuildTarget

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

BuildTarget executes the build of a given Earthly target.

type Opt

type Opt struct {
	FeatureFlagOverrides                  string
	GitImage                              string
	DarwinProxyImage                      string
	MaxCacheExport                        string
	CacheExport                           string
	GitBranchOverride                     string
	LocalRegistryAddr                     string
	GitLFSInclude                         string
	BuildkitSkipper                       bk.BuildkitSkipper
	Parallelism                           semutil.Semaphore
	ContainerFrontend                     containerutil.ContainerFrontend
	CleanCollection                       *cleanup.Collection
	LogBusSolverMonitor                   *solvermon.SolverMonitor
	InternalSecretStore                   *secretprovider.MutableMapStore
	BkClient                              *client.Client
	CacheImports                          *states.CacheImports
	GitLookup                             *buildcontext.GitLookup
	BuildContextProvider                  *provider.BuildContextProvider
	OverridingVars                        *variables.Scope
	Attachables                           []session.Attachable
	Enttlmnts                             []entitlements.Entitlement
	Console                               conslogging.ConsoleLogger
	DarwinProxyWait                       time.Duration
	GitLogLevel                           buildkitgitutil.GitLogLevel
	ImageResolveMode                      llb.ResolveMode
	UseFakeDep                            bool
	DisableRemoteRegistryProxy            bool
	NoCache                               bool
	ParallelConversion                    bool
	Verbose                               bool
	InteractiveDebugging                  bool
	InteractiveDebuggingDebugLevelLogging bool
	DisableNoOutputUpdates                bool
	Strict                                bool
	UseInlineCache                        bool
	SaveInlineCache                       bool
	NoAutoSkip                            bool
}

Opt represent builder options.

type ProjectAdder

type ProjectAdder interface {
	AddProject(org, project string)
}

Jump to

Keyboard shortcuts

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