Documentation ¶
Index ¶
- type Builder
- func (b *Builder) Build(ctx context.Context, out io.Writer, a *latestV1.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
- func (b *Builder) PushImages() bool
- 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(ctx context.Context, bCtx BuilderContext, buildCfg *latestV1.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 *latestV1.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
func (*Builder) Prune ¶ added in v0.27.0
Prune uses the docker API client to remove all images built with Skaffold
func (*Builder) PushImages ¶ added in v0.34.0
type BuilderContext ¶ added in v1.22.0
type BuilderContext interface { Config ArtifactStore() build.ArtifactStore SourceDependenciesResolver() graph.SourceDependenciesCache }
Click to show internal directories.
Click to hide internal directories.