Documentation ¶
Index ¶
- type Builder
- func (b *Builder) Build(ctx context.Context, out io.Writer, a *latest.Artifact) build.ArtifactBuilder
- func (b *Builder) Concurrency() int
- func (b *Builder) PostBuild(ctx context.Context, _ io.Writer) error
- func (b *Builder) PreBuild(_ context.Context, out io.Writer) error
- func (b *Builder) Prune(ctx context.Context, _ io.Writer) error
- type BuilderContext
- type Config
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 uses the host docker daemon to build and tag the image.
func NewBuilder ¶
func NewBuilder(bCtx BuilderContext, buildCfg *latest.LocalBuild) (*Builder, error)
NewBuilder returns an new instance of a local Builder.
func (*Builder) Build ¶
func (b *Builder) Build(ctx context.Context, out io.Writer, a *latest.Artifact) build.ArtifactBuilder
Build runs a docker build on the host and tags the resulting image with its checksum. It streams build progress to the writer argument.
func (*Builder) Concurrency ¶ added in v1.18.0
type BuilderContext ¶ added in v1.22.0
type BuilderContext interface { Config ArtifactStore() build.ArtifactStore SourceDependenciesResolver() graph.TransitiveSourceDependenciesCache }
Click to show internal directories.
Click to hide internal directories.