fuzzcache

package
v0.0.0-...-03d6fc4 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2019 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const POOL_KEY = "fuzzpool"

Variables

View Source
var FUZZ_NAMES_KEY = []byte("fuzz_names")

Functions

This section is empty.

Types

type FuzzReportCache

type FuzzReportCache struct {
	DB *bolt.DB
}

func New

func New(dbPath string) (*FuzzReportCache, error)

Open opens a connection to a bolt db at the given file location.

func (*FuzzReportCache) Close

func (b *FuzzReportCache) Close() error

Close closes the underlying data.FuzzReportCache, returning any errors the instance returns.

func (*FuzzReportCache) LoadFuzzNames

func (b *FuzzReportCache) LoadFuzzNames(revision string) ([]string, error)

func (*FuzzReportCache) LoadPool

func (b *FuzzReportCache) LoadPool(pool *fuzzpool.FuzzPool, revision string) error

LoadPool fills the passed in *fuzzpool.FuzzPool with the data corresponding to the revision. It returns an error if such a FuzzPool does not exist.

func (*FuzzReportCache) StoreFuzzNames

func (b *FuzzReportCache) StoreFuzzNames(fuzzNames []string, revision string) error

func (*FuzzReportCache) StorePool

func (b *FuzzReportCache) StorePool(report *fuzzpool.FuzzPool, revision string) error

Store stores a fuzzpool.FuzzPool and the fuzzNames associated with it to the underlying data.FuzzReportCache. It creates a bucket with the name of the given revision and stores the report as a []byte under a simple key.

Jump to

Keyboard shortcuts

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