vulndb

package
v0.0.0-...-74e1113 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockVulnDB

type MockVulnDB struct {
	mock.Mock
}

MockVulnDB is an autogenerated mock type for the VulnDB type

func (*MockVulnDB) ApplyBuildExpectation

func (_m *MockVulnDB) ApplyBuildExpectation(e VulnDBBuildExpectation)

func (*MockVulnDB) ApplyBuildExpectations

func (_m *MockVulnDB) ApplyBuildExpectations(expectations []VulnDBBuildExpectation)

func (*MockVulnDB) Build

func (_m *MockVulnDB) Build(targets []string) error

Build provides a mock function with given fields: targets

type Option

type Option func(*TunnelDB)

func WithClock

func WithClock(clock clock.Clock) Option

func WithVulnSrcs

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

type TunnelDB

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

func New

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

func (TunnelDB) Build

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

func (TunnelDB) Insert

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

type VulnDB

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

type VulnDBBuildArgs

type VulnDBBuildArgs struct {
	Targets         []string
	TargetsAnything bool
}

type VulnDBBuildExpectation

type VulnDBBuildExpectation struct {
	Args    VulnDBBuildArgs
	Returns VulnDBBuildReturns
}

type VulnDBBuildReturns

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

Jump to

Keyboard shortcuts

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