docker

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2019 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(pluginLogLevel hclog.Level) func() error

Execute an image build with docker

Types

type Builder added in v0.25.0

type Builder struct {
	*latest.LocalBuild
	LocalDocker  docker.LocalDaemon
	LocalCluster bool
	PushImages   bool

	// TODO: remove once old docker build functionality is removed (priyawadhwa@)
	PluginMode  bool
	KubeContext string
	// contains filtered or unexported fields
}

Builder builds artifacts with Docker.

func NewBuilder added in v0.25.0

func NewBuilder() *Builder

NewBuilder creates a new Builder that builds artifacts with Docker.

func (*Builder) Build added in v0.25.0

func (b *Builder) Build(ctx context.Context, out io.Writer, tags tag.ImageTags, artifacts []*latest.Artifact) ([]build.Artifact, error)

Build is responsible for building artifacts in their respective execution environments The builder plugin is also responsible for setting any necessary defaults

func (*Builder) BuildArtifact added in v0.25.0

func (b *Builder) BuildArtifact(ctx context.Context, out io.Writer, a *latest.Artifact, tag string) (string, error)

BuildArtifact builds the docker artifact

func (*Builder) DependenciesForArtifact added in v0.25.0

func (b *Builder) DependenciesForArtifact(ctx context.Context, artifact *latest.Artifact) ([]string, error)

DependenciesForArtifact returns the dependencies for this docker artifact

func (*Builder) Init added in v0.25.0

func (b *Builder) Init(runCtx *runcontext.RunContext) error

Init stores skaffold options and the execution environment

func (*Builder) Labels added in v0.25.0

func (b *Builder) Labels() map[string]string

Labels are labels specific to Docker.

func (*Builder) Prune added in v0.27.0

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

Jump to

Keyboard shortcuts

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