bazel

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Default = &Bazel{}
)

Functions

This section is empty.

Types

type Bazel

type Bazel struct {
	// contains filtered or unexported fields
}

func (*Bazel) AddFlags

func (g *Bazel) AddFlags(fs *flag.FlagSet)

func (*Bazel) Build

func (g *Bazel) Build(ctx context.Context, targets ...string) *exec.Cmd

Build will construct a new exec.Cmd that will build the given targets. It will produce artifacts suitable for running on the current host OS. The --platforms flag *will not* be set.

func (*Bazel) BuildE

func (g *Bazel) BuildE(ctx context.Context, log logr.Logger, targets ...string) error

BuildE will build the given targets for the current host OS. The --platforms flag *will not* be set.

func (*Bazel) BuildPlatform

func (g *Bazel) BuildPlatform(ctx context.Context, os, arch string, targets ...string) *exec.Cmd

BuildPlatform will construct a new exec.Cmd that will build the given targets for the provided os and architecture. This is useful when producing cross-builds. Bazel's --platforms variable will be set automatically.

func (*Bazel) BuildPlatformE

func (g *Bazel) BuildPlatformE(ctx context.Context, log logr.Logger, os, arch string, targets ...string) error

BuildPlatformE will build the given targets for the provided os and architecture. This is useful when producing cross-builds. Bazel's --platforms variable will be set automatically.

func (*Bazel) Cmd

func (g *Bazel) Cmd(ctx context.Context, args ...string) *exec.Cmd

func (*Bazel) Complete

func (g *Bazel) Complete() error

func (*Bazel) Run

func (g *Bazel) Run(ctx context.Context, target string, args ...string) *exec.Cmd

Run will construct a new exec.Cmd that will run the given targets It will produce artifacts suitable for running on the current host OS. The --platforms flag *will not* be set.

func (*Bazel) RunE

func (g *Bazel) RunE(ctx context.Context, log logr.Logger, target string, args ...string) error

RunE will run the given targets on the current host OS. The --platforms flag *will not* be set.

func (*Bazel) RunPlatform

func (g *Bazel) RunPlatform(ctx context.Context, os, arch, target string, args ...string) *exec.Cmd

RunPlatform will construct a new exec.Cmd that will build the given target for the provided os and architecture. This is useful when producing cross-builds. Bazel's --platforms variable will be set automatically.

func (*Bazel) RunPlatformE

func (g *Bazel) RunPlatformE(ctx context.Context, log logr.Logger, os, arch, target string, args ...string) error

RunPlatformE will run the given target, built for the provided os and architecture. This is useful when producing cross-builds. Bazel's --platforms variable will be set automatically.

func (*Bazel) Validate

func (g *Bazel) Validate() []error

Jump to

Keyboard shortcuts

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