builder

package
v0.3.10 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2020 License: MPL-2.0 Imports: 30 Imported by: 0

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
	NoOutput     bool
	Push         bool
}

BuildOpt is a collection of build options.

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

func (b *Builder) Build(ctx context.Context, mts *states.MultiTarget, opt BuildOpt) 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 *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

func (b *Builder) BuildOnlyImages(ctx context.Context, mts *states.MultiTarget, opt BuildOpt) 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 *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.

Jump to

Keyboard shortcuts

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