vulndb

package
v0.0.0-...-0e2e07d Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Core

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

func NewCore

func NewCore(cacheDir string, updateInterval time.Duration, opts ...Option) *Core

func (Core) Insert

func (c Core) Insert(dbType db.Type, targets []string) error

type Option

type Option func(*Core)

func WithClock

func WithClock(clock clock.Clock) Option

func WithVulnSrcs

func WithVulnSrcs(srcs map[string]vulnsrc.VulnSrc) Option

type VulnDB

type VulnDB interface {
	Build(targets []string) error
}

func New

func New(dbType db.Type, cacheDir string, updateInterval time.Duration, opts ...Option) VulnDB

Jump to

Keyboard shortcuts

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