local

package
v0.0.34 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2019 License: Apache-2.0, NCSA Imports: 12 Imported by: 0

Documentation

Overview

Package local implements CompilationAnalyzer utilities for local analyses.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileQueue added in v0.0.27

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

A FileQueue is a driver.Queue reading each compilation from a sequence of .kzip and .kindex files. On each call to the driver.CompilationFunc, the FileQueue's analysis.Fetcher interface exposes the current file's contents.

func NewFileQueue added in v0.0.27

func NewFileQueue(paths []string, opts *Options) *FileQueue

NewFileQueue returns a new FileQueue over the given paths to .kzip or .kindex files.

func (*FileQueue) Fetch added in v0.0.27

func (q *FileQueue) Fetch(path, digest string) ([]byte, error)

Fetch implements the analysis.Fetcher interface by delegating to the currently-active input file. Only files in the current archive will be accessible for a given invocation of Fetch.

func (*FileQueue) Next added in v0.0.27

Next implements the driver.Queue interface.

type Options added in v0.0.27

type Options struct {
	// The revision marker to attribute to each compilation.
	Revision string
}

Options control the behaviour of a FileQueue.

Jump to

Keyboard shortcuts

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