local

package
v1.31.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 License: Apache-2.0 Imports: 22 Imported by: 2

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 *latestV1.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 added in v1.18.0

func (b *Builder) Concurrency() int

func (*Builder) PostBuild added in v1.18.0

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

func (*Builder) PreBuild added in v1.18.0

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

func (*Builder) Prune added in v0.27.0

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 added in v0.34.0

func (b *Builder) PushImages() bool

type BuilderContext added in v1.22.0

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

type Config added in v1.7.1

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