local

package
v2.11.1 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

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 *latest.LocalBuild) (*Builder, error)

NewBuilder returns an new instance of a local Builder.

func (*Builder) Build

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

func (b *Builder) Concurrency() *int

func (*Builder) PostBuild

func (b *Builder) PostBuild(ctx context.Context, _ io.Writer) error

func (*Builder) PreBuild

func (b *Builder) PreBuild(_ context.Context, out io.Writer) error

func (*Builder) Prune

func (b *Builder) Prune(ctx context.Context, _ io.Writer) error

Prune uses the docker API client to remove all images built with Skaffold

func (*Builder) PushImages

func (b *Builder) PushImages() bool

func (*Builder) SupportedPlatforms

func (b *Builder) SupportedPlatforms() platform.Matcher

type BuilderContext

type BuilderContext interface {
	Config
	ArtifactStore() build.ArtifactStore
	SourceDependenciesResolver() graph.SourceDependenciesCache
}

type Config

type Config interface {
	docker.Config

	GlobalConfig() string
	GetKubeContext() string
	GetCluster() config.Cluster
	SkipTests() bool
	Mode() config.RunMode
	NoPruneChildren() bool
	Muted() config.Muted
	PushImages() config.BoolOrUndefined
}

Jump to

Keyboard shortcuts

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