Documentation ¶
Index ¶
- type BuildOpt
- type Builder
- func (b *Builder) Build(ctx context.Context, mts *states.MultiTarget, opt BuildOpt) error
- func (b *Builder) BuildOnlyArtifact(ctx context.Context, mts *states.MultiTarget, artifact domain.Artifact, ...) error
- func (b *Builder) BuildOnlyImages(ctx context.Context, mts *states.MultiTarget, opt BuildOpt) error
- func (b *Builder) BuildOnlyLastImageAsTar(ctx context.Context, mts *states.MultiTarget, dockerTag string, outFile string, ...) error
- func (b *Builder) MakeArtifactBuilderFun() func(context.Context, *states.MultiTarget, domain.Artifact, string) error
- func (b *Builder) MakeImageAsTarBuilderFun() func(context.Context, *states.MultiTarget, string, 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, verbose bool, attachables []session.Attachable, enttlmnts []entitlements.Entitlement, noCache bool, remoteCache string) (*Builder, error)
NewBuilder returns a new earth Builder.
func (*Builder) Build ¶
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 *states.MultiTarget, artifact domain.Artifact, destPath string, opt BuildOpt) error
BuildOnlyArtifact performs the build for the given multi target states, outputting only the provided artifact of the final states.
func (*Builder) BuildOnlyImages ¶
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 *states.MultiTarget, dockerTag string, outFile string, opt BuildOpt) error
BuildOnlyLastImageAsTar performs the build for the given multi target states, and outputs only a docker tar of the last saved image.
func (*Builder) MakeArtifactBuilderFun ¶ added in v0.3.2
func (b *Builder) MakeArtifactBuilderFun() func(context.Context, *states.MultiTarget, domain.Artifact, string) error
MakeArtifactBuilderFun returns a function that can be used to build artifacts.
func (*Builder) MakeImageAsTarBuilderFun ¶ added in v0.3.2
func (b *Builder) MakeImageAsTarBuilderFun() func(context.Context, *states.MultiTarget, string, string) error
MakeImageAsTarBuilderFun returns a fun which can be used to build an image as a tar.