Documentation ¶
Index ¶
- type Alma
- type DB
- type DBBatchUpdateArgs
- type DBBatchUpdateExpectation
- type DBBatchUpdateReturns
- type DBDeleteAdvisoryDetailBucketExpectation
- type DBDeleteAdvisoryDetailBucketReturns
- type DBDeleteVulnerabilityDetailBucketExpectation
- type DBDeleteVulnerabilityDetailBucketReturns
- type DBForEachAdvisoryArgs
- type DBForEachAdvisoryExpectation
- type DBForEachAdvisoryReturns
- type DBForEachVulnerabilityIDArgs
- type DBForEachVulnerabilityIDExpectation
- type DBForEachVulnerabilityIDReturns
- type DBGetAdvisoriesArgs
- type DBGetAdvisoriesExpectation
- type DBGetAdvisoriesReturns
- type DBGetArgs
- type DBGetExpectation
- type DBGetReturns
- type DBGetVulnerabilityArgs
- type DBGetVulnerabilityDetailArgs
- type DBGetVulnerabilityDetailExpectation
- type DBGetVulnerabilityDetailReturns
- type DBGetVulnerabilityExpectation
- type DBGetVulnerabilityReturns
- type DBPutAdvisoryDetailArgs
- type DBPutAdvisoryDetailExpectation
- type DBPutAdvisoryDetailReturns
- type DBPutArgs
- type DBPutDataSourceArgs
- type DBPutDataSourceExpectation
- type DBPutDataSourceReturns
- type DBPutExpectation
- type DBPutRedHatCPEsArgs
- type DBPutRedHatCPEsExpectation
- type DBPutRedHatCPEsReturns
- type DBPutRedHatNVRsArgs
- type DBPutRedHatNVRsExpectation
- type DBPutRedHatNVRsReturns
- type DBPutRedHatRepositoriesArgs
- type DBPutRedHatRepositoriesExpectation
- type DBPutRedHatRepositoriesReturns
- type DBPutReturns
- type DBPutVulnerabilityArgs
- type DBPutVulnerabilityDetailArgs
- type DBPutVulnerabilityDetailExpectation
- type DBPutVulnerabilityDetailReturns
- type DBPutVulnerabilityExpectation
- type DBPutVulnerabilityIDArgs
- type DBPutVulnerabilityIDExpectation
- type DBPutVulnerabilityIDReturns
- type DBPutVulnerabilityReturns
- type DBRedHatNVRToCPEsArgs
- type DBRedHatNVRToCPEsExpectation
- type DBRedHatNVRToCPEsReturns
- type DBRedHatRepoToCPEsArgs
- type DBRedHatRepoToCPEsExpectation
- type DBRedHatRepoToCPEsReturns
- type DBSaveAdvisoryDetailsArgs
- type DBSaveAdvisoryDetailsExpectation
- type DBSaveAdvisoryDetailsReturns
- type Date
- type Erratum
- type MockDB
- func (_m *MockDB) ApplyBatchUpdateExpectation(e DBBatchUpdateExpectation)
- func (_m *MockDB) ApplyBatchUpdateExpectations(expectations []DBBatchUpdateExpectation)
- func (_m *MockDB) ApplyDeleteAdvisoryDetailBucketExpectation(e DBDeleteAdvisoryDetailBucketExpectation)
- func (_m *MockDB) ApplyDeleteAdvisoryDetailBucketExpectations(expectations []DBDeleteAdvisoryDetailBucketExpectation)
- func (_m *MockDB) ApplyDeleteVulnerabilityDetailBucketExpectation(e DBDeleteVulnerabilityDetailBucketExpectation)
- func (_m *MockDB) ApplyDeleteVulnerabilityDetailBucketExpectations(expectations []DBDeleteVulnerabilityDetailBucketExpectation)
- func (_m *MockDB) ApplyForEachAdvisoryExpectation(e DBForEachAdvisoryExpectation)
- func (_m *MockDB) ApplyForEachAdvisoryExpectations(expectations []DBForEachAdvisoryExpectation)
- func (_m *MockDB) ApplyForEachVulnerabilityIDExpectation(e DBForEachVulnerabilityIDExpectation)
- func (_m *MockDB) ApplyForEachVulnerabilityIDExpectations(expectations []DBForEachVulnerabilityIDExpectation)
- func (_m *MockDB) ApplyGetAdvisoriesExpectation(e DBGetAdvisoriesExpectation)
- func (_m *MockDB) ApplyGetAdvisoriesExpectations(expectations []DBGetAdvisoriesExpectation)
- func (_m *MockDB) ApplyGetExpectation(e DBGetExpectation)
- func (_m *MockDB) ApplyGetExpectations(expectations []DBGetExpectation)
- func (_m *MockDB) ApplyGetVulnerabilityDetailExpectation(e DBGetVulnerabilityDetailExpectation)
- func (_m *MockDB) ApplyGetVulnerabilityDetailExpectations(expectations []DBGetVulnerabilityDetailExpectation)
- func (_m *MockDB) ApplyGetVulnerabilityExpectation(e DBGetVulnerabilityExpectation)
- func (_m *MockDB) ApplyGetVulnerabilityExpectations(expectations []DBGetVulnerabilityExpectation)
- func (_m *MockDB) ApplyPutAdvisoryDetailExpectation(e DBPutAdvisoryDetailExpectation)
- func (_m *MockDB) ApplyPutAdvisoryDetailExpectations(expectations []DBPutAdvisoryDetailExpectation)
- func (_m *MockDB) ApplyPutDataSourceExpectation(e DBPutDataSourceExpectation)
- func (_m *MockDB) ApplyPutDataSourceExpectations(expectations []DBPutDataSourceExpectation)
- func (_m *MockDB) ApplyPutExpectation(e DBPutExpectation)
- func (_m *MockDB) ApplyPutExpectations(expectations []DBPutExpectation)
- func (_m *MockDB) ApplyPutRedHatCPEsExpectation(e DBPutRedHatCPEsExpectation)
- func (_m *MockDB) ApplyPutRedHatCPEsExpectations(expectations []DBPutRedHatCPEsExpectation)
- func (_m *MockDB) ApplyPutRedHatNVRsExpectation(e DBPutRedHatNVRsExpectation)
- func (_m *MockDB) ApplyPutRedHatNVRsExpectations(expectations []DBPutRedHatNVRsExpectation)
- func (_m *MockDB) ApplyPutRedHatRepositoriesExpectation(e DBPutRedHatRepositoriesExpectation)
- func (_m *MockDB) ApplyPutRedHatRepositoriesExpectations(expectations []DBPutRedHatRepositoriesExpectation)
- func (_m *MockDB) ApplyPutVulnerabilityDetailExpectation(e DBPutVulnerabilityDetailExpectation)
- func (_m *MockDB) ApplyPutVulnerabilityDetailExpectations(expectations []DBPutVulnerabilityDetailExpectation)
- func (_m *MockDB) ApplyPutVulnerabilityExpectation(e DBPutVulnerabilityExpectation)
- func (_m *MockDB) ApplyPutVulnerabilityExpectations(expectations []DBPutVulnerabilityExpectation)
- func (_m *MockDB) ApplyPutVulnerabilityIDExpectation(e DBPutVulnerabilityIDExpectation)
- func (_m *MockDB) ApplyPutVulnerabilityIDExpectations(expectations []DBPutVulnerabilityIDExpectation)
- func (_m *MockDB) ApplyRedHatNVRToCPEsExpectation(e DBRedHatNVRToCPEsExpectation)
- func (_m *MockDB) ApplyRedHatNVRToCPEsExpectations(expectations []DBRedHatNVRToCPEsExpectation)
- func (_m *MockDB) ApplyRedHatRepoToCPEsExpectation(e DBRedHatRepoToCPEsExpectation)
- func (_m *MockDB) ApplyRedHatRepoToCPEsExpectations(expectations []DBRedHatRepoToCPEsExpectation)
- func (_m *MockDB) ApplySaveAdvisoryDetailsExpectation(e DBSaveAdvisoryDetailsExpectation)
- func (_m *MockDB) ApplySaveAdvisoryDetailsExpectations(expectations []DBSaveAdvisoryDetailsExpectation)
- func (_m *MockDB) BatchUpdate(fn func(*bbolt.Tx) error) error
- func (_m *MockDB) DeleteAdvisoryDetailBucket() error
- func (_m *MockDB) DeleteVulnerabilityDetailBucket() error
- func (_m *MockDB) ForEachAdvisory(sources []string, pkgName string) (map[string]db.Value, error)
- func (_m *MockDB) ForEachVulnerabilityID(fn func(*bbolt.Tx, string) error) error
- func (_m *MockDB) Get(release string, pkgName string) ([]types.Advisory, error)
- func (_m *MockDB) GetAdvisories(source string, pkgName string) ([]types.Advisory, error)
- func (_m *MockDB) GetVulnerability(vulnerabilityID string) (types.Vulnerability, error)
- func (_m *MockDB) GetVulnerabilityDetail(cveID string) (map[types.SourceID]types.VulnerabilityDetail, error)
- func (_m *MockDB) Put(_a0 *bbolt.Tx, _a1 PutInput) error
- func (_m *MockDB) PutAdvisoryDetail(tx *bbolt.Tx, vulnerabilityID string, pkgName string, nestedBktNames []string, ...) error
- func (_m *MockDB) PutDataSource(tx *bbolt.Tx, bktName string, source types.DataSource) error
- func (_m *MockDB) PutRedHatCPEs(tx *bbolt.Tx, cpeIndex int, cpe string) error
- func (_m *MockDB) PutRedHatNVRs(tx *bbolt.Tx, nvr string, cpeIndices []int) error
- func (_m *MockDB) PutRedHatRepositories(tx *bbolt.Tx, repository string, cpeIndices []int) error
- func (_m *MockDB) PutVulnerability(tx *bbolt.Tx, vulnerabilityID string, vulnerability types.Vulnerability) error
- func (_m *MockDB) PutVulnerabilityDetail(tx *bbolt.Tx, vulnerabilityID string, source types.SourceID, ...) error
- func (_m *MockDB) PutVulnerabilityID(tx *bbolt.Tx, vulnerabilityID string) error
- func (_m *MockDB) RedHatNVRToCPEs(nvr string) ([]int, error)
- func (_m *MockDB) RedHatRepoToCPEs(repository string) ([]int, error)
- func (_m *MockDB) SaveAdvisoryDetails(tx *bbolt.Tx, cveID string) error
- type Module
- type OID
- type Package
- type Pkglist
- type PutInput
- type Reference
- type VulnSrc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBBatchUpdateExpectation ¶
type DBBatchUpdateExpectation struct { Args DBBatchUpdateArgs Returns DBBatchUpdateReturns }
type DBBatchUpdateReturns ¶
type DBBatchUpdateReturns struct {
Err error
}
type DBDeleteAdvisoryDetailBucketExpectation ¶
type DBDeleteAdvisoryDetailBucketExpectation struct {
Returns DBDeleteAdvisoryDetailBucketReturns
}
type DBDeleteAdvisoryDetailBucketReturns ¶
type DBDeleteAdvisoryDetailBucketReturns struct {
// contains filtered or unexported fields
}
type DBDeleteVulnerabilityDetailBucketExpectation ¶
type DBDeleteVulnerabilityDetailBucketExpectation struct {
Returns DBDeleteVulnerabilityDetailBucketReturns
}
type DBDeleteVulnerabilityDetailBucketReturns ¶
type DBDeleteVulnerabilityDetailBucketReturns struct {
Err error
}
type DBForEachAdvisoryArgs ¶
type DBForEachAdvisoryExpectation ¶
type DBForEachAdvisoryExpectation struct { Args DBForEachAdvisoryArgs Returns DBForEachAdvisoryReturns }
type DBForEachVulnerabilityIDExpectation ¶
type DBForEachVulnerabilityIDExpectation struct { Args DBForEachVulnerabilityIDArgs Returns DBForEachVulnerabilityIDReturns }
type DBForEachVulnerabilityIDReturns ¶
type DBForEachVulnerabilityIDReturns struct {
Err error
}
type DBGetAdvisoriesArgs ¶
type DBGetAdvisoriesExpectation ¶
type DBGetAdvisoriesExpectation struct { Args DBGetAdvisoriesArgs Returns DBGetAdvisoriesReturns }
type DBGetAdvisoriesReturns ¶
type DBGetExpectation ¶
type DBGetExpectation struct { Args DBGetArgs Returns DBGetReturns }
type DBGetReturns ¶
type DBGetReturns struct {
// contains filtered or unexported fields
}
type DBGetVulnerabilityArgs ¶
type DBGetVulnerabilityDetailExpectation ¶
type DBGetVulnerabilityDetailExpectation struct { Args DBGetVulnerabilityDetailArgs Returns DBGetVulnerabilityDetailReturns }
type DBGetVulnerabilityDetailReturns ¶
type DBGetVulnerabilityDetailReturns struct { Detail map[types.SourceID]types.VulnerabilityDetail Err error }
type DBGetVulnerabilityExpectation ¶
type DBGetVulnerabilityExpectation struct { Args DBGetVulnerabilityArgs Returns DBGetVulnerabilityReturns }
type DBGetVulnerabilityReturns ¶
type DBGetVulnerabilityReturns struct { Vulnerability types.Vulnerability Err error }
type DBPutAdvisoryDetailArgs ¶
type DBPutAdvisoryDetailExpectation ¶
type DBPutAdvisoryDetailExpectation struct { Args DBPutAdvisoryDetailArgs Returns DBPutAdvisoryDetailReturns }
type DBPutAdvisoryDetailReturns ¶
type DBPutAdvisoryDetailReturns struct {
Err error
}
type DBPutDataSourceArgs ¶
type DBPutDataSourceExpectation ¶
type DBPutDataSourceExpectation struct { Args DBPutDataSourceArgs Returns DBPutDataSourceReturns }
type DBPutDataSourceReturns ¶
type DBPutDataSourceReturns struct {
Err error
}
type DBPutExpectation ¶
type DBPutExpectation struct { Args DBPutArgs Returns DBPutReturns }
type DBPutRedHatCPEsArgs ¶
type DBPutRedHatCPEsExpectation ¶
type DBPutRedHatCPEsExpectation struct { Args DBPutRedHatCPEsArgs Returns DBPutRedHatCPEsReturns }
type DBPutRedHatCPEsReturns ¶
type DBPutRedHatCPEsReturns struct {
Err error
}
type DBPutRedHatNVRsArgs ¶
type DBPutRedHatNVRsExpectation ¶
type DBPutRedHatNVRsExpectation struct { Args DBPutRedHatNVRsArgs Returns DBPutRedHatNVRsReturns }
type DBPutRedHatNVRsReturns ¶
type DBPutRedHatNVRsReturns struct {
Err error
}
type DBPutRedHatRepositoriesExpectation ¶
type DBPutRedHatRepositoriesExpectation struct { Args DBPutRedHatRepositoriesArgs Returns DBPutRedHatRepositoriesReturns }
type DBPutRedHatRepositoriesReturns ¶
type DBPutRedHatRepositoriesReturns struct {
Err error
}
type DBPutReturns ¶
type DBPutReturns struct {
// contains filtered or unexported fields
}
type DBPutVulnerabilityArgs ¶
type DBPutVulnerabilityDetailExpectation ¶
type DBPutVulnerabilityDetailExpectation struct { Args DBPutVulnerabilityDetailArgs Returns DBPutVulnerabilityDetailReturns }
type DBPutVulnerabilityDetailReturns ¶
type DBPutVulnerabilityDetailReturns struct {
Err error
}
type DBPutVulnerabilityExpectation ¶
type DBPutVulnerabilityExpectation struct { Args DBPutVulnerabilityArgs Returns DBPutVulnerabilityReturns }
type DBPutVulnerabilityIDExpectation ¶
type DBPutVulnerabilityIDExpectation struct { Args DBPutVulnerabilityIDArgs Returns DBPutVulnerabilityIDReturns }
type DBPutVulnerabilityIDReturns ¶
type DBPutVulnerabilityIDReturns struct {
Err error
}
type DBPutVulnerabilityReturns ¶
type DBPutVulnerabilityReturns struct {
Err error
}
type DBRedHatNVRToCPEsArgs ¶
type DBRedHatNVRToCPEsExpectation ¶
type DBRedHatNVRToCPEsExpectation struct { Args DBRedHatNVRToCPEsArgs Returns DBRedHatNVRToCPEsReturns }
type DBRedHatRepoToCPEsArgs ¶
type DBRedHatRepoToCPEsExpectation ¶
type DBRedHatRepoToCPEsExpectation struct { Args DBRedHatRepoToCPEsArgs Returns DBRedHatRepoToCPEsReturns }
type DBSaveAdvisoryDetailsExpectation ¶
type DBSaveAdvisoryDetailsExpectation struct { Args DBSaveAdvisoryDetailsArgs Returns DBSaveAdvisoryDetailsReturns }
type DBSaveAdvisoryDetailsReturns ¶
type DBSaveAdvisoryDetailsReturns struct {
Err error
}
type Erratum ¶
type Erratum struct { ID OID `json:"_id"` BsRepoID OID `json:"bs_repo_id"` UpdateinfoID string `json:"updateinfo_id"` Description string `json:"description"` Fromstr string `json:"fromstr"` IssuedDate Date `json:"issued_date"` Pkglist Pkglist `json:"pkglist"` Pushcount string `json:"pushcount"` References []Reference `json:"references"` Release string `json:"release"` Rights string `json:"rights"` Severity string `json:"severity"` Solution string `json:"solution"` Status string `json:"status"` Summary string `json:"summary"` Title string `json:"title"` Type string `json:"type"` UpdatedDate Date `json:"updated_date"` Version string `json:"version"` }
type MockDB ¶
MockDB is an autogenerated mock type for the DB type
func (*MockDB) ApplyBatchUpdateExpectation ¶
func (_m *MockDB) ApplyBatchUpdateExpectation(e DBBatchUpdateExpectation)
func (*MockDB) ApplyBatchUpdateExpectations ¶
func (_m *MockDB) ApplyBatchUpdateExpectations(expectations []DBBatchUpdateExpectation)
func (*MockDB) ApplyDeleteAdvisoryDetailBucketExpectation ¶
func (_m *MockDB) ApplyDeleteAdvisoryDetailBucketExpectation(e DBDeleteAdvisoryDetailBucketExpectation)
func (*MockDB) ApplyDeleteAdvisoryDetailBucketExpectations ¶
func (_m *MockDB) ApplyDeleteAdvisoryDetailBucketExpectations(expectations []DBDeleteAdvisoryDetailBucketExpectation)
func (*MockDB) ApplyDeleteVulnerabilityDetailBucketExpectation ¶
func (_m *MockDB) ApplyDeleteVulnerabilityDetailBucketExpectation(e DBDeleteVulnerabilityDetailBucketExpectation)
func (*MockDB) ApplyDeleteVulnerabilityDetailBucketExpectations ¶
func (_m *MockDB) ApplyDeleteVulnerabilityDetailBucketExpectations(expectations []DBDeleteVulnerabilityDetailBucketExpectation)
func (*MockDB) ApplyForEachAdvisoryExpectation ¶
func (_m *MockDB) ApplyForEachAdvisoryExpectation(e DBForEachAdvisoryExpectation)
func (*MockDB) ApplyForEachAdvisoryExpectations ¶
func (_m *MockDB) ApplyForEachAdvisoryExpectations(expectations []DBForEachAdvisoryExpectation)
func (*MockDB) ApplyForEachVulnerabilityIDExpectation ¶
func (_m *MockDB) ApplyForEachVulnerabilityIDExpectation(e DBForEachVulnerabilityIDExpectation)
func (*MockDB) ApplyForEachVulnerabilityIDExpectations ¶
func (_m *MockDB) ApplyForEachVulnerabilityIDExpectations(expectations []DBForEachVulnerabilityIDExpectation)
func (*MockDB) ApplyGetAdvisoriesExpectation ¶
func (_m *MockDB) ApplyGetAdvisoriesExpectation(e DBGetAdvisoriesExpectation)
func (*MockDB) ApplyGetAdvisoriesExpectations ¶
func (_m *MockDB) ApplyGetAdvisoriesExpectations(expectations []DBGetAdvisoriesExpectation)
func (*MockDB) ApplyGetExpectation ¶
func (_m *MockDB) ApplyGetExpectation(e DBGetExpectation)
func (*MockDB) ApplyGetExpectations ¶
func (_m *MockDB) ApplyGetExpectations(expectations []DBGetExpectation)
func (*MockDB) ApplyGetVulnerabilityDetailExpectation ¶
func (_m *MockDB) ApplyGetVulnerabilityDetailExpectation(e DBGetVulnerabilityDetailExpectation)
func (*MockDB) ApplyGetVulnerabilityDetailExpectations ¶
func (_m *MockDB) ApplyGetVulnerabilityDetailExpectations(expectations []DBGetVulnerabilityDetailExpectation)
func (*MockDB) ApplyGetVulnerabilityExpectation ¶
func (_m *MockDB) ApplyGetVulnerabilityExpectation(e DBGetVulnerabilityExpectation)
func (*MockDB) ApplyGetVulnerabilityExpectations ¶
func (_m *MockDB) ApplyGetVulnerabilityExpectations(expectations []DBGetVulnerabilityExpectation)
func (*MockDB) ApplyPutAdvisoryDetailExpectation ¶
func (_m *MockDB) ApplyPutAdvisoryDetailExpectation(e DBPutAdvisoryDetailExpectation)
func (*MockDB) ApplyPutAdvisoryDetailExpectations ¶
func (_m *MockDB) ApplyPutAdvisoryDetailExpectations(expectations []DBPutAdvisoryDetailExpectation)
func (*MockDB) ApplyPutDataSourceExpectation ¶
func (_m *MockDB) ApplyPutDataSourceExpectation(e DBPutDataSourceExpectation)
func (*MockDB) ApplyPutDataSourceExpectations ¶
func (_m *MockDB) ApplyPutDataSourceExpectations(expectations []DBPutDataSourceExpectation)
func (*MockDB) ApplyPutExpectation ¶
func (_m *MockDB) ApplyPutExpectation(e DBPutExpectation)
func (*MockDB) ApplyPutExpectations ¶
func (_m *MockDB) ApplyPutExpectations(expectations []DBPutExpectation)
func (*MockDB) ApplyPutRedHatCPEsExpectation ¶
func (_m *MockDB) ApplyPutRedHatCPEsExpectation(e DBPutRedHatCPEsExpectation)
func (*MockDB) ApplyPutRedHatCPEsExpectations ¶
func (_m *MockDB) ApplyPutRedHatCPEsExpectations(expectations []DBPutRedHatCPEsExpectation)
func (*MockDB) ApplyPutRedHatNVRsExpectation ¶
func (_m *MockDB) ApplyPutRedHatNVRsExpectation(e DBPutRedHatNVRsExpectation)
func (*MockDB) ApplyPutRedHatNVRsExpectations ¶
func (_m *MockDB) ApplyPutRedHatNVRsExpectations(expectations []DBPutRedHatNVRsExpectation)
func (*MockDB) ApplyPutRedHatRepositoriesExpectation ¶
func (_m *MockDB) ApplyPutRedHatRepositoriesExpectation(e DBPutRedHatRepositoriesExpectation)
func (*MockDB) ApplyPutRedHatRepositoriesExpectations ¶
func (_m *MockDB) ApplyPutRedHatRepositoriesExpectations(expectations []DBPutRedHatRepositoriesExpectation)
func (*MockDB) ApplyPutVulnerabilityDetailExpectation ¶
func (_m *MockDB) ApplyPutVulnerabilityDetailExpectation(e DBPutVulnerabilityDetailExpectation)
func (*MockDB) ApplyPutVulnerabilityDetailExpectations ¶
func (_m *MockDB) ApplyPutVulnerabilityDetailExpectations(expectations []DBPutVulnerabilityDetailExpectation)
func (*MockDB) ApplyPutVulnerabilityExpectation ¶
func (_m *MockDB) ApplyPutVulnerabilityExpectation(e DBPutVulnerabilityExpectation)
func (*MockDB) ApplyPutVulnerabilityExpectations ¶
func (_m *MockDB) ApplyPutVulnerabilityExpectations(expectations []DBPutVulnerabilityExpectation)
func (*MockDB) ApplyPutVulnerabilityIDExpectation ¶
func (_m *MockDB) ApplyPutVulnerabilityIDExpectation(e DBPutVulnerabilityIDExpectation)
func (*MockDB) ApplyPutVulnerabilityIDExpectations ¶
func (_m *MockDB) ApplyPutVulnerabilityIDExpectations(expectations []DBPutVulnerabilityIDExpectation)
func (*MockDB) ApplyRedHatNVRToCPEsExpectation ¶
func (_m *MockDB) ApplyRedHatNVRToCPEsExpectation(e DBRedHatNVRToCPEsExpectation)
func (*MockDB) ApplyRedHatNVRToCPEsExpectations ¶
func (_m *MockDB) ApplyRedHatNVRToCPEsExpectations(expectations []DBRedHatNVRToCPEsExpectation)
func (*MockDB) ApplyRedHatRepoToCPEsExpectation ¶
func (_m *MockDB) ApplyRedHatRepoToCPEsExpectation(e DBRedHatRepoToCPEsExpectation)
func (*MockDB) ApplyRedHatRepoToCPEsExpectations ¶
func (_m *MockDB) ApplyRedHatRepoToCPEsExpectations(expectations []DBRedHatRepoToCPEsExpectation)
func (*MockDB) ApplySaveAdvisoryDetailsExpectation ¶
func (_m *MockDB) ApplySaveAdvisoryDetailsExpectation(e DBSaveAdvisoryDetailsExpectation)
func (*MockDB) ApplySaveAdvisoryDetailsExpectations ¶
func (_m *MockDB) ApplySaveAdvisoryDetailsExpectations(expectations []DBSaveAdvisoryDetailsExpectation)
func (*MockDB) BatchUpdate ¶
BatchUpdate provides a mock function with given fields: fn
func (*MockDB) DeleteAdvisoryDetailBucket ¶
DeleteAdvisoryDetailBucket provides a mock function with given fields:
func (*MockDB) DeleteVulnerabilityDetailBucket ¶
DeleteVulnerabilityDetailBucket provides a mock function with given fields:
func (*MockDB) ForEachAdvisory ¶
ForEachAdvisory provides a mock function with given fields: sources, pkgName
func (*MockDB) ForEachVulnerabilityID ¶
ForEachVulnerabilityID provides a mock function with given fields: fn
func (*MockDB) GetAdvisories ¶
GetAdvisories provides a mock function with given fields: source, pkgName
func (*MockDB) GetVulnerability ¶
func (_m *MockDB) GetVulnerability(vulnerabilityID string) (types.Vulnerability, error)
GetVulnerability provides a mock function with given fields: vulnerabilityID
func (*MockDB) GetVulnerabilityDetail ¶
func (_m *MockDB) GetVulnerabilityDetail(cveID string) (map[types.SourceID]types.VulnerabilityDetail, error)
GetVulnerabilityDetail provides a mock function with given fields: cveID
func (*MockDB) PutAdvisoryDetail ¶
func (_m *MockDB) 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 (*MockDB) PutDataSource ¶
PutDataSource provides a mock function with given fields: tx, bktName, source
func (*MockDB) PutRedHatCPEs ¶
PutRedHatCPEs provides a mock function with given fields: tx, cpeIndex, cpe
func (*MockDB) PutRedHatNVRs ¶
PutRedHatNVRs provides a mock function with given fields: tx, nvr, cpeIndices
func (*MockDB) PutRedHatRepositories ¶
PutRedHatRepositories provides a mock function with given fields: tx, repository, cpeIndices
func (*MockDB) PutVulnerability ¶
func (_m *MockDB) PutVulnerability(tx *bbolt.Tx, vulnerabilityID string, vulnerability types.Vulnerability) error
PutVulnerability provides a mock function with given fields: tx, vulnerabilityID, vulnerability
func (*MockDB) PutVulnerabilityDetail ¶
func (_m *MockDB) 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 (*MockDB) PutVulnerabilityID ¶
PutVulnerabilityID provides a mock function with given fields: tx, vulnerabilityID
func (*MockDB) RedHatNVRToCPEs ¶
RedHatNVRToCPEs provides a mock function with given fields: nvr
func (*MockDB) RedHatRepoToCPEs ¶
RedHatRepoToCPEs provides a mock function with given fields: repository
type Package ¶
type Package struct { Name string `json:"name"` Version string `json:"version"` Release string `json:"release"` Epoch string `json:"epoch"` Arch string `json:"arch"` Src string `json:"src"` Filename string `json:"filename"` Sum string `json:"sum"` SumType interface{} `json:"sum_type"` RebootSuggested int `json:"reboot_suggested"` }