Documentation ¶
Index ¶
- type Builder
- func (b *Builder) Build(ctx context.Context, mts *earthfile2llb.MultiTargetStates, noOutput bool, ...) error
- func (b *Builder) BuildOnlyArtifact(ctx context.Context, mts *earthfile2llb.MultiTargetStates, ...) error
- func (b *Builder) BuildOnlyImages(ctx context.Context, mts *earthfile2llb.MultiTargetStates, push bool) error
- func (b *Builder) BuildOnlyLastImageAsTar(ctx context.Context, mts *earthfile2llb.MultiTargetStates, dockerTag string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder provides a earth commands executor.
func NewBuilder ¶
func NewBuilder(ctx context.Context, bkClient *client.Client, console conslogging.ConsoleLogger, attachables []session.Attachable, enttlmnts []entitlements.Entitlement, noCache bool, remoteCache string) (*Builder, error)
NewBuilder returns a new earth Builder.
func (*Builder) Build ¶
func (b *Builder) Build(ctx context.Context, mts *earthfile2llb.MultiTargetStates, noOutput bool, push bool) error
Build performs the build for the given multi target states, outputting images for all sub-targets and artifacts for all local sub-targets.
func (*Builder) BuildOnlyArtifact ¶
func (b *Builder) BuildOnlyArtifact(ctx context.Context, mts *earthfile2llb.MultiTargetStates, artifact domain.Artifact, destPath string) error
BuildOnlyArtifact performs the build for the given multi target states, outputting only the provided artifact of the final states.
func (*Builder) BuildOnlyImages ¶
func (b *Builder) BuildOnlyImages(ctx context.Context, mts *earthfile2llb.MultiTargetStates, push bool) error
BuildOnlyImages performs the build for the given multi target states, outputting only images of the final states.
func (*Builder) BuildOnlyLastImageAsTar ¶
func (b *Builder) BuildOnlyLastImageAsTar(ctx context.Context, mts *earthfile2llb.MultiTargetStates, dockerTag string, outFile string) error
BuildOnlyLastImageAsTar performs the build for the given multi target states, and outputs only a docker tar of the last saved image.
Click to show internal directories.
Click to hide internal directories.