bazel

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

package bazel provides a simple Bazel API for the specific functionality needed in snapshots.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildEventOutput

type BuildEventOutput struct {
	ID struct {
		TargetCompleted struct {
			Label string `json:"label"`
		}
	}
	Completed struct {
		Success      bool `json:"success"`
		OutputGroups []struct {
			Name string `json:"name"`
		} `json:"outputGroup"`
		ImportantOutput []ImportantOutput `json:"importantOutput"`
	}
}

func ParseBuildEventsFile added in v0.7.5

func ParseBuildEventsFile(f *os.File) ([]BuildEventOutput, error)

type Client

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

Client exposes the Bazel CLI.

func NewClient

func NewClient(path, ws string, stderr io.Writer) *Client

func (*Client) BuildEventOutput

func (c *Client) BuildEventOutput(ctx context.Context, bazelrc string, args ...string) ([]BuildEventOutput, error)

func (*Client) Command

func (c *Client) Command(ctx context.Context, args ...string) ([]byte, error)

type ImportantOutput

type ImportantOutput struct {
	Name       string   `json:"name"`
	URI        string   `json:"uri"`
	PathPrefix []string `json:"pathPrefix"`
}

Jump to

Keyboard shortcuts

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