Documentation
¶
Index ¶
- Constants
- Variables
- type FuzzReportCache
- func (b *FuzzReportCache) Close() error
- func (b *FuzzReportCache) LoadFuzzNames(revision string) ([]string, error)
- func (b *FuzzReportCache) LoadPool(pool *fuzzpool.FuzzPool, revision string) error
- func (b *FuzzReportCache) StoreFuzzNames(fuzzNames []string, revision string) error
- func (b *FuzzReportCache) StorePool(report *fuzzpool.FuzzPool, revision string) error
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.