Documentation
¶
Overview ¶
Package builder orchestrates the top-level resolution and execution of earth targets and commands.
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 earth builds.
func NewBuilder ¶
NewBuilder returns a new earth Builder.
type Opt ¶
type Opt struct {
BuildkitSkipper bk.BuildkitSkipper
ContainerFrontend containerutil.ContainerFrontend
Parallelism semutil.Semaphore
OverridingVars *variables.Scope
GitLookup *buildcontext.GitLookup
BuildContextProvider *provider.BuildContextProvider
InternalSecretStore *secretprovider.MutableMapStore
CacheImports *states.CacheImports
BkClient *client.Client
Log *conslogging.ConsoleLogger
LogBusSolverMonitor *solvermon.SolverMonitor
CleanCollection *cleanup.Collection
GitImage string
DarwinProxyImage string
MaxCacheExport string
GitLFSInclude string
LocalRegistryAddr string
GitBranchOverride string
FeatureFlagOverrides string
CacheExport string
Enttlmnts []entitlements.Entitlement
Attachables []session.Attachable
DarwinProxyWait time.Duration
GitLogLevel buildkitgitutil.GitLogLevel
ImageResolveMode llb.ResolveMode
Verbose bool
DisableRemoteRegistryProxy bool
NoCache bool
ParallelConversion bool
UseFakeDep 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)
}
ProjectAdder provides an interface for adding projects.
Click to show internal directories.
Click to hide internal directories.