vulnsrc

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: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type MockVulnSrc

type MockVulnSrc struct {
	mock.Mock
}

MockVulnSrc is an autogenerated mock type for the VulnSrc type

func (*MockVulnSrc) ApplyNameExpectation

func (_m *MockVulnSrc) ApplyNameExpectation(e VulnSrcNameExpectation)

func (*MockVulnSrc) ApplyNameExpectations

func (_m *MockVulnSrc) ApplyNameExpectations(expectations []VulnSrcNameExpectation)

func (*MockVulnSrc) ApplyUpdateExpectation

func (_m *MockVulnSrc) ApplyUpdateExpectation(e VulnSrcUpdateExpectation)

func (*MockVulnSrc) ApplyUpdateExpectations

func (_m *MockVulnSrc) ApplyUpdateExpectations(expectations []VulnSrcUpdateExpectation)

func (*MockVulnSrc) Name

func (_m *MockVulnSrc) Name() types.SourceID

Name provides a mock function with given fields:

func (*MockVulnSrc) Update

func (_m *MockVulnSrc) Update(dir string) error

Update provides a mock function with given fields: dir

type VulnSrc

type VulnSrc interface {
	Name() types.SourceID
	Update(dir string) (err error)
}

type VulnSrcNameExpectation

type VulnSrcNameExpectation struct {
	Returns VulnSrcNameReturns
}

type VulnSrcNameReturns

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

type VulnSrcUpdateArgs

type VulnSrcUpdateArgs struct {
	Dir         string
	DirAnything bool
}

type VulnSrcUpdateExpectation

type VulnSrcUpdateExpectation struct {
	Args    VulnSrcUpdateArgs
	Returns VulnSrcUpdateReturns
}

type VulnSrcUpdateReturns

type VulnSrcUpdateReturns struct {
	Err error
}

Jump to

Keyboard shortcuts

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