vulndb

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2023 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 Option

type Option func(*TrivyDB)

func WithClock

func WithClock(clock clock.Clock) Option

func WithVulnSrcs

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

type TrivyDB

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

func New

func New(cacheDir string, updateInterval time.Duration, opts ...Option) *TrivyDB

func (TrivyDB) Build

func (t TrivyDB) Build(targets []string) error

func (TrivyDB) Insert

func (t TrivyDB) Insert(targets []string) error

type VulnDB

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

Jump to

Keyboard shortcuts

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