bazel

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2019 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute() error

Execute an image build with docker

func GetDependencies added in v0.25.0

func GetDependencies(ctx context.Context, workspace string, a *latest.BazelArtifact) ([]string, error)

GetDependencies finds the sources dependencies for the given bazel artifact. All paths are relative to the workspace.

func PushImage added in v0.25.0

func PushImage(tarPath, tag string) (string, error)

PushImage pushes the tarball image created by bazel

Types

type Builder added in v0.25.0

type Builder struct {
	*latest.LocalBuild
	LocalDocker  docker.LocalDaemon
	LocalCluster bool
	PushImages   bool
	PluginMode   bool
	KubeContext  string
	// contains filtered or unexported fields
}

Builder builds artifacts with Bazel.

func NewBuilder added in v0.25.0

func NewBuilder() *Builder

NewBuilder creates a new Builder that builds artifacts with Bazel.

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, artifact *latest.Artifact, tag string) (string, error)

BuildArtifact builds the bazel 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 bazel artifact

func (*Builder) Init added in v0.25.0

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 Bazel.

Jump to

Keyboard shortcuts

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