Versions in this module Expand all Collapse all v0 v0.0.1 Oct 28, 2023 Changes in this version + type DB interface + Get func(release, pkgName, arch string) ([]types.Advisory, error) + Put func(*bolt.Tx, PutInput) error + type DBBatchUpdateArgs struct + Fn func(*bbolt.Tx) error + FnAnything bool + type DBBatchUpdateExpectation struct + Args DBBatchUpdateArgs + Returns DBBatchUpdateReturns + type DBBatchUpdateReturns struct + Err error + type DBDeleteAdvisoryDetailBucketExpectation struct + Returns DBDeleteAdvisoryDetailBucketReturns + type DBDeleteAdvisoryDetailBucketReturns struct + type DBDeleteVulnerabilityDetailBucketExpectation struct + Returns DBDeleteVulnerabilityDetailBucketReturns + type DBDeleteVulnerabilityDetailBucketReturns struct + Err error + type DBForEachAdvisoryArgs struct + PkgName string + PkgNameAnything bool + Sources []string + SourcesAnything bool + type DBForEachAdvisoryExpectation struct + Args DBForEachAdvisoryArgs + Returns DBForEachAdvisoryReturns + type DBForEachAdvisoryReturns struct + Err error + Value map[string]db.Value + type DBForEachVulnerabilityIDArgs struct + Fn func(*bbolt.Tx, string) error + FnAnything bool + type DBForEachVulnerabilityIDExpectation struct + Args DBForEachVulnerabilityIDArgs + Returns DBForEachVulnerabilityIDReturns + type DBForEachVulnerabilityIDReturns struct + Err error + type DBGetAdvisoriesArgs struct + PkgName string + PkgNameAnything bool + Source string + SourceAnything bool + type DBGetAdvisoriesExpectation struct + Args DBGetAdvisoriesArgs + Returns DBGetAdvisoriesReturns + type DBGetAdvisoriesReturns struct + Advisories []types.Advisory + Err error + type DBGetArgs struct + Arch string + ArchAnything bool + PkgName string + PkgNameAnything bool + Release string + ReleaseAnything bool + type DBGetExpectation struct + Args DBGetArgs + Returns DBGetReturns + type DBGetReturns struct + type DBGetVulnerabilityArgs struct + VulnerabilityID string + VulnerabilityIDAnything bool + type DBGetVulnerabilityDetailArgs struct + CveID string + CveIDAnything bool + type DBGetVulnerabilityDetailExpectation struct + Args DBGetVulnerabilityDetailArgs + Returns DBGetVulnerabilityDetailReturns + type DBGetVulnerabilityDetailReturns struct + Detail map[types.SourceID]types.VulnerabilityDetail + Err error + type DBGetVulnerabilityExpectation struct + Args DBGetVulnerabilityArgs + Returns DBGetVulnerabilityReturns + type DBGetVulnerabilityReturns struct + Err error + Vulnerability types.Vulnerability + type DBPutAdvisoryDetailArgs struct + Advisory interface{} + AdvisoryAnything bool + NestedBktNames []string + NestedBktNamesAnything bool + PkgName string + PkgNameAnything bool + Tx *bbolt.Tx + TxAnything bool + VulnerabilityID string + VulnerabilityIDAnything bool + type DBPutAdvisoryDetailExpectation struct + Args DBPutAdvisoryDetailArgs + Returns DBPutAdvisoryDetailReturns + type DBPutAdvisoryDetailReturns struct + Err error + type DBPutArgs struct + type DBPutDataSourceArgs struct + BktName string + BktNameAnything bool + Source types.DataSource + SourceAnything bool + Tx *bbolt.Tx + TxAnything bool + type DBPutDataSourceExpectation struct + Args DBPutDataSourceArgs + Returns DBPutDataSourceReturns + type DBPutDataSourceReturns struct + Err error + type DBPutExpectation struct + Args DBPutArgs + Returns DBPutReturns + type DBPutRedHatCPEsArgs struct + Cpe string + CpeAnything bool + CpeIndex int + CpeIndexAnything bool + Tx *bbolt.Tx + TxAnything bool + type DBPutRedHatCPEsExpectation struct + Args DBPutRedHatCPEsArgs + Returns DBPutRedHatCPEsReturns + type DBPutRedHatCPEsReturns struct + Err error + type DBPutRedHatNVRsArgs struct + CpeIndices []int + CpeIndicesAnything bool + Nvr string + NvrAnything bool + Tx *bbolt.Tx + TxAnything bool + type DBPutRedHatNVRsExpectation struct + Args DBPutRedHatNVRsArgs + Returns DBPutRedHatNVRsReturns + type DBPutRedHatNVRsReturns struct + Err error + type DBPutRedHatRepositoriesArgs struct + CpeIndices []int + CpeIndicesAnything bool + Repository string + RepositoryAnything bool + Tx *bbolt.Tx + TxAnything bool + type DBPutRedHatRepositoriesExpectation struct + Args DBPutRedHatRepositoriesArgs + Returns DBPutRedHatRepositoriesReturns + type DBPutRedHatRepositoriesReturns struct + Err error + type DBPutReturns struct + type DBPutVulnerabilityArgs struct + Tx *bbolt.Tx + TxAnything bool + Vulnerability types.Vulnerability + VulnerabilityAnything bool + VulnerabilityID string + VulnerabilityIDAnything bool + type DBPutVulnerabilityDetailArgs struct + Source types.SourceID + SourceAnything bool + Tx *bbolt.Tx + TxAnything bool + Vulnerability types.VulnerabilityDetail + VulnerabilityAnything bool + VulnerabilityID string + VulnerabilityIDAnything bool + type DBPutVulnerabilityDetailExpectation struct + Args DBPutVulnerabilityDetailArgs + Returns DBPutVulnerabilityDetailReturns + type DBPutVulnerabilityDetailReturns struct + Err error + type DBPutVulnerabilityExpectation struct + Args DBPutVulnerabilityArgs + Returns DBPutVulnerabilityReturns + type DBPutVulnerabilityIDArgs struct + Tx *bbolt.Tx + TxAnything bool + VulnerabilityID string + VulnerabilityIDAnything bool + type DBPutVulnerabilityIDExpectation struct + Args DBPutVulnerabilityIDArgs + Returns DBPutVulnerabilityIDReturns + type DBPutVulnerabilityIDReturns struct + Err error + type DBPutVulnerabilityReturns struct + Err error + type DBRedHatNVRToCPEsArgs struct + Nvr string + NvrAnything bool + type DBRedHatNVRToCPEsExpectation struct + Args DBRedHatNVRToCPEsArgs + Returns DBRedHatNVRToCPEsReturns + type DBRedHatNVRToCPEsReturns struct + CpeIndices []int + Err error + type DBRedHatRepoToCPEsArgs struct + Repository string + RepositoryAnything bool + type DBRedHatRepoToCPEsExpectation struct + Args DBRedHatRepoToCPEsArgs + Returns DBRedHatRepoToCPEsReturns + type DBRedHatRepoToCPEsReturns struct + CpeIndices []int + Err error + type DBSaveAdvisoryDetailsArgs struct + CveID string + CveIDAnything bool + Tx *bbolt.Tx + TxAnything bool + type DBSaveAdvisoryDetailsExpectation struct + Args DBSaveAdvisoryDetailsArgs + Returns DBSaveAdvisoryDetailsReturns + type DBSaveAdvisoryDetailsReturns struct + Err error + type Date struct + Date string + type MockDB struct + 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, arch 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 Package struct + Arch string + Epoch string + Filename string + Name string + Release string + Version string + type PutInput struct + Advisories map[string]types.Advisories + CveID string + Erratum RLSA + PlatformName string + Vuln types.VulnerabilityDetail + type RLSA struct + CveIDs []string + Description string + ID string + IssuedDate Date + Packages []Package + References []Reference + Severity string + Title string + type Reference struct + Href string + ID string + Title string + Type string + type Rocky struct + func (r *Rocky) Get(release, pkgName, arch string) ([]types.Advisory, error) + func (r *Rocky) Put(tx *bolt.Tx, input PutInput) error + type VulnSrc struct + func NewVulnSrc() *VulnSrc + func (vs *VulnSrc) Name() types.SourceID + func (vs *VulnSrc) Update(dir string) error