Documentation ¶
Index ¶
- Constants
- func Close() error
- func Dir(cacheDir string) string
- func Init(cacheDir string) (err error)
- func Path(cacheDir string) string
- type Config
- func (dbc Config) BatchUpdate(fn func(tx *bolt.Tx) error) error
- func (dbc Config) Connection() *bolt.DB
- func (dbc Config) DeleteAdvisoryDetailBucket() error
- func (dbc Config) DeleteVulnerabilityDetailBucket() error
- func (dbc Config) DeleteVulnerabilityIDBucket() error
- func (dbc Config) ForEachAdvisory(sources []string, pkgName string) (map[string]Value, error)
- func (dbc Config) ForEachVulnerabilityID(f func(tx *bolt.Tx, vulnID string) error) error
- func (dbc Config) GetAdvisories(source, pkgName string) ([]types.Advisory, error)
- func (dbc Config) GetVulnerability(cveID string) (vuln types.Vulnerability, err error)
- func (dbc Config) GetVulnerabilityDetail(cveID string) (map[types.SourceID]types.VulnerabilityDetail, error)
- func (dbc Config) PutAdvisory(tx *bolt.Tx, bktNames []string, key string, advisory interface{}) error
- func (dbc Config) PutAdvisoryDetail(tx *bolt.Tx, vulnID, pkgName string, nestedBktNames []string, ...) error
- func (dbc Config) PutDataSource(tx *bolt.Tx, bktName string, source types.DataSource) error
- func (dbc Config) PutRedHatCPEs(tx *bolt.Tx, cpeIndex int, cpe string) error
- func (dbc Config) PutRedHatNVRs(tx *bolt.Tx, nvr string, cpeIndices []int) error
- func (dbc Config) PutRedHatRepositories(tx *bolt.Tx, repository string, cpeIndices []int) error
- func (dbc Config) PutVulnerability(tx *bolt.Tx, cveID string, vuln types.Vulnerability) error
- func (dbc Config) PutVulnerabilityDetail(tx *bolt.Tx, cveID string, source types.SourceID, ...) error
- func (dbc Config) PutVulnerabilityID(tx *bolt.Tx, vulnID string) error
- func (dbc Config) RedHatNVRToCPEs(repository string) ([]int, error)
- func (dbc Config) RedHatRepoToCPEs(repository string) ([]int, error)
- func (dbc Config) SaveAdvisoryDetails(tx *bolt.Tx, vulnID string) error
- type CustomPut
- type MockOperation
- func (_m *MockOperation) ApplyBatchUpdateExpectation(e OperationBatchUpdateExpectation)
- func (_m *MockOperation) ApplyBatchUpdateExpectations(expectations []OperationBatchUpdateExpectation)
- func (_m *MockOperation) ApplyDeleteAdvisoryDetailBucketExpectation(e OperationDeleteAdvisoryDetailBucketExpectation)
- func (_m *MockOperation) ApplyDeleteAdvisoryDetailBucketExpectations(expectations []OperationDeleteAdvisoryDetailBucketExpectation)
- func (_m *MockOperation) ApplyDeleteVulnerabilityDetailBucketExpectation(e OperationDeleteVulnerabilityDetailBucketExpectation)
- func (_m *MockOperation) ApplyDeleteVulnerabilityDetailBucketExpectations(expectations []OperationDeleteVulnerabilityDetailBucketExpectation)
- func (_m *MockOperation) ApplyForEachAdvisoryExpectation(e OperationForEachAdvisoryExpectation)
- func (_m *MockOperation) ApplyForEachAdvisoryExpectations(expectations []OperationForEachAdvisoryExpectation)
- func (_m *MockOperation) ApplyForEachVulnerabilityIDExpectation(e OperationForEachVulnerabilityIDExpectation)
- func (_m *MockOperation) ApplyForEachVulnerabilityIDExpectations(expectations []OperationForEachVulnerabilityIDExpectation)
- func (_m *MockOperation) ApplyGetAdvisoriesExpectation(e OperationGetAdvisoriesExpectation)
- func (_m *MockOperation) ApplyGetAdvisoriesExpectations(expectations []OperationGetAdvisoriesExpectation)
- func (_m *MockOperation) ApplyGetVulnerabilityDetailExpectation(e OperationGetVulnerabilityDetailExpectation)
- func (_m *MockOperation) ApplyGetVulnerabilityDetailExpectations(expectations []OperationGetVulnerabilityDetailExpectation)
- func (_m *MockOperation) ApplyGetVulnerabilityExpectation(e OperationGetVulnerabilityExpectation)
- func (_m *MockOperation) ApplyGetVulnerabilityExpectations(expectations []OperationGetVulnerabilityExpectation)
- func (_m *MockOperation) ApplyPutAdvisoryDetailExpectation(e OperationPutAdvisoryDetailExpectation)
- func (_m *MockOperation) ApplyPutAdvisoryDetailExpectations(expectations []OperationPutAdvisoryDetailExpectation)
- func (_m *MockOperation) ApplyPutDataSourceExpectation(e OperationPutDataSourceExpectation)
- func (_m *MockOperation) ApplyPutDataSourceExpectations(expectations []OperationPutDataSourceExpectation)
- func (_m *MockOperation) ApplyPutRedHatCPEsExpectation(e OperationPutRedHatCPEsExpectation)
- func (_m *MockOperation) ApplyPutRedHatCPEsExpectations(expectations []OperationPutRedHatCPEsExpectation)
- func (_m *MockOperation) ApplyPutRedHatNVRsExpectation(e OperationPutRedHatNVRsExpectation)
- func (_m *MockOperation) ApplyPutRedHatNVRsExpectations(expectations []OperationPutRedHatNVRsExpectation)
- func (_m *MockOperation) ApplyPutRedHatRepositoriesExpectation(e OperationPutRedHatRepositoriesExpectation)
- func (_m *MockOperation) ApplyPutRedHatRepositoriesExpectations(expectations []OperationPutRedHatRepositoriesExpectation)
- func (_m *MockOperation) ApplyPutVulnerabilityDetailExpectation(e OperationPutVulnerabilityDetailExpectation)
- func (_m *MockOperation) ApplyPutVulnerabilityDetailExpectations(expectations []OperationPutVulnerabilityDetailExpectation)
- func (_m *MockOperation) ApplyPutVulnerabilityExpectation(e OperationPutVulnerabilityExpectation)
- func (_m *MockOperation) ApplyPutVulnerabilityExpectations(expectations []OperationPutVulnerabilityExpectation)
- func (_m *MockOperation) ApplyPutVulnerabilityIDExpectation(e OperationPutVulnerabilityIDExpectation)
- func (_m *MockOperation) ApplyPutVulnerabilityIDExpectations(expectations []OperationPutVulnerabilityIDExpectation)
- func (_m *MockOperation) ApplyRedHatNVRToCPEsExpectation(e OperationRedHatNVRToCPEsExpectation)
- func (_m *MockOperation) ApplyRedHatNVRToCPEsExpectations(expectations []OperationRedHatNVRToCPEsExpectation)
- func (_m *MockOperation) ApplyRedHatRepoToCPEsExpectation(e OperationRedHatRepoToCPEsExpectation)
- func (_m *MockOperation) ApplyRedHatRepoToCPEsExpectations(expectations []OperationRedHatRepoToCPEsExpectation)
- func (_m *MockOperation) ApplySaveAdvisoryDetailsExpectation(e OperationSaveAdvisoryDetailsExpectation)
- func (_m *MockOperation) ApplySaveAdvisoryDetailsExpectations(expectations []OperationSaveAdvisoryDetailsExpectation)
- func (_m *MockOperation) BatchUpdate(fn func(*bbolt.Tx) error) error
- func (_m *MockOperation) DeleteAdvisoryDetailBucket() error
- func (_m *MockOperation) DeleteVulnerabilityDetailBucket() error
- func (_m *MockOperation) ForEachAdvisory(sources []string, pkgName string) (map[string]Value, error)
- func (_m *MockOperation) ForEachVulnerabilityID(fn func(*bbolt.Tx, string) error) error
- func (_m *MockOperation) GetAdvisories(source string, pkgName string) ([]types.Advisory, error)
- func (_m *MockOperation) GetVulnerability(vulnerabilityID string) (types.Vulnerability, error)
- func (_m *MockOperation) GetVulnerabilityDetail(cveID string) (map[types.SourceID]types.VulnerabilityDetail, error)
- func (_m *MockOperation) PutAdvisoryDetail(tx *bbolt.Tx, vulnerabilityID string, pkgName string, nestedBktNames []string, ...) error
- func (_m *MockOperation) PutDataSource(tx *bbolt.Tx, bktName string, source types.DataSource) error
- func (_m *MockOperation) PutRedHatCPEs(tx *bbolt.Tx, cpeIndex int, cpe string) error
- func (_m *MockOperation) PutRedHatNVRs(tx *bbolt.Tx, nvr string, cpeIndices []int) error
- func (_m *MockOperation) PutRedHatRepositories(tx *bbolt.Tx, repository string, cpeIndices []int) error
- func (_m *MockOperation) PutVulnerability(tx *bbolt.Tx, vulnerabilityID string, vulnerability types.Vulnerability) error
- func (_m *MockOperation) PutVulnerabilityDetail(tx *bbolt.Tx, vulnerabilityID string, source types.SourceID, ...) error
- func (_m *MockOperation) PutVulnerabilityID(tx *bbolt.Tx, vulnerabilityID string) error
- func (_m *MockOperation) RedHatNVRToCPEs(nvr string) ([]int, error)
- func (_m *MockOperation) RedHatRepoToCPEs(repository string) ([]int, error)
- func (_m *MockOperation) SaveAdvisoryDetails(tx *bbolt.Tx, cveID string) error
- type Operation
- type OperationBatchUpdateArgs
- type OperationBatchUpdateExpectation
- type OperationBatchUpdateReturns
- type OperationDeleteAdvisoryDetailBucketExpectation
- type OperationDeleteAdvisoryDetailBucketReturns
- type OperationDeleteVulnerabilityDetailBucketExpectation
- type OperationDeleteVulnerabilityDetailBucketReturns
- type OperationForEachAdvisoryArgs
- type OperationForEachAdvisoryExpectation
- type OperationForEachAdvisoryReturns
- type OperationForEachVulnerabilityIDArgs
- type OperationForEachVulnerabilityIDExpectation
- type OperationForEachVulnerabilityIDReturns
- type OperationGetAdvisoriesArgs
- type OperationGetAdvisoriesExpectation
- type OperationGetAdvisoriesReturns
- type OperationGetVulnerabilityArgs
- type OperationGetVulnerabilityDetailArgs
- type OperationGetVulnerabilityDetailExpectation
- type OperationGetVulnerabilityDetailReturns
- type OperationGetVulnerabilityExpectation
- type OperationGetVulnerabilityReturns
- type OperationPutAdvisoryDetailArgs
- type OperationPutAdvisoryDetailExpectation
- type OperationPutAdvisoryDetailReturns
- type OperationPutDataSourceArgs
- type OperationPutDataSourceExpectation
- type OperationPutDataSourceReturns
- type OperationPutRedHatCPEsArgs
- type OperationPutRedHatCPEsExpectation
- type OperationPutRedHatCPEsReturns
- type OperationPutRedHatNVRsArgs
- type OperationPutRedHatNVRsExpectation
- type OperationPutRedHatNVRsReturns
- type OperationPutRedHatRepositoriesArgs
- type OperationPutRedHatRepositoriesExpectation
- type OperationPutRedHatRepositoriesReturns
- type OperationPutVulnerabilityArgs
- type OperationPutVulnerabilityDetailArgs
- type OperationPutVulnerabilityDetailExpectation
- type OperationPutVulnerabilityDetailReturns
- type OperationPutVulnerabilityExpectation
- type OperationPutVulnerabilityIDArgs
- type OperationPutVulnerabilityIDExpectation
- type OperationPutVulnerabilityIDReturns
- type OperationPutVulnerabilityReturns
- type OperationRedHatNVRToCPEsArgs
- type OperationRedHatNVRToCPEsExpectation
- type OperationRedHatNVRToCPEsReturns
- type OperationRedHatRepoToCPEsArgs
- type OperationRedHatRepoToCPEsExpectation
- type OperationRedHatRepoToCPEsReturns
- type OperationSaveAdvisoryDetailsArgs
- type OperationSaveAdvisoryDetailsExpectation
- type OperationSaveAdvisoryDetailsReturns
- type Value
Constants ¶
const SchemaVersion = 2
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { }
func (Config) Connection ¶
func (Config) DeleteAdvisoryDetailBucket ¶
func (Config) DeleteVulnerabilityDetailBucket ¶
func (Config) DeleteVulnerabilityIDBucket ¶
func (Config) ForEachAdvisory ¶
func (Config) ForEachVulnerabilityID ¶
func (Config) GetAdvisories ¶
func (Config) GetVulnerability ¶
func (dbc Config) GetVulnerability(cveID string) (vuln types.Vulnerability, err error)
func (Config) GetVulnerabilityDetail ¶
func (Config) PutAdvisory ¶
func (Config) PutAdvisoryDetail ¶
func (Config) PutDataSource ¶
func (Config) PutRedHatCPEs ¶
func (Config) PutRedHatNVRs ¶
func (Config) PutRedHatRepositories ¶
func (Config) PutVulnerability ¶
func (Config) PutVulnerabilityDetail ¶
func (Config) PutVulnerabilityID ¶
func (Config) RedHatRepoToCPEs ¶
type MockOperation ¶
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 ¶
ForEachVulnerabilityID provides a mock function with given fields: fn
func (*MockOperation) GetAdvisories ¶
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 ¶
PutRedHatCPEs provides a mock function with given fields: tx, cpeIndex, cpe
func (*MockOperation) PutRedHatNVRs ¶
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 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 OperationForEachAdvisoryExpectation ¶
type OperationForEachAdvisoryExpectation struct { Args OperationForEachAdvisoryArgs Returns OperationForEachAdvisoryReturns }
type OperationForEachVulnerabilityIDExpectation ¶
type OperationForEachVulnerabilityIDExpectation struct { Args OperationForEachVulnerabilityIDArgs Returns OperationForEachVulnerabilityIDReturns }
type OperationForEachVulnerabilityIDReturns ¶
type OperationForEachVulnerabilityIDReturns struct {
Err error
}
type OperationGetAdvisoriesExpectation ¶
type OperationGetAdvisoriesExpectation struct { Args OperationGetAdvisoriesArgs Returns OperationGetAdvisoriesReturns }
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 OperationPutAdvisoryDetailExpectation ¶
type OperationPutAdvisoryDetailExpectation struct { Args OperationPutAdvisoryDetailArgs Returns OperationPutAdvisoryDetailReturns }
type OperationPutAdvisoryDetailReturns ¶
type OperationPutAdvisoryDetailReturns struct {
Err error
}
type OperationPutDataSourceExpectation ¶
type OperationPutDataSourceExpectation struct { Args OperationPutDataSourceArgs Returns OperationPutDataSourceReturns }
type OperationPutDataSourceReturns ¶
type OperationPutDataSourceReturns struct {
Err error
}
type OperationPutRedHatCPEsExpectation ¶
type OperationPutRedHatCPEsExpectation struct { Args OperationPutRedHatCPEsArgs Returns OperationPutRedHatCPEsReturns }
type OperationPutRedHatCPEsReturns ¶
type OperationPutRedHatCPEsReturns struct {
Err error
}
type OperationPutRedHatNVRsExpectation ¶
type OperationPutRedHatNVRsExpectation struct { Args OperationPutRedHatNVRsArgs Returns OperationPutRedHatNVRsReturns }
type OperationPutRedHatNVRsReturns ¶
type OperationPutRedHatNVRsReturns struct {
Err error
}
type OperationPutRedHatRepositoriesExpectation ¶
type OperationPutRedHatRepositoriesExpectation struct { Args OperationPutRedHatRepositoriesArgs Returns OperationPutRedHatRepositoriesReturns }
type OperationPutRedHatRepositoriesReturns ¶
type OperationPutRedHatRepositoriesReturns struct {
Err error
}
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 OperationPutVulnerabilityIDExpectation ¶
type OperationPutVulnerabilityIDExpectation struct { Args OperationPutVulnerabilityIDArgs Returns OperationPutVulnerabilityIDReturns }
type OperationPutVulnerabilityIDReturns ¶
type OperationPutVulnerabilityIDReturns struct {
Err error
}
type OperationPutVulnerabilityReturns ¶
type OperationPutVulnerabilityReturns struct {
Err error
}
type OperationRedHatNVRToCPEsExpectation ¶
type OperationRedHatNVRToCPEsExpectation struct { Args OperationRedHatNVRToCPEsArgs Returns OperationRedHatNVRToCPEsReturns }
type OperationRedHatRepoToCPEsExpectation ¶
type OperationRedHatRepoToCPEsExpectation struct { Args OperationRedHatRepoToCPEsArgs Returns OperationRedHatRepoToCPEsReturns }
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 }