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 ¶
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.
Click to show internal directories.
Click to hide internal directories.