db

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const SchemaVersion = 2

Variables

This section is empty.

Functions

func Close

func Close() error

func Dir

func Dir(cacheDir string) string

func Init

func Init(cacheDir string) (err error)

func Path

func Path(cacheDir string) string

Types

type Config

type Config struct {
}

func (Config) BatchUpdate

func (dbc Config) BatchUpdate(fn func(tx *bolt.Tx) error) error

func (Config) Connection

func (dbc Config) Connection() *bolt.DB

func (Config) DeleteAdvisoryDetailBucket

func (dbc Config) DeleteAdvisoryDetailBucket() error

func (Config) DeleteVulnerabilityDetailBucket

func (dbc Config) DeleteVulnerabilityDetailBucket() error

func (Config) DeleteVulnerabilityIDBucket

func (dbc Config) DeleteVulnerabilityIDBucket() error

func (Config) ForEachAdvisory

func (dbc Config) ForEachAdvisory(sources []string, pkgName string) (map[string]Value, error)

func (Config) ForEachVulnerabilityID

func (dbc Config) ForEachVulnerabilityID(f func(tx *bolt.Tx, vulnID string) error) error

func (Config) GetAdvisories

func (dbc Config) GetAdvisories(source, pkgName string) ([]types.Advisory, error)

func (Config) GetVulnerability

func (dbc Config) GetVulnerability(cveID string) (vuln types.Vulnerability, err error)

func (Config) GetVulnerabilityDetail

func (dbc Config) GetVulnerabilityDetail(cveID string) (map[types.SourceID]types.VulnerabilityDetail, error)

func (Config) PutAdvisory

func (dbc Config) PutAdvisory(tx *bolt.Tx, bktNames []string, key string, advisory interface{}) error

func (Config) PutAdvisoryDetail

func (dbc Config) PutAdvisoryDetail(tx *bolt.Tx, vulnID, pkgName string, nestedBktNames []string, advisory interface{}) error

func (Config) PutDataSource

func (dbc Config) PutDataSource(tx *bolt.Tx, bktName string, source types.DataSource) error

func (Config) PutRedHatCPEs

func (dbc Config) PutRedHatCPEs(tx *bolt.Tx, cpeIndex int, cpe string) error

func (Config) PutRedHatNVRs

func (dbc Config) PutRedHatNVRs(tx *bolt.Tx, nvr string, cpeIndices []int) error

func (Config) PutRedHatRepositories

func (dbc Config) PutRedHatRepositories(tx *bolt.Tx, repository string, cpeIndices []int) error

func (Config) PutVulnerability

func (dbc Config) PutVulnerability(tx *bolt.Tx, cveID string, vuln types.Vulnerability) error

func (Config) PutVulnerabilityDetail

func (dbc Config) PutVulnerabilityDetail(tx *bolt.Tx, cveID string, source types.SourceID, vuln types.VulnerabilityDetail) error

func (Config) PutVulnerabilityID

func (dbc Config) PutVulnerabilityID(tx *bolt.Tx, vulnID string) error

func (Config) RedHatNVRToCPEs

func (dbc Config) RedHatNVRToCPEs(repository string) ([]int, error)

func (Config) RedHatRepoToCPEs

func (dbc Config) RedHatRepoToCPEs(repository string) ([]int, error)

func (Config) SaveAdvisoryDetails

func (dbc Config) SaveAdvisoryDetails(tx *bolt.Tx, vulnID string) error

SaveAdvisoryDetails Extract advisories from 'advisory-detail' bucket and copy them in each

type CustomPut

type CustomPut func(dbc Operation, tx *bolt.Tx, adv interface{}) error

type MockOperation

type MockOperation struct {
	mock.Mock
}

MockOperation is an autogenerated mock type for the Operation type

func (*MockOperation) ApplyBatchUpdateExpectation

func (_m *MockOperation) ApplyBatchUpdateExpectation(e OperationBatchUpdateExpectation)

func (*MockOperation) ApplyBatchUpdateExpectations

func (_m *MockOperation) ApplyBatchUpdateExpectations(expectations []OperationBatchUpdateExpectation)

func (*MockOperation) ApplyDeleteAdvisoryDetailBucketExpectation

func (_m *MockOperation) ApplyDeleteAdvisoryDetailBucketExpectation(e OperationDeleteAdvisoryDetailBucketExpectation)

func (*MockOperation) ApplyDeleteAdvisoryDetailBucketExpectations

func (_m *MockOperation) ApplyDeleteAdvisoryDetailBucketExpectations(expectations []OperationDeleteAdvisoryDetailBucketExpectation)

func (*MockOperation) ApplyDeleteVulnerabilityDetailBucketExpectation

func (_m *MockOperation) ApplyDeleteVulnerabilityDetailBucketExpectation(e OperationDeleteVulnerabilityDetailBucketExpectation)

func (*MockOperation) ApplyDeleteVulnerabilityDetailBucketExpectations

func (_m *MockOperation) ApplyDeleteVulnerabilityDetailBucketExpectations(expectations []OperationDeleteVulnerabilityDetailBucketExpectation)

func (*MockOperation) ApplyForEachAdvisoryExpectation

func (_m *MockOperation) ApplyForEachAdvisoryExpectation(e OperationForEachAdvisoryExpectation)

func (*MockOperation) ApplyForEachAdvisoryExpectations

func (_m *MockOperation) ApplyForEachAdvisoryExpectations(expectations []OperationForEachAdvisoryExpectation)

func (*MockOperation) ApplyForEachVulnerabilityIDExpectation

func (_m *MockOperation) ApplyForEachVulnerabilityIDExpectation(e OperationForEachVulnerabilityIDExpectation)

func (*MockOperation) ApplyForEachVulnerabilityIDExpectations

func (_m *MockOperation) ApplyForEachVulnerabilityIDExpectations(expectations []OperationForEachVulnerabilityIDExpectation)

func (*MockOperation) ApplyGetAdvisoriesExpectation

func (_m *MockOperation) ApplyGetAdvisoriesExpectation(e OperationGetAdvisoriesExpectation)

func (*MockOperation) ApplyGetAdvisoriesExpectations

func (_m *MockOperation) ApplyGetAdvisoriesExpectations(expectations []OperationGetAdvisoriesExpectation)

func (*MockOperation) ApplyGetVulnerabilityDetailExpectation

func (_m *MockOperation) ApplyGetVulnerabilityDetailExpectation(e OperationGetVulnerabilityDetailExpectation)

func (*MockOperation) ApplyGetVulnerabilityDetailExpectations

func (_m *MockOperation) ApplyGetVulnerabilityDetailExpectations(expectations []OperationGetVulnerabilityDetailExpectation)

func (*MockOperation) ApplyGetVulnerabilityExpectation

func (_m *MockOperation) ApplyGetVulnerabilityExpectation(e OperationGetVulnerabilityExpectation)

func (*MockOperation) ApplyGetVulnerabilityExpectations

func (_m *MockOperation) ApplyGetVulnerabilityExpectations(expectations []OperationGetVulnerabilityExpectation)

func (*MockOperation) ApplyPutAdvisoryDetailExpectation

func (_m *MockOperation) ApplyPutAdvisoryDetailExpectation(e OperationPutAdvisoryDetailExpectation)

func (*MockOperation) ApplyPutAdvisoryDetailExpectations

func (_m *MockOperation) ApplyPutAdvisoryDetailExpectations(expectations []OperationPutAdvisoryDetailExpectation)

func (*MockOperation) ApplyPutDataSourceExpectation

func (_m *MockOperation) ApplyPutDataSourceExpectation(e OperationPutDataSourceExpectation)

func (*MockOperation) ApplyPutDataSourceExpectations

func (_m *MockOperation) ApplyPutDataSourceExpectations(expectations []OperationPutDataSourceExpectation)

func (*MockOperation) ApplyPutRedHatCPEsExpectation

func (_m *MockOperation) ApplyPutRedHatCPEsExpectation(e OperationPutRedHatCPEsExpectation)

func (*MockOperation) ApplyPutRedHatCPEsExpectations

func (_m *MockOperation) ApplyPutRedHatCPEsExpectations(expectations []OperationPutRedHatCPEsExpectation)

func (*MockOperation) ApplyPutRedHatNVRsExpectation

func (_m *MockOperation) ApplyPutRedHatNVRsExpectation(e OperationPutRedHatNVRsExpectation)

func (*MockOperation) ApplyPutRedHatNVRsExpectations

func (_m *MockOperation) ApplyPutRedHatNVRsExpectations(expectations []OperationPutRedHatNVRsExpectation)

func (*MockOperation) ApplyPutRedHatRepositoriesExpectation

func (_m *MockOperation) ApplyPutRedHatRepositoriesExpectation(e OperationPutRedHatRepositoriesExpectation)

func (*MockOperation) ApplyPutRedHatRepositoriesExpectations

func (_m *MockOperation) ApplyPutRedHatRepositoriesExpectations(expectations []OperationPutRedHatRepositoriesExpectation)

func (*MockOperation) ApplyPutVulnerabilityDetailExpectation

func (_m *MockOperation) ApplyPutVulnerabilityDetailExpectation(e OperationPutVulnerabilityDetailExpectation)

func (*MockOperation) ApplyPutVulnerabilityDetailExpectations

func (_m *MockOperation) ApplyPutVulnerabilityDetailExpectations(expectations []OperationPutVulnerabilityDetailExpectation)

func (*MockOperation) ApplyPutVulnerabilityExpectation

func (_m *MockOperation) ApplyPutVulnerabilityExpectation(e OperationPutVulnerabilityExpectation)

func (*MockOperation) ApplyPutVulnerabilityExpectations

func (_m *MockOperation) ApplyPutVulnerabilityExpectations(expectations []OperationPutVulnerabilityExpectation)

func (*MockOperation) ApplyPutVulnerabilityIDExpectation

func (_m *MockOperation) ApplyPutVulnerabilityIDExpectation(e OperationPutVulnerabilityIDExpectation)

func (*MockOperation) ApplyPutVulnerabilityIDExpectations

func (_m *MockOperation) ApplyPutVulnerabilityIDExpectations(expectations []OperationPutVulnerabilityIDExpectation)

func (*MockOperation) ApplyRedHatNVRToCPEsExpectation

func (_m *MockOperation) ApplyRedHatNVRToCPEsExpectation(e OperationRedHatNVRToCPEsExpectation)

func (*MockOperation) ApplyRedHatNVRToCPEsExpectations

func (_m *MockOperation) ApplyRedHatNVRToCPEsExpectations(expectations []OperationRedHatNVRToCPEsExpectation)

func (*MockOperation) ApplyRedHatRepoToCPEsExpectation

func (_m *MockOperation) ApplyRedHatRepoToCPEsExpectation(e OperationRedHatRepoToCPEsExpectation)

func (*MockOperation) ApplyRedHatRepoToCPEsExpectations

func (_m *MockOperation) ApplyRedHatRepoToCPEsExpectations(expectations []OperationRedHatRepoToCPEsExpectation)

func (*MockOperation) ApplySaveAdvisoryDetailsExpectation

func (_m *MockOperation) ApplySaveAdvisoryDetailsExpectation(e OperationSaveAdvisoryDetailsExpectation)

func (*MockOperation) ApplySaveAdvisoryDetailsExpectations

func (_m *MockOperation) ApplySaveAdvisoryDetailsExpectations(expectations []OperationSaveAdvisoryDetailsExpectation)

func (*MockOperation) BatchUpdate

func (_m *MockOperation) BatchUpdate(fn func(*bbolt.Tx) error) error

BatchUpdate provides a mock function with given fields: fn

func (*MockOperation) DeleteAdvisoryDetailBucket

func (_m *MockOperation) DeleteAdvisoryDetailBucket() error

DeleteAdvisoryDetailBucket provides a mock function with given fields:

func (*MockOperation) DeleteVulnerabilityDetailBucket

func (_m *MockOperation) DeleteVulnerabilityDetailBucket() error

DeleteVulnerabilityDetailBucket provides a mock function with given fields:

func (*MockOperation) ForEachAdvisory

func (_m *MockOperation) ForEachAdvisory(sources []string, pkgName string) (map[string]Value, error)

ForEachAdvisory provides a mock function with given fields: sources, pkgName

func (*MockOperation) ForEachVulnerabilityID

func (_m *MockOperation) ForEachVulnerabilityID(fn func(*bbolt.Tx, string) error) error

ForEachVulnerabilityID provides a mock function with given fields: fn

func (*MockOperation) GetAdvisories

func (_m *MockOperation) GetAdvisories(source string, pkgName string) ([]types.Advisory, error)

GetAdvisories provides a mock function with given fields: source, pkgName

func (*MockOperation) GetVulnerability

func (_m *MockOperation) GetVulnerability(vulnerabilityID string) (types.Vulnerability, error)

GetVulnerability provides a mock function with given fields: vulnerabilityID

func (*MockOperation) GetVulnerabilityDetail

func (_m *MockOperation) GetVulnerabilityDetail(cveID string) (map[types.SourceID]types.VulnerabilityDetail, error)

GetVulnerabilityDetail provides a mock function with given fields: cveID

func (*MockOperation) PutAdvisoryDetail

func (_m *MockOperation) PutAdvisoryDetail(tx *bbolt.Tx, vulnerabilityID string, pkgName string, nestedBktNames []string, advisory interface{}) error

PutAdvisoryDetail provides a mock function with given fields: tx, vulnerabilityID, pkgName, nestedBktNames, advisory

func (*MockOperation) PutDataSource

func (_m *MockOperation) PutDataSource(tx *bbolt.Tx, bktName string, source types.DataSource) error

PutDataSource provides a mock function with given fields: tx, bktName, source

func (*MockOperation) PutRedHatCPEs

func (_m *MockOperation) PutRedHatCPEs(tx *bbolt.Tx, cpeIndex int, cpe string) error

PutRedHatCPEs provides a mock function with given fields: tx, cpeIndex, cpe

func (*MockOperation) PutRedHatNVRs

func (_m *MockOperation) PutRedHatNVRs(tx *bbolt.Tx, nvr string, cpeIndices []int) error

PutRedHatNVRs provides a mock function with given fields: tx, nvr, cpeIndices

func (*MockOperation) PutRedHatRepositories

func (_m *MockOperation) PutRedHatRepositories(tx *bbolt.Tx, repository string, cpeIndices []int) error

PutRedHatRepositories provides a mock function with given fields: tx, repository, cpeIndices

func (*MockOperation) PutVulnerability

func (_m *MockOperation) PutVulnerability(tx *bbolt.Tx, vulnerabilityID string, vulnerability types.Vulnerability) error

PutVulnerability provides a mock function with given fields: tx, vulnerabilityID, vulnerability

func (*MockOperation) PutVulnerabilityDetail

func (_m *MockOperation) PutVulnerabilityDetail(tx *bbolt.Tx, vulnerabilityID string, source types.SourceID, vulnerability types.VulnerabilityDetail) error

PutVulnerabilityDetail provides a mock function with given fields: tx, vulnerabilityID, source, vulnerability

func (*MockOperation) PutVulnerabilityID

func (_m *MockOperation) PutVulnerabilityID(tx *bbolt.Tx, vulnerabilityID string) error

PutVulnerabilityID provides a mock function with given fields: tx, vulnerabilityID

func (*MockOperation) RedHatNVRToCPEs

func (_m *MockOperation) RedHatNVRToCPEs(nvr string) ([]int, error)

RedHatNVRToCPEs provides a mock function with given fields: nvr

func (*MockOperation) RedHatRepoToCPEs

func (_m *MockOperation) RedHatRepoToCPEs(repository string) ([]int, error)

RedHatRepoToCPEs provides a mock function with given fields: repository

func (*MockOperation) SaveAdvisoryDetails

func (_m *MockOperation) SaveAdvisoryDetails(tx *bbolt.Tx, cveID string) error

SaveAdvisoryDetails provides a mock function with given fields: tx, cveID

type Operation

type Operation interface {
	BatchUpdate(fn func(*bolt.Tx) error) (err error)

	GetVulnerabilityDetail(cveID string) (detail map[types.SourceID]types.VulnerabilityDetail, err error)
	PutVulnerabilityDetail(tx *bolt.Tx, vulnerabilityID string, source types.SourceID,
		vulnerability types.VulnerabilityDetail) (err error)
	DeleteVulnerabilityDetailBucket() (err error)

	ForEachAdvisory(sources []string, pkgName string) (value map[string]Value, err error)
	GetAdvisories(source string, pkgName string) (advisories []types.Advisory, err error)

	PutVulnerabilityID(tx *bolt.Tx, vulnerabilityID string) (err error)
	ForEachVulnerabilityID(fn func(tx *bolt.Tx, cveID string) error) (err error)

	PutVulnerability(tx *bolt.Tx, vulnerabilityID string, vulnerability types.Vulnerability) (err error)
	GetVulnerability(vulnerabilityID string) (vulnerability types.Vulnerability, err error)

	SaveAdvisoryDetails(tx *bolt.Tx, cveID string) (err error)
	PutAdvisoryDetail(tx *bolt.Tx, vulnerabilityID, pkgName string, nestedBktNames []string, advisory interface{}) (err error)
	DeleteAdvisoryDetailBucket() error

	PutDataSource(tx *bolt.Tx, bktName string, source types.DataSource) (err error)

	// For Red Hat
	PutRedHatRepositories(tx *bolt.Tx, repository string, cpeIndices []int) (err error)
	PutRedHatNVRs(tx *bolt.Tx, nvr string, cpeIndices []int) (err error)
	PutRedHatCPEs(tx *bolt.Tx, cpeIndex int, cpe string) (err error)
	RedHatRepoToCPEs(repository string) (cpeIndices []int, err error)
	RedHatNVRToCPEs(nvr string) (cpeIndices []int, err error)
}

type OperationBatchUpdateArgs

type OperationBatchUpdateArgs struct {
	Fn         func(*bbolt.Tx) error
	FnAnything bool
}

type OperationBatchUpdateExpectation

type OperationBatchUpdateExpectation struct {
	Args    OperationBatchUpdateArgs
	Returns OperationBatchUpdateReturns
}

type OperationBatchUpdateReturns

type OperationBatchUpdateReturns struct {
	Err error
}

type OperationDeleteAdvisoryDetailBucketExpectation

type OperationDeleteAdvisoryDetailBucketExpectation struct {
	Returns OperationDeleteAdvisoryDetailBucketReturns
}

type OperationDeleteAdvisoryDetailBucketReturns

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

type OperationDeleteVulnerabilityDetailBucketExpectation

type OperationDeleteVulnerabilityDetailBucketExpectation struct {
	Returns OperationDeleteVulnerabilityDetailBucketReturns
}

type OperationDeleteVulnerabilityDetailBucketReturns

type OperationDeleteVulnerabilityDetailBucketReturns struct {
	Err error
}

type OperationForEachAdvisoryArgs

type OperationForEachAdvisoryArgs struct {
	Sources         []string
	SourcesAnything bool
	PkgName         string
	PkgNameAnything bool
}

type OperationForEachAdvisoryExpectation

type OperationForEachAdvisoryExpectation struct {
	Args    OperationForEachAdvisoryArgs
	Returns OperationForEachAdvisoryReturns
}

type OperationForEachAdvisoryReturns

type OperationForEachAdvisoryReturns struct {
	Value map[string]Value
	Err   error
}

type OperationForEachVulnerabilityIDArgs

type OperationForEachVulnerabilityIDArgs struct {
	Fn         func(*bbolt.Tx, string) error
	FnAnything bool
}

type OperationForEachVulnerabilityIDExpectation

type OperationForEachVulnerabilityIDExpectation struct {
	Args    OperationForEachVulnerabilityIDArgs
	Returns OperationForEachVulnerabilityIDReturns
}

type OperationForEachVulnerabilityIDReturns

type OperationForEachVulnerabilityIDReturns struct {
	Err error
}

type OperationGetAdvisoriesArgs

type OperationGetAdvisoriesArgs struct {
	Source          string
	SourceAnything  bool
	PkgName         string
	PkgNameAnything bool
}

type OperationGetAdvisoriesExpectation

type OperationGetAdvisoriesExpectation struct {
	Args    OperationGetAdvisoriesArgs
	Returns OperationGetAdvisoriesReturns
}

type OperationGetAdvisoriesReturns

type OperationGetAdvisoriesReturns struct {
	Advisories []types.Advisory
	Err        error
}

type OperationGetVulnerabilityArgs

type OperationGetVulnerabilityArgs struct {
	VulnerabilityID         string
	VulnerabilityIDAnything bool
}

type OperationGetVulnerabilityDetailArgs

type OperationGetVulnerabilityDetailArgs struct {
	CveID         string
	CveIDAnything bool
}

type OperationGetVulnerabilityDetailExpectation

type OperationGetVulnerabilityDetailExpectation struct {
	Args    OperationGetVulnerabilityDetailArgs
	Returns OperationGetVulnerabilityDetailReturns
}

type OperationGetVulnerabilityDetailReturns

type OperationGetVulnerabilityDetailReturns struct {
	Detail map[types.SourceID]types.VulnerabilityDetail
	Err    error
}

type OperationGetVulnerabilityExpectation

type OperationGetVulnerabilityExpectation struct {
	Args    OperationGetVulnerabilityArgs
	Returns OperationGetVulnerabilityReturns
}

type OperationGetVulnerabilityReturns

type OperationGetVulnerabilityReturns struct {
	Vulnerability types.Vulnerability
	Err           error
}

type OperationPutAdvisoryDetailArgs

type OperationPutAdvisoryDetailArgs struct {
	Tx                      *bbolt.Tx
	TxAnything              bool
	VulnerabilityID         string
	VulnerabilityIDAnything bool
	PkgName                 string
	PkgNameAnything         bool
	NestedBktNames          []string
	NestedBktNamesAnything  bool
	Advisory                interface{}
	AdvisoryAnything        bool
}

type OperationPutAdvisoryDetailExpectation

type OperationPutAdvisoryDetailExpectation struct {
	Args    OperationPutAdvisoryDetailArgs
	Returns OperationPutAdvisoryDetailReturns
}

type OperationPutAdvisoryDetailReturns

type OperationPutAdvisoryDetailReturns struct {
	Err error
}

type OperationPutDataSourceArgs

type OperationPutDataSourceArgs struct {
	Tx              *bbolt.Tx
	TxAnything      bool
	BktName         string
	BktNameAnything bool
	Source          types.DataSource
	SourceAnything  bool
}

type OperationPutDataSourceExpectation

type OperationPutDataSourceExpectation struct {
	Args    OperationPutDataSourceArgs
	Returns OperationPutDataSourceReturns
}

type OperationPutDataSourceReturns

type OperationPutDataSourceReturns struct {
	Err error
}

type OperationPutRedHatCPEsArgs

type OperationPutRedHatCPEsArgs struct {
	Tx               *bbolt.Tx
	TxAnything       bool
	CpeIndex         int
	CpeIndexAnything bool
	Cpe              string
	CpeAnything      bool
}

type OperationPutRedHatCPEsExpectation

type OperationPutRedHatCPEsExpectation struct {
	Args    OperationPutRedHatCPEsArgs
	Returns OperationPutRedHatCPEsReturns
}

type OperationPutRedHatCPEsReturns

type OperationPutRedHatCPEsReturns struct {
	Err error
}

type OperationPutRedHatNVRsArgs

type OperationPutRedHatNVRsArgs struct {
	Tx                 *bbolt.Tx
	TxAnything         bool
	Nvr                string
	NvrAnything        bool
	CpeIndices         []int
	CpeIndicesAnything bool
}

type OperationPutRedHatNVRsExpectation

type OperationPutRedHatNVRsExpectation struct {
	Args    OperationPutRedHatNVRsArgs
	Returns OperationPutRedHatNVRsReturns
}

type OperationPutRedHatNVRsReturns

type OperationPutRedHatNVRsReturns struct {
	Err error
}

type OperationPutRedHatRepositoriesArgs

type OperationPutRedHatRepositoriesArgs struct {
	Tx                 *bbolt.Tx
	TxAnything         bool
	Repository         string
	RepositoryAnything bool
	CpeIndices         []int
	CpeIndicesAnything bool
}

type OperationPutRedHatRepositoriesExpectation

type OperationPutRedHatRepositoriesExpectation struct {
	Args    OperationPutRedHatRepositoriesArgs
	Returns OperationPutRedHatRepositoriesReturns
}

type OperationPutRedHatRepositoriesReturns

type OperationPutRedHatRepositoriesReturns struct {
	Err error
}

type OperationPutVulnerabilityArgs

type OperationPutVulnerabilityArgs struct {
	Tx                      *bbolt.Tx
	TxAnything              bool
	VulnerabilityID         string
	VulnerabilityIDAnything bool
	Vulnerability           types.Vulnerability
	VulnerabilityAnything   bool
}

type OperationPutVulnerabilityDetailArgs

type OperationPutVulnerabilityDetailArgs struct {
	Tx                      *bbolt.Tx
	TxAnything              bool
	VulnerabilityID         string
	VulnerabilityIDAnything bool
	Source                  types.SourceID
	SourceAnything          bool
	Vulnerability           types.VulnerabilityDetail
	VulnerabilityAnything   bool
}

type OperationPutVulnerabilityDetailExpectation

type OperationPutVulnerabilityDetailExpectation struct {
	Args    OperationPutVulnerabilityDetailArgs
	Returns OperationPutVulnerabilityDetailReturns
}

type OperationPutVulnerabilityDetailReturns

type OperationPutVulnerabilityDetailReturns struct {
	Err error
}

type OperationPutVulnerabilityExpectation

type OperationPutVulnerabilityExpectation struct {
	Args    OperationPutVulnerabilityArgs
	Returns OperationPutVulnerabilityReturns
}

type OperationPutVulnerabilityIDArgs

type OperationPutVulnerabilityIDArgs struct {
	Tx                      *bbolt.Tx
	TxAnything              bool
	VulnerabilityID         string
	VulnerabilityIDAnything bool
}

type OperationPutVulnerabilityIDExpectation

type OperationPutVulnerabilityIDExpectation struct {
	Args    OperationPutVulnerabilityIDArgs
	Returns OperationPutVulnerabilityIDReturns
}

type OperationPutVulnerabilityIDReturns

type OperationPutVulnerabilityIDReturns struct {
	Err error
}

type OperationPutVulnerabilityReturns

type OperationPutVulnerabilityReturns struct {
	Err error
}

type OperationRedHatNVRToCPEsArgs

type OperationRedHatNVRToCPEsArgs struct {
	Nvr         string
	NvrAnything bool
}

type OperationRedHatNVRToCPEsExpectation

type OperationRedHatNVRToCPEsExpectation struct {
	Args    OperationRedHatNVRToCPEsArgs
	Returns OperationRedHatNVRToCPEsReturns
}

type OperationRedHatNVRToCPEsReturns

type OperationRedHatNVRToCPEsReturns struct {
	CpeIndices []int
	Err        error
}

type OperationRedHatRepoToCPEsArgs

type OperationRedHatRepoToCPEsArgs struct {
	Repository         string
	RepositoryAnything bool
}

type OperationRedHatRepoToCPEsExpectation

type OperationRedHatRepoToCPEsExpectation struct {
	Args    OperationRedHatRepoToCPEsArgs
	Returns OperationRedHatRepoToCPEsReturns
}

type OperationRedHatRepoToCPEsReturns

type OperationRedHatRepoToCPEsReturns struct {
	CpeIndices []int
	Err        error
}

type OperationSaveAdvisoryDetailsArgs

type OperationSaveAdvisoryDetailsArgs struct {
	Tx            *bbolt.Tx
	TxAnything    bool
	CveID         string
	CveIDAnything bool
}

type OperationSaveAdvisoryDetailsExpectation

type OperationSaveAdvisoryDetailsExpectation struct {
	Args    OperationSaveAdvisoryDetailsArgs
	Returns OperationSaveAdvisoryDetailsReturns
}

type OperationSaveAdvisoryDetailsReturns

type OperationSaveAdvisoryDetailsReturns struct {
	Err error
}

type Value

type Value struct {
	Source  types.DataSource
	Content []byte
}

Jump to

Keyboard shortcuts

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