bazel

package
v0.0.25 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2016 License: Apache-2.0 Imports: 21 Imported by: 5

Documentation

Overview

Package bazel implements the internal plumbing of a Bazel extractor for Go.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Corpus   string          // the default corpus label to use
	Mnemonic string          // the build mnemonic to match (if "", matches all)
	Rules    vnameutil.Rules // rules for rewriting file VNames

	// If set, this function is used to open files for reading.  If nil,
	// os.Open is used.
	OpenRead func(context.Context, string) (io.ReadCloser, error)
}

A Config carries settings that control the extraction process.

func (*Config) Extract

func (c *Config) Extract(ctx context.Context, info *eapb.ExtraActionInfo) (*kindex.Compilation, error)

Extract extracts a compilation from the specified extra action info.

Jump to

Keyboard shortcuts

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