build

package
v0.21.1 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2019 License: Apache-2.0 Imports: 14 Imported by: 18

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DependenciesForArtifact added in v0.7.0

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

DependenciesForArtifact lists the dependencies for a given artifact.

Types

type Artifact added in v0.8.0

type Artifact struct {
	ImageName string
	Tag       string
}

Artifact is the result corresponding to each successful build.

func InParallel added in v0.11.0

func InParallel(ctx context.Context, out io.Writer, tagger tag.Tagger, artifacts []*latest.Artifact, buildArtifact artifactBuilder) ([]Artifact, error)

InParallel builds a list of artifacts in parallel but prints the logs in sequential order.

func InSequence added in v0.11.0

func InSequence(ctx context.Context, out io.Writer, tagger tag.Tagger, artifacts []*latest.Artifact, buildArtifact artifactBuilder) ([]Artifact, error)

InSequence builds a list of artifacts in sequence.

type Builder

type Builder interface {
	Labels() map[string]string

	Build(ctx context.Context, out io.Writer, tagger tag.Tagger, artifacts []*latest.Artifact) ([]Artifact, error)
}

Builder is an interface to the Build API of Skaffold. It must build and make the resulting image accesible to the cluster. This could include pushing to a authorized repository or loading the nodes with the image. If artifacts is supplied, the builder should only rebuild those artifacts.

func NewPreBuiltImagesBuilder added in v0.19.0

func NewPreBuiltImagesBuilder(images []string) Builder

NewPreBuiltImagesBuilder returns an new instance a Builder that assumes images are already built with given fully qualified names.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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