SYMBOL INDEX (4164 symbols across 640 files) FILE: .github/scripts/coverage.py class bcolors (line 7) | class bcolors: FILE: cmd/grype/cli/cli.go function Application (line 27) | func Application(id clio.Identification) clio.Application { function Command (line 32) | func Command(id clio.Identification) *cobra.Command { function SetupConfig (line 37) | func SetupConfig(id clio.Identification) *clio.SetupConfig { function create (line 97) | func create(id clio.Identification) (clio.Application, *cobra.Command) { function syftVersion (line 116) | func syftVersion() (string, any) { function dbVersion (line 133) | func dbVersion() (string, any) { type environWithoutCI (line 137) | type environWithoutCI struct method Environ (line 140) | func (e environWithoutCI) Environ() []string { method Getenv (line 151) | func (e environWithoutCI) Getenv(s string) string { FILE: cmd/grype/cli/cli_test.go function Test_Command (line 11) | func Test_Command(t *testing.T) { FILE: cmd/grype/cli/commands/completion.go function Completion (line 17) | func Completion(app clio.Application) *cobra.Command { function listLocalDockerImages (line 71) | func listLocalDockerImages(prefix string) ([]string, error) { function dockerImageValidArgsFunction (line 98) | func dockerImageValidArgsFunction(_ *cobra.Command, _ []string, toComple... FILE: cmd/grype/cli/commands/db.go constant jsonOutputFormat (line 10) | jsonOutputFormat = "json" constant tableOutputFormat (line 11) | tableOutputFormat = "table" constant textOutputFormat (line 12) | textOutputFormat = "text" function DB (line 15) | func DB(app clio.Application) *cobra.Command { FILE: cmd/grype/cli/commands/db_check.go type dbCheckOptions (line 19) | type dbCheckOptions struct method AddFlags (line 26) | func (d *dbCheckOptions) AddFlags(flags clio.FlagSet) { function DBCheck (line 30) | func DBCheck(app clio.Application) *cobra.Command { function runDBCheck (line 59) | func runDBCheck(opts dbCheckOptions) error { type dbCheckJSON (line 90) | type dbCheckJSON struct function presentNewDBCheck (line 96) | func presentNewDBCheck(format string, writer io.Writer, updateAvailable ... FILE: cmd/grype/cli/commands/db_check_test.go function TestPresentNewDBCheck (line 17) | func TestPresentNewDBCheck(t *testing.T) { function requireErrorContains (line 127) | func requireErrorContains(expected string) require.ErrorAssertionFunc { FILE: cmd/grype/cli/commands/db_delete.go function DBDelete (line 14) | func DBDelete(app clio.Application) *cobra.Command { function runDBDelete (line 35) | func runDBDelete(opts options.DatabaseCommand) error { FILE: cmd/grype/cli/commands/db_import.go function DBImport (line 15) | func DBImport(app clio.Application) *cobra.Command { function runDBImport (line 36) | func runDBImport(opts options.DatabaseCommand, reference string) error { FILE: cmd/grype/cli/commands/db_list.go type dbListOptions (line 17) | type dbListOptions struct method AddFlags (line 24) | func (d *dbListOptions) AddFlags(flags clio.FlagSet) { function DBList (line 28) | func DBList(app clio.Application) *cobra.Command { function runDBList (line 53) | func runDBList(opts dbListOptions) error { function presentDBList (line 72) | func presentDBList(format string, archiveURL, listingURL string, writer ... FILE: cmd/grype/cli/commands/db_list_test.go function Test_ListingUserAgent (line 21) | func Test_ListingUserAgent(t *testing.T) { function TestPresentDBList (line 68) | func TestPresentDBList(t *testing.T) { FILE: cmd/grype/cli/commands/db_providers.go type dbProvidersOptions (line 20) | type dbProvidersOptions struct method AddFlags (line 27) | func (d *dbProvidersOptions) AddFlags(flags clio.FlagSet) { function DBProviders (line 31) | func DBProviders(app clio.Application) *cobra.Command { function runDBProviders (line 55) | func runDBProviders(opts *dbProvidersOptions) error { type provider (line 96) | type provider struct function toProviders (line 104) | func toProviders(providers []v6.Provider) []provider { function displayDBProvidersTable (line 118) | func displayDBProvidersTable(providers []provider, output io.Writer) err... function displayDBProvidersJSON (line 132) | func displayDBProvidersJSON(providers []provider, output io.Writer) error { FILE: cmd/grype/cli/commands/db_providers_test.go function TestDisplayDBProvidersTable (line 11) | func TestDisplayDBProvidersTable(t *testing.T) { function TestDisplayDBProvidersJSON (line 40) | func TestDisplayDBProvidersJSON(t *testing.T) { function timeRef (line 83) | func timeRef(t time.Time) *time.Time { FILE: cmd/grype/cli/commands/db_search.go type dbSearchMatchOptions (line 24) | type dbSearchMatchOptions struct method applyArgs (line 36) | func (o *dbSearchMatchOptions) applyArgs(args []string) error { function hasAnyPrefix (line 66) | func hasAnyPrefix(s string, prefixes ...string) bool { function DBSearch (line 75) | func DBSearch(app clio.Application) *cobra.Command { function runDBSearchMatches (line 141) | func runDBSearchMatches(opts dbSearchMatchOptions) error { function presentDBSearchMatches (line 189) | func presentDBSearchMatches(outputFormat string, structuredRows dbsearch... function renderDBSearchPackagesTableRows (line 221) | func renderDBSearchPackagesTableRows(structuredRows []dbsearch.AffectedP... function mimicV5Namespace (line 254) | func mimicV5Namespace(row dbsearch.AffectedPackage) string { FILE: cmd/grype/cli/commands/db_search_test.go function TestDBSearchMatchOptionsApplyArgs (line 15) | func TestDBSearchMatchOptionsApplyArgs(t *testing.T) { function TestMimicV5Namespace (line 109) | func TestMimicV5Namespace(t *testing.T) { FILE: cmd/grype/cli/commands/db_search_vuln.go type dbSearchVulnerabilityOptions (line 24) | type dbSearchVulnerabilityOptions struct function DBSearchVulnerabilities (line 32) | func DBSearchVulnerabilities(app clio.Application) *cobra.Command { function runDBSearchVulnerabilities (line 67) | func runDBSearchVulnerabilities(opts dbSearchVulnerabilityOptions) error { function validateProvidersFilter (line 105) | func validateProvidersFilter(reader v6.Reader, providers []string) error { function presentDBSearchVulnerabilities (line 131) | func presentDBSearchVulnerabilities(outputFormat string, structuredRows ... function renderDBSearchVulnerabilitiesTableRows (line 164) | func renderDBSearchVulnerabilitiesTableRows(structuredRows []dbsearch.Vu... function getOSVersions (line 208) | func getOSVersions(oss []dbsearch.OperatingSystem) []string { function getPrimaryReference (line 216) | func getPrimaryReference(refs []v6.Reference) string { function getDate (line 224) | func getDate(t *time.Time) string { FILE: cmd/grype/cli/commands/db_search_vuln_test.go function TestGetOSVersions (line 13) | func TestGetOSVersions(t *testing.T) { function TestGetPrimaryReference (line 62) | func TestGetPrimaryReference(t *testing.T) { function TestGetDate (line 107) | func TestGetDate(t *testing.T) { function timePtr (line 138) | func timePtr(t time.Time) *time.Time { FILE: cmd/grype/cli/commands/db_status.go type dbStatusOptions (line 19) | type dbStatusOptions struct method AddFlags (line 26) | func (d *dbStatusOptions) AddFlags(flags clio.FlagSet) { function DBStatus (line 30) | func DBStatus(app clio.Application) *cobra.Command { function runDBStatus (line 55) | func runDBStatus(opts dbStatusOptions) error { function presentDBStatus (line 74) | func presentDBStatus(format string, writer io.Writer, status vulnerabili... function renderStoreValidation (line 98) | func renderStoreValidation(status vulnerability.ProviderStatus) string { FILE: cmd/grype/cli/commands/db_status_test.go function TestPresentDBStatus (line 16) | func TestPresentDBStatus(t *testing.T) { FILE: cmd/grype/cli/commands/db_update.go function DBUpdate (line 16) | func DBUpdate(app clio.Application) *cobra.Command { function runDBUpdate (line 41) | func runDBUpdate(opts options.DatabaseCommand) error { FILE: cmd/grype/cli/commands/explain.go type explainOptions (line 17) | type explainOptions struct method AddFlags (line 23) | func (d *explainOptions) AddFlags(flags clio.FlagSet) { function Explain (line 27) | func Explain(app clio.Application) *cobra.Command { FILE: cmd/grype/cli/commands/internal/dbsearch/affected_packages.go type AffectedPackage (line 15) | type AffectedPackage struct type AffectedPackageInfo (line 23) | type AffectedPackageInfo struct type Package (line 46) | type Package struct type CPE (line 55) | type CPE method MarshalJSON (line 57) | func (c *CPE) MarshalJSON() ([]byte, error) { method String (line 61) | func (c *CPE) String() string { type AffectedPackagesOptions (line 69) | type AffectedPackagesOptions struct type affectedPackageWithDecorations (line 79) | type affectedPackageWithDecorations struct method getCVEs (line 84) | func (a *affectedPackageWithDecorations) getCVEs() []string { type affectedCPEWithDecorations (line 91) | type affectedCPEWithDecorations struct method getCVEs (line 96) | func (a *affectedCPEWithDecorations) getCVEs() []string { function newAffectedPackageRows (line 103) | func newAffectedPackageRows(affectedPkgs []affectedPackageWithDecoration... function toPackage (line 157) | func toPackage(pkg *v6.Package) *Package { function toOS (line 167) | func toOS(os *v6.OperatingSystem) *OperatingSystem { function FindAffectedPackages (line 178) | func FindAffectedPackages(reader interface { function findAffectedPackages (line 197) | func findAffectedPackages(reader interface { //nolint:funlen,gocognit FILE: cmd/grype/cli/commands/internal/dbsearch/affected_packages_test.go function TestAffectedPackageTableRowMarshalJSON (line 18) | func TestAffectedPackageTableRowMarshalJSON(t *testing.T) { function TestNewAffectedPackageRows (line 157) | func TestNewAffectedPackageRows(t *testing.T) { function TestAffectedPackages (line 419) | func TestAffectedPackages(t *testing.T) { function TestFindAffectedPackages (line 653) | func TestFindAffectedPackages(t *testing.T) { type affectedMockReader (line 874) | type affectedMockReader struct method GetAffectedPackages (line 878) | func (m *affectedMockReader) GetAffectedPackages(pkgSpec *v6.PackageSp... method GetAffectedCPEs (line 883) | func (m *affectedMockReader) GetAffectedCPEs(cpeSpec *cpe.Attributes, ... method GetKnownExploitedVulnerabilities (line 888) | func (m *affectedMockReader) GetKnownExploitedVulnerabilities(cve stri... method GetEpss (line 893) | func (m *affectedMockReader) GetEpss(cve string) ([]v6.EpssHandle, err... method GetCWEs (line 898) | func (m *affectedMockReader) GetCWEs(cve string) ([]v6.CWEHandle, erro... function ptr (line 903) | func ptr[T any](t T) *T { function TestGetFixStateFromPackageBlob (line 907) | func TestGetFixStateFromPackageBlob(t *testing.T) { function TestFilterByFixedStateForPackages (line 1003) | func TestFilterByFixedStateForPackages(t *testing.T) { function TestFilterByFixedStateForCPEs (line 1065) | func TestFilterByFixedStateForCPEs(t *testing.T) { function makeAffectedPackageWithFixState (line 1119) | func makeAffectedPackageWithFixState(state v6.FixStatus) affectedPackage... function makeAffectedCPEWithFixState (line 1136) | func makeAffectedCPEWithFixState(state v6.FixStatus) affectedCPEWithDeco... FILE: cmd/grype/cli/commands/internal/dbsearch/common.go constant fixStateFixed (line 6) | fixStateFixed = "fixed" constant fixStateNotFixed (line 7) | fixStateNotFixed = "not-fixed" constant fixStateWontFix (line 8) | fixStateWontFix = "wont-fix" constant fixStateUnknown (line 9) | fixStateUnknown = "unknown" function getFixStateFromPackageBlob (line 16) | func getFixStateFromPackageBlob(blob *v6.PackageBlob) string { function filterByFixedStateForPackages (line 52) | func filterByFixedStateForPackages(packages []affectedPackageWithDecorat... function filterByFixedStateForCPEs (line 77) | func filterByFixedStateForCPEs(cpes []affectedCPEWithDecorations, fixedS... FILE: cmd/grype/cli/commands/internal/dbsearch/matches.go type Matches (line 14) | type Matches method Flatten (line 36) | func (m Matches) Flatten() []AffectedPackage { type Match (line 17) | type Match struct method Flatten (line 25) | func (m Match) Flatten() []AffectedPackage { function newMatchesRows (line 44) | func newMatchesRows(affectedPkgs []affectedPackageWithDecorations, affec... function FindMatches (line 120) | func FindMatches(reader interface { FILE: cmd/grype/cli/commands/internal/dbsearch/matches_test.go function TestGetFixStateFromBlob (line 11) | func TestGetFixStateFromBlob(t *testing.T) { function TestFilterByFixedState (line 125) | func TestFilterByFixedState(t *testing.T) { function TestFilterCPEsByFixedState (line 200) | func TestFilterCPEsByFixedState(t *testing.T) { function makeTestPackages (line 265) | func makeTestPackages(count int) []affectedPackageWithDecorations { function makePackageWithFixState (line 277) | func makePackageWithFixState(state v6.FixStatus) affectedPackageWithDeco... function makeTestCPEs (line 294) | func makeTestCPEs(count int) []affectedCPEWithDecorations { function makeCPEWithFixState (line 306) | func makeCPEWithFixState(state v6.FixStatus) affectedCPEWithDecorations { FILE: cmd/grype/cli/commands/internal/dbsearch/versions.go constant MatchesSchemaVersion (line 5) | MatchesSchemaVersion = "1.1.3" constant VulnerabilitiesSchemaVersion (line 18) | VulnerabilitiesSchemaVersion = "1.0.5" FILE: cmd/grype/cli/commands/internal/dbsearch/vulnerabilities.go type Vulnerabilities (line 16) | type Vulnerabilities type Vulnerability (line 19) | type Vulnerability struct type VulnerabilityInfo (line 29) | type VulnerabilityInfo struct type OperatingSystem (line 66) | type OperatingSystem struct type KnownExploited (line 74) | type KnownExploited struct type EPSS (line 87) | type EPSS struct type CWE (line 94) | type CWE struct type CVSSSeverity (line 101) | type CVSSSeverity struct type CvssMetrics (line 112) | type CvssMetrics struct type vulnerabilityAffectedPackageJoin (line 118) | type vulnerabilityAffectedPackageJoin struct type VulnerabilitiesOptions (line 125) | type VulnerabilitiesOptions struct function newVulnerabilityRows (line 130) | func newVulnerabilityRows(vaps ...vulnerabilityAffectedPackageJoin) (row... function newVulnerabilityInfo (line 141) | func newVulnerabilityInfo(vuln v6.VulnerabilityHandle, vc vulnerabilityD... function patchCVSSMetrics (line 161) | func patchCVSSMetrics(blob *v6.VulnerabilityBlob) { function newOperatingSystems (line 184) | func newOperatingSystems(oss []v6.OperatingSystem) (os []OperatingSystem) { function FindVulnerabilities (line 194) | func FindVulnerabilities(reader interface { //nolint:funlen function getSeverity (line 286) | func getSeverity(sevs []v6.Severity) string { FILE: cmd/grype/cli/commands/internal/dbsearch/vulnerabilities_test.go function TestGetSeverity (line 17) | func TestGetSeverity(t *testing.T) { function TestNewVulnerabilityRows (line 104) | func TestNewVulnerabilityRows(t *testing.T) { function TestVulnerabilities (line 224) | func TestVulnerabilities(t *testing.T) { function TestFindVulnerabilities_DecorationErrors (line 354) | func TestFindVulnerabilities_DecorationErrors(t *testing.T) { type mockVulnReader (line 414) | type mockVulnReader struct method GetVulnerabilities (line 418) | func (m *mockVulnReader) GetVulnerabilities(vuln *v6.VulnerabilitySpec... method GetAffectedPackages (line 423) | func (m *mockVulnReader) GetAffectedPackages(pkg *v6.PackageSpecifier,... method GetKnownExploitedVulnerabilities (line 428) | func (m *mockVulnReader) GetKnownExploitedVulnerabilities(cve string) ... method GetEpss (line 433) | func (m *mockVulnReader) GetEpss(cve string) ([]v6.EpssHandle, error) { method GetCWEs (line 438) | func (m *mockVulnReader) GetCWEs(cve string) ([]v6.CWEHandle, error) { function cmpOpts (line 443) | func cmpOpts() []cmp.Option { FILE: cmd/grype/cli/commands/internal/dbsearch/vulnerability_decorations.go type canonicalVulnerability (line 14) | type canonicalVulnerability interface type vulnerabilityDecorations (line 23) | type vulnerabilityDecorations struct method decorate (line 89) | func (vd *vulnerabilityDecorations) decorate(kevs []KnownExploited, ep... function decorateVulnerabilities (line 28) | func decorateVulnerabilities(reader v6.VulnerabilityDecoratorStoreReader... method getCVEs (line 49) | func (afj *vulnerabilityAffectedPackageJoin) getCVEs() []string { function getCVEs (line 56) | func getCVEs(v *v6.VulnerabilityHandle) []string { function fetchKnownExploited (line 98) | func fetchKnownExploited(reader v6.VulnerabilityDecoratorStoreReader, cv... function fetchEpss (line 125) | func fetchEpss(reader v6.VulnerabilityDecoratorStoreReader, cves []strin... FILE: cmd/grype/cli/commands/internal/jsonschema/main.go function main (line 21) | func main() { function compose (line 31) | func compose(document any, component, version string, comments map[strin... function write (line 35) | func write(schema []byte, component, version string) { function encode (line 88) | func encode(schema *jsonschema.Schema) []byte { function build (line 102) | func build(document any, component, version string, comments map[string]... function parseCommentsFromPackages (line 148) | func parseCommentsFromPackages(pkgPatterns []string) map[string]map[stri... function parseFileComments (line 173) | func parseFileComments(node *ast.File) map[string]map[string]string { function cleanComment (line 227) | func cleanComment(comment string) string { function getJSONTag (line 237) | func getJSONTag(field *ast.Field) string { function schemaID (line 249) | func schemaID(component, version string) jsonschema.ID { function repoRoot (line 253) | func repoRoot() string { FILE: cmd/grype/cli/commands/root.go function Root (line 49) | func Root(app clio.Application) *cobra.Command { function runGrype (line 119) | func runGrype(ctx context.Context, app clio.Application, opts *options.G... function warnWhenDistroHintNeeded (line 278) | func warnWhenDistroHintNeeded(pkgs []pkg.Package, context *pkg.Context) { function warnDistroAlerts (line 296) | func warnDistroAlerts(data *models.DistroAlertData) { function countPackagesByDistro (line 308) | func countPackagesByDistro(packages []pkg.Package) map[string]int { function dbInfo (line 320) | func dbInfo(status *vulnerability.ProviderStatus, vp vulnerability.Provi... function checkForAppUpdate (line 343) | func checkForAppUpdate(id clio.Identification, opts *options.Grype) { function getMatcherConfig (line 367) | func getMatcherConfig(opts *options.Grype) matcher.Config { function getMatchers (line 395) | func getMatchers(opts *options.Grype) []match.Matcher { function getProviderConfig (line 399) | func getProviderConfig(opts *options.Grype) pkg.ProviderConfig { function getFixChannels (line 429) | func getFixChannels(fixChannelOpts options.FixChannels) distro.FixChanne... function applyDistroHint (line 455) | func applyDistroHint(hint string) *distro.Distro { function validateDBLoad (line 464) | func validateDBLoad(loadErr error, status *vulnerability.ProviderStatus)... function validateRootArgs (line 484) | func validateRootArgs(cmd *cobra.Command, args []string) error { function applyVexRules (line 510) | func applyVexRules(opts *options.Grype) error { FILE: cmd/grype/cli/commands/root_test.go function Test_getProviderConfig (line 35) | func Test_getProviderConfig(t *testing.T) { function Test_getMatcherConfig (line 88) | func Test_getMatcherConfig(t *testing.T) { function Test_applyVexRules (line 208) | func Test_applyVexRules(t *testing.T) { FILE: cmd/grype/cli/commands/update.go function isProductionBuild (line 22) | func isProductionBuild(version string) bool { function isUpdateAvailable (line 29) | func isUpdateAvailable(id clio.Identification) (bool, string, error) { function fetchLatestApplicationVersion (line 51) | func fetchLatestApplicationVersion(id clio.Identification) (*hashiVersio... FILE: cmd/grype/cli/commands/update_test.go function TestIsUpdateAvailable (line 13) | func TestIsUpdateAvailable(t *testing.T) { function TestFetchLatestApplicationVersion (line 131) | func TestFetchLatestApplicationVersion(t *testing.T) { function Test_UserAgent (line 213) | func Test_UserAgent(t *testing.T) { FILE: cmd/grype/cli/commands/util.go function disableUI (line 21) | func disableUI(app clio.Application) func(*cobra.Command, []string) error { function stderrPrintLnf (line 34) | func stderrPrintLnf(message string, args ...interface{}) error { function parallel (line 45) | func parallel(funcs ...func() error) error { function parallelMapped (line 59) | func parallelMapped(funcs ...func() error) map[int]error { function appendErrors (line 79) | func appendErrors(errs error, err ...error) error { function newTable (line 91) | func newTable(output io.Writer, columns []string) *tablewriter.Table { FILE: cmd/grype/cli/commands/util_test.go constant lotsaParallel (line 13) | lotsaParallel = 100 function Test_lotsaLotsaParallel (line 15) | func Test_lotsaLotsaParallel(t *testing.T) { function Test_lotsaParallel (line 27) | func Test_lotsaParallel(t *testing.T) { function Test_parallel (line 35) | func Test_parallel(t *testing.T) { function Test_parallelMapped (line 95) | func Test_parallelMapped(t *testing.T) { FILE: cmd/grype/cli/options/alerts.go type Alerts (line 6) | type Alerts struct method DescribeFields (line 19) | func (a *Alerts) DescribeFields(descriptions clio.FieldDescriptionSet) { function defaultAlerts (line 13) | func defaultAlerts() Alerts { FILE: cmd/grype/cli/options/alerts_test.go function TestDefaultAlerts (line 9) | func TestDefaultAlerts(t *testing.T) { FILE: cmd/grype/cli/options/database.go type Database (line 12) | type Database struct method DescribeFields (line 52) | func (cfg *Database) DescribeFields(descriptions clio.FieldDescription... method PostLoad (line 70) | func (cfg *Database) PostLoad() error { function DefaultDatabase (line 32) | func DefaultDatabase(id clio.Identification) Database { FILE: cmd/grype/cli/options/database_command.go type DatabaseCommand (line 9) | type DatabaseCommand struct method ToCuratorConfig (line 26) | func (cfg DatabaseCommand) ToCuratorConfig() installation.Config { method ToClientConfig (line 37) | func (cfg DatabaseCommand) ToClientConfig() distribution.Config { function DefaultDatabaseCommand (line 15) | func DefaultDatabaseCommand(id clio.Identification) *DatabaseCommand { FILE: cmd/grype/cli/options/database_search_bounds.go type DBSearchBounds (line 9) | type DBSearchBounds struct method AddFlags (line 19) | func (o *DBSearchBounds) AddFlags(flags clio.FlagSet) { method PostLoad (line 23) | func (o *DBSearchBounds) PostLoad() error { function DefaultDBSearchBounds (line 13) | func DefaultDBSearchBounds() DBSearchBounds { FILE: cmd/grype/cli/options/database_search_format.go type DBSearchFormat (line 12) | type DBSearchFormat struct method AddFlags (line 24) | func (c *DBSearchFormat) AddFlags(flags clio.FlagSet) { method PostLoad (line 29) | func (c *DBSearchFormat) PostLoad() error { function DefaultDBSearchFormat (line 17) | func DefaultDBSearchFormat() DBSearchFormat { FILE: cmd/grype/cli/options/database_search_os.go type DBSearchOSs (line 13) | type DBSearchOSs struct method AddFlags (line 18) | func (o *DBSearchOSs) AddFlags(flags clio.FlagSet) { method PostLoad (line 23) | func (o *DBSearchOSs) PostLoad() error { function parseOSString (line 42) | func parseOSString(osValue string) (*v6.OSSpecifier, error) { FILE: cmd/grype/cli/options/database_search_os_test.go function TestDBSearchOSsPostLoad (line 12) | func TestDBSearchOSsPostLoad(t *testing.T) { FILE: cmd/grype/cli/options/database_search_packages.go type DBSearchPackages (line 15) | type DBSearchPackages struct method AddFlags (line 23) | func (o *DBSearchPackages) AddFlags(flags clio.FlagSet) { method PostLoad (line 29) | func (o *DBSearchPackages) PostLoad() error { FILE: cmd/grype/cli/options/database_search_packages_test.go function TestDBSearchPackagesPostLoad (line 13) | func TestDBSearchPackagesPostLoad(t *testing.T) { FILE: cmd/grype/cli/options/database_search_vulnerabilities.go type DBSearchVulnerabilities (line 13) | type DBSearchVulnerabilities struct method AddFlags (line 26) | func (c *DBSearchVulnerabilities) AddFlags(flags clio.FlagSet) { method PostLoad (line 36) | func (c *DBSearchVulnerabilities) PostLoad() error { FILE: cmd/grype/cli/options/database_search_vulnerabilities_test.go function TestDBSearchVulnerabilitiesPostLoad (line 13) | func TestDBSearchVulnerabilitiesPostLoad(t *testing.T) { function parseTime (line 145) | func parseTime(value string) *time.Time { FILE: cmd/grype/cli/options/datasources.go constant defaultMavenBaseURL (line 11) | defaultMavenBaseURL = "https://search.maven.org/solrsearch/select" type externalSources (line 14) | type externalSources struct method ToJavaMatcherConfig (line 39) | func (cfg externalSources) ToJavaMatcherConfig() java.ExternalSearchCo... method DescribeFields (line 52) | func (cfg *externalSources) DescribeFields(descriptions clio.FieldDesc... type maven (line 23) | type maven struct function defaultExternalSources (line 29) | func defaultExternalSources() externalSources { FILE: cmd/grype/cli/options/experimental.go type Experimental (line 9) | type Experimental struct FILE: cmd/grype/cli/options/fix_channels.go type FixChannelEnabled (line 11) | type FixChannelEnabled type FixChannels (line 13) | type FixChannels struct method DescribeFields (line 57) | func (o *FixChannels) DescribeFields(descriptions clio.FieldDescriptio... type FixChannel (line 20) | type FixChannel struct method PostLoad (line 28) | func (o *FixChannel) PostLoad() error { function DefaultFixChannels (line 41) | func DefaultFixChannels() FixChannels { FILE: cmd/grype/cli/options/grype.go type Grype (line 14) | type Grype struct method AddFlags (line 81) | func (o *Grype) AddFlags(flags clio.FlagSet) { method PostLoad (line 167) | func (o *Grype) PostLoad() error { method DescribeFields (line 179) | func (o *Grype) DescribeFields(descriptions clio.FieldDescriptionSet) { method FailOnSeverity (line 217) | func (o Grype) FailOnSeverity() *vulnerability.Severity { type developer (line 48) | type developer struct type databaseDeveloper (line 52) | type databaseDeveloper struct function DefaultGrype (line 62) | func DefaultGrype(id clio.Identification) *Grype { function flatten (line 223) | func flatten(commaSeparatedEntries []string) []string { FILE: cmd/grype/cli/options/grype_test.go function Test_flatten (line 9) | func Test_flatten(t *testing.T) { FILE: cmd/grype/cli/options/match.go type matchConfig (line 11) | type matchConfig struct method PostLoad (line 136) | func (cfg *matchConfig) PostLoad() error { method DescribeFields (line 164) | func (cfg *matchConfig) DescribeFields(descriptions clio.FieldDescript... type matcherConfig (line 31) | type matcherConfig struct type golangConfig (line 35) | type golangConfig struct type dpkgConfig (line 42) | type dpkgConfig struct method PostLoad (line 156) | func (cfg *dpkgConfig) PostLoad() error { type rpmConfig (line 67) | type rpmConfig struct method PostLoad (line 147) | func (cfg *rpmConfig) PostLoad() error { function defaultGolangConfig (line 91) | func defaultGolangConfig() golangConfig { function defaultRpmConfig (line 101) | func defaultRpmConfig() rpmConfig { function defaultDpkgConfig (line 109) | func defaultDpkgConfig() dpkgConfig { function defaultMatchConfig (line 117) | func defaultMatchConfig() matchConfig { FILE: cmd/grype/cli/options/match_test.go function TestRpmConfig_PostLoad (line 12) | func TestRpmConfig_PostLoad(t *testing.T) { function TestDpkgConfig_PostLoad (line 68) | func TestDpkgConfig_PostLoad(t *testing.T) { function TestMatchConfig_PostLoad (line 119) | func TestMatchConfig_PostLoad(t *testing.T) { function TestDefaultRpmConfig (line 177) | func TestDefaultRpmConfig(t *testing.T) { function TestDefaultDpkgConfig (line 187) | func TestDefaultDpkgConfig(t *testing.T) { function TestDefaultMatchConfig (line 197) | func TestDefaultMatchConfig(t *testing.T) { FILE: cmd/grype/cli/options/registry.go type RegistryCredentials (line 10) | type RegistryCredentials struct type registry (line 21) | type registry struct method PostLoad (line 33) | func (cfg *registry) PostLoad() error { method DescribeFields (line 59) | func (cfg *registry) DescribeFields(descriptions clio.FieldDescription... method ToOptions (line 80) | func (cfg *registry) ToOptions() *image.RegistryOptions { function hasNonEmptyCredentials (line 73) | func hasNonEmptyCredentials(username, password, token, tlsCert, tlsKey s... FILE: cmd/grype/cli/options/registry_test.go function TestHasNonEmptyCredentials (line 12) | func TestHasNonEmptyCredentials(t *testing.T) { function Test_registry_ToOptions (line 72) | func Test_registry_ToOptions(t *testing.T) { FILE: cmd/grype/cli/options/search.go type search (line 11) | type search struct method PostLoad (line 31) | func (cfg *search) PostLoad() error { method DescribeFields (line 39) | func (cfg *search) DescribeFields(descriptions clio.FieldDescriptionSe... method GetScope (line 47) | func (cfg search) GetScope() source.Scope { function defaultSearch (line 22) | func defaultSearch(scope source.Scope) search { FILE: cmd/grype/cli/options/secret.go type secret (line 10) | type secret method PostLoad (line 18) | func (r *secret) PostLoad() error { method String (line 23) | func (r secret) String() string { method MarshalText (line 31) | func (r secret) MarshalText() ([]byte, error) { FILE: cmd/grype/cli/options/sort_by.go type SortBy (line 19) | type SortBy struct method AddFlags (line 35) | func (o *SortBy) AddFlags(flags clio.FlagSet) { method PostLoad (line 42) | func (o *SortBy) PostLoad() error { function defaultSortBy (line 24) | func defaultSortBy() SortBy { FILE: cmd/grype/cli/ui/handle_database_diff_started.go type dbDiffProgressStager (line 16) | type dbDiffProgressStager struct method Stage (line 20) | func (p dbDiffProgressStager) Stage() string { method Current (line 27) | func (p dbDiffProgressStager) Current() int64 { method Error (line 31) | func (p dbDiffProgressStager) Error() error { method Size (line 35) | func (p dbDiffProgressStager) Size() int64 { method handleDatabaseDiffStarted (line 39) | func (m *Handler) handleDatabaseDiffStarted(e partybus.Event) ([]tea.Mod... FILE: cmd/grype/cli/ui/handle_database_diff_started_test.go function TestHandler_handleDatabaseDiffStarted (line 18) | func TestHandler_handleDatabaseDiffStarted(t *testing.T) { FILE: cmd/grype/cli/ui/handle_update_vulnerability_database.go type dbDownloadProgressStager (line 16) | type dbDownloadProgressStager struct method Stage (line 20) | func (s dbDownloadProgressStager) Stage() string { method handleUpdateVulnerabilityDatabase (line 38) | func (m *Handler) handleUpdateVulnerabilityDatabase(e partybus.Event) ([... function safeConvertInt64ToUint64 (line 58) | func safeConvertInt64ToUint64(i int64) uint64 { FILE: cmd/grype/cli/ui/handle_update_vulnerability_database_test.go function TestHandler_handleUpdateVulnerabilityDatabase (line 17) | func TestHandler_handleUpdateVulnerabilityDatabase(t *testing.T) { FILE: cmd/grype/cli/ui/handle_vulnerability_scanning_started.go constant branch (line 22) | branch = "├──" constant end (line 23) | end = "└──" type vulnerabilityProgressTree (line 28) | type vulnerabilityProgressTree struct method Init (line 112) | func (l vulnerabilityProgressTree) Init() tea.Cmd { method Update (line 129) | func (l vulnerabilityProgressTree) Update(msg tea.Msg) (tea.Model, tea... method View (line 155) | func (l vulnerabilityProgressTree) View() string { method queueNextTick (line 193) | func (l vulnerabilityProgressTree) queueNextTick() tea.Cmd { method handleTick (line 203) | func (l *vulnerabilityProgressTree) handleTick(msg vulnerabilityProgre... function newVulnerabilityProgressTree (line 47) | func newVulnerabilityProgressTree(monitor *monitor.Matching, textStyle l... type vulnerabilityProgressTreeTickMsg (line 60) | type vulnerabilityProgressTreeTickMsg struct type vulnerabilityScanningAdapter (line 66) | type vulnerabilityScanningAdapter struct method Current (line 70) | func (p vulnerabilityScanningAdapter) Current() int64 { method Error (line 74) | func (p vulnerabilityScanningAdapter) Error() error { method Size (line 78) | func (p vulnerabilityScanningAdapter) Size() int64 { method Stage (line 82) | func (p vulnerabilityScanningAdapter) Stage() string { method handleVulnerabilityScanningStarted (line 86) | func (m *Handler) handleVulnerabilityScanningStarted(e partybus.Event) (... FILE: cmd/grype/cli/ui/handle_vulnerability_scanning_started_test.go function TestHandler_handleVulnerabilityScanningStarted (line 20) | func TestHandler_handleVulnerabilityScanningStarted(t *testing.T) { function getVulnerabilityMonitor (line 86) | func getVulnerabilityMonitor(completed bool) monitor.Matching { FILE: cmd/grype/cli/ui/handler.go type HandlerConfig (line 20) | type HandlerConfig struct type Handler (line 25) | type Handler struct method OnMessage (line 58) | func (m *Handler) OnMessage(msg tea.Msg) { method Wait (line 64) | func (m *Handler) Wait() { function DefaultHandlerConfig (line 33) | func DefaultHandlerConfig() HandlerConfig { function New (line 39) | func New(cfg HandlerConfig) *Handler { FILE: cmd/grype/cli/ui/new_task_progress.go method newTaskProgress (line 5) | func (m Handler) newTaskProgress(title taskprogress.Title, opts ...taskp... FILE: cmd/grype/cli/ui/util_test.go function runModel (line 12) | func runModel(t testing.TB, m tea.Model, iterations int, message tea.Msg... function flatten (line 42) | func flatten(p tea.Msg) (msgs []tea.Msg) { function extractBatchMessages (line 54) | func extractBatchMessages(m tea.Msg) (ret []tea.Msg) { FILE: cmd/grype/internal/constants.go constant NotProvided (line 4) | NotProvided = "[not provided]" FILE: cmd/grype/internal/ui/no_ui.go type NoUI (line 14) | type NoUI struct method Setup (line 26) | func (n *NoUI) Setup(subscription partybus.Unsubscribable) error { method Handle (line 31) | func (n *NoUI) Handle(e partybus.Event) error { method Teardown (line 40) | func (n NoUI) Teardown(_ bool) error { function None (line 20) | func None(quiet bool) *NoUI { FILE: cmd/grype/internal/ui/post_ui_event_writer.go type postUIEventWriter (line 17) | type postUIEventWriter struct method write (line 55) | func (w postUIEventWriter) write(quiet bool, events ...partybus.Event)... type postUIHandle (line 21) | type postUIHandle struct type eventWriter (line 28) | type eventWriter function newPostUIEventWriter (line 30) | func newPostUIEventWriter(stdout, stderr io.Writer) *postUIEventWriter { function writeReports (line 75) | func writeReports(writer io.Writer, events ...partybus.Event) error { function writeNotifications (line 97) | func writeNotifications(writer io.Writer, events ...partybus.Event) error { function writeAppUpdate (line 116) | func writeAppUpdate(writer io.Writer, events ...partybus.Event) error { FILE: cmd/grype/internal/ui/post_ui_event_writer_test.go function Test_postUIEventWriter_write (line 15) | func Test_postUIEventWriter_write(t *testing.T) { FILE: cmd/grype/internal/ui/ui.go type UI (line 27) | type UI struct method Setup (line 47) | func (m *UI) Setup(subscription partybus.Unsubscribable) error { method Handle (line 68) | func (m *UI) Handle(e partybus.Event) error { method Teardown (line 75) | func (m *UI) Teardown(force bool) error { method Init (line 115) | func (m UI) Init() tea.Cmd { method RespondsTo (line 119) | func (m UI) RespondsTo() []partybus.EventType { method Update (line 127) | func (m *UI) Update(msg tea.Msg) (tea.Model, tea.Cmd) { method View (line 182) | func (m UI) View() string { function New (line 38) | func New(quiet bool, handlers ...bubbly.EventHandler) *UI { function runWithTimeout (line 186) | func runWithTimeout(timeout time.Duration, fn func() error) (err error) { FILE: cmd/grype/main.go constant applicationName (line 12) | applicationName = "grype" function main (line 22) | func main() { FILE: grype/cpe/cpe.go function NewSlice (line 10) | func NewSlice(cpeStrs ...string) ([]cpe.CPE, error) { function MatchWithoutVersion (line 24) | func MatchWithoutVersion(c cpe.CPE, candidates []cpe.CPE) []cpe.CPE { FILE: grype/cpe/cpe_test.go function TestMatchWithoutVersion (line 11) | func TestMatchWithoutVersion(t *testing.T) { FILE: grype/db/build.go constant DefaultBatchSize (line 25) | DefaultBatchSize = 2000 type BuildConfig (line 27) | type BuildConfig struct function Build (line 39) | func Build(cfg BuildConfig) error { type providerResults (line 86) | type providerResults struct function getProcessors (line 92) | func getProcessors(cfg BuildConfig) ([]data.Processor, error) { function getWriter (line 103) | func getWriter(cfg BuildConfig) (data.Writer, error) { function build (line 120) | func build(results []providerResults, writer data.Writer, processors ...... function hydrate (line 204) | func hydrate(cfg BuildConfig) error { function logDropped (line 222) | func logDropped(droppedElementsByProvider, droppedSchemaElements map[str... type expMovingAverage (line 242) | type expMovingAverage struct method Add (line 252) | func (e *expMovingAverage) Add(sample float64) { method Average (line 261) | func (e *expMovingAverage) Average() float64 { function newEMA (line 248) | func newEMA(alpha float64) *expMovingAverage { function recordsPerSecond (line 265) | func recordsPerSecond(idx int, lastUpdate time.Time) float64 { function percent (line 273) | func percent(idx, total int) float64 { function eta (line 280) | func eta(idx, total int, rate float64) time.Duration { FILE: grype/db/data/entry.go type Entry (line 4) | type Entry struct FILE: grype/db/data/processor.go type Processor (line 11) | type Processor interface FILE: grype/db/data/severity.go type Severity (line 5) | type Severity constant SeverityUnknown (line 8) | SeverityUnknown Severity = "Unknown" constant SeverityNegligible (line 9) | SeverityNegligible Severity = "Negligible" constant SeverityLow (line 10) | SeverityLow Severity = "Low" constant SeverityMedium (line 11) | SeverityMedium Severity = "Medium" constant SeverityHigh (line 12) | SeverityHigh Severity = "High" constant SeverityCritical (line 13) | SeverityCritical Severity = "Critical" function ParseSeverity (line 16) | func ParseSeverity(s string) Severity { FILE: grype/db/data/severity_test.go function TestParseSeverity (line 9) | func TestParseSeverity(t *testing.T) { FILE: grype/db/data/transformers.go type GitHubTransformer (line 14) | type GitHubTransformer type MSRCTransformer (line 15) | type MSRCTransformer type NVDTransformer (line 16) | type NVDTransformer type OSTransformer (line 17) | type OSTransformer type MatchExclusionTransformer (line 18) | type MatchExclusionTransformer type GitHubTransformerV2 (line 22) | type GitHubTransformerV2 type MSRCTransformerV2 (line 23) | type MSRCTransformerV2 type NVDTransformerV2 (line 24) | type NVDTransformerV2 type OSTransformerV2 (line 25) | type OSTransformerV2 type MatchExclusionTransformerV2 (line 26) | type MatchExclusionTransformerV2 type KnownExploitedVulnerabilityTransformerV2 (line 28) | type KnownExploitedVulnerabilityTransformerV2 type EPSSTransformerV2 (line 29) | type EPSSTransformerV2 type OSVTransformerV2 (line 30) | type OSVTransformerV2 type OpenVEXTransformerV2 (line 31) | type OpenVEXTransformerV2 type AnnotatedOpenVEXTransformerV2 (line 32) | type AnnotatedOpenVEXTransformerV2 type EOLTransformerV2 (line 33) | type EOLTransformerV2 FILE: grype/db/data/writer.go type Writer (line 6) | type Writer interface FILE: grype/db/default_schema_version.go constant DefaultSchemaVersion (line 5) | DefaultSchemaVersion = db.ModelVersion FILE: grype/db/internal/codename/codename.go function LookupOS (line 5) | func LookupOS(osName, majorVersion, minorVersion string) string { FILE: grype/db/internal/codename/codename_test.go function TestLookupOSCodename (line 9) | func TestLookupOSCodename(t *testing.T) { FILE: grype/db/internal/codename/generate/main.go constant outputPackage (line 15) | outputPackage = "grype/db/internal/codename" constant outputPath (line 16) | outputPath = "internal/codename/codenames_generated.go" type Version (line 19) | type Version struct function main (line 24) | func main() { function fetchAndParse (line 70) | func fetchAndParse(url string, handler func(string) string) map[string]m... function lowercaseHandler (line 101) | func lowercaseHandler(codename string) string { function ubuntuHandler (line 105) | func ubuntuHandler(codename string) string { function parseVersion (line 110) | func parseVersion(version string) (string, string) { FILE: grype/db/internal/gormadapter/logger.go type logAdapter (line 16) | type logAdapter struct method LogMode (line 23) | func (l *logAdapter) LogMode(level logger.LogLevel) logger.Interface { method Info (line 29) | func (l logAdapter) Info(_ context.Context, fmt string, v ...interface... method Warn (line 37) | func (l logAdapter) Warn(_ context.Context, fmt string, v ...interface... method Error (line 43) | func (l logAdapter) Error(_ context.Context, fmt string, v ...interfac... method Trace (line 50) | func (l logAdapter) Trace(_ context.Context, t time.Time, fn func() (s... FILE: grype/db/internal/gormadapter/open.go type config (line 38) | type config struct method apply (line 101) | func (c *config) apply(path string, opts []Option) { method connectionString (line 109) | func (c config) connectionString() string { method prepareDB (line 153) | func (c config) prepareDB(dbObj *gorm.DB) (*gorm.DB, error) { method applyStatements (line 207) | func (c config) applyStatements(db *gorm.DB, statements []string) error { method pragmaNameValue (line 237) | func (c config) pragmaNameValue(sqlStmt string) (string, string, error) { type Option (line 50) | type Option function WithDebug (line 52) | func WithDebug(debug bool) Option { function WithTruncate (line 58) | func WithTruncate(truncate bool, models []any, initialData []any) Option { function WithStatements (line 70) | func WithStatements(statements ...string) Option { function WithModels (line 76) | func WithModels(models []any) Option { function WithWritable (line 82) | func WithWritable(write bool, models []any) Option { function WithLargeMemoryFootprint (line 89) | func WithLargeMemoryFootprint(largeFootprint bool) Option { function newConfig (line 95) | func newConfig(path string, opts []Option) config { function Open (line 129) | func Open(path string, options ...Option) (*gorm.DB, error) { function deleteDB (line 269) | func deleteDB(path string) error { FILE: grype/db/internal/gormadapter/open_test.go function TestConfigApply (line 11) | func TestConfigApply(t *testing.T) { function TestConfigConnectionString (line 52) | func TestConfigConnectionString(t *testing.T) { function TestPrepareWritableDB (line 93) | func TestPrepareWritableDB(t *testing.T) { function TestPragmaNameValue (line 131) | func TestPragmaNameValue(t *testing.T) { FILE: grype/db/internal/provider/unmarshal/annotated_openvex_vulnerability.go type AnnotatedOpenVEXVulnerability (line 9) | type AnnotatedOpenVEXVulnerability struct type AnnotatedOpenVEXFix (line 14) | type AnnotatedOpenVEXFix struct type AnnotatedOpenVEXFixAvailability (line 19) | type AnnotatedOpenVEXFixAvailability struct function AnnotatedOpenVEXVulnerabilityEntries (line 24) | func AnnotatedOpenVEXVulnerabilityEntries(reader io.Reader) ([]Annotated... FILE: grype/db/internal/provider/unmarshal/eol.go type EndOfLifeDateRelease (line 10) | type EndOfLifeDateRelease struct method IsEmpty (line 82) | func (e EndOfLifeDateRelease) IsEmpty() bool { method ProductName (line 87) | func (e EndOfLifeDateRelease) ProductName() string { type EndOfLifeDateLatest (line 32) | type EndOfLifeDateLatest struct type EndOfLifeDateIdentifier (line 39) | type EndOfLifeDateIdentifier struct type EndOfLifeDateLabels (line 45) | type EndOfLifeDateLabels struct type EndOfLifeDateLinks (line 53) | type EndOfLifeDateLinks struct type EndOfLifeDateResult (line 60) | type EndOfLifeDateResult struct type EndOfLifeDateProduct (line 74) | type EndOfLifeDateProduct struct function EndOfLifeDateReleaseEntries (line 92) | func EndOfLifeDateReleaseEntries(reader io.Reader) ([]EndOfLifeDateRelea... FILE: grype/db/internal/provider/unmarshal/epss.go type EPSS (line 5) | type EPSS struct method IsEmpty (line 12) | func (o EPSS) IsEmpty() bool { function EPSSEntries (line 16) | func EPSSEntries(reader io.Reader) ([]EPSS, error) { FILE: grype/db/internal/provider/unmarshal/errors.go function handleJSONUnmarshalError (line 8) | func handleJSONUnmarshalError(err error) error { FILE: grype/db/internal/provider/unmarshal/github_advisory.go type GitHubAdvisory (line 7) | type GitHubAdvisory struct method IsEmpty (line 44) | func (g GitHubAdvisory) IsEmpty() bool { function GitHubAdvisoryEntries (line 48) | func GitHubAdvisoryEntries(reader io.Reader) ([]GitHubAdvisory, error) { type GithubFixedIn (line 52) | type GithubFixedIn struct FILE: grype/db/internal/provider/unmarshal/items_envelope.go type ItemsEnvelope (line 9) | type ItemsEnvelope struct function Envelope (line 15) | func Envelope(reader io.Reader) (*ItemsEnvelope, error) { FILE: grype/db/internal/provider/unmarshal/known_exploited_vulnerability.go type KnownExploitedVulnerability (line 5) | type KnownExploitedVulnerability struct method IsEmpty (line 19) | func (g KnownExploitedVulnerability) IsEmpty() bool { function KnownExploitedVulnerabilityEntries (line 23) | func KnownExploitedVulnerabilityEntries(reader io.Reader) ([]KnownExploi... FILE: grype/db/internal/provider/unmarshal/match_exclusion.go type MatchExclusion (line 7) | type MatchExclusion struct method IsEmpty (line 25) | func (m MatchExclusion) IsEmpty() bool { function MatchExclusions (line 29) | func MatchExclusions(reader io.Reader) ([]MatchExclusion, error) { FILE: grype/db/internal/provider/unmarshal/msrc_vulnerability.go type MSRCVulnerability (line 8) | type MSRCVulnerability struct method IsEmpty (line 36) | func (o MSRCVulnerability) IsEmpty() bool { function MSRCVulnerabilityEntries (line 40) | func MSRCVulnerabilityEntries(reader io.Reader) ([]MSRCVulnerability, er... FILE: grype/db/internal/provider/unmarshal/nvd/cve.go type Operator (line 19) | type Operator constant And (line 22) | And Operator = "AND" constant Or (line 23) | Or Operator = "OR" constant englishLanguage (line 26) | englishLanguage = "en" type Vulnerability (line 39) | type Vulnerability struct method IsEmpty (line 334) | func (o Vulnerability) IsEmpty() bool { type CveItem (line 43) | type CveItem struct method Description (line 172) | func (o CveItem) Description() string { method CVSS (line 263) | func (o CveItem) CVSS() []CvssSummary { type Configuration (line 64) | type Configuration struct type Node (line 70) | type Node struct type FixInfo (line 76) | type FixInfo struct type CpeMatch (line 82) | type CpeMatch struct type LangString (line 93) | type LangString struct type Metrics (line 99) | type Metrics struct type CvssV2 (line 106) | type CvssV2 struct type CvssV30 (line 120) | type CvssV30 struct type CvssV31 (line 128) | type CvssV31 struct type CvssV40 (line 136) | type CvssV40 struct type CvssType (line 148) | type CvssType constant Primary (line 151) | Primary CvssType = "Primary" constant Secondary (line 152) | Secondary CvssType = "Secondary" type Reference (line 155) | type Reference struct type Weakness (line 166) | type Weakness struct type CvssSummary (line 181) | type CvssSummary struct method Severity (line 192) | func (o CvssSummary) Severity() string { method version (line 199) | func (o CvssSummary) version() *semver.Version { type CvssSummaries (line 207) | type CvssSummaries method Len (line 209) | func (o CvssSummaries) Len() int { method Less (line 213) | func (o CvssSummaries) Less(i, j int) bool { method Swap (line 240) | func (o CvssSummaries) Swap(i, j int) { method Severity (line 244) | func (o CvssSummaries) Severity() string { method Sorted (line 254) | func (o CvssSummaries) Sorted() CvssSummaries { FILE: grype/db/internal/provider/unmarshal/nvd/cve_test.go function TestCvssSummariesSorted (line 10) | func TestCvssSummariesSorted(t *testing.T) { function TestCvssSummaryVersion (line 176) | func TestCvssSummaryVersion(t *testing.T) { FILE: grype/db/internal/provider/unmarshal/nvd/cvss20/cvss20.go type Cvss20 (line 5) | type Cvss20 struct FILE: grype/db/internal/provider/unmarshal/nvd/cvss30/cvss30.go type Cvss30 (line 5) | type Cvss30 struct type SeverityType (line 71) | type SeverityType constant Critical (line 74) | Critical SeverityType = "CRITICAL" constant SeverityTypeHIGH (line 75) | SeverityTypeHIGH SeverityType = "HIGH" constant SeverityTypeLOW (line 76) | SeverityTypeLOW SeverityType = "LOW" constant SeverityTypeMEDIUM (line 77) | SeverityTypeMEDIUM SeverityType = "MEDIUM" constant SeverityTypeNONE (line 78) | SeverityTypeNONE SeverityType = "NONE" FILE: grype/db/internal/provider/unmarshal/nvd/cvss31/cvss31.go type Cvss31 (line 5) | type Cvss31 struct type SeverityType (line 71) | type SeverityType constant Critical (line 74) | Critical SeverityType = "CRITICAL" constant SeverityTypeHIGH (line 75) | SeverityTypeHIGH SeverityType = "HIGH" constant SeverityTypeLOW (line 76) | SeverityTypeLOW SeverityType = "LOW" constant SeverityTypeMEDIUM (line 77) | SeverityTypeMEDIUM SeverityType = "MEDIUM" constant SeverityTypeNONE (line 78) | SeverityTypeNONE SeverityType = "NONE" FILE: grype/db/internal/provider/unmarshal/nvd/cvss40/cvss40.go type Cvss40 (line 5) | type Cvss40 struct type SeverityType (line 44) | type SeverityType constant SeverityTypeCritical (line 47) | SeverityTypeCritical SeverityType = "CRITICAL" constant SeverityTypeHIGH (line 48) | SeverityTypeHIGH SeverityType = "HIGH" constant SeverityTypeLOW (line 49) | SeverityTypeLOW SeverityType = "LOW" constant SeverityTypeMEDIUM (line 50) | SeverityTypeMEDIUM SeverityType = "MEDIUM" constant SeverityTypeNONE (line 51) | SeverityTypeNONE SeverityType = "NONE" FILE: grype/db/internal/provider/unmarshal/nvd_vulnerability.go function NvdVulnerabilityEntries (line 13) | func NvdVulnerabilityEntries(reader io.Reader) ([]nvd.Vulnerability, err... FILE: grype/db/internal/provider/unmarshal/openvex_vulnerability.go function OpenVEXVulnerabilityEntries (line 11) | func OpenVEXVulnerabilityEntries(reader io.Reader) ([]OpenVEXVulnerabili... FILE: grype/db/internal/provider/unmarshal/os_vulnerability.go type OSFixedIn (line 13) | type OSFixedIn struct type OSFixedIns (line 33) | type OSFixedIns method FilterToHighestModularity (line 84) | func (fixes OSFixedIns) FilterToHighestModularity() OSFixedIns { type OSVulnerability (line 35) | type OSVulnerability struct method IsEmpty (line 72) | func (o OSVulnerability) IsEmpty() bool { function OSVulnerabilityEntries (line 76) | func OSVulnerabilityEntries(reader io.Reader) ([]OSVulnerability, error) { function moduleNameAndVersion (line 136) | func moduleNameAndVersion(module *string) (bool, string, *version.Versio... function moduleVersionConstraint (line 159) | func moduleVersionConstraint(moduleVersion string) (*version.Version, *v... FILE: grype/db/internal/provider/unmarshal/os_vulnerability_test.go function Test_OSFixedIns_FilterToHighestModularity (line 9) | func Test_OSFixedIns_FilterToHighestModularity(t *testing.T) { FILE: grype/db/internal/provider/unmarshal/osv_vulnerability.go function OSVVulnerabilityEntries (line 11) | func OSVVulnerabilityEntries(reader io.Reader) ([]OSVVulnerability, erro... FILE: grype/db/internal/provider/unmarshal/single_or_multi.go function unmarshalSingleOrMulti (line 10) | func unmarshalSingleOrMulti[T interface{}](reader io.Reader) ([]T, error) { FILE: grype/db/internal/sqlite/nullable_types.go type NullString (line 8) | type NullString struct method ToByteSlice (line 49) | func (v NullString) ToByteSlice() []byte { method MarshalJSON (line 57) | func (v NullString) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 65) | func (v *NullString) UnmarshalJSON(data []byte) error { function NewNullString (line 12) | func NewNullString(s string, valid bool) NullString { function ToNullString (line 21) | func ToNullString(v any) NullString { FILE: grype/db/internal/sqlite/nullable_types_test.go function TestToNullString (line 9) | func TestToNullString(t *testing.T) { FILE: grype/db/internal/tarutil/file_entry.go type FileEntry (line 11) | type FileEntry struct method writeEntry (line 29) | func (t FileEntry) writeEntry(tw lowLevelWriter) error { function NewEntryFromFilePath (line 15) | func NewEntryFromFilePath(path string) Entry { function NewEntryFromFilePaths (line 21) | func NewEntryFromFilePaths(paths ...string) []Entry { FILE: grype/db/internal/tarutil/file_entry_test.go type mockTarWriter (line 17) | type mockTarWriter struct method Flush (line 26) | func (m *mockTarWriter) Flush() error { method Close (line 31) | func (m *mockTarWriter) Close() error { method WriteHeader (line 36) | func (m *mockTarWriter) WriteHeader(header *tar.Header) error { method Write (line 42) | func (m *mockTarWriter) Write(b []byte) (int, error) { function TestFileEntry_writeEntry (line 46) | func TestFileEntry_writeEntry(t *testing.T) { FILE: grype/db/internal/tarutil/populate.go function PopulateWithPaths (line 4) | func PopulateWithPaths(tarPath string, filePaths ...string) error { function PopulateWithPathsAndCompressors (line 9) | func PopulateWithPathsAndCompressors(tarPath string, compressorCommands ... FILE: grype/db/internal/tarutil/populate_test.go function TestPopulateWithPaths (line 17) | func TestPopulateWithPaths(t *testing.T) { FILE: grype/db/internal/tarutil/reader_entry.go type ReaderEntry (line 15) | type ReaderEntry struct method writeEntry (line 29) | func (t ReaderEntry) writeEntry(tw lowLevelWriter) error { function NewEntryFromBytes (line 21) | func NewEntryFromBytes(by []byte, filename string, fileInfo os.FileInfo)... type autoDeleteFile (line 37) | type autoDeleteFile struct method Close (line 41) | func (f *autoDeleteFile) Close() error { function readerWithSize (line 54) | func readerWithSize(reader io.Reader) (int64, io.ReadCloser, error) { function writeEntry (line 95) | func writeEntry(tw lowLevelWriter, filename string, fileInfo os.FileInfo... FILE: grype/db/internal/tarutil/reader_entry_test.go type mockFileInfo (line 23) | type mockFileInfo struct method Name (line 32) | func (m mockFileInfo) Name() string { method Size (line 36) | func (m mockFileInfo) Size() int64 { method Mode (line 40) | func (m mockFileInfo) Mode() fs.FileMode { method ModTime (line 44) | func (m mockFileInfo) ModTime() time.Time { method IsDir (line 48) | func (m mockFileInfo) IsDir() bool { method Sys (line 52) | func (m mockFileInfo) Sys() any { function TestReaderEntry_writeEntry (line 56) | func TestReaderEntry_writeEntry(t *testing.T) { function Test_readerWithSize (line 148) | func Test_readerWithSize(t *testing.T) { function Test_autoDeleteFile (line 222) | func Test_autoDeleteFile(t *testing.T) { FILE: grype/db/internal/tarutil/tar.go type Writer (line 9) | type Writer interface type lowLevelWriter (line 15) | type lowLevelWriter interface type Entry (line 22) | type Entry interface FILE: grype/db/internal/tarutil/writer.go type writer (line 23) | type writer struct method WriteEntry (line 150) | func (w *writer) WriteEntry(entry Entry) error { method Close (line 154) | func (w *writer) Close() error { function NewWriter (line 29) | func NewWriter(archivePath string) (Writer, error) { function NewWriterWithCompressors (line 34) | func NewWriterWithCompressors(archivePath string, compressorCommands map... function newCompressorWithCommands (line 48) | func newCompressorWithCommands(archivePath string, compressorCommands ma... type shellCompressor (line 81) | type shellCompressor struct method Write (line 136) | func (sc *shellCompressor) Write(p []byte) (int, error) { method Close (line 140) | func (sc *shellCompressor) Close() error { function newShellCompressor (line 86) | func newShellCompressor(c string, archive io.Writer) (*shellCompressor, ... FILE: grype/db/internal/tarutil/writer_test.go function TestNewWriter (line 17) | func TestNewWriter(t *testing.T) { FILE: grype/db/internal/testutil/utils.go function CloseFile (line 8) | func CloseFile(f *os.File) { FILE: grype/db/internal/versionutil/clean_fixed_in_version.go function CleanFixedInVersion (line 5) | func CleanFixedInVersion(version string) string { FILE: grype/db/internal/versionutil/constraint.go function EnforceSemVerConstraint (line 18) | func EnforceSemVerConstraint(constraint string) string { function AndConstraints (line 26) | func AndConstraints(c ...string) string { function OrConstraints (line 30) | func OrConstraints(c ...string) string { function CleanConstraint (line 34) | func CleanConstraint(constraint string) string { FILE: grype/db/internal/versionutil/constraint_test.go function TestEnforceSemVerConstraint (line 5) | func TestEnforceSemVerConstraint(t *testing.T) { FILE: grype/db/package.go function Package (line 11) | func Package(dbDir, publishBaseURL, overrideArchiveExtension string, com... FILE: grype/db/package_legacy.go function packageLegacyDB (line 25) | func packageLegacyDB(dbDir, publishBaseURL, overrideArchiveExtension str... function populateLegacyTar (line 113) | func populateLegacyTar(tarPath string, compressorCommands map[string]str... function secondsSinceEpoch (line 152) | func secondsSinceEpoch() int64 { FILE: grype/db/processors/annotated_openvex_processor.go type annotatedOpenVEXProcessor (line 12) | type annotatedOpenVEXProcessor struct method Process (line 22) | func (p annotatedOpenVEXProcessor) Process(reader io.Reader, state pro... method IsSupported (line 42) | func (p annotatedOpenVEXProcessor) IsSupported(schemaURL string) bool { function NewV2AnnotatedOpenVEXProcessor (line 16) | func NewV2AnnotatedOpenVEXProcessor(transformer data.AnnotatedOpenVEXTra... FILE: grype/db/processors/eol_processor.go type eolProcessor (line 13) | type eolProcessor struct method Process (line 23) | func (p eolProcessor) Process(reader io.Reader, state provider.State) ... method IsSupported (line 48) | func (p eolProcessor) IsSupported(schemaURL string) bool { function NewV2EOLProcessor (line 17) | func NewV2EOLProcessor(transformer data.EOLTransformerV2) data.Processor { FILE: grype/db/processors/eol_processor_test.go function mockEOLProcessorTransform (line 15) | func mockEOLProcessorTransform(entry unmarshal.EndOfLifeDateRelease, sta... function TestEOLProcessor_Process (line 24) | func TestEOLProcessor_Process(t *testing.T) { function TestEOLProcessor_Process_EmptyEntry (line 51) | func TestEOLProcessor_Process_EmptyEntry(t *testing.T) { function TestEOLProcessor_IsSupported (line 70) | func TestEOLProcessor_IsSupported(t *testing.T) { FILE: grype/db/processors/epss_processor.go type epssProcessor (line 13) | type epssProcessor struct method Process (line 23) | func (p epssProcessor) Process(reader io.Reader, state provider.State)... method IsSupported (line 48) | func (p epssProcessor) IsSupported(schemaURL string) bool { function NewV2EPSSProcessor (line 17) | func NewV2EPSSProcessor(transformer data.EPSSTransformerV2) data.Process... FILE: grype/db/processors/epss_processor_test.go function mockEPSSProcessorTransform (line 15) | func mockEPSSProcessorTransform(entry unmarshal.EPSS, state provider.Sta... function TestEPSSProcessor_Process (line 24) | func TestEPSSProcessor_Process(t *testing.T) { function TestEPSSProcessor_IsSupported (line 38) | func TestEPSSProcessor_IsSupported(t *testing.T) { FILE: grype/db/processors/github_processor.go type githubProcessor (line 13) | type githubProcessor struct method Process (line 29) | func (p githubProcessor) Process(reader io.Reader, state provider.Stat... method IsSupported (line 66) | func (p githubProcessor) IsSupported(schemaURL string) bool { function NewGitHubProcessor (line 17) | func NewGitHubProcessor(transformer data.GitHubTransformer) data.Process... function NewV2GitHubProcessor (line 23) | func NewV2GitHubProcessor(transformer data.GitHubTransformerV2) data.Pro... FILE: grype/db/processors/github_processor_test.go function mockGithubProcessorTransform (line 16) | func mockGithubProcessorTransform(vulnerability unmarshal.GitHubAdvisory... function TestGitHubProcessor_Process (line 25) | func TestGitHubProcessor_Process(t *testing.T) { function TestGithubProcessor_IsSupported (line 39) | func TestGithubProcessor_IsSupported(t *testing.T) { FILE: grype/db/processors/kev_processor.go type kevProcessor (line 13) | type kevProcessor struct method Process (line 23) | func (p kevProcessor) Process(reader io.Reader, state provider.State) ... method IsSupported (line 48) | func (p kevProcessor) IsSupported(schemaURL string) bool { function NewV2KEVProcessor (line 17) | func NewV2KEVProcessor(transformer data.KnownExploitedVulnerabilityTrans... FILE: grype/db/processors/kev_processor_test.go function mockKEVProcessorTransform (line 15) | func mockKEVProcessorTransform(vulnerability unmarshal.KnownExploitedVul... function TestKEVProcessor_Process (line 24) | func TestKEVProcessor_Process(t *testing.T) { function TestKEVProcessor_IsSupported (line 38) | func TestKEVProcessor_IsSupported(t *testing.T) { FILE: grype/db/processors/match_exclusion_processor.go type matchExclusionProcessor (line 13) | type matchExclusionProcessor struct method Process (line 23) | func (p matchExclusionProcessor) Process(reader io.Reader, _ provider.... method IsSupported (line 48) | func (p matchExclusionProcessor) IsSupported(schemaURL string) bool { function NewMatchExclusionProcessor (line 17) | func NewMatchExclusionProcessor(transformer data.MatchExclusionTransform... FILE: grype/db/processors/match_exclusion_processor_test.go function mockMatchExclusionProcessorTransform (line 16) | func mockMatchExclusionProcessorTransform(vulnerability unmarshal.MatchE... function TestMatchExclusionProcessor_Process (line 25) | func TestMatchExclusionProcessor_Process(t *testing.T) { function TestMatchExclusionProcessor_IsSupported (line 39) | func TestMatchExclusionProcessor_IsSupported(t *testing.T) { FILE: grype/db/processors/msrc_processor.go type msrcProcessor (line 14) | type msrcProcessor struct method Process (line 31) | func (p msrcProcessor) Process(reader io.Reader, state provider.State)... method IsSupported (line 68) | func (p msrcProcessor) IsSupported(schemaURL string) bool { function NewMSRCProcessor (line 19) | func NewMSRCProcessor(transformer data.MSRCTransformer) data.Processor { function NewV2MSRCProcessor (line 25) | func NewV2MSRCProcessor(transformer data.MSRCTransformerV2) data.Process... FILE: grype/db/processors/msrc_processor_test.go function mockMSRCProcessorTransform (line 16) | func mockMSRCProcessorTransform(vulnerability unmarshal.MSRCVulnerabilit... function TestMSRCProcessor_Process (line 25) | func TestMSRCProcessor_Process(t *testing.T) { function TestMsrcProcessor_IsSupported (line 39) | func TestMsrcProcessor_IsSupported(t *testing.T) { FILE: grype/db/processors/nvd_processor.go type nvdProcessor (line 12) | type nvdProcessor struct method Process (line 28) | func (p nvdProcessor) Process(reader io.Reader, state provider.State) ... method IsSupported (line 65) | func (p nvdProcessor) IsSupported(schemaURL string) bool { function NewNVDProcessor (line 16) | func NewNVDProcessor(transformer data.NVDTransformer) data.Processor { function NewV2NVDProcessor (line 22) | func NewV2NVDProcessor(transformer data.NVDTransformerV2) data.Processor { FILE: grype/db/processors/nvd_processor_test.go function mockNVDProcessorTransform (line 16) | func mockNVDProcessorTransform(vulnerability unmarshal.NVDVulnerability)... function TestNVDProcessor_Process (line 25) | func TestNVDProcessor_Process(t *testing.T) { function TestNvdProcessor_IsSupported (line 39) | func TestNvdProcessor_IsSupported(t *testing.T) { FILE: grype/db/processors/openvex_processor.go type openVEXProcessor (line 12) | type openVEXProcessor struct method Process (line 22) | func (p openVEXProcessor) Process(reader io.Reader, state provider.Sta... method IsSupported (line 42) | func (p openVEXProcessor) IsSupported(schemaURL string) bool { function NewV2OpenVEXProcessor (line 16) | func NewV2OpenVEXProcessor(transformer data.OpenVEXTransformerV2) data.P... FILE: grype/db/processors/openvex_processor_test.go function mockOpenVEXProcessorTransform (line 16) | func mockOpenVEXProcessorTransform(vulnerability unmarshal.OpenVEXVulner... function TestV2OpenVEXProcessor_Process (line 25) | func TestV2OpenVEXProcessor_Process(t *testing.T) { function TestOpenVEXProcessor_IsSupported (line 39) | func TestOpenVEXProcessor_IsSupported(t *testing.T) { FILE: grype/db/processors/os_processor.go type osProcessor (line 13) | type osProcessor struct method Process (line 29) | func (p osProcessor) Process(reader io.Reader, state provider.State) (... method IsSupported (line 66) | func (p osProcessor) IsSupported(schemaURL string) bool { function NewOSProcessor (line 17) | func NewOSProcessor(transformer data.OSTransformer) data.Processor { function NewV2OSProcessor (line 23) | func NewV2OSProcessor(transformer data.OSTransformerV2) data.Processor { FILE: grype/db/processors/os_processor_test.go function mockOSProcessorTransform (line 16) | func mockOSProcessorTransform(vulnerability unmarshal.OSVulnerability) (... function TestOSProcessor_Process (line 25) | func TestOSProcessor_Process(t *testing.T) { function TestOsProcessor_IsSupported (line 39) | func TestOsProcessor_IsSupported(t *testing.T) { FILE: grype/db/processors/osv_processor.go type osvProcessor (line 12) | type osvProcessor struct method Process (line 22) | func (p osvProcessor) Process(reader io.Reader, state provider.State) ... method IsSupported (line 42) | func (p osvProcessor) IsSupported(schemaURL string) bool { function NewV2OSVProcessor (line 16) | func NewV2OSVProcessor(transformer data.OSVTransformerV2) data.Processor { FILE: grype/db/processors/osv_processor_test.go function mockOSVProcessorTransform (line 16) | func mockOSVProcessorTransform(vulnerability unmarshal.OSVVulnerability,... function TestV2OSVProcessor_Process (line 25) | func TestV2OSVProcessor_Process(t *testing.T) { function TestOSVProcessor_IsSupported (line 39) | func TestOSVProcessor_IsSupported(t *testing.T) { FILE: grype/db/processors/version.go type version (line 12) | type version struct function parseVersion (line 18) | func parseVersion(schemaURL string) (*version, error) { function hasSchemaSegment (line 46) | func hasSchemaSegment(schemaURL string, segment string) bool { FILE: grype/db/processors/version_test.go function TestParseVersion (line 9) | func TestParseVersion(t *testing.T) { FILE: grype/db/provider/entry/file.go type fileOpener (line 8) | type fileOpener struct method Open (line 23) | func (e fileOpener) Open() (io.ReadCloser, error) { method String (line 27) | func (e fileOpener) String() string { function fileOpeners (line 12) | func fileOpeners(resultPaths []string) <-chan Opener { FILE: grype/db/provider/entry/opener.go type Opener (line 8) | type Opener interface function Openers (line 13) | func Openers(store string, resultPaths []string) (<-chan Opener, int64, ... function Count (line 23) | func Count(store string, resultPaths []string) (int64, error) { FILE: grype/db/provider/entry/sqlite.go type results (line 25) | type results struct type bytesOpener (line 30) | type bytesOpener struct method Open (line 115) | func (e bytesOpener) Open() (io.ReadCloser, error) { method String (line 119) | func (e bytesOpener) String() string { type errorOpener (line 35) | type errorOpener struct method Open (line 123) | func (e errorOpener) Open() (io.ReadCloser, error) { method String (line 127) | func (e errorOpener) String() string { function sqliteEntryCount (line 39) | func sqliteEntryCount(resultPaths []string) (int64, error) { function sqliteOpeners (line 64) | func sqliteOpeners(resultPaths []string) (<-chan Opener, int64, error) { function openDB (line 132) | func openDB(path string) (*gorm.DB, error) { function connectionString (line 152) | func connectionString(path string) (string, error) { type logAdapter (line 159) | type logAdapter struct method LogMode (line 165) | func (l logAdapter) LogMode(logger.LogLevel) logger.Interface { method Info (line 169) | func (l logAdapter) Info(_ context.Context, _ string, _ ...interface{}) { method Warn (line 173) | func (l logAdapter) Warn(_ context.Context, fmt string, v ...interface... method Error (line 177) | func (l logAdapter) Error(_ context.Context, fmt string, v ...interfac... method Trace (line 181) | func (l logAdapter) Trace(_ context.Context, _ time.Time, _ func() (_ ... function newLogger (line 161) | func newLogger() logger.Interface { FILE: grype/db/provider/file.go type File (line 13) | type File struct type Files (line 19) | type Files method Paths (line 46) | func (i Files) Paths() []string { function NewFile (line 21) | func NewFile(path string) (*File, error) { function NewFiles (line 34) | func NewFiles(paths ...string) (Files, error) { function NewFilesFromDir (line 54) | func NewFilesFromDir(dir string) (Files, error) { FILE: grype/db/provider/model.go function Model (line 9) | func Model(state State) *db.Provider { FILE: grype/db/provider/model_test.go function TestProviderModel (line 12) | func TestProviderModel(t *testing.T) { FILE: grype/db/provider/provider.go type Kind (line 7) | type Kind type Reader (line 9) | type Reader interface type Writer (line 14) | type Writer interface type Identifier (line 18) | type Identifier struct type Providers (line 23) | type Providers method Filter (line 25) | func (ps Providers) Filter(names ...string) Providers { type Collection (line 37) | type Collection struct FILE: grype/db/provider/state.go type State (line 20) | type State struct method ResultPath (line 98) | func (sd State) ResultPath(filename string) string { method ResultPaths (line 102) | func (sd State) ResultPaths() []string { method Verify (line 110) | func (sd State) Verify(workspaceRoots ...string) error { type Schema (line 36) | type Schema struct type States (line 41) | type States method Names (line 134) | func (s States) Names() []string { method EarliestTimestamp (line 142) | func (s States) EarliestTimestamp() (time.Time, error) { function ReadState (line 43) | func ReadState(location string) (*State, error) { FILE: grype/db/provider/state_test.go function Test_earliestTimestamp (line 11) | func Test_earliestTimestamp(t *testing.T) { function requireErrorContains (line 125) | func requireErrorContains(text string) require.ErrorAssertionFunc { FILE: grype/db/provider/workspace.go type Workspace (line 7) | type Workspace struct method Path (line 26) | func (w Workspace) Path() string { method StatePath (line 30) | func (w Workspace) StatePath() string { method InputPath (line 34) | func (w Workspace) InputPath() string { method ResultsPath (line 38) | func (w Workspace) ResultsPath() string { method ReadState (line 42) | func (w Workspace) ReadState() (*State, error) { function NewWorkspace (line 12) | func NewWorkspace(root, name string) Workspace { function NewWorkspaceFromExisting (line 19) | func NewWorkspaceFromExisting(workspacePath string) Workspace { FILE: grype/db/v5/advisory.go type Advisory (line 4) | type Advisory struct FILE: grype/db/v5/build/processors.go type Config (line 15) | type Config struct type Option (line 19) | type Option function WithCPEParts (line 21) | func WithCPEParts(included []string) Option { function WithInferNVDFixVersions (line 27) | func WithInferNVDFixVersions(infer bool) Option { function NewConfig (line 33) | func NewConfig(options ...Option) Config { function Processors (line 42) | func Processors(cfg Config) []data.Processor { FILE: grype/db/v5/build/transformers/entry.go function NewEntries (line 8) | func NewEntries(vs []db.Vulnerability, metadata db.VulnerabilityMetadata... FILE: grype/db/v5/build/transformers/github/transform.go function buildGrypeNamespace (line 19) | func buildGrypeNamespace(group string) (namespace.Namespace, error) { function Transform (line 50) | func Transform(vulnerability unmarshal.GitHubAdvisory) ([]data.Entry, er... function getFix (line 112) | func getFix(entry unmarshal.GitHubAdvisory, idx int) db.Fix { function getRelatedVulnerabilities (line 132) | func getRelatedVulnerabilities(entry unmarshal.GitHubAdvisory) []db.Vuln... function getCvss (line 143) | func getCvss(entry unmarshal.GitHubAdvisory) (cvss []db.Cvss) { FILE: grype/db/v5/build/transformers/github/transform_test.go function TestBuildGrypeNamespace (line 21) | func TestBuildGrypeNamespace(t *testing.T) { function TestUnmarshalGitHubEntries (line 77) | func TestUnmarshalGitHubEntries(t *testing.T) { function TestParseGitHubEntry (line 89) | func TestParseGitHubEntry(t *testing.T) { function TestDefaultVersionFormatNpmGitHubEntry (line 188) | func TestDefaultVersionFormatNpmGitHubEntry(t *testing.T) { function TestFilterWithdrawnEntries (line 257) | func TestFilterWithdrawnEntries(t *testing.T) { FILE: grype/db/v5/build/transformers/matchexclusions/transform.go function Transform (line 9) | func Transform(matchExclusion unmarshal.MatchExclusion) ([]data.Entry, e... FILE: grype/db/v5/build/transformers/msrc/transform.go function Transform (line 17) | func Transform(vulnerability unmarshal.MSRCVulnerability) ([]data.Entry,... function getFix (line 67) | func getFix(entry unmarshal.MSRCVulnerability) db.Fix { function fixedInKB (line 83) | func fixedInKB(vulnerability unmarshal.MSRCVulnerability) string { FILE: grype/db/v5/build/transformers/msrc/transform_test.go function TestUnmarshalMsrcVulnerabilities (line 15) | func TestUnmarshalMsrcVulnerabilities(t *testing.T) { function TestParseMSRCEntry (line 26) | func TestParseMSRCEntry(t *testing.T) { FILE: grype/db/v5/build/transformers/nvd/transform.go type Config (line 23) | type Config struct function defaultConfig (line 28) | func defaultConfig() Config { function Transformer (line 35) | func Transformer(cfg Config) data.NVDTransformer { function transform (line 44) | func transform(cfg Config, vulnerability unmarshal.NVDVulnerability) ([]... function getVersionFormat (line 115) | func getVersionFormat(name string, cpes []string) version.Format { function getFix (line 131) | func getFix(matches []nvd.CpeMatch, inferNVDFixVersions bool) db.Fix { function getCvss (line 185) | func getCvss(cvss ...nvd.CvssSummary) []db.Cvss { FILE: grype/db/v5/build/transformers/nvd/transform_test.go function TestUnmarshalNVDVulnerabilitiesEntries (line 21) | func TestUnmarshalNVDVulnerabilitiesEntries(t *testing.T) { function TestParseAllNVDVulnerabilityEntries (line 31) | func TestParseAllNVDVulnerabilityEntries(t *testing.T) { function TestGetVersionFormat (line 753) | func TestGetVersionFormat(t *testing.T) { function TestGetFix (line 812) | func TestGetFix(t *testing.T) { FILE: grype/db/v5/build/transformers/nvd/unique_pkg.go constant ANY (line 15) | ANY = "*" constant NA (line 16) | NA = "-" type pkgCandidate (line 19) | type pkgCandidate struct method String (line 26) | func (p pkgCandidate) String() string { function newPkgCandidate (line 34) | func newPkgCandidate(tCfg Config, match nvd.CpeMatch, platformCPE string... function findUniquePkgs (line 59) | func findUniquePkgs(tCfg Config, cfgs ...nvd.Configuration) uniquePkgTra... function platformPackageCandidates (line 67) | func platformPackageCandidates(tCfg Config, set uniquePkgTracker, c nvd.... function anyHardwareCPEPresent (line 127) | func anyHardwareCPEPresent(n nvd.Node) bool { function allCPEsVulnerable (line 137) | func allCPEsVulnerable(node nvd.Node) bool { function noCPEsVulnerable (line 146) | func noCPEsVulnerable(node nvd.Node) bool { function _findUniquePkgs (line 155) | func _findUniquePkgs(tCfg Config, set uniquePkgTracker, c nvd.Configurat... function buildConstraints (line 181) | func buildConstraints(matches []nvd.CpeMatch) string { function buildConstraint (line 190) | func buildConstraint(match nvd.CpeMatch) string { function removeDuplicateConstraints (line 223) | func removeDuplicateConstraints(constraints []string) []string { FILE: grype/db/v5/build/transformers/nvd/unique_pkg_test.go function newUniquePkgTrackerFromSlice (line 15) | func newUniquePkgTrackerFromSlice(candidates []pkgCandidate) uniquePkgTr... function TestFindUniquePkgs (line 23) | func TestFindUniquePkgs(t *testing.T) { function strRef (line 450) | func strRef(s string) *string { function TestBuildConstraints (line 454) | func TestBuildConstraints(t *testing.T) { function Test_UniquePackageTrackerHandlesOnlyPlatformDiff (line 553) | func Test_UniquePackageTrackerHandlesOnlyPlatformDiff(t *testing.T) { function TestPlatformPackageCandidates (line 604) | func TestPlatformPackageCandidates(t *testing.T) { function opRef (line 744) | func opRef(op nvd.Operator) *nvd.Operator { function boolRef (line 748) | func boolRef(b bool) *bool { function mustNewPackage (line 752) | func mustNewPackage(t *testing.T, match nvd.CpeMatch, platformCPE string... FILE: grype/db/v5/build/transformers/nvd/unique_pkg_tracker.go type uniquePkgTracker (line 9) | type uniquePkgTracker method Diff (line 15) | func (s uniquePkgTracker) Diff(other uniquePkgTracker) (missing []pkgC... method Matches (line 31) | func (s uniquePkgTracker) Matches(i pkgCandidate) []nvd.CpeMatch { method Add (line 35) | func (s uniquePkgTracker) Add(i pkgCandidate, match nvd.CpeMatch) { method Remove (line 42) | func (s uniquePkgTracker) Remove(i pkgCandidate) { method Contains (line 46) | func (s uniquePkgTracker) Contains(i pkgCandidate) bool { method All (line 51) | func (s uniquePkgTracker) All() []pkgCandidate { function newUniquePkgTracker (line 11) | func newUniquePkgTracker() uniquePkgTracker { FILE: grype/db/v5/build/transformers/os/transform.go function buildGrypeNamespace (line 18) | func buildGrypeNamespace(group string) (namespace.Namespace, error) { function buildPackageQualifiers (line 67) | func buildPackageQualifiers(fixedInEntry unmarshal.OSFixedIn) (qualifier... function Transform (line 83) | func Transform(vulnerability unmarshal.OSVulnerability) ([]data.Entry, e... function getLinks (line 133) | func getLinks(entry unmarshal.OSVulnerability) []string { function getCvss (line 146) | func getCvss(entry unmarshal.OSVulnerability) (cvss []db.Cvss) { function getAdvisories (line 165) | func getAdvisories(entry unmarshal.OSVulnerability, idx int) (advisories... function getFix (line 177) | func getFix(entry unmarshal.OSVulnerability, idx int) db.Fix { function getRelatedVulnerabilities (line 199) | func getRelatedVulnerabilities(entry unmarshal.OSVulnerability) (vulns [... function deriveConstraintFromFix (line 218) | func deriveConstraintFromFix(fixVersion, vulnerabilityID string) string { function enforceConstraint (line 239) | func enforceConstraint(fixedVersion, vulnerableRange, format, vulnerabil... FILE: grype/db/v5/build/transformers/os/transform_test.go function TestUnmarshalOSVulnerabilitiesEntries (line 19) | func TestUnmarshalOSVulnerabilitiesEntries(t *testing.T) { function TestParseVulnerabilitiesEntry (line 31) | func TestParseVulnerabilitiesEntry(t *testing.T) { function TestParseVulnerabilitiesAllEntries (line 798) | func TestParseVulnerabilitiesAllEntries(t *testing.T) { FILE: grype/db/v5/build/transformers/vulnerability_metadata.go type VendorBaseMetrics (line 5) | type VendorBaseMetrics struct FILE: grype/db/v5/build/writer.go constant nvdNamespace (line 27) | nvdNamespace = "nvd:cpe" constant providerMetadataFileName (line 28) | providerMetadataFileName = "provider-metadata.json" type writer (line 33) | type writer struct method Write (line 81) | func (w *writer) Write(entries ...data.Entry) error { method addToBatch (line 123) | func (w *writer) addToBatch(op func() error) error { method Flush (line 136) | func (w *writer) Flush() error { method flushUnlocked (line 143) | func (w *writer) flushUnlocked() error { method metadataAndClose (line 168) | func (w *writer) metadataAndClose() (*distribution.Metadata, error) { method ProviderMetadata (line 193) | func (w *writer) ProviderMetadata() *ProviderMetadata { method Close (line 205) | func (w *writer) Close() error { type ProviderMetadata (line 47) | type ProviderMetadata struct method Write (line 264) | func (p ProviderMetadata) Write(path string) error { type Provider (line 51) | type Provider struct function NewWriter (line 56) | func NewWriter(directory string, dataAge time.Time, states provider.Stat... function NewProviderMetadata (line 187) | func NewProviderMetadata() ProviderMetadata { function normalizeSeverity (line 236) | func normalizeSeverity(metadata *db.VulnerabilityMetadata, reader db.Vul... FILE: grype/db/v5/build/writer_test.go type mockReader (line 15) | type mockReader struct method GetVulnerabilityMetadata (line 35) | func (m mockReader) GetVulnerabilityMetadata(_, _ string) (*db.Vulnera... method GetAllVulnerabilityMetadata (line 39) | func (m mockReader) GetAllVulnerabilityMetadata() (*[]db.Vulnerability... function newMockReader (line 20) | func newMockReader(sev string) *mockReader { function newDeadMockReader (line 29) | func newDeadMockReader() *mockReader { function Test_normalizeSeverity (line 43) | func Test_normalizeSeverity(t *testing.T) { FILE: grype/db/v5/cvss.go function NewCvss (line 7) | func NewCvss(m []Cvss) []vulnerability.Cvss { FILE: grype/db/v5/diff.go constant DiffAdded (line 6) | DiffAdded DiffReason = "added" constant DiffChanged (line 7) | DiffChanged DiffReason = "changed" constant DiffRemoved (line 8) | DiffRemoved DiffReason = "removed" type Diff (line 11) | type Diff struct FILE: grype/db/v5/differ/differ.go type Differ (line 23) | type Differ struct method SetBaseDB (line 55) | func (d *Differ) SetBaseDB(base string) error { method SetTargetDB (line 59) | func (d *Differ) SetTargetDB(target string) error { method setOrDownload (line 63) | func (d *Differ) setOrDownload(curator *legacyDistribution.Curator, fi... method DiffDatabases (line 127) | func (d *Differ) DiffDatabases() (*[]v5.Diff, error) { method DeleteDatabases (line 145) | func (d *Differ) DeleteDatabases() error { method Present (line 155) | func (d *Differ) Present(outputFormat string, diff *[]v5.Diff, output ... function NewDiffer (line 28) | func NewDiffer(config legacyDistribution.Config) (*Differ, error) { function download (line 103) | func download(curator *legacyDistribution.Curator, listing *legacyDistri... function newTable (line 186) | func newTable(output io.Writer, columns []string) *tablewriter.Table { FILE: grype/db/v5/differ/differ_test.go function TestNewDiffer (line 19) | func TestNewDiffer(t *testing.T) { function Test_DifferDirectory (line 31) | func Test_DifferDirectory(t *testing.T) { function TestPresent_Json (line 50) | func TestPresent_Json(t *testing.T) { function TestPresent_Table (line 76) | func TestPresent_Table(t *testing.T) { function TestPresent_Invalid (line 102) | func TestPresent_Invalid(t *testing.T) { FILE: grype/db/v5/distribution/curator.go constant FileName (line 33) | FileName = v5.VulnerabilityStoreFileName constant lastUpdateCheckFileName (line 34) | lastUpdateCheckFileName = "last_update_check" type Config (line 37) | type Config struct type Curator (line 51) | type Curator struct method SupportedSchema (line 98) | func (c Curator) SupportedSchema() int { method GetStore (line 102) | func (c *Curator) GetStore() (v5.StoreReader, error) { method Status (line 112) | func (c *Curator) Status() Status { method Delete (line 135) | func (c *Curator) Delete() error { method Update (line 140) | func (c *Curator) Update() (bool, error) { // nolint: funlen method isUpdateCheckAllowed (line 215) | func (c Curator) isUpdateCheckAllowed() bool { method durationSinceUpdateCheck (line 235) | func (c Curator) durationSinceUpdateCheck() (*time.Duration, error) { method setLastSuccessfulUpdateCheck (line 272) | func (c Curator) setLastSuccessfulUpdateCheck() { method IsUpdateAvailable (line 290) | func (c *Curator) IsUpdateAvailable() (bool, *Metadata, *ListingEntry,... method UpdateTo (line 320) | func (c *Curator) UpdateTo(listing *ListingEntry, downloadProgress, im... method Validate (line 347) | func (c *Curator) Validate() error { method ImportFrom (line 357) | func (c *Curator) ImportFrom(dbArchivePath string) error { method download (line 382) | func (c *Curator) download(listing *ListingEntry, downloadProgress *pr... method validateStaleness (line 408) | func (c *Curator) validateStaleness(m Metadata) error { method validateIntegrity (line 425) | func (c *Curator) validateIntegrity(dbDirPath string) (Metadata, error) { method activate (line 456) | func (c *Curator) activate(dbDirPath string) error { method ListingFromURL (line 477) | func (c Curator) ListingFromURL() (Listing, error) { function NewCurator (line 66) | func NewCurator(cfg Config) (Curator, error) { function defaultHTTPClient (line 504) | func defaultHTTPClient(fs afero.Fs, caCertPath string) (*http.Client, er... function unarchive (line 524) | func unarchive(source, destination string) error { FILE: grype/db/v5/distribution/curator_test.go type testGetter (line 39) | type testGetter struct method GetFile (line 56) | func (g *testGetter) GetFile(dst, src string, _ ...*progress.Manual) e... method GetToDir (line 65) | func (g *testGetter) GetToDir(dst, src string, _ ...*progress.Manual) ... function newTestGetter (line 46) | func newTestGetter(fs afero.Fs, f, d map[string]string) *testGetter { function newTestCurator (line 73) | func newTestCurator(tb testing.TB, fs afero.Fs, getter file.Getter, dbDi... function Test_defaultHTTPClientHasCert (line 89) | func Test_defaultHTTPClientHasCert(t *testing.T) { function Test_defaultHTTPClientTimeout (line 124) | func Test_defaultHTTPClientTimeout(t *testing.T) { function generateCertFixture (line 130) | func generateCertFixture(t *testing.T) string { function TestCuratorDownload (line 191) | func TestCuratorDownload(t *testing.T) { function TestCuratorValidate (line 247) | func TestCuratorValidate(t *testing.T) { function TestCuratorDBPathHasSchemaVersion (line 314) | func TestCuratorDBPathHasSchemaVersion(t *testing.T) { function TestCurator_validateStaleness (line 323) | func TestCurator_validateStaleness(t *testing.T) { function Test_requireUpdateCheck (line 385) | func Test_requireUpdateCheck(t *testing.T) { function TestCuratorTimeoutBehavior (line 550) | func TestCuratorTimeoutBehavior(t *testing.T) { function TestCurator_IsUpdateCheckAllowed (line 624) | func TestCurator_IsUpdateCheckAllowed(t *testing.T) { function TestCurator_DurationSinceUpdateCheck (line 656) | func TestCurator_DurationSinceUpdateCheck(t *testing.T) { function TestCurator_SetLastSuccessfulUpdateCheck (line 701) | func TestCurator_SetLastSuccessfulUpdateCheck(t *testing.T) { type MockGetter (line 730) | type MockGetter struct method GetFile (line 734) | func (m *MockGetter) GetFile(dst, src string, monitor ...*progress.Man... method GetToDir (line 739) | func (m *MockGetter) GetToDir(dst, src string, monitor ...*progress.Ma... function TestCurator_Update_setLastSuccessfulUpdateCheck_notCalled (line 744) | func TestCurator_Update_setLastSuccessfulUpdateCheck_notCalled(t *testin... function Test_unarchive (line 771) | func Test_unarchive(t *testing.T) { FILE: grype/db/v5/distribution/listing.go constant ListingFileName (line 12) | ListingFileName = "listing.json" type Listing (line 16) | type Listing struct method BestUpdate (line 69) | func (l *Listing) BestUpdate(targetSchema int) *ListingEntry { method Write (line 79) | func (l Listing) Write(toPath string) error { function NewListing (line 21) | func NewListing(entries ...ListingEntry) Listing { function NewListingFromFile (line 44) | func NewListingFromFile(fs afero.Fs, path string) (Listing, error) { FILE: grype/db/v5/distribution/listing_entry.go type ListingEntry (line 19) | type ListingEntry struct method UnmarshalJSON (line 73) | func (l *ListingEntry) UnmarshalJSON(data []byte) error { method MarshalJSON (line 86) | func (l *ListingEntry) MarshalJSON() ([]byte, error) { method String (line 95) | func (l ListingEntry) String() string { type ListingEntryJSON (line 27) | type ListingEntryJSON struct method ToListingEntry (line 54) | func (l ListingEntryJSON) ToListingEntry() (ListingEntry, error) { function NewListingEntryFromArchive (line 35) | func NewListingEntryFromArchive(fs afero.Fs, metadata Metadata, dbArchiv... FILE: grype/db/v5/distribution/listing_test.go function mustUrl (line 12) | func mustUrl(u *url.URL, err error) *url.URL { function TestNewListingFromPath (line 19) | func TestNewListingFromPath(t *testing.T) { function TestListingBestUpdate (line 108) | func TestListingBestUpdate(t *testing.T) { FILE: grype/db/v5/distribution/metadata.go constant MetadataFileName (line 16) | MetadataFileName = "metadata.json" type Metadata (line 20) | type Metadata struct method UnmarshalJSON (line 77) | func (m *Metadata) UnmarshalJSON(data []byte) error { method IsSupersededBy (line 92) | func (m *Metadata) IsSupersededBy(entry *ListingEntry) bool { method String (line 115) | func (m Metadata) String() string { method Write (line 120) | func (m Metadata) Write(toPath string) error { type MetadataJSON (line 27) | type MetadataJSON struct method ToMetadata (line 34) | func (m MetadataJSON) ToMetadata() (Metadata, error) { function metadataPath (line 49) | func metadataPath(dir string) string { function NewMetadataFromDir (line 54) | func NewMetadataFromDir(fs afero.Fs, dir string) (*Metadata, error) { FILE: grype/db/v5/distribution/metadata_test.go function TestMetadataParse (line 11) | func TestMetadataParse(t *testing.T) { function TestMetadataIsSupercededBy (line 59) | func TestMetadataIsSupercededBy(t *testing.T) { FILE: grype/db/v5/distribution/status.go type Status (line 5) | type Status struct method Status (line 13) | func (s Status) Status() string { FILE: grype/db/v5/distribution/testdata/tls/serve.py class Handler (line 9) | class Handler(SimpleHTTPRequestHandler): method __init__ (line 10) | def __init__(self, *args, **kwargs): method do_GET (line 13) | def do_GET(self): FILE: grype/db/v5/fix.go type FixState (line 3) | type FixState constant UnknownFixState (line 6) | UnknownFixState FixState = "unknown" constant FixedState (line 7) | FixedState FixState = "fixed" constant NotFixedState (line 8) | NotFixedState FixState = "not-fixed" constant WontFixState (line 9) | WontFixState FixState = "wont-fix" type Fix (line 13) | type Fix struct FILE: grype/db/v5/id.go type ID (line 8) | type ID struct type IDReader (line 15) | type IDReader interface type IDWriter (line 19) | type IDWriter interface function NewID (line 23) | func NewID(age time.Time) ID { FILE: grype/db/v5/match_exclusion_provider.go type MatchExclusionProvider (line 11) | type MatchExclusionProvider struct method IgnoreRules (line 47) | func (pr *MatchExclusionProvider) IgnoreRules(vulnerabilityID string) ... function NewMatchExclusionProvider (line 15) | func NewMatchExclusionProvider(reader VulnerabilityMatchExclusionStoreRe... function buildIgnoreRulesFromMatchExclusion (line 21) | func buildIgnoreRulesFromMatchExclusion(e VulnerabilityMatchExclusion) [... FILE: grype/db/v5/namespace/cpe/namespace.go constant ID (line 12) | ID = "cpe" type Namespace (line 14) | type Namespace struct method Provider (line 47) | func (n *Namespace) Provider() string { method Resolver (line 51) | func (n *Namespace) Resolver() resolver.Resolver { method String (line 55) | func (n Namespace) String() string { function NewNamespace (line 19) | func NewNamespace(provider string) *Namespace { function FromString (line 26) | func FromString(namespaceStr string) (*Namespace, error) { function FromComponents (line 35) | func FromComponents(components []string) (*Namespace, error) { FILE: grype/db/v5/namespace/cpe/namespace_test.go function TestFromString (line 9) | func TestFromString(t *testing.T) { FILE: grype/db/v5/namespace/distro/namespace.go constant ID (line 13) | ID = "distro" type Namespace (line 15) | type Namespace struct method Provider (line 52) | func (n *Namespace) Provider() string { method DistroType (line 56) | func (n *Namespace) DistroType() distro.Type { method Version (line 60) | func (n *Namespace) Version() string { method Resolver (line 64) | func (n *Namespace) Resolver() resolver.Resolver { method String (line 68) | func (n Namespace) String() string { function NewNamespace (line 22) | func NewNamespace(provider string, distroType distro.Type, version strin... function FromString (line 31) | func FromString(namespaceStr string) (*Namespace, error) { function FromComponents (line 40) | func FromComponents(components []string) (*Namespace, error) { FILE: grype/db/v5/namespace/distro/namespace_test.go function TestFromString (line 11) | func TestFromString(t *testing.T) { FILE: grype/db/v5/namespace/from_string.go function FromString (line 13) | func FromString(namespaceStr string) (Namespace, error) { FILE: grype/db/v5/namespace/from_string_test.go function TestFromString (line 15) | func TestFromString(t *testing.T) { FILE: grype/db/v5/namespace/language/namespace.go constant ID (line 12) | ID = "language" type Namespace (line 14) | type Namespace struct method Provider (line 59) | func (n *Namespace) Provider() string { method Language (line 63) | func (n *Namespace) Language() syftPkg.Language { method PackageType (line 67) | func (n *Namespace) PackageType() syftPkg.Type { method Resolver (line 71) | func (n *Namespace) Resolver() resolver.Resolver { method String (line 75) | func (n Namespace) String() string { function NewNamespace (line 21) | func NewNamespace(provider string, language syftPkg.Language, packageTyp... function FromString (line 32) | func FromString(namespaceStr string) (*Namespace, error) { function FromComponents (line 41) | func FromComponents(components []string) (*Namespace, error) { FILE: grype/db/v5/namespace/language/namespace_test.go function TestFromString (line 11) | func TestFromString(t *testing.T) { FILE: grype/db/v5/namespace/namespace.go type Namespace (line 7) | type Namespace interface FILE: grype/db/v5/pkg/qualifier/from_json.go function FromJSON (line 13) | func FromJSON(data []byte) ([]Qualifier, error) { FILE: grype/db/v5/pkg/qualifier/platformcpe/qualifier.go type Qualifier (line 10) | type Qualifier struct method Parse (line 15) | func (q Qualifier) Parse() qualifier.Qualifier { method String (line 19) | func (q Qualifier) String() string { FILE: grype/db/v5/pkg/qualifier/qualifier.go type Qualifier (line 9) | type Qualifier interface FILE: grype/db/v5/pkg/qualifier/rpmmodularity/qualifier.go type Qualifier (line 10) | type Qualifier struct method Parse (line 15) | func (q Qualifier) Parse() qualifier.Qualifier { method String (line 19) | func (q Qualifier) String() string { FILE: grype/db/v5/pkg/resolver/java/resolver.go type Resolver (line 13) | type Resolver struct method Normalize (line 16) | func (r *Resolver) Normalize(name string) string { method Resolve (line 20) | func (r *Resolver) Resolve(p grypePkg.Package) []string { FILE: grype/db/v5/pkg/resolver/java/resolver_test.go function TestResolver_Normalize (line 12) | func TestResolver_Normalize(t *testing.T) { function TestResolver_Resolve (line 49) | func TestResolver_Resolve(t *testing.T) { FILE: grype/db/v5/pkg/resolver/python/resolver.go type Resolver (line 10) | type Resolver struct method Normalize (line 13) | func (r *Resolver) Normalize(name string) string { method Resolve (line 22) | func (r *Resolver) Resolve(p grypePkg.Package) []string { FILE: grype/db/v5/pkg/resolver/python/resolver_test.go function TestResolver_Normalize (line 9) | func TestResolver_Normalize(t *testing.T) { FILE: grype/db/v5/pkg/resolver/resolver.go type Resolver (line 11) | type Resolver interface function FromLanguage (line 16) | func FromLanguage(language syftPkg.Language) (Resolver, error) { function PackageNames (line 31) | func PackageNames(p grypePkg.Package) []string { FILE: grype/db/v5/pkg/resolver/resolver_test.go function TestFromLanguage (line 14) | func TestFromLanguage(t *testing.T) { FILE: grype/db/v5/pkg/resolver/stock/resolver.go type Resolver (line 9) | type Resolver struct method Normalize (line 12) | func (r *Resolver) Normalize(name string) string { method Resolve (line 16) | func (r *Resolver) Resolve(p grypePkg.Package) []string { FILE: grype/db/v5/pkg/resolver/stock/resolver_test.go function TestResolver_Normalize (line 9) | func TestResolver_Normalize(t *testing.T) { FILE: grype/db/v5/provider_store.go type ProviderStore (line 8) | type ProviderStore struct FILE: grype/db/v5/schema_version.go constant SchemaVersion (line 3) | SchemaVersion = 5 FILE: grype/db/v5/store.go type Store (line 5) | type Store interface type StoreReader (line 10) | type StoreReader interface type StoreWriter (line 19) | type StoreWriter interface type DiffReader (line 27) | type DiffReader interface FILE: grype/db/v5/store/diff.go type storeKey (line 13) | type storeKey struct type storeVulnerabilityList (line 21) | type storeVulnerabilityList struct type storeVulnerability (line 25) | type storeVulnerability struct type storeMetadata (line 29) | type storeMetadata struct function trackDiff (line 35) | func trackDiff(total int64) (*progress.Manual, *progress.Manual, *progre... function buildVulnerabilityPkgsMap (line 53) | func buildVulnerabilityPkgsMap(models *[]v5.Vulnerability) *map[storeKey... function createDiff (line 69) | func createDiff(baseStore, targetStore *PkgMap, key storeKey, reason v5.... function getVulnerabilityParentKey (line 101) | func getVulnerabilityParentKey(vuln v5.Vulnerability) storeKey { function getVulnerabilityKey (line 106) | func getVulnerabilityKey(vuln v5.Vulnerability) storeKey { type VulnerabilitySet (line 110) | type VulnerabilitySet struct method in (line 143) | func (v *VulnerabilitySet) in(item v5.Vulnerability) bool { method match (line 148) | func (v *VulnerabilitySet) match(item v5.Vulnerability) bool { method getUnmatched (line 164) | func (v *VulnerabilitySet) getUnmatched() ([]storeKey, []storeKey) { function NewVulnerabilitySet (line 114) | func NewVulnerabilitySet(models *[]v5.Vulnerability) *VulnerabilitySet { function diffVulnerabilities (line 185) | func diffVulnerabilities(baseModels, targetModels *[]v5.Vulnerability, b... type MetadataSet (line 228) | type MetadataSet struct method in (line 246) | func (v *MetadataSet) in(item v5.VulnerabilityMetadata) bool { method match (line 251) | func (v *MetadataSet) match(item v5.VulnerabilityMetadata) bool { method getUnmatched (line 259) | func (v *MetadataSet) getUnmatched() []storeKey { function NewMetadataSet (line 232) | func NewMetadataSet(models *[]v5.VulnerabilityMetadata) *MetadataSet { function diffVulnerabilityMetadata (line 269) | func diffVulnerabilityMetadata(baseModels, targetModels *[]v5.Vulnerabil... function getMetadataKey (line 303) | func getMetadataKey(metadata v5.VulnerabilityMetadata) storeKey { FILE: grype/db/v5/store/diff_test.go function Test_GetAllVulnerabilities (line 13) | func Test_GetAllVulnerabilities(t *testing.T) { function Test_GetAllVulnerabilityMetadata (line 30) | func Test_GetAllVulnerabilityMetadata(t *testing.T) { function Test_Diff_Vulnerabilities (line 49) | func Test_Diff_Vulnerabilities(t *testing.T) { function Test_Diff_Metadata (line 155) | func Test_Diff_Metadata(t *testing.T) { FILE: grype/db/v5/store/model/id.go constant IDTableName (line 11) | IDTableName = "id" type IDModel (line 14) | type IDModel struct method TableName (line 26) | func (IDModel) TableName() string { method Inflate (line 30) | func (m *IDModel) Inflate() (v5.ID, error) { function NewIDModel (line 19) | func NewIDModel(id v5.ID) IDModel { FILE: grype/db/v5/store/model/vulnerability.go constant VulnerabilityTableName (line 13) | VulnerabilityTableName = "vulnerability" constant GetVulnerabilityIndexName (line 14) | GetVulnerabilityIndexName = "get_vulnerability_index" type VulnerabilityModel (line 18) | type VulnerabilityModel struct method TableName (line 51) | func (VulnerabilityModel) TableName() string { method Inflate (line 56) | func (m *VulnerabilityModel) Inflate() (v5.Vulnerability, error) { function NewVulnerabilityModel (line 34) | func NewVulnerabilityModel(vulnerability v5.Vulnerability) Vulnerability... FILE: grype/db/v5/store/model/vulnerability_match_exclusion.go constant VulnerabilityMatchExclusionTableName (line 13) | VulnerabilityMatchExclusionTableName = "vulnerability_match_exclusion" constant GetVulnerabilityMatchExclusionIndexName (line 14) | GetVulnerabilityMatchExclusionIndexName = "get_vulnerability_match_exclu... type VulnerabilityMatchExclusionModel (line 18) | type VulnerabilityMatchExclusionModel struct method TableName (line 35) | func (VulnerabilityMatchExclusionModel) TableName() string { method Inflate (line 40) | func (m *VulnerabilityMatchExclusionModel) Inflate() (*v5.Vulnerabilit... function NewVulnerabilityMatchExclusionModel (line 26) | func NewVulnerabilityMatchExclusionModel(v v5.VulnerabilityMatchExclusio... FILE: grype/db/v5/store/model/vulnerability_match_exclusion_test.go function TestVulnerabilityMatchExclusionModel_Inflate (line 12) | func TestVulnerabilityMatchExclusionModel_Inflate(t *testing.T) { FILE: grype/db/v5/store/model/vulnerability_metadata.go constant VulnerabilityMetadataTableName (line 12) | VulnerabilityMetadataTableName = "vulnerability_metadata" type VulnerabilityMetadataModel (line 16) | type VulnerabilityMetadataModel struct method TableName (line 46) | func (VulnerabilityMetadataModel) TableName() string { method Inflate (line 51) | func (m *VulnerabilityMetadataModel) Inflate() (v5.VulnerabilityMetada... function NewVulnerabilityMetadataModel (line 28) | func NewVulnerabilityMetadataModel(metadata v5.VulnerabilityMetadata) Vu... FILE: grype/db/v5/store/model/vulnerability_test.go function TestVulnerabilityModel_Inflate (line 15) | func TestVulnerabilityModel_Inflate(t *testing.T) { FILE: grype/db/v5/store/store.go type store (line 19) | type store struct method GetID (line 45) | func (s *store) GetID() (*v5.ID, error) { method SetID (line 67) | func (s *store) SetID(id v5.ID) error { method GetVulnerabilityNamespaces (line 84) | func (s *store) GetVulnerabilityNamespaces() ([]string, error) { method GetVulnerability (line 91) | func (s *store) GetVulnerability(namespace, id string) ([]v5.Vulnerabi... method SearchForVulnerabilities (line 115) | func (s *store) SearchForVulnerabilities(namespace, packageName string... method AddVulnerability (line 133) | func (s *store) AddVulnerability(vulnerabilities ...v5.Vulnerability) ... method GetVulnerabilityMetadata (line 150) | func (s *store) GetVulnerabilityMetadata(id, namespace string) (*v5.Vu... method AddVulnerabilityMetadata (line 176) | func (s *store) AddVulnerabilityMetadata(metadata ...v5.VulnerabilityM... method GetVulnerabilityMatchExclusion (line 243) | func (s *store) GetVulnerabilityMatchExclusion(id string) ([]v5.Vulner... method AddVulnerabilityMatchExclusion (line 264) | func (s *store) AddVulnerabilityMatchExclusion(exclusions ...v5.Vulner... method Close (line 281) | func (s *store) Close() error { method GetAllVulnerabilities (line 313) | func (s *store) GetAllVulnerabilities() (*[]v5.Vulnerability, error) { method GetAllVulnerabilityMetadata (line 330) | func (s *store) GetAllVulnerabilityMetadata() (*[]v5.VulnerabilityMeta... method DiffStore (line 347) | func (s *store) DiffStore(targetStore v5.StoreReader) (*[]v5.Diff, err... function models (line 23) | func models() []any { function New (line 33) | func New(dbFilePath string, overwrite bool) (v5.Store, error) { FILE: grype/db/v5/store/store_test.go function assertIDReader (line 16) | func assertIDReader(t *testing.T, reader v5.IDReader, expected v5.ID) { function TestStore_GetID_SetID (line 30) | func TestStore_GetID_SetID(t *testing.T) { function assertVulnerabilityReader (line 51) | func assertVulnerabilityReader(t *testing.T, reader v5.VulnerabilityStor... function TestStore_GetVulnerability_SetVulnerability (line 69) | func TestStore_GetVulnerability_SetVulnerability(t *testing.T) { function assertVulnerabilityMetadataReader (line 212) | func assertVulnerabilityMetadataReader(t *testing.T, reader v5.Vulnerabi... function sortMetadataCvss (line 249) | func sortMetadataCvss(cvss []v5.Cvss) { type CustomMetadata (line 266) | type CustomMetadata struct function TestStore_GetVulnerabilityMetadata_SetVulnerabilityMetadata (line 271) | func TestStore_GetVulnerabilityMetadata_SetVulnerabilityMetadata(t *test... function TestStore_MergeVulnerabilityMetadata (line 355) | func TestStore_MergeVulnerabilityMetadata(t *testing.T) { function TestCvssScoresInMetadata (line 790) | func TestCvssScoresInMetadata(t *testing.T) { function assertVulnerabilityMatchExclusionReader (line 1038) | func assertVulnerabilityMatchExclusionReader(t *testing.T, reader v5.Vul... function TestStore_GetVulnerabilityMatchExclusion_SetVulnerabilityMatchExclusion (line 1057) | func TestStore_GetVulnerabilityMatchExclusion_SetVulnerabilityMatchExclu... function Test_DiffStore (line 1213) | func Test_DiffStore(t *testing.T) { FILE: grype/db/v5/vulnerability.go type Vulnerability (line 17) | type Vulnerability struct method Equal (line 36) | func (v *Vulnerability) Equal(vv Vulnerability) bool { type VulnerabilityReference (line 30) | type VulnerabilityReference struct function sortRelatedVulns (line 91) | func sortRelatedVulns(vulns []VulnerabilityReference) []VulnerabilityRef... function sortAdvisories (line 103) | func sortAdvisories(advisories []Advisory) []Advisory { function sortPackageQualifiers (line 115) | func sortPackageQualifiers(qualifiers []qualifierV5.Qualifier) []qualifi... function NewVulnerability (line 122) | func NewVulnerability(vuln Vulnerability) (*vulnerability.Vulnerability,... FILE: grype/db/v5/vulnerability_match_exclusion.go type VulnerabilityMatchExclusion (line 9) | type VulnerabilityMatchExclusion struct type VulnerabilityMatchExclusionConstraint (line 16) | type VulnerabilityMatchExclusionConstraint struct method Usable (line 22) | func (c VulnerabilityMatchExclusionConstraint) Usable() bool { method UnmarshalJSON (line 26) | func (c *VulnerabilityMatchExclusionConstraint) UnmarshalJSON(data []b... type VulnerabilityExclusionConstraint (line 53) | type VulnerabilityExclusionConstraint struct method Usable (line 59) | func (v VulnerabilityExclusionConstraint) Usable() bool { method UnmarshalJSON (line 63) | func (v *VulnerabilityExclusionConstraint) UnmarshalJSON(data []byte) ... type PackageExclusionConstraint (line 90) | type PackageExclusionConstraint struct method Usable (line 99) | func (p PackageExclusionConstraint) Usable() bool { method UnmarshalJSON (line 103) | func (p *PackageExclusionConstraint) UnmarshalJSON(data []byte) error { FILE: grype/db/v5/vulnerability_match_exclusion_store.go type VulnerabilityMatchExclusionStore (line 3) | type VulnerabilityMatchExclusionStore interface type VulnerabilityMatchExclusionStoreReader (line 8) | type VulnerabilityMatchExclusionStoreReader interface type VulnerabilityMatchExclusionStoreWriter (line 12) | type VulnerabilityMatchExclusionStoreWriter interface FILE: grype/db/v5/vulnerability_metadata.go type VulnerabilityMetadata (line 10) | type VulnerabilityMetadata struct method Equal (line 57) | func (v *VulnerabilityMetadata) Equal(vv VulnerabilityMetadata) bool { type Cvss (line 22) | type Cvss struct type CvssMetrics (line 35) | type CvssMetrics struct function NewCvssMetrics (line 49) | func NewCvssMetrics(baseScore, exploitabilityScore, impactScore float64)... function NewMetadata (line 84) | func NewMetadata(m *VulnerabilityMetadata) (*vulnerability.Metadata, err... FILE: grype/db/v5/vulnerability_metadata_store.go type VulnerabilityMetadataStore (line 3) | type VulnerabilityMetadataStore interface type VulnerabilityMetadataStoreReader (line 8) | type VulnerabilityMetadataStoreReader interface type VulnerabilityMetadataStoreWriter (line 13) | type VulnerabilityMetadataStoreWriter interface FILE: grype/db/v5/vulnerability_store.go constant VulnerabilityStoreFileName (line 3) | VulnerabilityStoreFileName = "vulnerability.db" type VulnerabilityStore (line 5) | type VulnerabilityStore interface type VulnerabilityStoreReader (line 10) | type VulnerabilityStoreReader interface type VulnerabilityStoreWriter (line 20) | type VulnerabilityStoreWriter interface FILE: grype/db/v6/affected_cpe_store.go type AffectedCPEStoreWriter (line 9) | type AffectedCPEStoreWriter interface type AffectedCPEStoreReader (line 13) | type AffectedCPEStoreReader interface type affectedCPEStore (line 17) | type affectedCPEStore struct method AddAffectedCPEs (line 31) | func (s *affectedCPEStore) AddAffectedCPEs(packages ...*AffectedCPEHan... method GetAffectedCPEs (line 35) | func (s *affectedCPEStore) GetAffectedCPEs(cpe *cpe.Attributes, config... function newAffectedCPEStore (line 23) | func newAffectedCPEStore(db *gorm.DB, bs *blobStore) *affectedCPEStore { FILE: grype/db/v6/affected_cpe_store_test.go function TestAffectedCPEStore_AddAffectedCPEs (line 13) | func TestAffectedCPEStore_AddAffectedCPEs(t *testing.T) { function TestAffectedCPEStore_GetCPEs (line 58) | func TestAffectedCPEStore_GetCPEs(t *testing.T) { function TestAffectedCPEStore_GetExact (line 89) | func TestAffectedCPEStore_GetExact(t *testing.T) { function TestAffectedCPEStore_Get_CaseInsensitive (line 109) | func TestAffectedCPEStore_Get_CaseInsensitive(t *testing.T) { function TestAffectedCPEStore_PreventDuplicateCPEs (line 138) | func TestAffectedCPEStore_PreventDuplicateCPEs(t *testing.T) { function cpeFromProduct (line 213) | func cpeFromProduct(product string) *cpe.Attributes { function toCPE (line 219) | func toCPE(c *Cpe) *cpe.Attributes { function testAffectedCPEHandle (line 233) | func testAffectedCPEHandle() *AffectedCPEHandle { FILE: grype/db/v6/affected_package_store.go type AffectedPackageStoreWriter (line 5) | type AffectedPackageStoreWriter interface type AffectedPackageStoreReader (line 9) | type AffectedPackageStoreReader interface type affectedPackageStore (line 13) | type affectedPackageStore struct method AddAffectedPackages (line 27) | func (s *affectedPackageStore) AddAffectedPackages(packages ...*Affect... method GetAffectedPackages (line 31) | func (s *affectedPackageStore) GetAffectedPackages(pkg *PackageSpecifi... function newAffectedPackageStore (line 19) | func newAffectedPackageStore(db *gorm.DB, bs *blobStore, oss *operatingS... FILE: grype/db/v6/affected_package_store_test.go type affectedPackageHandlePreloadConfig (line 16) | type affectedPackageHandlePreloadConfig struct function defaultAffectedPackageHandlePreloadCases (line 25) | func defaultAffectedPackageHandlePreloadCases() []affectedPackageHandleP... function TestAffectedPackageStore_AddAffectedPackages (line 137) | func TestAffectedPackageStore_AddAffectedPackages(t *testing.T) { function TestAffectedPackageStore_GetAffectedPackages_ByCPE (line 431) | func TestAffectedPackageStore_GetAffectedPackages_ByCPE(t *testing.T) { function TestAffectedPackageStore_GetAffectedPackages_CaseInsensitive (line 597) | func TestAffectedPackageStore_GetAffectedPackages_CaseInsensitive(t *tes... function TestAffectedPackageStore_GetAffectedPackages_MultipleVulnerabilitySpecs (line 737) | func TestAffectedPackageStore_GetAffectedPackages_MultipleVulnerabilityS... function TestAffectedPackageStore_GetAffectedPackages (line 793) | func TestAffectedPackageStore_GetAffectedPackages(t *testing.T) { function TestAffectedPackageStore_ApplyPackageAlias (line 948) | func TestAffectedPackageStore_ApplyPackageAlias(t *testing.T) { function testDistro1AffectedPackage2Handle (line 988) | func testDistro1AffectedPackage2Handle() *AffectedPackageHandle { function testDistro2AffectedPackage2Handle (line 1017) | func testDistro2AffectedPackage2Handle() *AffectedPackageHandle { function testNonDistroAffectedPackage2Handle (line 1045) | func testNonDistroAffectedPackage2Handle() *AffectedPackageHandle { function expectErrIs (line 1067) | func expectErrIs(t *testing.T, expected error) require.ErrorAssertionFunc { function pkgFromName (line 1075) | func pkgFromName(name string) *PackageSpecifier { FILE: grype/db/v6/blob_store.go type blobable (line 14) | type blobable interface type blobStore (line 21) | type blobStore struct method addBlobable (line 33) | func (s *blobStore) addBlobable(bs ...blobable) error { method addBlobs (line 51) | func (s *blobStore) addBlobs(blobs ...*Blob) error { method getBlobValues (line 72) | func (s *blobStore) getBlobValues(ids ...ID) ([]Blob, error) { method attachBlobValue (line 83) | func (s *blobStore) attachBlobValue(bs ...blobable) error { function newBlobStore (line 26) | func newBlobStore(db *gorm.DB) *blobStore { function newBlob (line 123) | func newBlob(obj any) *Blob { FILE: grype/db/v6/blob_store_test.go function TestBlobWriter_AddBlobs (line 10) | func TestBlobWriter_AddBlobs(t *testing.T) { function TestBlob_computeDigest (line 36) | func TestBlob_computeDigest(t *testing.T) { FILE: grype/db/v6/blobs.go type VulnerabilityBlob (line 11) | type VulnerabilityBlob struct method String (line 31) | func (v VulnerabilityBlob) String() string { type Reference (line 36) | type Reference struct type Severity (line 48) | type Severity struct method UnmarshalJSON (line 71) | func (s *Severity) UnmarshalJSON(data []byte) error { type severityAlias (line 63) | type severityAlias type severityUnmarshalProxy (line 65) | type severityUnmarshalProxy struct type CVSSSeverity (line 96) | type CVSSSeverity struct method String (line 104) | func (c CVSSSeverity) String() string { type PackageBlob (line 113) | type PackageBlob struct method String (line 124) | func (a PackageBlob) String() string { type PackageQualifiers (line 143) | type PackageQualifiers struct type Range (line 152) | type Range struct method String (line 160) | func (a Range) String() string { type Fix (line 165) | type Fix struct method String (line 176) | func (f Fix) String() string { type FixDetail (line 187) | type FixDetail struct type FixAvailability (line 195) | type FixAvailability struct method MarshalJSON (line 203) | func (f FixAvailability) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 221) | func (f *FixAvailability) UnmarshalJSON(data []byte) error { type Version (line 252) | type Version struct type KnownExploitedVulnerabilityBlob (line 260) | type KnownExploitedVulnerabilityBlob struct FILE: grype/db/v6/blobs_test.go function TestFixAvailability_MarshalJSON (line 12) | func TestFixAvailability_MarshalJSON(t *testing.T) { function TestFixAvailability_UnmarshalJSON_SimpleDateFormat (line 27) | func TestFixAvailability_UnmarshalJSON_SimpleDateFormat(t *testing.T) { function TestFixAvailability_UnmarshalJSON_RFC3339Format (line 39) | func TestFixAvailability_UnmarshalJSON_RFC3339Format(t *testing.T) { function TestFixAvailability_RoundTripMarshalUnmarshal (line 51) | func TestFixAvailability_RoundTripMarshalUnmarshal(t *testing.T) { function TestPackageBlob_WithFixAvailability (line 72) | func TestPackageBlob_WithFixAvailability(t *testing.T) { function TestFixAvailability_UnmarshalJSON_InvalidDateFormat (line 116) | func TestFixAvailability_UnmarshalJSON_InvalidDateFormat(t *testing.T) { FILE: grype/db/v6/build/archive.go function CreateArchive (line 19) | func CreateArchive(dbDir, overrideArchiveExtension string, compressorCom... function toProviders (line 83) | func toProviders(states []v6.Provider) provider.States { function resolveExtension (line 94) | func resolveExtension(overrideArchiveExtension string) (string, error) { function populateTar (line 115) | func populateTar(dbDir, tarName string, compressorCommands map[string]st... function writeLatestDocument (line 147) | func writeLatestDocument(tarPath string, metadata v6.DBMetadata) error { FILE: grype/db/v6/build/processors.go type Config (line 19) | type Config struct type Option (line 23) | type Option function WithCPEParts (line 25) | func WithCPEParts(included []string) Option { function WithInferNVDFixVersions (line 31) | func WithInferNVDFixVersions(infer bool) Option { function NewConfig (line 37) | func NewConfig(options ...Option) Config { function Processors (line 46) | func Processors(cfg Config) []data.Processor { FILE: grype/db/v6/build/transformers/entry.go type RelatedEntries (line 11) | type RelatedEntries struct method String (line 44) | func (re RelatedEntries) String() string { function NewEntries (line 17) | func NewEntries(models ...any) []data.Entry { FILE: grype/db/v6/build/transformers/eol/transform.go function Transform (line 50) | func Transform(entry unmarshal.EndOfLifeDateRelease, state provider.Stat... function translateProductName (line 69) | func translateProductName(product string) string { function getOperatingSystemEOL (line 77) | func getOperatingSystemEOL(entry unmarshal.EndOfLifeDateRelease, distroN... function parseVersion (line 110) | func parseVersion(cycle string) (major, minor string) { function normalizeVersion (line 122) | func normalizeVersion(v string) string { FILE: grype/db/v6/build/transformers/eol/transform_test.go function TestParseVersion (line 9) | func TestParseVersion(t *testing.T) { function TestNormalizeVersion (line 75) | func TestNormalizeVersion(t *testing.T) { function TestTranslateProductName (line 126) | func TestTranslateProductName(t *testing.T) { FILE: grype/db/v6/build/transformers/epss/transform.go function Transform (line 15) | func Transform(entry unmarshal.EPSS, state provider.State) ([]data.Entry... function getEPSS (line 23) | func getEPSS(entry unmarshal.EPSS, date time.Time) db.EpssHandle { FILE: grype/db/v6/build/transformers/epss/transform_test.go function TestTransform (line 19) | func TestTransform(t *testing.T) { function epssSlice (line 84) | func epssSlice(a ...db.EpssHandle) []any { function loadFixture (line 92) | func loadFixture(t *testing.T, fixturePath string) []unmarshal.EPSS { FILE: grype/db/v6/build/transformers/github/transform.go function Transform (line 20) | func Transform(vulnerability unmarshal.GitHubAdvisory, state provider.St... function getVulnerability (line 32) | func getVulnerability(vuln unmarshal.GitHubAdvisory, state provider.Stat... function getVulnStatus (line 55) | func getVulnStatus(vuln unmarshal.GitHubAdvisory) db.VulnerabilityStatus { function getAffectedPackage (line 63) | func getAffectedPackage(vuln unmarshal.GitHubAdvisory) []db.AffectedPack... function getRanges (line 92) | func getRanges(fixedInEntry unmarshal.GithubFixedIn) ([]db.Range, error) { function validateAffectedVersion (line 110) | func validateAffectedVersion(v db.Version) error { function getAffectedVersionFormat (line 130) | func getAffectedVersionFormat(fixedInEntry unmarshal.GithubFixedIn) stri... function getFix (line 140) | func getFix(fixedInEntry unmarshal.GithubFixedIn) *db.Fix { function getFixAvailability (line 163) | func getFixAvailability(fixedInEntry unmarshal.GithubFixedIn) *db.FixAva... type groupIndex (line 180) | type groupIndex struct function groupFixedIns (line 185) | func groupFixedIns(vuln unmarshal.GitHubAdvisory) map[groupIndex][]unmar... function getPackageType (line 199) | func getPackageType(ecosystem string) pkg.Type { function getPackage (line 243) | func getPackage(group groupIndex) *db.Package { function getSeverities (line 251) | func getSeverities(vulnerability unmarshal.GitHubAdvisory) []db.Severity { function getAliases (line 291) | func getAliases(vulnerability unmarshal.GitHubAdvisory) (aliases []strin... function getReferences (line 296) | func getReferences(vulnerability unmarshal.GitHubAdvisory) []db.Reference { FILE: grype/db/v6/build/transformers/github/transform_test.go function TestTransform (line 19) | func TestTransform(t *testing.T) { function TestGetVulnerability (line 72) | func TestGetVulnerability(t *testing.T) { function TestGetAffectedPackage (line 403) | func TestGetAffectedPackage(t *testing.T) { function TestGetPackageType (line 625) | func TestGetPackageType(t *testing.T) { function TestGetRanges (line 670) | func TestGetRanges(t *testing.T) { function TestGetFixAvailability (line 725) | func TestGetFixAvailability(t *testing.T) { function TestGetFix (line 794) | func TestGetFix(t *testing.T) { function loadFixture (line 888) | func loadFixture(t *testing.T, path string) []unmarshal.GitHubAdvisory { FILE: grype/db/v6/build/transformers/internal/sort.go type ByAffectedPackage (line 5) | type ByAffectedPackage method Len (line 7) | func (a ByAffectedPackage) Len() int { return len(a) } method Swap (line 8) | func (a ByAffectedPackage) Swap(i, j int) { a[i], a[j] = a[j], a[i] } method Less (line 9) | func (a ByAffectedPackage) Less(i, j int) bool { type ByUnaffectedPackage (line 13) | type ByUnaffectedPackage method Len (line 15) | func (a ByUnaffectedPackage) Len() int { return len(a) } method Swap (line 16) | func (a ByUnaffectedPackage) Swap(i, j int) { a[i], a[j] = a[j], a[i] } method Less (line 17) | func (a ByUnaffectedPackage) Less(i, j int) bool { function comparePackageHandles (line 22) | func comparePackageHandles(pkg1 *db.Package, ranges1 []db.Range, pkg2 *d... FILE: grype/db/v6/build/transformers/internal/time.go function ParseTime (line 12) | func ParseTime(s string) *time.Time { FILE: grype/db/v6/build/transformers/internal/time_test.go function TestParseTime (line 10) | func TestParseTime(t *testing.T) { FILE: grype/db/v6/build/transformers/kev/transform.go function Transform (line 17) | func Transform(kev unmarshal.KnownExploitedVulnerability, state provider... function getKev (line 21) | func getKev(kev unmarshal.KnownExploitedVulnerability) db.KnownExploited... function getURLs (line 42) | func getURLs(aux []string, notes string) ([]string, string) { FILE: grype/db/v6/build/transformers/kev/transform_test.go function TestTransform (line 18) | func TestTransform(t *testing.T) { function kevSlice (line 97) | func kevSlice(a ...db.KnownExploitedVulnerabilityHandle) []any { function loadFixture (line 105) | func loadFixture(t *testing.T, fixturePath string) []unmarshal.KnownExpl... FILE: grype/db/v6/build/transformers/msrc/transform.go function Transform (line 17) | func Transform(vulnerability unmarshal.MSRCVulnerability, state provider... function getVulnerability (line 27) | func getVulnerability(vuln unmarshal.MSRCVulnerability, state provider.S... function getAffectedPackage (line 42) | func getAffectedPackage(vuln unmarshal.MSRCVulnerability) db.AffectedPac... function getPackage (line 51) | func getPackage(vuln unmarshal.MSRCVulnerability) *db.Package { function getRanges (line 58) | func getRanges(vuln unmarshal.MSRCVulnerability) []db.Range { function getFix (line 75) | func getFix(vuln unmarshal.MSRCVulnerability) *db.Fix { function fixedInKB (line 92) | func fixedInKB(vulnerability unmarshal.MSRCVulnerability) (string, *db.F... function getReferences (line 110) | func getReferences(vuln unmarshal.MSRCVulnerability) []db.Reference { function getSeverities (line 120) | func getSeverities(vuln unmarshal.MSRCVulnerability) []db.Severity { FILE: grype/db/v6/build/transformers/msrc/transform_test.go function TestUnmarshalMsrcVulnerabilities (line 20) | func TestUnmarshalMsrcVulnerabilities(t *testing.T) { function TestParseMSRCEntry (line 31) | func TestParseMSRCEntry(t *testing.T) { function timePtr (line 199) | func timePtr(t time.Time) *time.Time { FILE: grype/db/v6/build/transformers/nvd/affected_range.go type affectedRangeSet (line 12) | type affectedRangeSet method addRanges (line 40) | func (s affectedRangeSet) addRanges(rs ...affectedCPERange) { method toSlice (line 46) | func (s affectedRangeSet) toSlice() []affectedCPERange { type affectedCPERange (line 14) | type affectedCPERange struct method String (line 75) | func (r affectedCPERange) String() string { function newAffectedRanges (line 24) | func newAffectedRanges(rs ...affectedCPERange) affectedRangeSet { function newAffectedRange (line 30) | func newAffectedRange(match nvd.CpeMatch) affectedCPERange { function nonEmptyValue (line 104) | func nonEmptyValue(value *string) string { FILE: grype/db/v6/build/transformers/nvd/affected_range_test.go function Test_AffectedCPERange_String (line 11) | func Test_AffectedCPERange_String(t *testing.T) { function Test_newAffectedRange (line 130) | func Test_newAffectedRange(t *testing.T) { function stringPtr (line 181) | func stringPtr(s string) *string { FILE: grype/db/v6/build/transformers/nvd/node.go type affectedPackageCandidate (line 13) | type affectedPackageCandidate struct function allCandidates (line 19) | func allCandidates(cve string, configs []nvd.Configuration, cfg Config) ... function processConfiguration (line 34) | func processConfiguration(cve string, config nvd.Configuration, cfg Conf... function processANDNodes (line 50) | func processANDNodes(cve string, nodes []nvd.Node, cfg Config, depth int... function processORNodes (line 119) | func processORNodes(cve string, nodes []nvd.Node, cfg Config, depth int)... function deduplicateCandidates (line 147) | func deduplicateCandidates(candidates []affectedPackageCandidate) []affe... function deriveRangesFromCPE (line 195) | func deriveRangesFromCPE(attr cpe.Attributes) []affectedCPERange { function extractVulnerableCPEs (line 214) | func extractVulnerableCPEs(node nvd.Node, cfg Config) ([]affectedPackage... function extractPlatformCPEs (line 254) | func extractPlatformCPEs(node nvd.Node) ([]cpe.Attributes, error) { function cpeKey (line 272) | func cpeKey(cpe cpe.Attributes) string { FILE: grype/db/v6/build/transformers/nvd/node_test.go function TestDeduplicateCandidates (line 12) | func TestDeduplicateCandidates(t *testing.T) { function TestDeduplicateCandidates_SensitiveToAllCPEFields (line 409) | func TestDeduplicateCandidates_SensitiveToAllCPEFields(t *testing.T) { FILE: grype/db/v6/build/transformers/nvd/transform.go type Config (line 24) | type Config struct function defaultConfig (line 29) | func defaultConfig() Config { function getVersionFormat (line 36) | func getVersionFormat(cpeProduct string) string { function Transformer (line 43) | func Transformer(cfg Config) data.NVDTransformerV2 { function transform (line 52) | func transform(cfg Config, vulnerability unmarshal.NVDVulnerability, sta... function getAssigner (line 82) | func getAssigner(vuln unmarshal.NVDVulnerability) []string { function getVulnStatus (line 96) | func getVulnStatus(vuln unmarshal.NVDVulnerability) db.VulnerabilityStat... function getAffected (line 153) | func getAffected(cfg Config, vulnerability unmarshal.NVDVulnerability) [... function getCWEs (line 168) | func getCWEs(vulnerability unmarshal.NVDVulnerability) []db.CWEHandle { function isValidCWE (line 186) | func isValidCWE(cwe string) bool { function encodeCPEs (line 199) | func encodeCPEs(cpes []cpe.Attributes) []string { function affectedApplicationPackage (line 207) | func affectedApplicationPackage(cfg Config, vulnerability unmarshal.NVDV... function getRanges (line 229) | func getRanges(cfg Config, c cpe.Attributes, ras []affectedCPERange, vul... function getRange (line 241) | func getRange(cfg Config, c cpe.Attributes, ra affectedCPERange, vulnID ... function getFix (line 251) | func getFix(cfg Config, vulnCPE cpe.Attributes, ra affectedCPERange, vul... function getCPEFromAttributes (line 305) | func getCPEFromAttributes(atts cpe.Attributes) *db.Cpe { function getSeverities (line 319) | func getSeverities(vuln unmarshal.NVDVulnerability) []db.Severity { function getReferences (line 341) | func getReferences(vuln unmarshal.NVDVulnerability) []db.Reference { FILE: grype/db/v6/build/transformers/nvd/transform_test.go function inputProviderState (line 28) | func inputProviderState(name string) provider.State { function expectedProvider (line 38) | func expectedProvider(name string) *db.Provider { function TestTransform (line 48) | func TestTransform(t *testing.T) { function relatedEntries (line 1899) | func relatedEntries(items ...any) []any { function loadFixture (line 1903) | func loadFixture(t *testing.T, fixturePath string) []unmarshal.NVDVulner... function timeRef (line 1923) | func timeRef(ti time.Time) *time.Time { function TestIsValidCWE (line 1927) | func TestIsValidCWE(t *testing.T) { function TestGetReferences (line 2000) | func TestGetReferences(t *testing.T) { FILE: grype/db/v6/build/transformers/openvex/transform.go function AnnotatedTransform (line 20) | func AnnotatedTransform(wrapper unmarshal.AnnotatedOpenVEXVulnerability,... function Transform (line 24) | func Transform(vulnerability unmarshal.OpenVEXVulnerability, state provi... function transform (line 28) | func transform(vulnerability unmarshal.OpenVEXVulnerability, state provi... function getPackageHandles (line 55) | func getPackageHandles(vuln *unmarshal.OpenVEXVulnerability, fixes []unm... function getPackageHandle (line 99) | func getPackageHandle(product *govex.Product, vuln *unmarshal.OpenVEXVul... function getPURL (line 139) | func getPURL(product *govex.Product) (purl *packageurl.PackageURL, err e... function getAliases (line 157) | func getAliases(vuln *unmarshal.OpenVEXVulnerability) []string { function getName (line 165) | func getName(vuln *unmarshal.OpenVEXVulnerability) string { function getReferences (line 169) | func getReferences(vuln *unmarshal.OpenVEXVulnerability) []db.Reference { function getPackageBlob (line 178) | func getPackageBlob(aliases []string, ver string, ty string, fixState db... FILE: grype/db/v6/build/transformers/openvex/transform_test.go function inputProviderState (line 26) | func inputProviderState() provider.State { function TestOpenVEXTransform (line 36) | func TestOpenVEXTransform(t *testing.T) { function Test_GetPackageHandles (line 301) | func Test_GetPackageHandles(t *testing.T) { FILE: grype/db/v6/build/transformers/os/transform.go type advisoryKey (line 27) | type advisoryKey struct function Transform (line 32) | func Transform(vulnerability unmarshal.OSVulnerability, state provider.S... function getAffectedPackages (line 59) | func getAffectedPackages(vuln unmarshal.OSVulnerability) []db.AffectedPa... function getFix (line 106) | func getFix(fixedInEntry unmarshal.OSFixedIn) *db.Fix { function getFixAvailability (line 150) | func getFixAvailability(fixedInEntry unmarshal.OSFixedIn) *db.FixAvailab... function enforceConstraint (line 167) | func enforceConstraint(fixedVersion, vulnerableRange, format, vulnerabil... function deriveConstraintFromFix (line 184) | func deriveConstraintFromFix(fixVersion, vulnerabilityID string) string { type groupIndex (line 205) | type groupIndex struct function groupFixedIns (line 216) | func groupFixedIns(vuln unmarshal.OSVulnerability) map[groupIndex][]unma... function getPackageType (line 241) | func getPackageType(osName string) pkg.Type { function getPackage (line 256) | func getPackage(group groupIndex) *db.Package { type osInfo (line 264) | type osInfo struct function getOSInfo (line 271) | func getOSInfo(group string) osInfo { function normalizeOsName (line 302) | func normalizeOsName(id string) string { function getOperatingSystem (line 313) | func getOperatingSystem(osName, osID, osVersion, channel string) *db.Ope... function getReferences (line 343) | func getReferences(vuln unmarshal.OSVulnerability) []db.Reference { function getAliases (line 373) | func getAliases(vuln unmarshal.OSVulnerability) []string { function getSeverities (line 383) | func getSeverities(vuln unmarshal.OSVulnerability) []db.Severity { FILE: grype/db/v6/build/transformers/os/transform_test.go function inputProviderState (line 25) | func inputProviderState(name string) provider.State { function expectedProvider (line 35) | func expectedProvider(name string) *db.Provider { function TestTransform (line 45) | func TestTransform(t *testing.T) { function TestGetOperatingSystem (line 1222) | func TestGetOperatingSystem(t *testing.T) { function TestGetOSInfo (line 1297) | func TestGetOSInfo(t *testing.T) { function TestGetFixAvailability (line 1386) | func TestGetFixAvailability(t *testing.T) { function TestGetFixWithDetail (line 1451) | func TestGetFixWithDetail(t *testing.T) { function TestGetFixWithDetailFixtures (line 1579) | func TestGetFixWithDetailFixtures(t *testing.T) { function affectedPkgSlice (line 1658) | func affectedPkgSlice(a ...db.AffectedPackageHandle) []any { function loadFixture (line 1666) | func loadFixture(t *testing.T, fixturePath string) []unmarshal.OSVulnera... function timeRef (line 1680) | func timeRef(ti time.Time) *time.Time { function strRef (line 1684) | func strRef(s string) *string { FILE: grype/db/v6/build/transformers/osv/transform.go constant almaLinux (line 25) | almaLinux = "almalinux" function Transform (line 28) | func Transform(vulnerability unmarshal.OSVVulnerability, state provider.... function getAffectedPackages (line 76) | func getAffectedPackages(vuln unmarshal.OSVVulnerability) []db.AffectedP... function getPackageQualifiers (line 119) | func getPackageQualifiers(affected models.Affected, cpes any, withCPE bo... function extractRpmModularity (line 142) | func extractRpmModularity(affected models.Affected) string { function getGrypeRangesFromRange (line 208) | func getGrypeRangesFromRange(r models.Range, ecosystem string) []db.Rang... function normalizeConstraint (line 302) | func normalizeConstraint(constraint string, rangeType string) string { function normalizeFix (line 309) | func normalizeFix(fix string, detail *db.FixDetail) *db.Fix { function normalizeRangeType (line 323) | func normalizeRangeType(t models.RangeType, ecosystem string) string { function getPackage (line 337) | func getPackage(p models.Package) *db.Package { function getPackageTypeFromEcosystem (line 363) | func getPackageTypeFromEcosystem(ecosystem string) pkg.Type { function getReferences (line 382) | func getReferences(vuln unmarshal.OSVVulnerability) []db.Reference { function extractCVSSInfo (line 405) | func extractCVSSInfo(cvss string) (string, string, error) { function normalizeSeverity (line 416) | func normalizeSeverity(severity models.Severity) (db.Severity, error) { function getSeverities (line 439) | func getSeverities(vuln unmarshal.OSVVulnerability) ([]db.Severity, erro... function getOperatingSystemFromEcosystem (line 465) | func getOperatingSystemFromEcosystem(ecosystem string) *db.OperatingSyst... function normalizeOSName (line 514) | func normalizeOSName(osName string) string { function isAdvisoryRecord (line 526) | func isAdvisoryRecord(vuln unmarshal.OSVVulnerability) bool { function getUnaffectedPackages (line 555) | func getUnaffectedPackages(vuln unmarshal.OSVVulnerability) []db.Unaffec... function getUnaffectedBlob (line 578) | func getUnaffectedBlob(aliases []string, ranges []models.Range, affected... function getGrypeUnaffectedRangesFromRange (line 597) | func getGrypeUnaffectedRangesFromRange(r models.Range, ecosystem string)... function extractFixAvailability (line 609) | func extractFixAvailability(r models.Range) map[string]db.FixAvailability { function parseSingleFixEntry (line 640) | func parseSingleFixEntry(fixEntry any, fixByVersion map[string]db.FixAva... function buildUnaffectedRangesFromEvents (line 659) | func buildUnaffectedRangesFromEvents(events []models.Event, fixByVersion... function createUnaffectedRange (line 673) | func createUnaffectedRange(fixedVersion string, fixByVersion map[string]... FILE: grype/db/v6/build/transformers/osv/transform_test.go function inputProviderState (line 26) | func inputProviderState() provider.State { function expectedProvider (line 36) | func expectedProvider() *db.Provider { function timeRef (line 46) | func timeRef(t time.Time) *time.Time { function loadFixture (line 50) | func loadFixture(t *testing.T, fixturePath string) []unmarshal.OSVVulner... function affectedPkgSlice (line 64) | func affectedPkgSlice(a ...db.AffectedPackageHandle) []any { function unaffectedPkgSlice (line 72) | func unaffectedPkgSlice(u ...db.UnaffectedPackageHandle) []any { function TestTransform (line 80) | func TestTransform(t *testing.T) { function Test_getGrypeRangesFromRange (line 308) | func Test_getGrypeRangesFromRange(t *testing.T) { function Test_getPackage (line 477) | func Test_getPackage(t *testing.T) { function Test_extractCVSSInfo (line 536) | func Test_extractCVSSInfo(t *testing.T) { function Test_extractRpmModularity (line 593) | func Test_extractRpmModularity(t *testing.T) { function Test_getPackageQualifiers (line 655) | func Test_getPackageQualifiers(t *testing.T) { function stringRef (line 723) | func stringRef(s string) *string { FILE: grype/db/v6/build/transformers/references.go function DeduplicateReferences (line 7) | func DeduplicateReferences(references []db.Reference) []db.Reference { function refsAreEqual (line 34) | func refsAreEqual(a, b db.Reference) bool { FILE: grype/db/v6/build/writer.go type writer (line 19) | type writer struct method Write (line 81) | func (w *writer) Write(entries ...data.Entry) error { method writeEntry (line 100) | func (w *writer) writeEntry(entry transformers.RelatedEntries) error { method writeRelatedEntry (line 139) | func (w *writer) writeRelatedEntry(vulnHandle *db.VulnerabilityHandle,... method writeAffectedPackage (line 182) | func (w *writer) writeAffectedPackage(vulnHandle *db.VulnerabilityHand... method writeAffectedCPE (line 215) | func (w *writer) writeAffectedCPE(vulnHandle *db.VulnerabilityHandle, ... method writeUnaffectedPackage (line 230) | func (w *writer) writeUnaffectedPackage(vulnHandle *db.VulnerabilityHa... method writeUnaffectedCPE (line 244) | func (w *writer) writeUnaffectedCPE(vulnHandle *db.VulnerabilityHandle... method fillInMissingSeverity (line 261) | func (w *writer) fillInMissingSeverity(handle *db.VulnerabilityHandle) { method addToParentBatch (line 316) | func (w *writer) addToParentBatch(op func() error) error { method addToChildBatch (line 330) | func (w *writer) addToChildBatch(op func() error) error { method flushParentBatch (line 349) | func (w *writer) flushParentBatch() error { method flushParentBatchLocked (line 356) | func (w *writer) flushParentBatchLocked() error { method flushChildBatch (line 376) | func (w *writer) flushChildBatch() error { method flushChildBatchLocked (line 383) | func (w *writer) flushChildBatchLocked() error { method Close (line 402) | func (w *writer) Close() error { method writeOperatingSystemEOL (line 469) | func (w *writer) writeOperatingSystemEOL(row db.OperatingSystemEOLHand... type ProviderMetadata (line 40) | type ProviderMetadata struct type Provider (line 44) | type Provider struct function NewWriter (line 49) | func NewWriter(directory string, states provider.States, failOnMissingFi... function filterUnknownSeverities (line 424) | func filterUnknownSeverities(sevs []db.Severity) []db.Severity { function isKnownSeverity (line 434) | func isKnownSeverity(s db.Severity) bool { function ensureFixDates (line 443) | func ensureFixDates(row *db.AffectedPackageHandle) error { function isFixVersion (line 465) | func isFixVersion(v string) bool { FILE: grype/db/v6/build/writer_test.go function TestFillInMissingSeverity (line 19) | func TestFillInMissingSeverity(t *testing.T) { function TestFilterUnknownSeverities (line 137) | func TestFilterUnknownSeverities(t *testing.T) { function TestIsKnownSeverity (line 196) | func TestIsKnownSeverity(t *testing.T) { function TestEnsureFixDates (line 242) | func TestEnsureFixDates(t *testing.T) { function TestWrite_FailsOnMissingFixDate (line 562) | func TestWrite_FailsOnMissingFixDate(t *testing.T) { function TestIsFixVersion (line 603) | func TestIsFixVersion(t *testing.T) { function TestBatchedWritesEquivalence (line 664) | func TestBatchedWritesEquivalence(t *testing.T) { function TestBatchAccumulation (line 727) | func TestBatchAccumulation(t *testing.T) { function TestBatchMetrics (line 760) | func TestBatchMetrics(t *testing.T) { function TestBatchSizeConfiguration (line 790) | func TestBatchSizeConfiguration(t *testing.T) { function createTestEntries (line 830) | func createTestEntries(count int) []data.Entry { FILE: grype/db/v6/cache.go constant cpesTableCacheKey (line 9) | cpesTableCacheKey = "cpes" constant packagesTableCacheKey (line 10) | packagesTableCacheKey = "packages" constant operatingSystemsTableCacheKey (line 11) | operatingSystemsTableCacheKey = "operating_systems" constant vulnerabilitiesTableCacheKey (line 12) | vulnerabilitiesTableCacheKey = "vulnerabilities" constant cacheKey (line 15) | cacheKey = contextKey("multiModelCache") type contextKey (line 17) | type contextKey type cachable (line 19) | type cachable interface type cacheIDManager (line 24) | type cacheIDManager interface type cacheStringIDManager (line 29) | type cacheStringIDManager interface function withCacheContext (line 34) | func withCacheContext(ctx context.Context, c *cache) context.Context { function cacheFromContext (line 38) | func cacheFromContext(ctx context.Context) (*cache, bool) { type cache (line 43) | type cache struct method getID (line 56) | func (c *cache) getID(ca cachable) (ID, bool) { method getString (line 66) | func (c *cache) getString(ca cachable) (string, bool) { method set (line 76) | func (c *cache) set(ca cachable) { method setStringEntry (line 87) | func (c *cache) setStringEntry(id string, ca cachable) { method setIDEntry (line 101) | func (c *cache) setIDEntry(id ID, ca cachable) { function newCache (line 49) | func newCache() *cache { FILE: grype/db/v6/cache_test.go type mockCachableID (line 10) | type mockCachableID struct method cacheKey (line 16) | func (m *mockCachableID) cacheKey() string { return m.key } method tableName (line 17) | func (m *mockCachableID) tableName() string { return m.table } method rowID (line 18) | func (m *mockCachableID) rowID() ID { return m.id } method setRowID (line 19) | func (m *mockCachableID) setRowID(id ID) { m.id = id } type mockCachableString (line 21) | type mockCachableString struct method cacheKey (line 27) | func (m *mockCachableString) cacheKey() string { return m.key } method tableName (line 28) | func (m *mockCachableString) tableName() string { return m.table } method rowID (line 29) | func (m *mockCachableString) rowID() string { return m.id } method setRowID (line 30) | func (m *mockCachableString) setRowID(id string) { m.id = id } function newTestCachableString (line 32) | func newTestCachableString(key, table, id string) *mockCachableString { function newTestCachableID (line 36) | func newTestCachableID(key, table string, id ID) *mockCachableID { function TestCache_GetString_Found (line 40) | func TestCache_GetString_Found(t *testing.T) { function TestCache_GetString_NotFound (line 51) | func TestCache_GetString_NotFound(t *testing.T) { function TestCache_Set_ID (line 60) | func TestCache_Set_ID(t *testing.T) { function TestCache_Set_String (line 71) | func TestCache_Set_String(t *testing.T) { function TestCache_Set_Panic (line 82) | func TestCache_Set_Panic(t *testing.T) { function TestCache_SetStringEntry_New (line 91) | func TestCache_SetStringEntry_New(t *testing.T) { function TestCache_SetStringEntry_Update (line 102) | func TestCache_SetStringEntry_Update(t *testing.T) { function TestCache_SetIDEntry_New (line 114) | func TestCache_SetIDEntry_New(t *testing.T) { function TestCache_SetIDEntry_Update (line 125) | func TestCache_SetIDEntry_Update(t *testing.T) { function TestWithCacheContext (line 137) | func TestWithCacheContext(t *testing.T) { function TestCacheFromContext_NotFound (line 146) | func TestCacheFromContext_NotFound(t *testing.T) { FILE: grype/db/v6/cpe_store.go type cpeHandleStore (line 14) | type cpeHandleStore interface type cpeHandleAccessor (line 18) | type cpeHandleAccessor interface type GetCPEOptions (line 22) | type GetCPEOptions struct type cpeStore (line 31) | type cpeStore struct method handleCPE (line 195) | func (s *cpeStore) handleCPE(query *gorm.DB, c *cpe.Attributes, allowB... method handleVulnerabilityOptions (line 204) | func (s *cpeStore) handleVulnerabilityOptions(query *gorm.DB, configs ... method handlePreload (line 214) | func (s *cpeStore) handlePreload(query *gorm.DB, config GetCPEOptions)... function newCPEStore (line 36) | func newCPEStore(db *gorm.DB, bs *blobStore) *cpeStore { function addCPEs (line 43) | func addCPEs[T cpeHandleStore](s *cpeStore, packages ...T) error { function addCPEHandles (line 101) | func addCPEHandles[T cpeHandleStore](s *cpeStore, packages ...T) error { function getCPEHandles (line 118) | func getCPEHandles[T cpeHandleStore]( // nolint:funlen FILE: grype/db/v6/data.go function KnownOperatingSystemSpecifierOverrides (line 10) | func KnownOperatingSystemSpecifierOverrides() []OperatingSystemSpecifier... function KnownPackageSpecifierOverrides (line 102) | func KnownPackageSpecifierOverrides() []PackageSpecifierOverride { function ptr (line 160) | func ptr[T any](v T) *T { FILE: grype/db/v6/db.go constant ModelVersion (line 21) | ModelVersion = 6 constant Revision (line 24) | Revision = 1 constant Addition (line 27) | Addition = 4 constant VulnerabilityDBFileName (line 43) | VulnerabilityDBFileName = "vulnerability.db" constant batchSize (line 49) | batchSize = 300 type ReadWriter (line 54) | type ReadWriter interface type Reader (line 59) | type Reader interface type Writer (line 73) | type Writer interface type Curator (line 86) | type Curator interface type Config (line 94) | type Config struct method DBFilePath (line 99) | func (c Config) DBFilePath() string { function NewReader (line 103) | func NewReader(cfg Config) (Reader, error) { function NewWriter (line 107) | func NewWriter(cfg Config) (ReadWriter, error) { function Hydrater (line 111) | func Hydrater() func(string) error { function NewLowLevelDB (line 126) | func NewLowLevelDB(dbFilePath string, empty, writable, debug bool) (*gor... FILE: grype/db/v6/db_metadata_store.go type DBMetadataStoreWriter (line 12) | type DBMetadataStoreWriter interface type DBMetadataStoreReader (line 16) | type DBMetadataStoreReader interface type dbMetadataStore (line 20) | type dbMetadataStore struct method GetDBMetadata (line 30) | func (s *dbMetadataStore) GetDBMetadata() (*DBMetadata, error) { method SetDBMetadata (line 37) | func (s *dbMetadataStore) SetDBMetadata() error { function newDBMetadataStore (line 24) | func newDBMetadataStore(db *gorm.DB) *dbMetadataStore { FILE: grype/db/v6/db_metadata_store_test.go function TestDbMetadataStore_empty (line 11) | func TestDbMetadataStore_empty(t *testing.T) { function TestDbMetadataStore_oldDb (line 22) | func TestDbMetadataStore_oldDb(t *testing.T) { function TestDbMetadataStore (line 33) | func TestDbMetadataStore(t *testing.T) { function setupTestStore (line 58) | func setupTestStore(t testing.TB, d ...string) *store { function setupReadOnlyTestStore (line 80) | func setupReadOnlyTestStore(t testing.TB, dir string) *store { FILE: grype/db/v6/description.go type Description (line 16) | type Description struct method String (line 92) | func (m Description) String() string { type Time (line 24) | type Time struct method MarshalJSON (line 28) | func (t Time) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 32) | func (t *Time) UnmarshalJSON(data []byte) error { method String (line 48) | func (t Time) String() string { function DescriptionFromMetadata (line 52) | func DescriptionFromMetadata(m *DBMetadata) *Description { function ReadDescription (line 62) | func ReadDescription(dbFilePath string) (*Description, error) { FILE: grype/db/v6/description_test.go function TestReadDescription (line 15) | func TestReadDescription(t *testing.T) { function TestTime_JSONMarshalling (line 37) | func TestTime_JSONMarshalling(t *testing.T) { function TestTime_JSONUnmarshalling (line 64) | func TestTime_JSONUnmarshalling(t *testing.T) { FILE: grype/db/v6/distribution/client.go type Config (line 25) | type Config struct type Client (line 40) | type Client interface type client (line 47) | type client struct method IsUpdateAvailable (line 85) | func (c client) IsUpdateAvailable(current *v6.Description) (*Archive, ... method isUpdateAvailable (line 107) | func (c client) isUpdateAvailable(current *v6.Description, candidate *... method ResolveArchiveURL (line 130) | func (c client) ResolveArchiveURL(archive Archive) (string, error) { method Download (line 150) | func (c client) Download(archiveURL, dest string, downloadProgress *pr... method Latest (line 174) | func (c client) Latest() (*LatestDocument, error) { method latestURL (line 195) | func (c client) latestURL() string { function DefaultConfig (line 54) | func DefaultConfig() Config { function NewClient (line 63) | func NewClient(cfg Config) (Client, error) { function withClientTimeout (line 205) | func withClientTimeout(timeout time.Duration) func(*http.Client) { function withUserAgent (line 211) | func withUserAgent(id clio.Identification) func(*http.Client) { function defaultHTTPClient (line 217) | func defaultHTTPClient(fs afero.Fs, caCertPath string, postProcessor ...... function removeAllOrLog (line 242) | func removeAllOrLog(fs afero.Fs, dir string) { function isSupersededBy (line 248) | func isSupersededBy(current *v6.Description, candidate v6.Description) b... function newHTTPClientWithDefaultUserAgent (line 281) | func newHTTPClientWithDefaultUserAgent(baseTransport http.RoundTripper, ... type roundTripperWithUserAgent (line 290) | type roundTripperWithUserAgent struct method RoundTrip (line 295) | func (r roundTripperWithUserAgent) RoundTrip(req *http.Request) (*http... FILE: grype/db/v6/distribution/client_test.go type mockGetter (line 20) | type mockGetter struct method GetFile (line 24) | func (m *mockGetter) GetFile(dst, src string, manuals ...*progress.Man... method GetToDir (line 29) | func (m *mockGetter) GetToDir(dst, src string, manuals ...*progress.Ma... function TestClient_Latest (line 34) | func TestClient_Latest(t *testing.T) { function TestClient_Download (line 132) | func TestClient_Download(t *testing.T) { function TestClient_IsUpdateAvailable (line 188) | func TestClient_IsUpdateAvailable(t *testing.T) { function TestDatabaseDescription_IsSupersededBy (line 304) | func TestDatabaseDescription_IsSupersededBy(t *testing.T) { function Test_latestURL (line 380) | func Test_latestURL(t *testing.T) { FILE: grype/db/v6/distribution/latest.go constant LatestFileName (line 19) | LatestFileName = "latest.json" type LatestDocument (line 21) | type LatestDocument struct method Write (line 103) | func (l LatestDocument) Write(writer io.Writer) error { type Archive (line 29) | type Archive struct function NewLatestDocument (line 41) | func NewLatestDocument(entries ...Archive) *LatestDocument { function NewLatestFromReader (line 64) | func NewLatestFromReader(reader io.Reader) (*LatestDocument, error) { function NewLatestFromFile (line 77) | func NewLatestFromFile(fs afero.Fs, path string) (*LatestDocument, error) { function NewArchive (line 86) | func NewArchive(path string, t time.Time, model, revision, addition int)... function calculateArchiveDigest (line 133) | func calculateArchiveDigest(dbFilePath string) (string, error) { FILE: grype/db/v6/distribution/latest_test.go function TestNewLatestDocument (line 19) | func TestNewLatestDocument(t *testing.T) { function TestNewLatestFromReader (line 66) | func TestNewLatestFromReader(t *testing.T) { function TestLatestDocument_Write (line 104) | func TestLatestDocument_Write(t *testing.T) { function TestNewArchive (line 237) | func TestNewArchive(t *testing.T) { FILE: grype/db/v6/distribution/status.go type Status (line 3) | type Status constant LifecycleStatus (line 5) | LifecycleStatus = StatusActive constant StatusActive (line 9) | StatusActive Status = "active" constant StatusDeprecated (line 12) | StatusDeprecated Status = "deprecated" constant StatusEndOfLife (line 15) | StatusEndOfLife Status = "eol" FILE: grype/db/v6/enumerations.go type VulnerabilityStatus (line 7) | type VulnerabilityStatus constant UnknownVulnerabilityStatus (line 10) | UnknownVulnerabilityStatus VulnerabilityStatus = "" constant VulnerabilityActive (line 13) | VulnerabilityActive VulnerabilityStatus = "active" constant VulnerabilityAnalyzing (line 16) | VulnerabilityAnalyzing VulnerabilityStatus = "analyzing" constant VulnerabilityRejected (line 19) | VulnerabilityRejected VulnerabilityStatus = "rejected" constant VulnerabilityDisputed (line 22) | VulnerabilityDisputed VulnerabilityStatus = "disputed" type SeverityScheme (line 26) | type SeverityScheme constant UnknownSeverityScheme (line 29) | UnknownSeverityScheme SeverityScheme = "" constant SeveritySchemeCVSS (line 32) | SeveritySchemeCVSS SeverityScheme = "CVSS" constant SeveritySchemeHML (line 35) | SeveritySchemeHML SeverityScheme = "HML" constant SeveritySchemeCHML (line 38) | SeveritySchemeCHML SeverityScheme = "CHML" constant SeveritySchemeCHMLN (line 41) | SeveritySchemeCHMLN SeverityScheme = "CHMLN" type FixStatus (line 45) | type FixStatus constant UnknownFixStatus (line 48) | UnknownFixStatus FixStatus = "" constant FixedStatus (line 51) | FixedStatus FixStatus = "fixed" constant NotFixedStatus (line 54) | NotFixedStatus FixStatus = "not-fixed" constant WontFixStatus (line 57) | WontFixStatus FixStatus = "wont-fix" constant NotAffectedFixStatus (line 60) | NotAffectedFixStatus FixStatus = "not-affected" constant AdvisoryReferenceTag (line 65) | AdvisoryReferenceTag = "advisory" function ParseVulnerabilityStatus (line 68) | func ParseVulnerabilityStatus(s string) VulnerabilityStatus { function ParseSeverityScheme (line 83) | func ParseSeverityScheme(s string) SeverityScheme { function ParseFixStatus (line 98) | func ParseFixStatus(s string) FixStatus { function NormalizeReferenceTags (line 113) | func NormalizeReferenceTags(tags []string) []string { function replaceAny (line 121) | func replaceAny(input string, newStr string, searchFor ...string) string { FILE: grype/db/v6/enumerations_test.go function TestParseVulnerabilityStatus (line 9) | func TestParseVulnerabilityStatus(t *testing.T) { function TestParseSeverityScheme (line 30) | func TestParseSeverityScheme(t *testing.T) { function TestParseFixStatus (line 50) | func TestParseFixStatus(t *testing.T) { function TestReplaceAny (line 70) | func TestReplaceAny(t *testing.T) { FILE: grype/db/v6/fillers.go function fillAffectedPackageHandles (line 8) | func fillAffectedPackageHandles(reader Reader, handles []*AffectedPackag... function affectedPackageHandleOperatingSystemRef (line 17) | func affectedPackageHandleOperatingSystemRef(t *AffectedPackageHandle) i... function affectedPackageHandlePackageRef (line 24) | func affectedPackageHandlePackageRef(t *AffectedPackageHandle) idRef[Pac... function affectedPackageHandleVulnerabilityHandleRef (line 31) | func affectedPackageHandleVulnerabilityHandleRef(t *AffectedPackageHandl... function fillAffectedCPEHandles (line 39) | func fillAffectedCPEHandles(reader Reader, handles []*AffectedCPEHandle)... function affectedCPEHandleCpeRef (line 47) | func affectedCPEHandleCpeRef(t *AffectedCPEHandle) idRef[Cpe] { function affectedCPEHandleVulnerabilityHandleRef (line 54) | func affectedCPEHandleVulnerabilityHandleRef(t *AffectedCPEHandle) idRef... function fillUnaffectedPackageHandles (line 62) | func fillUnaffectedPackageHandles(reader Reader, handles []*UnaffectedPa... function unaffectedPackageHandleOperatingSystemRef (line 71) | func unaffectedPackageHandleOperatingSystemRef(t *UnaffectedPackageHandl... function unaffectedPackageHandlePackageRef (line 78) | func unaffectedPackageHandlePackageRef(t *UnaffectedPackageHandle) idRef... function unaffectedPackageHandleVulnerabilityHandleRef (line 85) | func unaffectedPackageHandleVulnerabilityHandleRef(t *UnaffectedPackageH... function fillUnaffectedCPEHandles (line 93) | func fillUnaffectedCPEHandles(reader Reader, handles []*UnaffectedCPEHan... function unaffectedCPEHandleCpeRef (line 101) | func unaffectedCPEHandleCpeRef(t *UnaffectedCPEHandle) idRef[Cpe] { function unaffectedCPEHandleVulnerabilityHandleRef (line 108) | func unaffectedCPEHandleVulnerabilityHandleRef(t *UnaffectedCPEHandle) i... function fillVulnerabilityHandles (line 116) | func fillVulnerabilityHandles[T any](reader Reader, handles []*T, vulnHa... function vulnerabilityHandleID (line 137) | func vulnerabilityHandleID(h *VulnerabilityHandle) ID { function cpeHandleID (line 141) | func cpeHandleID(h *Cpe) ID { function operatingSystemID (line 145) | func operatingSystemID(h *OperatingSystem) ID { function packageID (line 149) | func packageID(h *Package) ID { function toBlobables (line 153) | func toBlobables[T blobable](handles []T) []blobable { FILE: grype/db/v6/import_metadata.go constant ImportMetadataFileName (line 18) | ImportMetadataFileName = "import.json" type ImportMetadata (line 20) | type ImportMetadata struct function ReadImportMetadata (line 26) | func ReadImportMetadata(fs afero.Fs, dir string) (*ImportMetadata, error) { function CalculateDBDigest (line 54) | func CalculateDBDigest(fs afero.Fs, dbFilePath string) (string, error) { function WriteImportMetadata (line 62) | func WriteImportMetadata(fs afero.Fs, dbDir, source string) (*ImportMeta... function writeImportMetadata (line 78) | func writeImportMetadata(writer io.Writer, checksums, source string) (*I... FILE: grype/db/v6/import_metadata_test.go function TestReadImportMetadata (line 17) | func TestReadImportMetadata(t *testing.T) { function TestWriteImportMetadata (line 82) | func TestWriteImportMetadata(t *testing.T) { function TestCalculateDBDigest (line 131) | func TestCalculateDBDigest(t *testing.T) { FILE: grype/db/v6/installation/curator.go constant lastUpdateCheckFileName (line 33) | lastUpdateCheckFileName = "last_update_check" type monitor (line 35) | type monitor struct method SetCompleted (line 701) | func (m monitor) SetCompleted() { type Config (line 42) | type Config struct method DBFilePath (line 63) | func (c Config) DBFilePath() string { method DBDirectoryPath (line 67) | func (c Config) DBDirectoryPath() string { function DefaultConfig (line 53) | func DefaultConfig(id clio.Identification) Config { type curator (line 71) | type curator struct method Reader (line 87) | func (c curator) Reader() (db.Reader, error) { method Status (line 160) | func (c curator) Status() vulnerability.ProviderStatus { method Delete (line 203) | func (c curator) Delete() error { method Update (line 208) | func (c curator) Update() (bool, error) { method isUpdateCheckAllowed (line 259) | func (c curator) isUpdateCheckAllowed() bool { method update (line 279) | func (c curator) update(current *db.Description) (*distribution.Archiv... method durationSinceUpdateCheck (line 374) | func (c curator) durationSinceUpdateCheck() (*time.Duration, error) { method setLastSuccessfulUpdateCheck (line 411) | func (c curator) setLastSuccessfulUpdateCheck() { method Import (line 428) | func (c curator) Import(reference string) error { method activate (line 494) | func (c curator) activate(dbDirPath, url string, mon monitor) error { method hydrate (line 511) | func (c curator) hydrate(dbDirPath, from string, mon monitor) error { method replaceDB (line 533) | func (c curator) replaceDB(dbDirPath string) error { method validateIntegrity (line 561) | func (c curator) validateIntegrity(description *db.Description) (strin... method validateAge (line 598) | func (c curator) validateAge(m *db.Description) error { function NewCurator (line 78) | func NewCurator(cfg Config, downloader distribution.Client) (db.Curator,... function isRehydrationNeeded (line 337) | func isRehydrationNeeded(fs afero.Fs, dirPath string, currentDBVersion *... function isURL (line 489) | func isURL(reference string) bool { function removeAllOrLog (line 619) | func removeAllOrLog(fs afero.Fs, dir string) { function unarchive (line 625) | func unarchive(source, destination string) error { function newMonitor (line 674) | func newMonitor() monitor { type completionMonitor (line 708) | type completionMonitor struct method SetCompleted (line 712) | func (m completionMonitor) SetCompleted() { FILE: grype/db/v6/installation/curator_test.go type mockClient (line 24) | type mockClient struct method IsUpdateAvailable (line 28) | func (m *mockClient) IsUpdateAvailable(current *db.Description) (*dist... method ResolveArchiveURL (line 40) | func (m *mockClient) ResolveArchiveURL(_ distribution.Archive) (string... method Download (line 44) | func (m *mockClient) Download(url, dest string, downloadProgress *prog... method Latest (line 49) | func (m *mockClient) Latest() (*distribution.LatestDocument, error) { function newTestCurator (line 54) | func newTestCurator(t *testing.T) curator { type setupConfig (line 66) | type setupConfig struct type setupOption (line 70) | type setupOption function withWorkingUpdateIntegrations (line 72) | func withWorkingUpdateIntegrations() setupOption { function setupCuratorForUpdate (line 78) | func setupCuratorForUpdate(t *testing.T, opts ...setupOption) curator { function writeTestDescriptionToDB (line 117) | func writeTestDescriptionToDB(t *testing.T, dir string, desc db.Descript... function writeTestImportMetadata (line 149) | func writeTestImportMetadata(t *testing.T, fs afero.Fs, dir string, chec... function writeTestImportMetadataWithCustomVersion (line 153) | func writeTestImportMetadataWithCustomVersion(t *testing.T, fs afero.Fs,... function writeTestDB (line 172) | func writeTestDB(t *testing.T, fs afero.Fs, dir string) string { function TestCurator_Update (line 190) | func TestCurator_Update(t *testing.T) { function TestCurator_IsUpdateCheckAllowed (line 262) | func TestCurator_IsUpdateCheckAllowed(t *testing.T) { function TestCurator_DurationSinceUpdateCheck (line 320) | func TestCurator_DurationSinceUpdateCheck(t *testing.T) { function TestCurator_SetLastSuccessfulUpdateCheck (line 368) | func TestCurator_SetLastSuccessfulUpdateCheck(t *testing.T) { function TestCurator_validateAge (line 419) | func TestCurator_validateAge(t *testing.T) { function TestCurator_validateIntegrity (line 502) | func TestCurator_validateIntegrity(t *testing.T) { function TestReplaceDB (line 575) | func TestReplaceDB(t *testing.T) { function Test_isRehydrationNeeded (line 682) | func Test_isRehydrationNeeded(t *testing.T) { function TestCurator_Update_UsesDBRootDirForDownloadTempBase (line 772) | func TestCurator_Update_UsesDBRootDirForDownloadTempBase(t *testing.T) { function TestCurator_Update_CleansUpDownloadDirOnActivationFailure (line 819) | func TestCurator_Update_CleansUpDownloadDirOnActivationFailure(t *testin... function TestCurator_Import_URL_UsesDBRootDirForDownloadTempBaseAndCleansUp (line 860) | func TestCurator_Import_URL_UsesDBRootDirForDownloadTempBaseAndCleansUp(... function Test_unarchive (line 919) | func Test_unarchive(t *testing.T) { function setupTestDB (line 949) | func setupTestDB(t *testing.T, dbDir string) db.ReadWriter { function setupReadOnlyTestDB (line 958) | func setupReadOnlyTestDB(t *testing.T, dbDir string) db.Reader { function testConfig (line 967) | func testConfig() Config { FILE: grype/db/v6/log_dropped.go function logDroppedVulnerability (line 12) | func logDroppedVulnerability(vuln string, reason any, fields logger.Fiel... FILE: grype/db/v6/models.go function Models (line 33) | func Models() []any { type ID (line 69) | type ID type Blob (line 73) | type Blob struct method computeDigest (line 78) | func (b Blob) computeDigest() string { type DBMetadata (line 89) | type DBMetadata struct function newSchemaVerFromDBMetadata (line 96) | func newSchemaVerFromDBMetadata(m DBMetadata) schemaver.SchemaVer { type Provider (line 105) | type Provider struct method String (line 122) | func (p *Provider) String() string { method cacheKey (line 133) | func (p *Provider) cacheKey() string { method tableName (line 137) | func (p *Provider) tableName() string { method rowID (line 141) | func (p *Provider) rowID() string { method setRowID (line 145) | func (p *Provider) setRowID(i string) { method BeforeCreate (line 149) | func (p *Provider) BeforeCreate(tx *gorm.DB) (err error) { method AfterCreate (line 159) | func (p *Provider) AfterCreate(tx *gorm.DB) (err error) { type VulnerabilityHandle (line 170) | type VulnerabilityHandle struct method String (line 195) | func (v VulnerabilityHandle) String() string { method getBlobValue (line 199) | func (v VulnerabilityHandle) getBlobValue() any { method setBlobID (line 206) | func (v *VulnerabilityHandle) setBlobID(id ID) { method getBlobID (line 210) | func (v VulnerabilityHandle) getBlobID() ID { method setBlob (line 214) | func (v *VulnerabilityHandle) setBlob(rawBlobValue []byte) error { method cacheKey (line 224) | func (v *VulnerabilityHandle) cacheKey() string { method rowID (line 232) | func (v *VulnerabilityHandle) rowID() ID { method tableName (line 236) | func (v *VulnerabilityHandle) tableName() string { method setRowID (line 240) | func (v *VulnerabilityHandle) setRowID(i ID) { method BeforeCreate (line 244) | func (v *VulnerabilityHandle) BeforeCreate(tx *gorm.DB) (err error) { method AfterCreate (line 256) | func (v *VulnerabilityHandle) AfterCreate(tx *gorm.DB) (err error) { type VulnerabilityAlias (line 263) | type VulnerabilityAlias struct type packageHandle (line 275) | type packageHandle struct method vulnerability (line 290) | func (ph packageHandle) vulnerability() string { method String (line 302) | func (ph packageHandle) String() string { method getBlobValue (line 332) | func (ph packageHandle) getBlobValue() any { method setBlobID (line 339) | func (ph *packageHandle) setBlobID(id ID) { method getBlobID (line 343) | func (ph packageHandle) getBlobID() ID { method setBlob (line 347) | func (ph *packageHandle) setBlob(rawBlobValue []byte) error { type AffectedPackageHandle (line 364) | type AffectedPackageHandle method getPackageHandle (line 366) | func (ph *AffectedPackageHandle) getPackageHandle() *packageHandle { method vulnerability (line 370) | func (ph AffectedPackageHandle) vulnerability() string { // nolint:unu... method String (line 374) | func (ph AffectedPackageHandle) String() string { method getBlobValue (line 378) | func (ph AffectedPackageHandle) getBlobValue() any { method setBlobID (line 382) | func (ph *AffectedPackageHandle) setBlobID(id ID) { method getBlobID (line 386) | func (ph AffectedPackageHandle) getBlobID() ID { method setBlob (line 390) | func (ph *AffectedPackageHandle) setBlob(rawBlobValue []byte) error { type UnaffectedPackageHandle (line 395) | type UnaffectedPackageHandle method getPackageHandle (line 397) | func (ph *UnaffectedPackageHandle) getPackageHandle() *packageHandle { method vulnerability (line 401) | func (ph UnaffectedPackageHandle) vulnerability() string { // nolint:u... method String (line 405) | func (ph UnaffectedPackageHandle) String() string { method getBlobValue (line 409) | func (ph UnaffectedPackageHandle) getBlobValue() any { method setBlobID (line 413) | func (ph *UnaffectedPackageHandle) setBlobID(id ID) { method getBlobID (line 417) | func (ph UnaffectedPackageHandle) getBlobID() ID { method setBlob (line 421) | func (ph *UnaffectedPackageHandle) setBlob(rawBlobValue []byte) error { type Package (line 426) | type Package struct method String (line 439) | func (p Package) String() string { method cacheKey (line 456) | func (p Package) cacheKey() string { method rowID (line 465) | func (p Package) rowID() ID { method tableName (line 469) | func (p *Package) tableName() string { method setRowID (line 473) | func (p *Package) setRowID(i ID) { method BeforeCreate (line 477) | func (p *Package) BeforeCreate(tx *gorm.DB) (err error) { // nolint:go... method AfterCreate (line 517) | func (p *Package) AfterCreate(tx *gorm.DB) (err error) { type PackageSpecifierOverride (line 528) | type PackageSpecifierOverride struct type OperatingSystem (line 539) | type OperatingSystem struct method VersionNumber (line 569) | func (o *OperatingSystem) VersionNumber() string { method Version (line 579) | func (o *OperatingSystem) Version() string { method String (line 603) | func (o OperatingSystem) String() string { method cacheKey (line 607) | func (o OperatingSystem) cacheKey() string { method rowID (line 611) | func (o OperatingSystem) rowID() ID { method tableName (line 615) | func (o *OperatingSystem) tableName() string { method setRowID (line 619) | func (o *OperatingSystem) setRowID(i ID) { method clean (line 623) | func (o *OperatingSystem) clean() { method BeforeCreate (line 628) | func (o *OperatingSystem) BeforeCreate(tx *gorm.DB) (err error) { method AfterCreate (line 641) | func (o *OperatingSystem) AfterCreate(tx *gorm.DB) (err error) { type OperatingSystemSpecifierOverride (line 649) | type OperatingSystemSpecifierOverride struct method BeforeCreate (line 678) | func (os *OperatingSystemSpecifierOverride) BeforeCreate(_ *gorm.DB) (... type cpeHandle (line 690) | type cpeHandle struct method vulnerability (line 702) | func (ch cpeHandle) vulnerability() string { method String (line 714) | func (ch cpeHandle) String() string { method getBlobID (line 739) | func (ch cpeHandle) getBlobID() ID { method getBlobValue (line 743) | func (ch cpeHandle) getBlobValue() any { method setBlobID (line 750) | func (ch *cpeHandle) setBlobID(id ID) { method setBlob (line 754) | func (ch *cpeHandle) setBlob(rawBlobValue []byte) error { type AffectedCPEHandle (line 770) | type AffectedCPEHandle method getCPEHandle (line 772) | func (ch *AffectedCPEHandle) getCPEHandle() *cpeHandle { method vulnerability (line 776) | func (ch AffectedCPEHandle) vulnerability() string { method String (line 780) | func (ch AffectedCPEHandle) String() string { method getBlobID (line 784) | func (ch AffectedCPEHandle) getBlobID() ID { method getBlobValue (line 788) | func (ch AffectedCPEHandle) getBlobValue() any { method setBlobID (line 792) | func (ch *AffectedCPEHandle) setBlobID(id ID) { method setBlob (line 796) | func (ch *AffectedCPEHandle) setBlob(rawBlobValue []byte) error { type UnaffectedCPEHandle (line 800) | type UnaffectedCPEHandle method getCPEHandle (line 802) | func (ch *UnaffectedCPEHandle) getCPEHandle() *cpeHandle { method vulnerability (line 806) | func (ch UnaffectedCPEHandle) vulnerability() string { // nolint:unuse... method String (line 810) | func (ch UnaffectedCPEHandle) String() string { method getBlobID (line 814) | func (ch UnaffectedCPEHandle) getBlobID() ID { method getBlobValue (line 818) | func (ch UnaffectedCPEHandle) getBlobValue() any { method setBlobID (line 822) | func (ch *UnaffectedCPEHandle) setBlobID(id ID) { method setBlob (line 826) | func (ch *UnaffectedCPEHandle) setBlob(rawBlobValue []byte) error { type Cpe (line 830) | type Cpe struct method String (line 847) | func (c Cpe) String() string { method cacheKey (line 857) | func (c *Cpe) cacheKey() string { method tableName (line 861) | func (c *Cpe) tableName() string { method rowID (line 865) | func (c *Cpe) rowID() ID { method setRowID (line 869) | func (c *Cpe) setRowID(i ID) { method BeforeCreate (line 873) | func (c *Cpe) BeforeCreate(tx *gorm.DB) (err error) { method AfterCreate (line 891) | func (c *Cpe) AfterCreate(tx *gorm.DB) (err error) { type PackageCpe (line 899) | type PackageCpe struct method TableName (line 904) | func (PackageCpe) TableName() string { type KnownExploitedVulnerabilityHandle (line 910) | type KnownExploitedVulnerabilityHandle struct method getBlobValue (line 919) | func (v KnownExploitedVulnerabilityHandle) getBlobValue() any { method setBlobID (line 926) | func (v *KnownExploitedVulnerabilityHandle) setBlobID(id ID) { method getBlobID (line 930) | func (v KnownExploitedVulnerabilityHandle) getBlobID() ID { method setBlob (line 934) | func (v *KnownExploitedVulnerabilityHandle) setBlob(rawBlobValue []byt... type EpssMetadata (line 944) | type EpssMetadata struct type EpssHandle (line 948) | type EpssHandle struct type CWEHandle (line 957) | type CWEHandle struct method String (line 965) | func (c CWEHandle) String() string { type OperatingSystemEOLHandle (line 971) | type OperatingSystemEOLHandle struct method String (line 980) | func (o OperatingSystemEOLHandle) String() string { FILE: grype/db/v6/models_test.go function TestOperatingSystemAlias_VersionMutualExclusivity (line 11) | func TestOperatingSystemAlias_VersionMutualExclusivity(t *testing.T) { function TestOperatingSystem_VersionNumber (line 61) | func TestOperatingSystem_VersionNumber(t *testing.T) { function TestOperatingSystem_Version (line 91) | func TestOperatingSystem_Version(t *testing.T) { function TestOperatingSystem_clean (line 136) | func TestOperatingSystem_clean(t *testing.T) { FILE: grype/db/v6/name/java.go type JavaResolver (line 12) | type JavaResolver struct method Normalize (line 15) | func (r *JavaResolver) Normalize(name string) string { method Names (line 19) | func (r *JavaResolver) Names(p grypePkg.Package) []string { FILE: grype/db/v6/name/java_test.go function TestJavaResolver_Normalize (line 12) | func TestJavaResolver_Normalize(t *testing.T) { function TestJavaResolver_Names (line 50) | func TestJavaResolver_Names(t *testing.T) { FILE: grype/db/v6/name/python.go type PythonResolver (line 9) | type PythonResolver struct method Normalize (line 12) | func (r *PythonResolver) Normalize(name string) string { method Names (line 21) | func (r *PythonResolver) Names(p grypePkg.Package) []string { FILE: grype/db/v6/name/python_test.go function TestPythonResolver_Normalize (line 9) | func TestPythonResolver_Normalize(t *testing.T) { FILE: grype/db/v6/name/resolver.go type Resolver (line 8) | type Resolver interface function FromType (line 13) | func FromType(t syftPkg.Type) Resolver { function PackageNames (line 24) | func PackageNames(p grypePkg.Package) []string { function Normalize (line 38) | func Normalize(name string, pkgType syftPkg.Type) string { FILE: grype/db/v6/operating_system_store.go type OSSpecifiers (line 16) | type OSSpecifiers method String (line 93) | func (d OSSpecifiers) String() string { method IsAny (line 104) | func (d OSSpecifiers) IsAny() bool { type OSSpecifier (line 19) | type OSSpecifier struct method clean (line 47) | func (d *OSSpecifier) clean() { method String (line 52) | func (d *OSSpecifier) String() string { method version (line 79) | func (d OSSpecifier) version() string { method matchesVersionPattern (line 114) | func (d OSSpecifier) matchesVersionPattern(pattern string) bool { type OperatingSystemStoreReader (line 132) | type OperatingSystemStoreReader interface type OperatingSystemStoreWriter (line 136) | type OperatingSystemStoreWriter interface type operatingSystemStore (line 142) | type operatingSystemStore struct method addOsFromPackages (line 156) | func (s *operatingSystemStore) addOsFromPackages(packages ...*packageH... method GetOperatingSystems (line 211) | func (s *operatingSystemStore) GetOperatingSystems(d OSSpecifier) ([]O... method applyOSAlias (line 235) | func (s *operatingSystemStore) applyOSAlias(d *OSSpecifier) error { method prepareQuery (line 338) | func (s *operatingSystemStore) prepareQuery(d OSSpecifier) *gorm.DB { method searchForOSExactVersions (line 358) | func (s *operatingSystemStore) searchForOSExactVersions(query *gorm.DB... method UpdateOperatingSystemEOL (line 425) | func (s *operatingSystemStore) UpdateOperatingSystemEOL(spec OSSpecifi... function newOperatingSystemStore (line 148) | func newOperatingSystemStore(db *gorm.DB, bs *blobStore) *operatingSyste... function applyOSSpecifierOverrides (line 252) | func applyOSSpecifierOverrides(d *OSSpecifier, overrides []OperatingSyst... function applyOverride (line 283) | func applyOverride(d *OSSpecifier, override OperatingSystemSpecifierOver... function canUseOverride (line 318) | func canUseOverride(override OperatingSystemSpecifierOverride, clientVer... function trimZeroes (line 461) | func trimZeroes(s string) string { FILE: grype/db/v6/operating_system_store_test.go function TestOperatingSystemStore_ResolveOperatingSystem (line 14) | func TestOperatingSystemStore_ResolveOperatingSystem(t *testing.T) { function TestOSSpecifier_String (line 384) | func TestOSSpecifier_String(t *testing.T) { function TestTrimZeroes (line 461) | func TestTrimZeroes(t *testing.T) { function TestOSSpecifier_clean (line 542) | func TestOSSpecifier_clean(t *testing.T) { function TestApplyOverride (line 586) | func TestApplyOverride(t *testing.T) { function TestApplyOSSpecifierOverrides (line 760) | func TestApplyOSSpecifierOverrides(t *testing.T) { function strPtr (line 957) | func strPtr(s string) *string { FILE: grype/db/v6/package_store.go constant anyPkg (line 18) | anyPkg = "any" constant anyOS (line 19) | anyOS = "any" type GetPackageOptions (line 29) | type GetPackageOptions struct type PackageSpecifiers (line 41) | type PackageSpecifiers method String (line 74) | func (p PackageSpecifiers) String() string { type PackageSpecifier (line 43) | type PackageSpecifier struct method String (line 49) | func (p *PackageSpecifier) String() string { type packageHandleStore (line 86) | type packageHandleStore interface type packageHandleAccessor (line 90) | type packageHandleAccessor interface type packageStore (line 94) | type packageStore struct method handlePackage (line 291) | func (s *packageStore) handlePackage(query *gorm.DB, p *PackageSpecifi... method handleVulnerabilityOptions (line 320) | func (s *packageStore) handleVulnerabilityOptions(query *gorm.DB, conf... method handleOSOptions (line 329) | func (s *packageStore) handleOSOptions(query *gorm.DB, configs []*OSSp... method applyPackageAlias (line 379) | func (s *packageStore) applyPackageAlias(d *PackageSpecifier) error { method handlePreload (line 416) | func (s *packageStore) handlePreload(query *gorm.DB, config GetPackage... function newPackageStore (line 100) | func newPackageStore(db *gorm.DB, bs *blobStore, oss *operatingSystemSto... function addPackages (line 108) | func addPackages[T packageHandleStore](s *packageStore, packages ...T) (... function addPackagesWithOS (line 179) | func addPackagesWithOS[T packageHandleStore](s *packageStore, packages .... function getPackages (line 209) | func getPackages[T packageHandleStore]( //nolint:funlen function handleCPEOptions (line 444) | func handleCPEOptions(query *gorm.DB, c *cpe.Attributes, allowBroad bool... function queryCPEAttributeScope (line 457) | func queryCPEAttributeScope(query *gorm.DB, value string, dbColumn strin... function hasOSSpecified (line 479) | func hasOSSpecified(d *OSSpecifier) bool { FILE: grype/db/v6/provider_store.go type ProviderStoreReader (line 12) | type ProviderStoreReader interface type ProviderStoreWriter (line 18) | type ProviderStoreWriter interface type providerStore (line 22) | type providerStore struct method AddProvider (line 32) | func (s *providerStore) AddProvider(p Provider) error { method GetProvider (line 41) | func (s *providerStore) GetProvider(name string) (*Provider, error) { method AllProviders (line 53) | func (s *providerStore) AllProviders() ([]Provider, error) { method fillProviders (line 69) | func (s *providerStore) fillProviders(handles []ref[string, Provider])... function newProviderStore (line 26) | func newProviderStore(db *gorm.DB) *providerStore { FILE: grype/db/v6/provider_store_test.go function TestProviderStore (line 12) | func TestProviderStore(t *testing.T) { function TestProviderStore_GetProvider (line 76) | func TestProviderStore_GetProvider(t *testing.T) { FILE: grype/db/v6/refs.go type ref (line 9) | type ref struct type idRef (line 14) | type idRef type refProvider (line 16) | type refProvider type idProvider (line 18) | type idProvider function fillRefs (line 20) | func fillRefs[T, R any](reader Reader, handles []*T, getRef refProvider[... function ptrs (line 68) | func ptrs[T any](values []T) []*T { type lowLevelReader (line 79) | type lowLevelReader interface FILE: grype/db/v6/schema/main.go function main (line 23) | func main() { function generateSQLSchema (line 45) | func generateSQLSchema(version string) error { function normalizeCreateTable (line 93) | func normalizeCreateTable(stmt string) string { function querySchemaSorted (line 134) | func querySchemaSorted(db *sql.DB, objectType string) ([]string, error) { function generateBlobSchema (line 174) | func generateBlobSchema(version string, comments map[string]map[string]s... function buildUnifiedBlobSchema (line 181) | func buildUnifiedBlobSchema(version string, comments map[string]map[stri... function mergeDefinitions (line 218) | func mergeDefinitions(target, source map[string]*jsonschema.Schema) { function applyComments (line 224) | func applyComments(definitions map[string]*jsonschema.Schema, comments m... function encode (line 256) | func encode(schema *jsonschema.Schema) []byte { function writeFile (line 270) | func writeFile(content, component, version, extension string) error { function parseCommentsFromPackages (line 331) | func parseCommentsFromPackages(pkgPatterns []string) map[string]map[stri... function parseFileComments (line 356) | func parseFileComments(node *ast.File) map[string]map[string]string { function cleanComment (line 410) | func cleanComment(comment string) string { function getJSONTag (line 420) | func getJSONTag(field *ast.Field) string { function repoRoot (line 432) | func repoRoot() string { FILE: grype/db/v6/search_query.go type searchQuery (line 14) | type searchQuery struct function newSearchQuery (line 24) | func newSearchQuery(criteriaSet []vulnerability.Criteria) (*searchQuery,... type searchQueryBuilder (line 36) | type searchQueryBuilder struct method ApplyCriteria (line 50) | func (b *searchQueryBuilder) ApplyCriteria(criteriaSet []vulnerability... method handlePackageName (line 84) | func (b *searchQueryBuilder) handlePackageName(c *search.PackageNameCr... method handleUnaffected (line 91) | func (b *searchQueryBuilder) handleUnaffected(_ *search.UnaffectedCrit... method handleEcosystem (line 95) | func (b *searchQueryBuilder) handleEcosystem(c *search.EcosystemCriter... method handleID (line 116) | func (b *searchQueryBuilder) handleID(c *search.IDCriteria) { method handleCPE (line 122) | func (b *searchQueryBuilder) handleCPE(c *search.CPECriteria) error { method handleDistro (line 140) | func (b *searchQueryBuilder) handleDistro(c *search.DistroCriteria) { method setDefaultOS (line 173) | func (b *searchQueryBuilder) setDefaultOS() { method normalizePackageName (line 182) | func (b *searchQueryBuilder) normalizePackageName() { method extractVersionMatcher (line 189) | func (b *searchQueryBuilder) extractVersionMatcher() { method Build (line 210) | func (b *searchQueryBuilder) Build() (*searchQuery, []vulnerability.Cr... function newSearchQueryBuilder (line 42) | func newSearchQueryBuilder() *searchQueryBuilder { FILE: grype/db/v6/search_query_test.go function TestNewSearchCriteria (line 15) | func TestNewSearchCriteria(t *testing.T) { function TestQueryBuilder_ApplyCriteria (line 83) | func TestQueryBuilder_ApplyCriteria(t *testing.T) { function TestQueryBuilder_CPEErrorHandling (line 180) | func TestQueryBuilder_CPEErrorHandling(t *testing.T) { function TestQueryBuilder_PostProcess (line 200) | func TestQueryBuilder_PostProcess(t *testing.T) { function TestQueryBuilder_Build (line 271) | func TestQueryBuilder_Build(t *testing.T) { function TestQueryBuilder_ExactDistroCriteria (line 287) | func TestQueryBuilder_ExactDistroCriteria(t *testing.T) { function TestQueryBuilder_IntegrationWithRealCriteria (line 347) | func TestQueryBuilder_IntegrationWithRealCriteria(t *testing.T) { FILE: grype/db/v6/severity.go function extractSeverities (line 11) | func extractSeverities(vuln *VulnerabilityHandle) (vulnerability.Severit... function extractSeverity (line 27) | func extractSeverity(severity any) (vulnerability.Severity, error) { function interpretCVSS (line 45) | func interpretCVSS(score float64, version string) vulnerability.Severity { function interpretCVSSv2 (line 56) | func interpretCVSSv2(score float64) vulnerability.Severity { function interpretCVSSv3Plus (line 75) | func interpretCVSSv3Plus(score float64) vulnerability.Severity { function toCvss (line 97) | func toCvss(severities ...Severity) []vulnerability.Cvss { function legacyCVSSType (line 134) | func legacyCVSSType(rank int) string { FILE: grype/db/v6/severity_test.go function TestExtractSeverity (line 12) | func TestExtractSeverity(t *testing.T) { function TestExtractSeverities (line 129) | func TestExtractSeverities(t *testing.T) { FILE: grype/db/v6/store.go type store (line 12) | type store struct method GetDB (line 29) | func (s *store) GetDB() *gorm.DB { method attachBlobValue (line 33) | func (s *store) attachBlobValue(values ...blobable) error { method Close (line 108) | func (s *store) Close() error { function InitialData (line 37) | func InitialData() []any { function newStore (line 51) | func newStore(cfg Config, empty, writable bool) (*store, error) { function dropAllIndexes (line 144) | func dropAllIndexes(db *gorm.DB) error { FILE: grype/db/v6/store_test.go function TestStoreClose (line 12) | func TestStoreClose(t *testing.T) { function Test_oldDbV5 (line 60) | func Test_oldDbV5(t *testing.T) { function Test_oldDbWithMetadata (line 70) | func Test_oldDbWithMetadata(t *testing.T) { FILE: grype/db/v6/unaffected_cpe_store.go type UnaffectedCPEStoreWriter (line 9) | type UnaffectedCPEStoreWriter interface type UnaffectedCPEStoreReader (line 13) | type UnaffectedCPEStoreReader interface type unaffectedCPEStore (line 17) | type unaffectedCPEStore struct method AddUnaffectedCPEs (line 31) | func (s *unaffectedCPEStore) AddUnaffectedCPEs(packages ...*Unaffected... method GetUnaffectedCPEs (line 35) | func (s *unaffectedCPEStore) GetUnaffectedCPEs(cpe *cpe.Attributes, co... function newUnaffectedCPEStore (line 23) | func newUnaffectedCPEStore(db *gorm.DB, bs *blobStore) *unaffectedCPESto... FILE: grype/db/v6/unaffected_cpe_store_test.go function TestUnaffectedCPEStore_AddUnaffectedCPEs (line 11) | func TestUnaffectedCPEStore_AddUnaffectedCPEs(t *testing.T) { function TestUnaffectedCPEStore_GetCPEs (line 56) | func TestUnaffectedCPEStore_GetCPEs(t *testing.T) { function TestUnaffectedCPEStore_GetExact (line 87) | func TestUnaffectedCPEStore_GetExact(t *testing.T) { function TestUnaffectedCPEStore_Get_CaseInsensitive (line 107) | func TestUnaffectedCPEStore_Get_CaseInsensitive(t *testing.T) { function TestUnaffectedCPEStore_PreventDuplicateCPEs (line 136) | func TestUnaffectedCPEStore_PreventDuplicateCPEs(t *testing.T) { function testUnaffectedCPEHandle (line 211) | func testUnaffectedCPEHandle() *UnaffectedCPEHandle { FILE: grype/db/v6/unaffected_package_store.go type UnaffectedPackageStoreWriter (line 5) | type UnaffectedPackageStoreWriter interface type UnaffectedPackageStoreReader (line 9) | type UnaffectedPackageStoreReader interface type unaffectedPackageStore (line 12) | type unaffectedPackageStore struct method AddUnaffectedPackages (line 26) | func (s *unaffectedPackageStore) AddUnaffectedPackages(packages ...*Un... method GetUnaffectedPackages (line 30) | func (s *unaffectedPackageStore) GetUnaffectedPackages(pkg *PackageSpe... function newUnaffectedPackageStore (line 18) | func newUnaffectedPackageStore(db *gorm.DB, bs *blobStore, oss *operatin... FILE: grype/db/v6/unaffected_package_store_test.go type unaffectedPackageHandlePreloadConfig (line 16) | type unaffectedPackageHandlePreloadConfig struct function defaultUnaffectedPackageHandlePreloadCases (line 25) | func defaultUnaffectedPackageHandlePreloadCases() []unaffectedPackageHan... function TestUnaffectedPackageStore_AddUnaffectedPackages (line 137) | func TestUnaffectedPackageStore_AddUnaffectedPackages(t *testing.T) { function TestUnaffectedPackageStore_GetUnaffectedPackages_ByCPE (line 431) | func TestUnaffectedPackageStore_GetUnaffectedPackages_ByCPE(t *testing.T) { function TestUnaffectedPackageStore_GetUnaffectedPackages_CaseInsensitive (line 597) | func TestUnaffectedPackageStore_GetUnaffectedPackages_CaseInsensitive(t ... function TestUnaffectedPackageStore_GetUnaffectedPackages_MultipleVulnerabilitySpecs (line 737) | func TestUnaffectedPackageStore_GetUnaffectedPackages_MultipleVulnerabil... function TestUnaffectedPackageStore_GetUnaffectedPackages (line 793) | func TestUnaffectedPackageStore_GetUnaffectedPackages(t *testing.T) { function TestUnaffectedPackageStore_ApplyPackageAlias (line 948) | func TestUnaffectedPackageStore_ApplyPackageAlias(t *testing.T) { function testDistro1UnaffectedPackage2Handle (line 988) | func testDistro1UnaffectedPackage2Handle() *UnaffectedPackageHandle { function testDistro2UnaffectedPackage2Handle (line 1017) | func testDistro2UnaffectedPackage2Handle() *UnaffectedPackageHandle { function testNonDistroUnaffectedPackage2Handle (line 1045) | func testNonDistroUnaffectedPackage2Handle() *UnaffectedPackageHandle { FILE: grype/db/v6/vulnerability.go constant nvdProvider (line 21) | nvdProvider = "nvd" constant githubProvider (line 22) | githubProvider = "github" constant v5NvdNamespace (line 23) | v5NvdNamespace = "nvd:cpe" function newVulnerabilityFromAffectedPackageHandle (line 26) | func newVulnerabilityFromAffectedPackageHandle(affected AffectedPackageH... function newVulnerabilityFromAffectedCPEHandle (line 39) | func newVulnerabilityFromAffectedCPEHandle(affected AffectedCPEHandle, a... function newVulnerabilityFromUnaffectedPackageHandle (line 46) | func newVulnerabilityFromUnaffectedPackageHandle(unaffected UnaffectedPa... function newVulnerabilityFromUnaffectedCPEHandle (line 63) | func newVulnerabilityFromUnaffectedCPEHandle(unaffected UnaffectedCPEHan... function newVulnerabilityFromParts (line 74) | func newVulnerabilityFromParts(packageName string, vuln *VulnerabilityHa... function getVersionConstraint (line 107) | func getVersionConstraint(affectedRanges []Range) (version.Constraint, e... function getRelatedVulnerabilities (line 141) | func getRelatedVulnerabilities(vuln *VulnerabilityHandle, affected *Pack... function getPackageQualifiers (line 190) | func getPackageQualifiers(affected *PackageBlob) []qualifier.Qualifier { function MimicV5Namespace (line 201) | func MimicV5Namespace(vuln *VulnerabilityHandle, affected *AffectedPacka... function mimicV5GithubNamespace (line 274) | func mimicV5GithubNamespace(provider, language string) string { function toPackageQualifiers (line 301) | func toPackageQualifiers(qualifiers *PackageQualifiers) []qualifier.Qual... function toFix (line 315) | func toFix(affectedRanges []Range) vulnerability.Fix { function toAdvisories (line 359) | func toAdvisories(affectedRanges []Range) []vulnerability.Advisory { function toCPEs (line 379) | func toCPEs(affectedPackageHandle *AffectedPackageHandle, affectedCPEHan... FILE: grype/db/v6/vulnerability_decorator_store.go type VulnerabilityDecoratorStoreWriter (line 14) | type VulnerabilityDecoratorStoreWriter interface type VulnerabilityDecoratorStoreReader (line 20) | type VulnerabilityDecoratorStoreReader interface type vulnerabilityDecoratorStore (line 26) | type vulnerabilityDecoratorStore struct method AddEpss (line 54) | func (s *vulnerabilityDecoratorStore) AddEpss(epss ...*EpssHandle) err... method AddCWE (line 74) | func (s *vulnerabilityDecoratorStore) AddCWE(cwe ...*CWEHandle) error { method setEPSSMetadata (line 90) | func (s *vulnerabilityDecoratorStore) setEPSSMetadata(date time.Time) ... method getEPSSMetadata (line 121) | func (s *vulnerabilityDecoratorStore) getEPSSMetadata() (*EpssMetadata... method GetEpss (line 130) | func (s *vulnerabilityDecoratorStore) GetEpss(cve string) ([]EpssHandl... method GetCWEs (line 175) | func (s *vulnerabilityDecoratorStore) GetCWEs(cve string) ([]CWEHandle... method AddKnownExploitedVulnerabilities (line 210) | func (s *vulnerabilityDecoratorStore) AddKnownExploitedVulnerabilities... method GetKnownExploitedVulnerabilities (line 230) | func (s *vulnerabilityDecoratorStore) GetKnownExploitedVulnerabilities... type vulnerabilityDecoratorCapabilities (line 33) | type vulnerabilityDecoratorCapabilities struct function newVulnerabilityDecoratorStore (line 39) | func newVulnerabilityDecoratorStore(db *gorm.DB, bs *blobStore, dbVersio... FILE: grype/db/v6/vulnerability_decorator_store_test.go function TestVulnerabilityDecoratorStore (line 16) | func TestVulnerabilityDecoratorStore(t *testing.T) { function TestVulnerabilityDecoratorStore_AddKnownExploitedVulnerabilities_VersionCompatibility (line 142) | func TestVulnerabilityDecoratorStore_AddKnownExploitedVulnerabilities_Ve... function TestVulnerabilityDecoratorStore_GetKnownExploitedVulnerabilities_VersionCompatibility (line 210) | func TestVulnerabilityDecoratorStore_GetKnownExploitedVulnerabilities_Ve... function TestVulnerabilityDecoratorCapabilities_AllCapabilitiesCovered (line 297) | func TestVulnerabilityDecoratorCapabilities_AllCapabilitiesCovered(t *te... function timeRef (line 380) | func timeRef(t time.Time) *time.Time { FILE: grype/db/v6/vulnerability_provider.go function NewVulnerabilityProvider (line 31) | func NewVulnerabilityProvider(rdr Reader) vulnerability.Provider { type vulnerabilityProvider (line 37) | type vulnerabilityProvider struct method VulnerabilityMetadata (line 42) | func (vp vulnerabilityProvider) VulnerabilityMetadata(ref vulnerabilit... method getVulnerabilityMetadata (line 65) | func (vp vulnerabilityProvider) getVulnerabilityMetadata(vuln *Vulnera... method fetchCWE (line 86) | func (vp vulnerabilityProvider) fetchCWE(cves []string) ([]vulnerabili... method DataProvenance (line 131) | func (vp vulnerabilityProvider) DataProvenance() (map[string]vulnerabi... method fetchVulnerability (line 151) | func (vp vulnerabilityProvider) fetchVulnerability(ref vulnerability.R... method fetchKnownExploited (line 163) | func (vp vulnerabilityProvider) fetchKnownExploited(cves []string) ([]... method fetchEpss (line 190) | func (vp vulnerabilityProvider) fetchEpss(cves []string) ([]vulnerabil... method PackageSearchNames (line 211) | func (vp vulnerabilityProvider) PackageSearchNames(p pkg.Package) []st... method Close (line 215) | func (vp vulnerabilityProvider) Close() error { method FindVulnerabilities (line 219) | func (vp vulnerabilityProvider) FindVulnerabilities(criteria ...vulner... method fetchAndProcessPackages (line 262) | func (vp vulnerabilityProvider) fetchAndProcessPackages(query *searchQ... method fetchAndProcessAffectedPackages (line 275) | func (vp vulnerabilityProvider) fetchAndProcessAffectedPackages(query ... method fetchAndProcessUnaffectedPackages (line 307) | func (vp vulnerabilityProvider) fetchAndProcessUnaffectedPackages(quer... method handleOSError (line 339) | func (vp vulnerabilityProvider) handleOSError(err error, osSpecs OSSpe... method GetOperatingSystemEOL (line 353) | func (vp vulnerabilityProvider) GetOperatingSystemEOL(d *distro.Distro... method fetchAndProcessCPEs (line 390) | func (vp vulnerabilityProvider) fetchAndProcessCPEs(query *searchQuery... method filterVulnerabilities (line 442) | func (vp vulnerabilityProvider) filterVulnerabilities(vulns []vulnerab... method processAffectedPackageHandles (line 477) | func (vp vulnerabilityProvider) processAffectedPackageHandles(out []vu... method processAffectedCPEHandles (line 504) | func (vp vulnerabilityProvider) processAffectedCPEHandles(out []vulner... method processUnaffectedPackageHandles (line 531) | func (vp vulnerabilityProvider) processUnaffectedPackageHandles(out []... method processUnaffectedCPEHandles (line 558) | func (vp vulnerabilityProvider) processUnaffectedCPEHandles(out []vuln... method getCachedMetadata (line 585) | func (vp vulnerabilityProvider) getCachedMetadata(vuln *VulnerabilityH... function newVulnerabilityMetadata (line 107) | func newVulnerabilityMetadata(vuln *VulnerabilityHandle, namespace strin... function filterAffectedPackageVersions (line 603) | func filterAffectedPackageVersions(constraintMatcher search.VersionConst... function filterUnaffectedPackageVersions (line 631) | func filterUnaffectedPackageVersions(constraintMatcher search.VersionCon... function filterAffectedCPEVersions (line 660) | func filterAffectedCPEVersions(constraintMatcher search.VersionConstrain... function filterUnaffectedCPEVersions (line 683) | func filterUnaffectedCPEVersions(constraintMatcher search.VersionConstra... function filterAffectedPackageRanges (line 707) | func filterAffectedPackageRanges(matcher search.VersionConstraintMatcher... function toSeverityString (line 733) | func toSeverityString(sev vulnerability.Severity) string { function firstReferenceURL (line 738) | func firstReferenceURL(vuln *VulnerabilityHandle) string { function lastReferenceURLs (line 746) | func lastReferenceURLs(vuln *VulnerabilityHandle) []string { function getCVEs (line 757) | func getCVEs(vuln *VulnerabilityHandle) []string { FILE: grype/db/v6/vulnerability_provider_mocks_test.go function testVulnerabilityProvider (line 19) | func testVulnerabilityProvider(t *testing.T) vulnerability.Provider { FILE: grype/db/v6/vulnerability_provider_test.go function Test_FindVulnerabilitiesByDistro (line 24) | func Test_FindVulnerabilitiesByDistro(t *testing.T) { function Test_FindVulnerabilitiesByEmptyDistro (line 91) | func Test_FindVulnerabilitiesByEmptyDistro(t *testing.T) { function Test_FindVulnerabilitiesByCPE (line 105) | func Test_FindVulnerabilitiesByCPE(t *testing.T) { function Test_FindVulnerabilitiesByID (line 276) | func Test_FindVulnerabilitiesByID(t *testing.T) { function Test_FindVulnerabilitiesByEcosystem_UnknownPackageType (line 327) | func Test_FindVulnerabilitiesByEcosystem_UnknownPackageType(t *testing.T) { function Test_DataSource (line 380) | func Test_DataSource(t *testing.T) { function Test_filterAffectedPackageRanges (line 472) | func Test_filterAffectedPackageRanges(t *testing.T) { type mockVersionConstraintMatcher (line 550) | type mockVersionConstraintMatcher struct method MatchesConstraint (line 554) | func (m *mockVersionConstraintMatcher) MatchesConstraint(constraint ve... function Test_FindVulnerabilitiesByUnaffectedCriteria (line 561) | func Test_FindVulnerabilitiesByUnaffectedCriteria(t *testing.T) { function Test_FindVulnerabilitiesErrorHandling (line 681) | func Test_FindVulnerabilitiesErrorHandling(t *testing.T) { function Test_FindVulnerabilitiesMixedCriteria (line 738) | func Test_FindVulnerabilitiesMixedCriteria(t *testing.T) { function Test_FindVulnerabilitiesNormalization (line 789) | func Test_FindVulnerabilitiesNormalization(t *testing.T) { function Test_HandleOSError (line 827) | func Test_HandleOSError(t *testing.T) { function Test_FetchAndProcessPackagesEdgeCases (line 870) | func Test_FetchAndProcessPackagesEdgeCases(t *testing.T) { function Test_FetchAndProcessCPEsEdgeCases (line 907) | func Test_FetchAndProcessCPEsEdgeCases(t *testing.T) { function cmpOpts (line 944) | func cmpOpts() []cmp.Option { FILE: grype/db/v6/vulnerability_store.go constant anyVulnerability (line 15) | anyVulnerability = "any" type VulnerabilityStoreWriter (line 17) | type VulnerabilityStoreWriter interface type VulnerabilityStoreReader (line 21) | type VulnerabilityStoreReader interface type GetVulnerabilityOptions (line 25) | type GetVulnerabilityOptions struct type VulnerabilitySpecifiers (line 30) | type VulnerabilitySpecifiers method String (line 92) | func (s VulnerabilitySpecifiers) String() string { type VulnerabilitySpecifier (line 32) | type VulnerabilitySpecifier struct method String (line 55) | func (v *VulnerabilitySpecifier) String() string { function DefaultGetVulnerabilityOptions (line 103) | func DefaultGetVulnerabilityOptions() *GetVulnerabilityOptions { type vulnerabilityStore (line 109) | type vulnerabilityStore struct method AddVulnerabilities (line 121) | func (s *vulnerabilityStore) AddVulnerabilities(vulnerabilities ...*Vu... method addProviders (line 163) | func (s *vulnerabilityStore) addProviders(tx *gorm.DB, vulnerabilities... method GetVulnerabilities (line 274) | func (s *vulnerabilityStore) GetVulnerabilities(vuln *VulnerabilitySpe... method handlePreload (line 333) | func (s *vulnerabilityStore) handlePreload(query *gorm.DB, config GetV... function newVulnerabilityStore (line 114) | func newVulnerabilityStore(db *gorm.DB, bs *blobStore) *vulnerabilitySto... function createRecordsWithCache (line 217) | func createRecordsWithCache(tx *gorm.DB, items ...*VulnerabilityHandle) ... function handleVulnerabilityOptions (line 347) | func handleVulnerabilityOptions(base, parentQuery *gorm.DB, configs ...V... FILE: grype/db/v6/vulnerability_store_test.go function TestVulnerabilityStore_AddVulnerabilities (line 13) | func TestVulnerabilityStore_AddVulnerabilities(t *testing.T) { function TestVulnerabilityStore_NoDuplicateVulnerabilities (line 52) | func TestVulnerabilityStore_NoDuplicateVulnerabilities(t *testing.T) { function TestVulnerabilityStore_AddVulnerabilities_missingModifiedDate (line 86) | func TestVulnerabilityStore_AddVulnerabilities_missingModifiedDate(t *te... function TestVulnerabilityStore_AddVulnerabilities_Aliases (line 107) | func TestVulnerabilityStore_AddVulnerabilities_Aliases(t *testing.T) { function TestVulnerabilityStore_GetVulnerability_ByID (line 149) | func TestVulnerabilityStore_GetVulnerability_ByID(t *testing.T) { function TestVulnerabilityStore_GetVulnerabilities_ByName (line 181) | func TestVulnerabilityStore_GetVulnerabilities_ByName(t *testing.T) { function TestVulnerabilityStore_GetVulnerabilities_Aliases (line 218) | func TestVulnerabilityStore_GetVulnerabilities_Aliases(t *testing.T) { function testVulnerabilityHandle (line 284) | func testVulnerabilityHandle() VulnerabilityHandle { function TestVulnerabilityStore_GetVulnerabilities_ByProviders (line 326) | func TestVulnerabilityStore_GetVulnerabilities_ByProviders(t *testing.T) { function TestVulnerabilityStore_GetVulnerabilities_FilterByMultipleFactors (line 352) | func TestVulnerabilityStore_GetVulnerabilities_FilterByMultipleFactors(t... FILE: grype/db/v6/vulnerability_test.go function TestV5Namespace (line 15) | func TestV5Namespace(t *testing.T) { function Test_getRelatedVulnerabilities (line 535) | func Test_getRelatedVulnerabilities(t *testing.T) { function TestToFix (line 660) | func TestToFix(t *testing.T) { function majorMinorPatch (line 1025) | func majorMinorPatch(ver string) (string, string, string) { FILE: grype/deprecated.go function FindVulnerabilities (line 15) | func FindVulnerabilities(store vulnerability.Provider, userImageStr stri... function FindVulnerabilitiesForPackage (line 35) | func FindVulnerabilitiesForPackage(store vulnerability.Provider, matcher... FILE: grype/distro/distro.go type Distro (line 14) | type Distro struct method Name (line 197) | func (d Distro) Name() string { method MajorVersion (line 202) | func (d Distro) MajorVersion() string { method MinorVersion (line 207) | func (d Distro) MinorVersion() string { method RemainingVersion (line 211) | func (d Distro) RemainingVersion() string { method String (line 216) | func (d Distro) String() string { method ID (line 220) | func (d Distro) ID() string { method VersionString (line 224) | func (d Distro) VersionString() string { method LabelVersion (line 241) | func (d Distro) LabelVersion() string { function New (line 29) | func New(t Type, version, label string, idLikes ...string) *Distro { function parseVersion (line 52) | func parseVersion(version string) (major, minor, remaining, versionWitho... function ParseDistroString (line 89) | func ParseDistroString(s string) (name, version string) { function NewFromNameVersion (line 133) | func NewFromNameVersion(name, version string) *Distro { function FromRelease (line 151) | func FromRelease(linuxRelease *linux.Release, channels []FixChannel) *Di... function NewFromRelease (line 163) | func NewFromRelease(release linux.Release, channels []FixChannel) (*Dist... function nonEmptyStrings (line 253) | func nonEmptyStrings(ss ...string) (res []string) { FILE: grype/distro/distro_test.go function testFixChannels (line 17) | func testFixChannels() []FixChannel { function Test_NewDistroFromRelease (line 21) | func Test_NewDistroFromRelease(t *testing.T) { function Test_NewDistroFromRelease_Coverage (line 323) | func Test_NewDistroFromRelease_Coverage(t *testing.T) { function TestDistro_FullVersion (line 554) | func TestDistro_FullVersion(t *testing.T) { function TestDistro_MajorVersion (line 591) | func TestDistro_MajorVersion(t *testing.T) { function names (line 629) | func names(ns ...string) []string { function TestParseDistroString (line 633) | func TestParseDistroString(t *testing.T) { FILE: grype/distro/fix_channel.go type FixChannelEnabled (line 13) | type FixChannelEnabled constant ChannelNeverEnabled (line 17) | ChannelNeverEnabled FixChannelEnabled = "never" constant ChannelAlwaysEnabled (line 20) | ChannelAlwaysEnabled FixChannelEnabled = "always" constant ChannelConditionallyEnabled (line 23) | ChannelConditionallyEnabled FixChannelEnabled = "auto" type FixChannel (line 27) | type FixChannel struct type FixChannels (line 41) | type FixChannels method Apply (line 54) | func (f FixChannels) Apply(enable FixChannelEnabled) FixChannels { method Get (line 61) | func (f FixChannels) Get(name string) *FixChannel { function DefaultFixChannels (line 43) | func DefaultFixChannels() FixChannels { function applyChannels (line 70) | func applyChannels(release linux.Release, ver *version.Version, existing... function applyChannel (line 122) | func applyChannel(channel string, hintsExtendedSupport bool, pref FixCha... FILE: grype/distro/fix_channel_test.go function TestDefaultFixChannels (line 11) | func TestDefaultFixChannels(t *testing.T) { function TestFixChannels_Apply (line 29) | func TestFixChannels_Apply(t *testing.T) { function TestFixChannels_Get (line 94) | func TestFixChannels_Get(t *testing.T) { FILE: grype/distro/type.go type Type (line 8) | type Type method String (line 154) | func (t Type) String() string { constant Debian (line 13) | Debian Type = "debian" constant Ubuntu (line 14) | Ubuntu Type = "ubuntu" constant RedHat (line 15) | RedHat Type = "redhat" constant CentOS (line 16) | CentOS Type = "centos" constant Fedora (line 17) | Fedora Type = "fedora" constant Alpine (line 18) | Alpine Type = "alpine" constant Busybox (line 19) | Busybox Type = "busybox" constant AmazonLinux (line 20) | AmazonLinux Type = "amazonlinux" constant OracleLinux (line 21) | OracleLinux Type = "oraclelinux" constant ArchLinux (line 22) | ArchLinux Type = "archlinux" constant OpenSuseLeap (line 23) | OpenSuseLeap Type = "opensuseleap" constant SLES (line 24) | SLES Type = "sles" constant Photon (line 25) | Photon Type = "photon" constant Echo (line 26) | Echo Type = "echo" constant Windows (line 27) | Windows Type = "windows" constant Mariner (line 28) | Mariner Type = "mariner" constant Azure (line 29) | Azure Type = "azurelinux" constant RockyLinux (line 30) | RockyLinux Type = "rockylinux" constant AlmaLinux (line 31) | AlmaLinux Type = "almalinux" constant Gentoo (line 32) | Gentoo Type = "gentoo" constant Wolfi (line 33) | Wolfi Type = "wolfi" constant Chainguard (line 34) | Chainguard Type = "chainguard" constant MinimOS (line 35) | MinimOS Type = "minimos" constant Raspbian (line 36) | Raspbian Type = "raspbian" constant Scientific (line 37) | Scientific Type = "scientific" constant SecureOS (line 38) | SecureOS Type = "secureos" constant PostmarketOS (line 39) | PostmarketOS Type = "postmarketos" function init (line 112) | func init() { function TypeFromRelease (line 121) | func TypeFromRelease(release linux.Release) Type { FILE: grype/distro/type_test.go function TestTypeFromRelease (line 11) | func TestTypeFromRelease(t *testing.T) { FILE: grype/event/event.go constant typePrefix (line 8) | typePrefix = "grype" constant cliTypePrefix (line 9) | cliTypePrefix = typePrefix + "-cli" constant UpdateVulnerabilityDatabase (line 13) | UpdateVulnerabilityDatabase partybus.EventType = typePrefix + "-update-... constant VulnerabilityScanningStarted (line 14) | VulnerabilityScanningStarted partybus.EventType = typePrefix + "-vulnera... constant DatabaseDiffingStarted (line 15) | DatabaseDiffingStarted partybus.EventType = typePrefix + "-databas... constant CLIAppUpdateAvailable (line 20) | CLIAppUpdateAvailable partybus.EventType = cliTypePrefix + "-app-update-... constant CLIReport (line 23) | CLIReport partybus.EventType = cliTypePrefix + "-report" constant CLINotification (line 26) | CLINotification partybus.EventType = cliTypePrefix + "-notification" FILE: grype/event/monitor/db_diff.go type DBDiff (line 5) | type DBDiff struct FILE: grype/event/monitor/matching.go type Matching (line 9) | type Matching struct FILE: grype/event/parsers/parsers.go type ErrBadPayload (line 13) | type ErrBadPayload struct method Error (line 19) | func (e *ErrBadPayload) Error() string { function newPayloadErr (line 23) | func newPayloadErr(t partybus.EventType, field string, value interface{}... function checkEventType (line 31) | func checkEventType(actual, expected partybus.EventType) error { function ParseUpdateVulnerabilityDatabase (line 38) | func ParseUpdateVulnerabilityDatabase(e partybus.Event) (progress.Staged... function ParseVulnerabilityScanningStarted (line 51) | func ParseVulnerabilityScanningStarted(e partybus.Event) (*monitor.Match... function ParseDatabaseDiffingStarted (line 64) | func ParseDatabaseDiffingStarted(e partybus.Event) (*monitor.DBDiff, err... type UpdateCheck (line 77) | type UpdateCheck struct function ParseCLIAppUpdateAvailable (line 82) | func ParseCLIAppUpdateAvailable(e partybus.Event) (*UpdateCheck, error) { function ParseCLIReport (line 95) | func ParseCLIReport(e partybus.Event) (string, string, error) { function ParseCLINotification (line 114) | func ParseCLINotification(e partybus.Event) (string, string, error) { FILE: grype/grypeerr/expected_error.go type ExpectedErr (line 8) | type ExpectedErr struct method Error (line 20) | func (e ExpectedErr) Error() string { function NewExpectedErr (line 13) | func NewExpectedErr(msgFormat string, args ...interface{}) ExpectedErr { FILE: grype/internal/packagemetadata/discover_type_names.go function DiscoverTypeNames (line 24) | func DiscoverTypeNames() ([]string, error) { function RepoRoot (line 36) | func RepoRoot() (string, error) { function findMetadataDefinitionNames (line 48) | func findMetadataDefinitionNames(paths ...string) ([]string, error) { function findMetadataDefinitionNamesInFile (line 82) | func findMetadataDefinitionNamesInFile(path string) ([]string, []string,... function typeNamesUsedInStruct (line 126) | func typeNamesUsedInStruct(structType *ast.StructType) []string { function isMetadataTypeCandidate (line 148) | func isMetadataTypeCandidate(name string) bool { FILE: grype/internal/packagemetadata/generate/main.go constant pkgImport (line 15) | pkgImport = "github.com/anchore/grype/grype/pkg" constant path (line 16) | path = "packagemetadata/generated.go" function main (line 19) | func main() { FILE: grype/internal/packagemetadata/generated.go function AllTypes (line 8) | func AllTypes() []any { FILE: grype/internal/packagemetadata/names.go function nameList (line 26) | func nameList(id string, others ...string) []string { function expandLegacyNameVariants (line 34) | func expandLegacyNameVariants(name string) []string { function AllTypeNames (line 44) | func AllTypeNames() []string { function JSONName (line 52) | func JSONName(metadata any) string { function ReflectTypeFromJSONName (line 59) | func ReflectTypeFromJSONName(name string) reflect.Type { function sortedTypes (line 72) | func sortedTypes(typeNameMapping map[reflect.Type][]string) []reflect.Ty... FILE: grype/internal/packagemetadata/names_test.go function TestAllNames (line 14) | func TestAllNames(t *testing.T) { function TestReflectTypeFromJSONName (line 34) | func TestReflectTypeFromJSONName(t *testing.T) { FILE: grype/lib.go function SetLogger (line 11) | func SetLogger(l logger.Logger) { function SetBus (line 15) | func SetBus(b *partybus.Bus) { FILE: grype/load_vulnerability_db.go function LoadVulnerabilityDB (line 13) | func LoadVulnerabilityDB(distCfg v6dist.Config, installCfg v6inst.Config... FILE: grype/load_vulnerability_db_bench_test.go function BenchmarkLoadVulnerabilityDB (line 15) | func BenchmarkLoadVulnerabilityDB(b *testing.B) { FILE: grype/match/details.go type Details (line 10) | type Details method Matchers (line 25) | func (m Details) Matchers() (tys []MatcherType) { method Types (line 35) | func (m Details) Types() (tys []Type) { method Len (line 57) | func (m Details) Len() int { method Less (line 61) | func (m Details) Less(i, j int) bool { method Swap (line 88) | func (m Details) Swap(i, j int) { type Detail (line 12) | type Detail struct method String (line 21) | func (m Detail) String() string { method ID (line 45) | func (m Detail) ID() string { FILE: grype/match/details_test.go function TestDetails_Sorting (line 11) | func TestDetails_Sorting(t *testing.T) { function TestHasExclusivelyAnyMatchTypes (line 107) | func TestHasExclusivelyAnyMatchTypes(t *testing.T) { FILE: grype/match/explicit_ignores.go function init (line 9) | func init() { function ApplyExplicitIgnoreRules (line 78) | func ApplyExplicitIgnoreRules(provider ExclusionProvider, matches Matche... FILE: grype/match/explicit_ignores_test.go type mockExclusionProvider (line 13) | type mockExclusionProvider struct method stub (line 25) | func (d *mockExclusionProvider) stub() { method IgnoreRules (line 28) | func (d *mockExclusionProvider) IgnoreRules(vulnerabilityID string) ([... function newMockExclusionProvider (line 17) | func newMockExclusionProvider() *mockExclusionProvider { function Test_ApplyExplicitIgnoreRules (line 32) | func Test_ApplyExplicitIgnoreRules(t *testing.T) { FILE: grype/match/fingerprint.go type Fingerprint (line 11) | type Fingerprint struct method String (line 22) | func (m Fingerprint) String() string { method ID (line 26) | func (m Fingerprint) ID() string { type coreFingerprint (line 16) | type coreFingerprint struct FILE: grype/match/ignore.go type IgnoreFilter (line 14) | type IgnoreFilter interface type IgnoredMatch (line 19) | type IgnoredMatch struct type IgnoreRule (line 30) | type IgnoreRule struct method IgnoreMatch (line 91) | func (r IgnoreRule) IgnoreMatch(match Match) []IgnoreRule { method HasConditions (line 116) | func (r IgnoreRule) HasConditions() bool { type IgnoreRulePackage (line 43) | type IgnoreRulePackage struct function ApplyIgnoreRules (line 58) | func ApplyIgnoreRules(matches Matches, rules []IgnoreRule) (Matches, []I... function ApplyIgnoreFilters (line 65) | func ApplyIgnoreFilters[T IgnoreFilter](matches []Match, filters ...T) (... type ignoreFilters (line 121) | type ignoreFilters method IgnoreMatch (line 123) | func (r ignoreFilters[T]) IgnoreMatch(match Match) []IgnoreRule { type ignoreCondition (line 137) | type ignoreCondition function getIgnoreConditionsForRule (line 139) | func getIgnoreConditionsForRule(rule IgnoreRule) []ignoreCondition { function ifFixStateApplies (line 184) | func ifFixStateApplies(fs string) ignoreCondition { function ifVulnerabilityApplies (line 194) | func ifVulnerabilityApplies(vulnerability string, includeAliases bool) i... function ifNamespaceApplies (line 210) | func ifNamespaceApplies(namespace string) ignoreCondition { function packageNameRegex (line 216) | func packageNameRegex(packageName string) (*regexp.Regexp, error) { function ifPackageNameApplies (line 224) | func ifPackageNameApplies(name string) ignoreCondition { function ifPackageVersionApplies (line 243) | func ifPackageVersionApplies(version string) ignoreCondition { function ifPackageLanguageApplies (line 250) | func ifPackageLanguageApplies(language string) ignoreCondition { function ifPackageTypeApplies (line 256) | func ifPackageTypeApplies(t string) ignoreCondition { function ifPackageLocationApplies (line 262) | func ifPackageLocationApplies(location string) ignoreCondition { function ifUpstreamPackageNameApplies (line 268) | func ifUpstreamPackageNameApplies(name string) ignoreCondition { function isLikelyARegex (line 302) | func isLikelyARegex(s string) bool { function ifMatchTypeApplies (line 306) | func ifMatchTypeApplies(matchType Type) ignoreCondition { function ruleLocationAppliesToMatch (line 317) | func ruleLocationAppliesToMatch(location string, match Match) bool { function ruleLocationAppliesToPath (line 331) | func ruleLocationAppliesToPath(location, path string) bool { FILE: grype/match/ignore_test.go function TestApplyIgnoreRules (line 300) | func TestApplyIgnoreRules(t *testing.T) { function sliceToMatches (line 812) | func sliceToMatches(s []Match) Matches { function TestIsRegex (line 836) | func TestIsRegex(t *testing.T) { function TestShouldIgnore (line 1104) | func TestShouldIgnore(t *testing.T) { FILE: grype/match/match.go type Match (line 18) | type Match struct method String (line 25) | func (m Match) String() string { method Fingerprint (line 29) | func (m Match) Fingerprint() Fingerprint { method Merge (line 40) | func (m *Match) Merge(other Match) error { function referenceID (line 91) | func referenceID(r vulnerability.Reference) string { FILE: grype/match/match_test.go function TestMatch_Merge (line 13) | func TestMatch_Merge(t *testing.T) { FILE: grype/match/matcher.go type Matcher (line 13) | type Matcher interface type fatalError (line 25) | type fatalError struct method Error (line 36) | func (f fatalError) Error() string { function NewFatalError (line 31) | func NewFatalError(matcher MatcherType, e error) error { function IsFatalError (line 41) | func IsFatalError(err error) bool { FILE: grype/match/matcher_type.go constant UnknownMatcherType (line 4) | UnknownMatcherType MatcherType = "UnknownMatcherType" constant StockMatcher (line 5) | StockMatcher MatcherType = "stock-matcher" constant ApkMatcher (line 6) | ApkMatcher MatcherType = "apk-matcher" constant RubyGemMatcher (line 7) | RubyGemMatcher MatcherType = "ruby-gem-matcher" constant DpkgMatcher (line 8) | DpkgMatcher MatcherType = "dpkg-matcher" constant RpmMatcher (line 9) | RpmMatcher MatcherType = "rpm-matcher" constant JavaMatcher (line 10) | JavaMatcher MatcherType = "java-matcher" constant PythonMatcher (line 11) | PythonMatcher MatcherType = "python-matcher" constant DotnetMatcher (line 12) | DotnetMatcher MatcherType = "dotnet-matcher" constant JavascriptMatcher (line 13) | JavascriptMatcher MatcherType = "javascript-matcher" constant MsrcMatcher (line 14) | MsrcMatcher MatcherType = "msrc-matcher" constant PortageMatcher (line 15) | PortageMatcher MatcherType = "portage-matcher" constant GoModuleMatcher (line 16) | GoModuleMatcher MatcherType = "go-module-matcher" constant OpenVexMatcher (line 17) | OpenVexMatcher MatcherType = "openvex-matcher" constant CsafVexMatcher (line 18) | CsafVexMatcher MatcherType = "csafvex-matcher" constant RustMatcher (line 19) | RustMatcher MatcherType = "rust-matcher" constant BitnamiMatcher (line 20) | BitnamiMatcher MatcherType = "bitnami-matcher" constant PacmanMatcher (line 21) | PacmanMatcher MatcherType = "pacman-matcher" constant HexMatcher (line 22) | HexMatcher MatcherType = "hex-matcher" type MatcherType (line 45) | type MatcherType method String (line 47) | func (t MatcherType) String() string { FILE: grype/match/matches.go type Matches (line 12) | type Matches struct method GetByPkgID (line 33) | func (r *Matches) GetByPkgID(id pkg.ID) (matches []Match) { method AllByPkgID (line 41) | func (r *Matches) AllByPkgID() map[pkg.ID][]Match { method Merge (line 51) | func (r *Matches) Merge(other Matches) { method Diff (line 59) | func (r *Matches) Diff(other Matches) *Matches { method Add (line 69) | func (r *Matches) Add(matches ...Match) { method addOrMerge (line 91) | func (r *Matches) addOrMerge(newMatch Match, newFp Fingerprint) { method mergeCoreMatches (line 120) | func (r *Matches) mergeCoreMatches(newMatch Match, newFp Fingerprint, ... method replace (line 148) | func (r *Matches) replace(m Match, ogFp, newFp Fingerprint, extraDetai... method Enumerate (line 170) | func (r *Matches) Enumerate() <-chan Match { method Sorted (line 181) | func (r *Matches) Sorted() []Match { method Count (line 193) | func (r *Matches) Count() int { function NewMatches (line 18) | func NewMatches(matches ...Match) Matches { function newMatches (line 24) | func newMatches() Matches { function hasMatchType (line 197) | func hasMatchType(details Details, ty Type) bool { function hasExclusivelyAnyMatchTypes (line 206) | func hasExclusivelyAnyMatchTypes(details Details, tys ...Type) bool { FILE: grype/match/matches_test.go function TestMatchesSortMixedDimensions (line 19) | func TestMatchesSortMixedDimensions(t *testing.T) { function TestMatchesSortByVulnerability (line 162) | func TestMatchesSortByVulnerability(t *testing.T) { function TestMatches_AllByPkgID (line 199) | func TestMatches_AllByPkgID(t *testing.T) { function TestMatchesSortByPackage (line 245) | func TestMatchesSortByPackage(t *testing.T) { function TestMatchesSortByPackageVersion (line 282) | func TestMatchesSortByPackageVersion(t *testing.T) { function TestMatchesSortByPackageType (line 319) | func TestMatchesSortByPackageType(t *testing.T) { function assertMatchOrder (line 356) | func assertMatchOrder(t *testing.T, expected, actual []Match) { function assertIgnoredMatchOrder (line 375) | func assertIgnoredMatchOrder(t *testing.T, expected, actual []IgnoredMat... function TestMatches_Diff (line 394) | func TestMatches_Diff(t *testing.T) { function TestMatches_Add_Merge (line 464) | func TestMatches_Add_Merge(t *testing.T) { FILE: grype/match/provider.go type ExclusionProvider (line 3) | type ExclusionProvider interface FILE: grype/match/results.go type CPEParameters (line 10) | type CPEParameters struct method Merge (line 21) | func (i *CPEParameters) Merge(other CPEParameters) error { type PackageParameter (line 16) | type PackageParameter struct type CPEResult (line 34) | type CPEResult struct method Equals (line 40) | func (h CPEResult) Equals(other CPEResult) bool { type DistroParameters (line 58) | type DistroParameters struct method Merge (line 69) | func (d *DistroParameters) Merge(other DistroParameters) error { type DistroIdentification (line 64) | type DistroIdentification struct type DistroResult (line 88) | type DistroResult struct method Equals (line 93) | func (d DistroResult) Equals(other DistroResult) bool { type EcosystemParameters (line 98) | type EcosystemParameters struct method Merge (line 104) | func (e *EcosystemParameters) Merge(other EcosystemParameters) error { type EcosystemResult (line 120) | type EcosystemResult struct FILE: grype/match/sort.go type ByElements (line 10) | type ByElements method Len (line 13) | func (m ByElements) Len() int { method Less (line 18) | func (m ByElements) Less(i, j int) bool { method Swap (line 58) | func (m ByElements) Swap(i, j int) { FILE: grype/match/type.go constant ExactDirectMatch (line 8) | ExactDirectMatch Type = "exact-direct-match" constant ExactIndirectMatch (line 9) | ExactIndirectMatch Type = "exact-indirect-match" constant CPEMatch (line 10) | CPEMatch Type = "cpe-match" type Type (line 19) | type Type method String (line 21) | func (t Type) String() string { function ConvertToIndirectMatches (line 25) | func ConvertToIndirectMatches(matches []Match, p pkg.Package) { FILE: grype/matcher/apk/matcher.go type Matcher (line 26) | type Matcher struct method PackageTypes (line 28) | func (m *Matcher) PackageTypes() []syftPkg.Type { method Type (line 32) | func (m *Matcher) Type() match.MatcherType { method Match (line 36) | func (m *Matcher) Match(store vulnerability.Provider, p pkg.Package) (... method cpeMatchesWithoutSecDBFixes (line 68) | func (m *Matcher) cpeMatchesWithoutSecDBFixes(provider vulnerability.P... method findMatchesForPackage (line 179) | func (m *Matcher) findMatchesForPackage(store vulnerability.Provider, ... method findMatchesForOriginPackage (line 204) | func (m *Matcher) findMatchesForOriginPackage(store vulnerability.Prov... method findNaksForPackage (line 239) | func (m *Matcher) findNaksForPackage(provider vulnerability.Provider, ... function deduplicateMatches (line 147) | func deduplicateMatches(secDBMatches, cpeMatches []match.Match) (matches... function matchesByID (line 162) | func matchesByID(matches []match.Match) map[string][]match.Match { function vulnerabilitiesByID (line 170) | func vulnerabilitiesByID(vulns []vulnerability.Vulnerability) map[string... function ownedFilesFromMetadata (line 225) | func ownedFilesFromMetadata(p pkg.Package) []string { FILE: grype/matcher/apk/matcher_test.go function TestSecDBOnlyMatch (line 22) | func TestSecDBOnlyMatch(t *testing.T) { function TestBothSecdbAndNvdMatches (line 85) | func TestBothSecdbAndNvdMatches(t *testing.T) { function TestBothSecdbAndNvdMatches_DifferentFixInfo (line 161) | func TestBothSecdbAndNvdMatches_DifferentFixInfo(t *testing.T) { function TestBothSecdbAndNvdMatches_DifferentPackageName (line 244) | func TestBothSecdbAndNvdMatches_DifferentPackageName(t *testing.T) { function TestNvdOnlyMatches (line 322) | func TestNvdOnlyMatches(t *testing.T) { function TestNvdOnlyMatches_FixInNvd (line 385) | func TestNvdOnlyMatches_FixInNvd(t *testing.T) { function TestNvdMatchesProperVersionFiltering (line 455) | func TestNvdMatchesProperVersionFiltering(t *testing.T) { function TestNvdMatchesWithSecDBFix (line 527) | func TestNvdMatchesWithSecDBFix(t *testing.T) { function TestNvdMatchesNoConstraintWithSecDBFix (line 573) | func TestNvdMatchesNoConstraintWithSecDBFix(t *testing.T) { function TestNVDMatchCanceledByOriginPackageInSecDB (line 619) | func TestNVDMatchCanceledByOriginPackageInSecDB(t *testing.T) { function TestDistroMatchBySourceIndirection (line 669) | func TestDistroMatchBySourceIndirection(t *testing.T) { function TestSecDBMatchesStillCountedWithCpeErrors (line 737) | func TestSecDBMatchesStillCountedWithCpeErrors(t *testing.T) { function TestNVDMatchBySourceIndirection (line 805) | func TestNVDMatchBySourceIndirection(t *testing.T) { function assertMatches (line 872) | func assertMatches(t *testing.T, expected, actual []match.Match) { function Test_nakConstraint (line 885) | func Test_nakConstraint(t *testing.T) { function Test_nakIgnoreRules (line 928) | func Test_nakIgnoreRules(t *testing.T) { function TestMatcherApk_DistroFixedIgnoreRules (line 1095) | func TestMatcherApk_DistroFixedIgnoreRules(t *testing.T) { FILE: grype/matcher/bitnami/matcher.go type Matcher (line 11) | type Matcher struct method PackageTypes (line 13) | func (m *Matcher) PackageTypes() []syftPkg.Type { method Type (line 17) | func (m *Matcher) Type() match.MatcherType { method Match (line 21) | func (m *Matcher) Match(store vulnerability.Provider, p pkg.Package) (... FILE: grype/matcher/dotnet/matcher.go type Matcher (line 11) | type Matcher struct method PackageTypes (line 25) | func (m *Matcher) PackageTypes() []syftPkg.Type { method Type (line 29) | func (m *Matcher) Type() match.MatcherType { method Match (line 33) | func (m *Matcher) Match(store vulnerability.Provider, p pkg.Package) (... type MatcherConfig (line 15) | type MatcherConfig struct function NewDotnetMatcher (line 19) | func NewDotnetMatcher(cfg MatcherConfig) *Matcher { FILE: grype/matcher/dpkg/matcher.go type Matcher (line 16) | type Matcher struct method PackageTypes (line 31) | func (m *Matcher) PackageTypes() []syftPkg.Type { method Type (line 35) | func (m *Matcher) Type() match.MatcherType { method Match (line 39) | func (m *Matcher) Match(store vulnerability.Provider, p pkg.Package) (... method matchUpstreamPackages (line 74) | func (m *Matcher) matchUpstreamPackages(store vulnerability.Provider, ... type MatcherConfig (line 20) | type MatcherConfig struct function NewDpkgMatcher (line 25) | func NewDpkgMatcher(cfg MatcherConfig) *Matcher { FILE: grype/matcher/dpkg/matcher_mocks_test.go function newMockProvider (line 13) | func newMockProvider() vulnerability.Provider { type mockEOLProvider (line 41) | type mockEOLProvider struct method GetOperatingSystemEOL (line 46) | func (m *mockEOLProvider) GetOperatingSystemEOL(d *distro.Distro) (eol... function newMockEOLProvider (line 50) | func newMockEOLProvider(eolDate *time.Time) *mockEOLProvider { FILE: grype/matcher/dpkg/matcher_test.go function TestMatcherDpkg_matchBySourceIndirection (line 19) | func TestMatcherDpkg_matchBySourceIndirection(t *testing.T) { function TestMatcherDpkg_CPEFallbackWhenEOL (line 67) | func TestMatcherDpkg_CPEFallbackWhenEOL(t *testing.T) { FILE: grype/matcher/golang/matcher.go type Matcher (line 13) | type Matcher struct method PackageTypes (line 29) | func (m *Matcher) PackageTypes() []syftPkg.Type { method Type (line 33) | func (m *Matcher) Type() match.MatcherType { method Match (line 37) | func (m *Matcher) Match(store vulnerability.Provider, p pkg.Package) (... type MatcherConfig (line 17) | type MatcherConfig struct function NewGolangMatcher (line 23) | func NewGolangMatcher(cfg MatcherConfig) *Matcher { function searchByCPE (line 66) | func searchByCPE(name string, cfg MatcherConfig) bool { FILE: grype/matcher/golang/matcher_test.go function TestMatcher_DropMainPackageGivenVersionInfo (line 18) | func TestMatcher_DropMainPackageGivenVersionInfo(t *testing.T) { function TestMatcher_SearchForStdlib (line 88) | func TestMatcher_SearchForStdlib(t *testing.T) { function newMockProvider (line 197) | func newMockProvider() vulnerability.Provider { FILE: grype/matcher/hex/matcher.go type Matcher (line 11) | type Matcher struct method PackageTypes (line 25) | func (m *Matcher) PackageTypes() []syftPkg.Type { method Type (line 29) | func (m *Matcher) Type() match.MatcherType { method Match (line 33) | func (m *Matcher) Match(store vulnerability.Provider, p pkg.Package) (... type MatcherConfig (line 15) | type MatcherConfig struct function NewHexMatcher (line 19) | func NewHexMatcher(cfg MatcherConfig) *Matcher { FILE: grype/matcher/internal/common.go function MatchPackageByEcosystemAndCPEs (line 12) | func MatchPackageByEcosystemAndCPEs(store vulnerability.Provider, p pkg.... function MatchPackageByEcosystemPackageNameAndCPEs (line 28) | func MatchPackageByEcosystemPackageNameAndCPEs(store vulnerability.Provi... FILE: grype/matcher/internal/cpe.go function alpineCPEComparableVersion (line 21) | func alpineCPEComparableVersion(version string) string { function MatchPackageByCPEs (line 40) | func MatchPackageByCPEs(provider vulnerability.Provider, p pkg.Package, ... function transformJvmVersion (line 106) | func transformJvmVersion(searchVersion, updateCpeField string) string { function addNewMatch (line 114) | func addNewMatch(matchesByFingerprint map[match.Fingerprint]match.Match,... function CPEMatchDetails (line 132) | func CPEMatchDetails(matcherType match.MatcherType, vuln vulnerability.V... function addMatchDetails (line 156) | func addMatchDetails(existingDetails []match.Detail, newDetails match.De... function filterCPEsByVersion (line 195) | func filterCPEsByVersion(pkgVersion *version.Version, allCPEs []cpe.CPE)... function toMatches (line 231) | func toMatches(matchesByFingerprint map[match.Fingerprint]match.Match) (... function cpesToString (line 240) | func cpesToString(cpes []cpe.CPE) []string { FILE: grype/matcher/internal/cpe_test.go function newCPETestStore (line 21) | func newCPETestStore() vulnerability.Provider { function TestFindMatchesByPackageCPE (line 108) | func TestFindMatchesByPackageCPE(t *testing.T) { function TestFilterCPEsByVersion (line 1021) | func TestFilterCPEsByVersion(t *testing.T) { function TestAddMatchDetails (line 1085) | func TestAddMatchDetails(t *testing.T) { function TestCPESearchHit_Equals (line 1365) | func TestCPESearchHit_Equals(t *testing.T) { FILE: grype/matcher/internal/distro.go function MatchPackageByDistro (line 17) | func MatchPackageByDistro(provider vulnerability.Provider, searchPkg pkg... function MatchPackageByDistroWithOwnedFiles (line 67) | func MatchPackageByDistroWithOwnedFiles(provider vulnerability.Provider,... function distroFixedIgnoreRules (line 122) | func distroFixedIgnoreRules(fixed result.Set, ownedFiles []string) []mat... function matchPackage (line 146) | func matchPackage(searchPkg pkg.Package, catalogPkg *pkg.Package) pkg.Pa... function distroMatchDetails (line 153) | func distroMatchDetails(upstreamMatcher match.MatcherType, searchPkg pkg... function collectVulnerabilityIDs (line 184) | func collectVulnerabilityIDs(v vulnerability.Vulnerability) []string { function isUnknownVersion (line 194) | func isUnknownVersion(v string) bool { function patchDetailVersion (line 201) | func patchDetailVersion(s result.Set, version string) { function ownedFilesFor (line 229) | func ownedFilesFor(p pkg.Package) []string { FILE: grype/matcher/internal/distro_test.go function newMockProviderByDistro (line 19) | func newMockProviderByDistro() vulnerability.Provider { function TestFindMatchesByPackageDistro (line 41) | func TestFindMatchesByPackageDistro(t *testing.T) { function TestMatchPackageByDistroWithIgnoreRules (line 105) | func TestMatchPackageByDistroWithIgnoreRules(t *testing.T) { function TestFindMatchesByPackageDistroSles (line 326) | func TestFindMatchesByPackageDistroSles(t *testing.T) { FILE: grype/matcher/internal/eol.go type EOLStatus (line 12) | type EOLStatus struct function CheckDistroEOL (line 22) | func CheckDistroEOL(provider vulnerability.Provider, d *distro.Distro) E... function IsDistroEOL (line 57) | func IsDistroEOL(provider vulnerability.Provider, d *distro.Distro) bool { FILE: grype/matcher/internal/eol_test.go type mockEOLProvider (line 15) | type mockEOLProvider struct method GetOperatingSystemEOL (line 22) | func (m *mockEOLProvider) GetOperatingSystemEOL(d *distro.Distro) (eol... function newMockEOLProvider (line 26) | func newMockEOLProvider(eolDate, eoasDate *time.Time) *mockEOLProvider { function TestCheckDistroEOL_NilDistro (line 34) | func TestCheckDistroEOL_NilDistro(t *testing.T) { function TestCheckDistroEOL_ProviderDoesNotSupportEOL (line 44) | func TestCheckDistroEOL_ProviderDoesNotSupportEOL(t *testing.T) { function TestCheckDistroEOL_PastEOLDate (line 57) | func TestCheckDistroEOL_PastEOLDate(t *testing.T) { function TestCheckDistroEOL_FutureEOLDate (line 70) | func TestCheckDistroEOL_FutureEOLDate(t *testing.T) { function TestCheckDistroEOL_PastEOASDate (line 83) | func TestCheckDistroEOL_PastEOASDate(t *testing.T) { function TestCheckDistroEOL_NoEOLData (line 97) | func TestCheckDistroEOL_NoEOLData(t *testing.T) { function TestIsDistroEOL (line 109) | func TestIsDistroEOL(t *testing.T) { function ptrTime (line 144) | func ptrTime(t time.Time) *time.Time { FILE: grype/matcher/internal/language.go function MatchPackageByLanguage (line 16) | func MatchPackageByLanguage(store vulnerability.Provider, p pkg.Package,... function MatchPackageByEcosystemPackageName (line 32) | func MatchPackageByEcosystemPackageName(vp vulnerability.Provider, p pkg... function constructIgnoreFilters (line 68) | func constructIgnoreFilters(unaffectedVulns result.Set, p pkg.Package) [... FILE: grype/matcher/internal/language_test.go function newMockProviderRuby (line 22) | func newMockProviderRuby() vulnerability.Provider { function expectedMatchRuby (line 75) | func expectedMatchRuby(p pkg.Package, constraint string) []match.Match { function TestFindMatchesByPackageRuby (line 104) | func TestFindMatchesByPackageRuby(t *testing.T) { function expectedMatchGolang (line 161) | func expectedMatchGolang(p pkg.Package, vulnConstraint map[string]string... function newMockProviderGolang (line 200) | func newMockProviderGolang() vulnerability.Provider { function TestFindMatchesByPackageGolang (line 243) | func TestFindMatchesByPackageGolang(t *testing.T) { function Test_unaffectedPackageIgnoreRules (line 301) | func Test_unaffectedPackageIgnoreRules(t *testing.T) { FILE: grype/matcher/internal/only_non_withdrawn_vulnerabilities.go function OnlyNonWithdrawnVulnerabilities (line 9) | func OnlyNonWithdrawnVulnerabilities() vulnerability.Criteria { FILE: grype/matcher/internal/only_qualified_packages.go function OnlyQualifiedPackages (line 12) | func OnlyQualifiedPackages(p pkg.Package) vulnerability.Criteria { FILE: grype/matcher/internal/only_vulnerable_targets.go function OnlyVulnerableTargets (line 20) | func OnlyVulnerableTargets(p pkg.Package) vulnerability.Criteria { function isVulnerableTarget (line 28) | func isVulnerableTarget(p pkg.Package, vuln vulnerability.Vulnerability)... function refuteTargetSoftwareByPackageAttributes (line 78) | func refuteTargetSoftwareByPackageAttributes(p pkg.Package, vuln vulnera... function isOSPackage (line 97) | func isOSPackage(p pkg.Package) bool { function isUnknownTarget (line 101) | func isUnknownTarget(targetSW string) bool { function matchTargetSoftware (line 122) | func matchTargetSoftware(pkgCPEs []cpe.CPE, vulnCPEs []cpe.CPE) (*strset... function matchesAttributesExceptVersionAndTSW (line 137) | func matchesAttributesExceptVersionAndTSW(a1 cpe.Attributes, a2 cpe.Attr... function matchesAttribute (line 152) | func matchesAttribute(a1, a2 string) bool { function hasIntersectingTargetSoftware (line 156) | func hasIntersectingTargetSoftware(set1, set2 *strset.Set) bool { function normalizeTargetSoftwares (line 163) | func normalizeTargetSoftwares(ts []string) *strset.Set { function packageElements (line 180) | func packageElements(p pkg.Package, ts []string) string { FILE: grype/matcher/internal/only_vulnerable_targets_test.go function TestIsVulnerableTarget (line 15) | func TestIsVulnerableTarget(t *testing.T) { function Test_isUnknownTarget (line 260) | func Test_isUnknownTarget(t *testing.T) { function TestPkgTypesFromTargetSoftware (line 279) | func TestPkgTypesFromTargetSoftware(t *testing.T) { function TestHasIntersectingTargetSoftware (line 361) | func TestHasIntersectingTargetSoftware(t *testing.T) { FILE: grype/matcher/internal/only_vulnerable_versions.go function OnlyVulnerableVersions (line 10) | func OnlyVulnerableVersions(v *version.Version) vulnerability.Criteria { FILE: grype/matcher/internal/result/match_details_set.go type MatchDetailsSet (line 5) | type MatchDetailsSet struct method Add (line 21) | func (ds *MatchDetailsSet) Add(detail match.Detail) { method ToSlice (line 28) | func (ds MatchDetailsSet) ToSlice() []match.Detail { function NewMatchDetailsSet (line 10) | func NewMatchDetailsSet(ds ...match.Detail) MatchDetailsSet { FILE: grype/matcher/internal/result/provider.go type Provider (line 12) | type Provider interface type provider (line 16) | type provider struct method FindResults (line 30) | func (p provider) FindResults(criteria ...vulnerability.Criteria) (Set... function NewProvider (line 22) | func NewProvider(vp vulnerability.Provider, catalogedPkg pkg.Package, ma... function detailProvider (line 57) | func detailProvider(matcher match.MatcherType, catalogedPkg pkg.Package,... function extractSearchParameters (line 67) | func extractSearchParameters(criteriaSet []vulnerability.Criteria, vuln ... function determineMatchType (line 118) | func determineMatchType(catalogedPkg pkg.Package, pkgParams *match.Packa... function applyPackageParamsToSearchParams (line 127) | func applyPackageParamsToSearchParams(pkgParams *match.PackageParameter,... function getConstraintString (line 144) | func getConstraintString(vuln vulnerability.Vulnerability) string { function buildMatchDetails (line 152) | func buildMatchDetails(matcher match.MatcherType, distroMatchType match.... FILE: grype/matcher/internal/result/results.go type Result (line 16) | type Result struct type Set (line 30) | type Set method ToMatches (line 46) | func (s Set) ToMatches() []match.Match { method Remove (line 86) | func (s Set) Remove(incoming Set) Set { method Merge (line 130) | func (s Set) Merge(incoming Set, mergeFuncs ...func(existing, incoming... method Contains (line 171) | func (s Set) Contains(id string) bool { method ContainsAny (line 176) | func (s Set) ContainsAny(ids ...string) bool { method ContainsByIdentity (line 187) | func (s Set) ContainsByIdentity(searchID string, searchResults []Resul... method Intersection (line 200) | func (s Set) Intersection(other Set) Set { method Update (line 234) | func (s Set) Update(incoming Set, shouldUpdate func(existing Result, i... method Filter (line 259) | func (s Set) Filter(criteria ...vulnerability.Criteria) Set { function unionIntoResult (line 32) | func unionIntoResult(existing []Result) Result { function extractAliases (line 104) | func extractAliases(results []Result) *strset.Set { function getIdentity (line 117) | func getIdentity(id string, results []Result) *strset.Set { function unionResults (line 124) | func unionResults(existing, incoming []Result) (n []Result) { function IdentitiesOverlap (line 219) | func IdentitiesOverlap(existing Result, incoming Result) bool { function filterVulns (line 292) | func filterVulns(vulnerabilities []vulnerability.Vulnerability, criteria... FILE: grype/matcher/internal/result/results_test.go function TestSet_Remove (line 19) | func TestSet_Remove(t *testing.T) { function TestSet_Merge (line 411) | func TestSet_Merge(t *testing.T) { function TestSet_ToMatches (line 537) | func TestSet_ToMatches(t *testing.T) { function TestSet_Filter (line 628) | func TestSet_Filter(t *testing.T) { function TestSet_Contains (line 763) | func TestSet_Contains(t *testing.T) { function TestSet_Update (line 818) | func TestSet_Update(t *testing.T) { FILE: grype/matcher/internal/utils_test.go function assertMatchesUsingIDsForVulnerabilities (line 13) | func assertMatchesUsingIDsForVulnerabilities(t testing.TB, expected, act... FILE: grype/matcher/java/matcher.go constant sha1Query (line 19) | sha1Query = `1:"%s"` type Matcher (line 22) | type Matcher struct method PackageTypes (line 45) | func (m *Matcher) PackageTypes() []syftPkg.Type { method Type (line 49) | func (m *Matcher) Type() match.MatcherType { method Match (line 53) | func (m *Matcher) Match(store vulnerability.Provider, p pkg.Package) (... method matchUpstreamMavenPackages (line 79) | func (m *Matcher) matchUpstreamMavenPackages(store vulnerability.Provi... method shouldSearchMavenBySha (line 114) | func (m *Matcher) shouldSearchMavenBySha(p pkg.Package) (bool, []strin... type ExternalSearchConfig (line 27) | type ExternalSearchConfig struct type MatcherConfig (line 33) | type MatcherConfig struct function NewJavaMatcher (line 38) | func NewJavaMatcher(cfg MatcherConfig) *Matcher { FILE: grype/matcher/java/matcher_integration_test.go function TestMavenSearch_GetMavenPackageBySha (line 17) | func TestMavenSearch_GetMavenPackageBySha(t *testing.T) { FILE: grype/matcher/java/matcher_mocks_test.go function newMockProvider (line 14) | func newMockProvider() vulnerability.Provider { type mockMavenSearcher (line 47) | type mockMavenSearcher struct method GetMavenPackageBySha (line 52) | func (m mockMavenSearcher) GetMavenPackageBySha(context.Context, strin... FILE: grype/matcher/java/matcher_test.go function TestMatcherJava_matchUpstreamMavenPackage (line 16) | func TestMatcherJava_matchUpstreamMavenPackage(t *testing.T) { function TestMatcherJava_shouldSearchMavenBySha (line 158) | func TestMatcherJava_shouldSearchMavenBySha(t *testing.T) { FILE: grype/matcher/java/maven_search.go type MavenSearcher (line 19) | type MavenSearcher interface type mavenSearch (line 25) | type mavenSearch struct method GetMavenPackageBySha (line 55) | func (ms *mavenSearch) GetMavenPackageBySha(ctx context.Context, sha1 ... function newMavenSearch (line 33) | func newMavenSearch(client *http.Client, baseURL string, rateLimit time.... type mavenAPIResponse (line 41) | type mavenAPIResponse struct FILE: grype/matcher/java/maven_test.go function TestNewMavenSearchRateLimiter (line 13) | func TestNewMavenSearchRateLimiter(t *testing.T) { function withinDelta (line 94) | func withinDelta(got, want, delta time.Duration) bool { FILE: grype/matcher/javascript/matcher.go type Matcher (line 11) | type Matcher struct method PackageTypes (line 25) | func (m *Matcher) PackageTypes() []syftPkg.Type { method Type (line 29) | func (m *Matcher) Type() match.MatcherType { method Match (line 33) | func (m *Matcher) Match(store vulnerability.Provider, p pkg.Package) (... type MatcherConfig (line 15) | type MatcherConfig struct function NewJavascriptMatcher (line 19) | func NewJavascriptMatcher(cfg MatcherConfig) *Matcher { FILE: grype/matcher/matchers.go type Config (line 24) | type Config struct function NewDefaultMatchers (line 38) | func NewDefaultMatchers(mc Config) []match.Matcher { FILE: grype/matcher/mock/matcher.go type MatchFunc (line 14) | type MatchFunc type Matcher (line 18) | type Matcher struct method PackageTypes (line 31) | func (m Matcher) PackageTypes() []syftPkg.Type { method Type (line 35) | func (m Matcher) Type() match.MatcherType { method Match (line 39) | func (m Matcher) Match(vp vulnerability.Provider, p pkg.Package) ([]ma... function New (line 24) | func New(typ syftPkg.Type, matchFunc MatchFunc) *Matcher { FILE: grype/matcher/msrc/matcher.go type Matcher (line 11) | type Matcher struct method PackageTypes (line 14) | func (m *Matcher) PackageTypes() []syftPkg.Type { method Type (line 21) | func (m *Matcher) Type() match.MatcherType { method Match (line 25) | func (m *Matcher) Match(store vulnerability.Provider, p pkg.Package) (... FILE: grype/matcher/pacman/matcher.go type Matcher (line 13) | type Matcher struct method PackageTypes (line 15) | func (m *Matcher) PackageTypes() []syftPkg.Type { method Type (line 19) | func (m *Matcher) Type() match.MatcherType { method Match (line 23) | func (m *Matcher) Match(store vulnerability.Provider, p pkg.Package) (... FILE: grype/matcher/pacman/matcher_test.go function TestMatcherType (line 21) | func TestMatcherType(t *testing.T) { function TestMatcherPackageTypes (line 26) | func TestMatcherPackageTypes(t *testing.T) { function TestMatch (line 31) | func TestMatch(t *testing.T) { function TestMatchNoVulnerability (line 89) | func TestMatchNoVulnerability(t *testing.T) { function TestMatchWithEpoch (line 118) | func TestMatchWithEpoch(t *testing.T) { function TestMatchNilDistro (line 147) | func TestMatchNilDistro(t *testing.T) { function assertMatches (line 163) | func assertMatches(t *testing.T, expected, actual []match.Match) { FILE: grype/matcher/portage/matcher.go type Matcher (line 11) | type Matcher struct method PackageTypes (line 14) | func (m *Matcher) PackageTypes() []syftPkg.Type { method Type (line 18) | func (m *Matcher) Type() match.MatcherType { method Match (line 22) | func (m *Matcher) Match(store vulnerability.Provider, p pkg.Package) (... FILE: grype/matcher/portage/matcher_mocks_test.go function newMockProvider (line 9) | func newMockProvider() vulnerability.Provider { FILE: grype/matcher/portage/matcher_test.go function TestMatcherPortage_Match (line 16) | func TestMatcherPortage_Match(t *testing.T) { FILE: grype/matcher/python/matcher.go type Matcher (line 11) | type Matcher struct method PackageTypes (line 25) | func (m *Matcher) PackageTypes() []syftPkg.Type { method Type (line 29) | func (m *Matcher) Type() match.MatcherType { method Match (line 33) | func (m *Matcher) Match(store vulnerability.Provider, p pkg.Package) (... type MatcherConfig (line 15) | type MatcherConfig struct function NewPythonMatcher (line 19) | func NewPythonMatcher(cfg MatcherConfig) *Matcher { FILE: grype/matcher/rpm/almalinux.go function shouldUseAlmaLinuxMatching (line 19) | func shouldUseAlmaLinuxMatching(d *distro.Distro) bool { function markAsIndirectMatches (line 27) | func markAsIndirectMatches(results result.Set) result.Set { function almaLinuxMatchesWithUpstreams (line 52) | func almaLinuxMatchesWithUpstreams(provider result.Provider, binaryPkg p... function findRelatedUnaffectedPackages (line 136) | func findRelatedUnaffectedPackages(provider result.Provider, searchPkg p... function applyAlmaLinuxUnaffectedFiltering (line 172) | func applyAlmaLinuxUnaffectedFiltering(disclosures result.Set, unaffecte... function replaceWithAlmaLinuxFixInfo (line 190) | func replaceWithAlmaLinuxFixInfo(existing *result.Result, incoming resul... function constructAdvisory (line 238) | func constructAdvisory(vuln vulnerability.Vulnerability, pkg *pkg.Packag... function extractFixVersionFromConstraint (line 270) | func extractFixVersionFromConstraint(constraint version.Constraint) stri... FILE: grype/matcher/rpm/almalinux_package_utils.go function extractSourceRPMName (line 12) | func extractSourceRPMName(p pkg.Package) string { function getRelatedPackageNames (line 33) | func getRelatedPackageNames(p pkg.Package) []string { FILE: grype/matcher/rpm/almalinux_package_utils_test.go function TestExtractSourceRPMName (line 13) | func TestExtractSourceRPMName(t *testing.T) { function TestGetRelatedPackageNames (line 79) | func TestGetRelatedPackageNames(t *testing.T) { function intPtr (line 138) | func intPtr(i int) *int { FILE: grype/matcher/rpm/almalinux_test.go type MockProvider (line 25) | type MockProvider struct method FindResults (line 30) | func (m *MockProvider) FindResults(criteria ...vulnerability.Criteria)... function TestShouldUseAlmaLinuxMatching (line 38) | func TestShouldUseAlmaLinuxMatching(t *testing.T) { function TestModularityExcludesDisclosure (line 81) | func TestModularityExcludesDisclosure(t *testing.T) { function TestAlmaLinuxMatching (line 157) | func TestAlmaLinuxMatching(t *testing.T) { function createConstraint (line 1585) | func createConstraint(t *testing.T, constraintStr string, format version... function createExpectedDetails (line 1591) | func createExpectedDetails(pkg pkg.Package, vuln vulnerability.Vulnerabi... function strPtr (line 1614) | func strPtr(s string) *string { FILE: grype/matcher/rpm/matcher.go type Matcher (line 19) | type Matcher struct method PackageTypes (line 34) | func (m *Matcher) PackageTypes() []syftPkg.Type { method Type (line 38) | func (m *Matcher) Type() match.MatcherType { method Match (line 43) | func (m *Matcher) Match(vp vulnerability.Provider, p pkg.Package) ([]m... method matchAlmaLinux (line 91) | func (m *Matcher) matchAlmaLinux(vp vulnerability.Provider, p pkg.Pack... method matchPackage (line 125) | func (m *Matcher) matchPackage(vp vulnerability.Provider, p pkg.Packag... method matchUpstreamPackages (line 183) | func (m *Matcher) matchUpstreamPackages(vp vulnerability.Provider, p p... method findMatches (line 199) | func (m *Matcher) findMatches(provider result.Provider, searchPkg pkg.... method standardMatches (line 216) | func (m *Matcher) standardMatches(provider result.Provider, searchPkg ... type MatcherConfig (line 23) | type MatcherConfig struct function NewRpmMatcher (line 28) | func NewRpmMatcher(cfg MatcherConfig) *Matcher { function addEpochIfApplicable (line 239) | func addEpochIfApplicable(p *pkg.Package) { function isUnknownVersion (line 258) | func isUnknownVersion(v string) bool { FILE: grype/matcher/rpm/matcher_mocks_test.go function newMockProvider (line 15) | func newMockProvider(packageName, indirectName string, withEpoch bool, w... constant namespace (line 24) | namespace = "secdb:distro:centos:8" function vulnerabilitiesDefaults (line 26) | func vulnerabilitiesDefaults(packageName, indirectName string) []vulnera... function vulnerabilitiesWithEpoch (line 55) | func vulnerabilitiesWithEpoch(packageName, indirectName string) []vulner... function vulnerabilitiesWithPackageQualifiers (line 83) | func vulnerabilitiesWithPackageQualifiers(packageName string) []vulnerab... type mockEOLProvider (line 119) | type mockEOLProvider struct method GetOperatingSystemEOL (line 124) | func (m *mockEOLProvider) GetOperatingSystemEOL(d *distro.Distro) (eol... function newMockEOLProvider (line 128) | func newMockEOLProvider(eolDate *time.Time) *mockEOLProvider { FILE: grype/matcher/rpm/matcher_test.go function TestMatcherRpm (line 19) | func TestMatcherRpm(t *testing.T) { function Test_addEpochIfApplicable (line 330) | func Test_addEpochIfApplicable(t *testing.T) { function TestMatcherRpm_CPEFallbackWhenEOL (line 390) | func TestMatcherRpm_CPEFallbackWhenEOL(t *testing.T) { FILE: grype/matcher/rpm/rhel_eus.go function extractRHELVersionFromRelease (line 30) | func extractRHELVersionFromRelease(release string) (major, minor int, fo... function extractReleaseFromRPMVersion (line 59) | func extractReleaseFromRPMVersion(rpmVersion string) string { function isFixReachableForEUS (line 77) | func isFixReachableForEUS(fixVersion string, eusDistro *distro.Distro) b... function shouldUseRedhatEUSMatching (line 119) | func shouldUseRedhatEUSMatching(d *distro.Distro) bool { function redhatEUSMatches (line 166) | func redhatEUSMatches(provider result.Provider, searchPkg pkg.Package, m... function mergeEUSAdvisoriesIntoMainDisclosures (line 226) | func mergeEUSAdvisoriesIntoMainDisclosures(v *version.Version, eusDistro... function mergeEUSAdvisoryIntoMainDisclosure (line 242) | func mergeEUSAdvisoryIntoMainDisclosure(v *version.Version, disclosures ... function mergeEUSAdvisoryIntoSingleDisclosure (line 262) | func mergeEUSAdvisoryIntoSingleDisclosure(v *version.Version, disclosure... function collectMatchingConstraintsDetailsAndFixState (line 288) | func collectMatchingConstraintsDetailsAndFixState(v *version.Version, ad... function buildPatchedVulnerabilityRecord (line 330) | func buildPatchedVulnerabilityRecord(v *version.Version, disclosure vuln... function finalizeMatchDetails (line 352) | func finalizeMatchDetails(processedResult *result.Result, originalDetail... function isVulnerableVersion (line 385) | func isVulnerableVersion(v *version.Version, c version.Constraint, id st... function neededFixes (line 400) | func neededFixes(v *version.Version, fixVersions []string, format versio... function filterFixesForEUS (line 418) | func filterFixesForEUS(fixes []*version.Version, eusDistro *distro.Distr... function finalizeFixState (line 434) | func finalizeFixState(record vulnerability.Vulnerability, state vulnerab... FILE: grype/matcher/rpm/rhel_eus_test.go function TestExtractRHELVersionFromRelease (line 22) | func TestExtractRHELVersionFromRelease(t *testing.T) { function TestExtractReleaseFromRPMVersion (line 91) | func TestExtractReleaseFromRPMVersion(t *testing.T) { function TestIsFixReachableForEUS (line 127) | func TestIsFixReachableForEUS(t *testing.T) { function TestResolveEUSDisclosures (line 215) | func TestResolveEUSDisclosures(t *testing.T) { function TestRedhatEUSMatches (line 771) | func TestRedhatEUSMatches(t *testing.T) { function strRef (line 1511) | func strRef(s string) *string { function intRef (line 1515) | func intRef(s int) *int { type mockVulnProvider (line 1520) | type mockVulnProvider struct method setDisclosureVulns (line 1535) | func (m *mockVulnProvider) setDisclosureVulns(vulns []vulnerability.Vu... method setResolutionVulns (line 1539) | func (m *mockVulnProvider) setResolutionVulns(vulns []vulnerability.Vu... method setDisclosureError (line 1543) | func (m *mockVulnProvider) setDisclosureError(err error) { method setResolutionError (line 1547) | func (m *mockVulnProvider) setResolutionError(err error) { method FindVulnerabilities (line 1551) | func (m *mockVulnProvider) FindVulnerabilities(criteria ...vulnerabili... function newMockVulnProvider (line 1531) | func newMockVulnProvider() *mockVulnProvider { function channels (line 1568) | func channels(s ...string) []string { function newEUSDistro (line 1576) | func newEUSDistro(version string) *distro.Distro { FILE: grype/matcher/ruby/matcher.go type Matcher (line 11) | type Matcher struct method PackageTypes (line 25) | func (m *Matcher) PackageTypes() []syftPkg.Type { method Type (line 29) | func (m *Matcher) Type() match.MatcherType { method Match (line 33) | func (m *Matcher) Match(store vulnerability.Provider, p pkg.Package) (... type MatcherConfig (line 15) | type MatcherConfig struct function NewRubyMatcher (line 19) | func NewRubyMatcher(cfg MatcherConfig) *Matcher { FILE: grype/matcher/rust/matcher.go type Matcher (line 11) | type Matcher struct method PackageTypes (line 25) | func (m *Matcher) PackageTypes() []syftPkg.Type { method Type (line 29) | func (m *Matcher) Type() match.MatcherType { method Match (line 33) | func (m *Matcher) Match(store vulnerability.Provider, p pkg.Package) (... type MatcherConfig (line 15) | type MatcherConfig struct function NewRustMatcher (line 19) | func NewRustMatcher(cfg MatcherConfig) *Matcher { FILE: grype/matcher/stock/matcher.go type Matcher (line 11) | type Matcher struct method PackageTypes (line 25) | func (m *Matcher) PackageTypes() []syftPkg.Type { method Type (line 29) | func (m *Matcher) Type() match.MatcherType { method Match (line 33) | func (m *Matcher) Match(store vulnerability.Provider, p pkg.Package) (... type MatcherConfig (line 15) | type MatcherConfig struct function NewStockMatcher (line 19) | func NewStockMatcher(cfg MatcherConfig) match.Matcher { FILE: grype/matcher/stock/matcher_test.go function TestMatcher_JVMPackage (line 20) | func TestMatcher_JVMPackage(t *testing.T) { function newMockProvider (line 77) | func newMockProvider() vulnerability.Provider { FILE: grype/pkg/apk_metadata.go type ApkMetadata (line 11) | type ApkMetadata struct method OwnedFiles (line 20) | func (m ApkMetadata) OwnedFiles() []string { type ApkFileRecord (line 16) | type ApkFileRecord struct FILE: grype/pkg/context.go type Context (line 8) | type Context struct FILE: grype/pkg/context_test.go function TestContext_DistroDetectionFailed (line 11) | func TestContext_DistroDetectionFailed(t *testing.T) { FILE: grype/pkg/cpe_provider.go constant cpeInputPrefix (line 13) | cpeInputPrefix = "cpe:" constant cpeListPrefix (line 14) | cpeListPrefix = "cpes:" type CPELiteralMetadata (line 16) | type CPELiteralMetadata struct function cpeProvider (line 20) | func cpeProvider(userInput string, config ProviderConfig) ([]Package, Co... function getCPEReader (line 34) | func getCPEReader(userInput string) (r io.Reader, ctx Context, err error) { FILE: grype/pkg/cpe_provider_test.go function Test_CPEProvider (line 17) | func Test_CPEProvider(t *testing.T) { FILE: grype/pkg/file_owner.go type FileOwner (line 3) | type FileOwner interface FILE: grype/pkg/golang_metadata.go type GolangBinMetadata (line 5) | type GolangBinMetadata struct type GolangModMetadata (line 14) | type GolangModMetadata struct type GolangSourceMetadata (line 18) | type GolangSourceMetadata struct FILE: grype/pkg/java_metadata.go type JavaMetadata (line 9) | type JavaMetadata struct type Digest (line 17) | type Digest struct type JavaVMInstallationMetadata (line 22) | type JavaVMInstallationMetadata struct type JavaVMReleaseMetadata (line 26) | type JavaVMReleaseMetadata struct function isJvmPackage (line 33) | func isJvmPackage(p Package) bool { function HasJvmPackageName (line 49) | func HasJvmPackageName(name string) bool { FILE: grype/pkg/java_metadata_test.go function TestIsJvmPackage (line 11) | func TestIsJvmPackage(t *testing.T) { FILE: grype/pkg/package.go type ID (line 29) | type ID type Package (line 32) | type Package struct method String (line 115) | func (p Package) String() string { type Enhancer (line 47) | type Enhancer function New (line 49) | func New(p syftPkg.Package, enhancers ...Enhancer) Package { function FromCollection (line 89) | func FromCollection(catalog *syftPkg.Collection, config SynthesisConfig,... function FromPackages (line 93) | func FromPackages(syftPkgs []syftPkg.Package, config SynthesisConfig, en... function removePackagesByOverlap (line 127) | func removePackagesByOverlap(catalog *syftPkg.Collection, relationships ... function excludePackage (line 151) | func excludePackage(comprehensiveDistroFeed bool, p syftPkg.Package, par... function distroFeedIsComprehensive (line 180) | func distroFeedIsComprehensive(dst *distro.Distro) bool { function isOSPackage (line 216) | func isOSPackage(p syftPkg.Package) bool { function dataFromPkg (line 225) | func dataFromPkg(p syftPkg.Package) (any, []UpstreamPackage) { function javaVMDataFromPkg (line 264) | func javaVMDataFromPkg(p syftPkg.Package) any { function apkMetadataFromPkg (line 279) | func apkMetadataFromPkg(p syftPkg.Package) interface{} { function golangMetadataFromPkg (line 297) | func golangMetadataFromPkg(p syftPkg.Package) interface{} { function dpkgDataFromPkg (line 325) | func dpkgDataFromPkg(p syftPkg.Package) (upstreams []UpstreamPackage) { function rpmDataFromPkg (line 348) | func rpmDataFromPkg(p syftPkg.Package) (metadata *RpmMetadata, upstreams... function handleSourceRPM (line 372) | func handleSourceRPM(pkgName, sourceRpm string) []UpstreamPackage { function getNameAndELVersion (line 391) | func getNameAndELVersion(sourceRpm string) (string, string) { function javaDataFromPkgMetadata (line 397) | func javaDataFromPkgMetadata(p syftPkg.Package) (metadata *JavaMetadata) { function javaDataFromPkgData (line 437) | func javaDataFromPkgData(p syftPkg.Package) (metadata *JavaMetadata) { function javaGroupArtifactIDFromPurl (line 454) | func javaGroupArtifactIDFromPurl(p string) (string, string) { function apkDataFromPkg (line 463) | func apkDataFromPkg(p syftPkg.Package) (upstreams []UpstreamPackage) { function ByID (line 476) | func ByID(id ID, pkgs []Package) *Package { function parseUpstream (line 485) | func parseUpstream(pkgName string, value string, pkgType syftPkg.Type) [... function handleDefaultUpstream (line 492) | func handleDefaultUpstream(pkgName string, value string) []UpstreamPacka... function applyDistroOverride (line 518) | func applyDistroOverride(override *distro.Distro) Enhancer { FILE: grype/pkg/package_test.go function TestNew (line 21) | func TestNew(t *testing.T) { function TestFromCollection_DoesNotPanic (line 975) | func TestFromCollection_DoesNotPanic(t *testing.T) { function TestFromCollection_GeneratesCPEs (line 996) | func TestFromCollection_GeneratesCPEs(t *testing.T) { function Test_getNameAndELVersion (line 1025) | func Test_getNameAndELVersion(t *testing.T) { function intRef (line 1060) | func intRef(i int) *int { function Test_RemovePackagesByOverlap (line 1064) | func Test_RemovePackagesByOverlap(t *testing.T) { function catalogWithOverlaps (line 1176) | func catalogWithOverlaps(packages []string, overlaps []string) *sbom.SBOM { function withLinuxRelease (line 1246) | func withLinuxRelease(s *sbom.SBOM, id string) *sbom.SBOM { function strRef (line 1253) | func strRef(s string) *string { FILE: grype/pkg/provider.go function Provide (line 21) | func Provide(userInput string, config ProviderConfig) ([]Package, Contex... function buildChannelIndex (line 51) | func buildChannelIndex(channels []distro.FixChannel) map[string]distro.F... function getDistroChannelApplier (line 68) | func getDistroChannelApplier(channels []distro.FixChannel) func(d *distr... function applyChannelsToDistro (line 87) | func applyChannelsToDistro(d *distro.Distro, channels distro.FixChannels... function provide (line 137) | func provide(userInput string, config ProviderConfig, applyChannel func(... function filterPackageExclusions (line 170) | func filterPackageExclusions(packages []Package, exclusions []string) ([... function locationMatches (line 204) | func locationMatches(location file.Location, exclusion string) (bool, er... function setContextDistro (line 216) | func setContextDistro(packages []Package, ctx *Context) { FILE: grype/pkg/provider_config.go type ProviderConfig (line 9) | type ProviderConfig struct type SyftProviderConfig (line 14) | type SyftProviderConfig struct type SynthesisConfig (line 24) | type SynthesisConfig struct type DistroConfig (line 29) | type DistroConfig struct FILE: grype/pkg/provider_test.go function TestProviderLocationExcludes (line 18) | func TestProviderLocationExcludes(t *testing.T) { function TestSyftLocationExcludes (line 89) | func TestSyftLocationExcludes(t *testing.T) { function Test_filterPackageExclusions (line 149) | func Test_filterPackageExclusions(t *testing.T) { function Test_matchesLocation (line 202) | func Test_matchesLocation(t *testing.T) { function Test_getDistroChannelApplier (line 256) | func Test_getDistroChannelApplier(t *testing.T) { function Test_applyChannelsToDistro (line 358) | func Test_applyChannelsToDistro(t *testing.T) { FILE: grype/pkg/purl_provider.go constant purlInputPrefix (line 18) | purlInputPrefix = "purl:" constant singlePurlInputPrefix (line 19) | singlePurlInputPrefix = "pkg:" type PURLLiteralMetadata (line 22) | type PURLLiteralMetadata struct function purlEnhancers (line 26) | func purlEnhancers(applyChannel func(*distro.Distro) bool) []Enhancer { function purlProvider (line 30) | func purlProvider(userInput string, config ProviderConfig, applyChannel ... function getPurlReader (line 44) | func getPurlReader(userInput string) (r io.Reader, ctx Context, err erro... function setUpstreamsFromPURL (line 56) | func setUpstreamsFromPURL(out *Package, purl packageurl.PackageURL, syft... function upstreamsFromPURL (line 63) | func upstreamsFromPURL(purl packageurl.PackageURL, pkgType syftPkg.Type)... function setDistroFromPURL (line 77) | func setDistroFromPURL(applyChannel func(*distro.Distro) bool) func(out ... function distroFromPURL (line 87) | func distroFromPURL(purl packageurl.PackageURL) (d *distro.Distro) { FILE: grype/pkg/purl_provider_test.go function Test_PurlProvider (line 21) | func Test_PurlProvider(t *testing.T) { function names (line 449) | func names(ns ...string) []string { FILE: grype/pkg/qualifier/platformcpe/qualifier.go type platformCPE (line 12) | type platformCPE struct method Satisfied (line 44) | func (p platformCPE) Satisfied(pk pkg.Package) (bool, error) { function New (line 16) | func New(cpe string) qualifier.Qualifier { function isWindowsPlatformCPE (line 20) | func isWindowsPlatformCPE(c cpe.CPE) bool { function isUbuntuPlatformCPE (line 24) | func isUbuntuPlatformCPE(c cpe.CPE) bool { function isDebianPlatformCPE (line 36) | func isDebianPlatformCPE(c cpe.CPE) bool { function isWordpressPlatformCPE (line 40) | func isWordpressPlatformCPE(c cpe.CPE) bool { FILE: grype/pkg/qualifier/platformcpe/qualifier_test.go function TestPlatformCPE_Satisfied (line 13) | func TestPlatformCPE_Satisfied(t *testing.T) { FILE: grype/pkg/qualifier/qualifier.go type Qualifier (line 7) | type Qualifier interface FILE: grype/pkg/qualifier/rpmmodularity/qualifier.go type rpmModularity (line 11) | type rpmModularity struct method Satisfied (line 19) | func (r rpmModularity) Satisfied(p pkg.Package) (bool, error) { function New (line 15) | func New(module string) qualifier.Qualifier { FILE: grype/pkg/qualifier/rpmmodularity/qualifier_test.go function TestRpmModularity_Satisfied (line 13) | func TestRpmModularity_Satisfied(t *testing.T) { function strRef (line 157) | func strRef(s string) *string { FILE: grype/pkg/rpm_metadata.go type RpmMetadata (line 3) | type RpmMetadata struct FILE: grype/pkg/syft_provider.go function syftProvider (line 18) | func syftProvider(userInput string, config ProviderConfig, applyChannel ... function distroFromSBOM (line 50) | func distroFromSBOM(s *sbom.SBOM, config ProviderConfig, applyChannel fu... function getSource (line 62) | func getSource(userInput string, config ProviderConfig) (source.Source, ... function allSourceTags (line 96) | func allSourceTags() []string { FILE: grype/pkg/syft_sbom_provider.go type SBOMFileMetadata (line 22) | type SBOMFileMetadata struct function syftSBOMProvider (line 26) | func syftSBOMProvider(userInput string, config ProviderConfig, applyChan... function getSBOM (line 55) | func getSBOM(userInput string) (*sbom.SBOM, sbom.FormatID, string, error) { function readSBOM (line 65) | func readSBOM(reader io.ReadSeeker) (*sbom.SBOM, sbom.FormatID, error) { function getSBOMReader (line 78) | func getSBOMReader(userInput string) (io.ReadSeeker, string, error) { function decodeStdin (line 110) | func decodeStdin(r io.Reader) (io.ReadSeeker, string, error) { function stdinReader (line 125) | func stdinReader() (io.Reader, error) { function openFile (line 138) | func openFile(path string) (io.ReadSeekCloser, string, error) { function isPossibleSBOM (line 152) | func isPossibleSBOM(userInput string) bool { function isAncestorOfMimetype (line 169) | func isAncestorOfMimetype(mType *mimetype.MIME, expected string) bool { function explicitlySpecifyingSBOM (line 178) | func explicitlySpecifyingSBOM(userInput string) bool { function explicitlySpecifyingPurlList (line 182) | func explicitlySpecifyingPurlList(userInput string) bool { function explicitlySpecifyingCPEList (line 186) | func explicitlySpecifyingCPEList(userInput string) bool { FILE: grype/pkg/syft_sbom_provider_test.go function TestParseSyftJSON (line 20) | func TestParseSyftJSON(t *testing.T) { function TestParseSyftJSON_BadCPEs (line 271) | func TestParseSyftJSON_BadCPEs(t *testing.T) { function Test_PurlList (line 354) | func Test_PurlList(t *testing.T) { function testFixChannels (line 597) | func testFixChannels() []distro.FixChannel { FILE: grype/pkg/upstream_package.go type UpstreamPackage (line 11) | type UpstreamPackage struct function UpstreamPackages (line 16) | func UpstreamPackages(p Package) (pkgs []Package) { FILE: grype/pkg/upstream_package_test.go function TestUpstreamPackages (line 11) | func TestUpstreamPackages(t *testing.T) { FILE: grype/pkg/version_format.go function VersionFormat (line 8) | func VersionFormat(p Package) version.Format { FILE: grype/pkg/version_format_test.go function TestVersionFormat (line 11) | func TestVersionFormat(t *testing.T) { FILE: grype/presenter/cyclonedx/presenter.go type Presenter (line 16) | type Presenter struct method Present (line 47) | func (p *Presenter) Present(output io.Writer) error { function NewJSONPresenter (line 25) | func NewJSONPresenter(pb models.PresenterConfig) *Presenter { function NewXMLPresenter (line 36) | func NewXMLPresenter(pb models.PresenterConfig) *Presenter { FILE: grype/presenter/cyclonedx/presenter_test.go function Test_CycloneDX_Valid (line 24) | func Test_CycloneDX_Valid(t *testing.T) { function Test_noTypedNils (line 94) | func Test_noTypedNils(t *testing.T) { function TestCycloneDxPresenterImage (line 117) | func TestCycloneDxPresenterImage(t *testing.T) { function TestCycloneDxPresenterDir (line 145) | func TestCycloneDxPresenterDir(t *testing.T) { FILE: grype/presenter/cyclonedx/vulnerability.go function NewVulnerability (line 17) | func NewVulnerability(m models.Match) (v cyclonedx.Vulnerability, err er... function generateCDXRatings (line 78) | func generateCDXRatings(metadata models.VulnerabilityMetadata) []cyclone... function cvssVersionToMethod (line 141) | func cvssVersionToMethod(version string) (cyclonedx.ScoringMethod, error) { function cdxSourceName (line 161) | func cdxSourceName(namespace string) string { function cdxSeverityFromGrypeSeverity (line 165) | func cdxSeverityFromGrypeSeverity(severity string) cyclonedx.Severity { function deriveBomRef (line 186) | func deriveBomRef(p models.Package) string { FILE: grype/presenter/cyclonedx/vulnerability_test.go function TestCvssVersionToMethod (line 14) | func TestCvssVersionToMethod(t *testing.T) { type metadataProvider (line 66) | type metadataProvider struct method VulnerabilityMetadata (line 71) | func (m metadataProvider) VulnerabilityMetadata(ref vulnerability.Refe... function TestNewVulnerability_AlwaysIncludesSeverity (line 83) | func TestNewVulnerability_AlwaysIncludesSeverity(t *testing.T) { function TestNewVulnerability_IncludesEPSSAndKEV (line 149) | func TestNewVulnerability_IncludesEPSSAndKEV(t *testing.T) { FILE: grype/presenter/explain/explain.go type VulnerabilityExplainer (line 19) | type VulnerabilityExplainer interface type ViewModel (line 25) | type ViewModel struct type viewModelBuilder (line 32) | type viewModelBuilder struct method WithMatch (line 145) | func (b *viewModelBuilder) WithMatch(m models.Match, userRequestedIDs ... method isPrimaryAdd (line 158) | func (b *viewModelBuilder) isPrimaryAdd(candidate models.Match, userRe... method WithPrimaryMatch (line 188) | func (b *viewModelBuilder) WithPrimaryMatch(m models.Match) *viewModel... method WithRelatedMatch (line 193) | func (b *viewModelBuilder) WithRelatedMatch(m models.Match) *viewModel... method Build (line 198) | func (b *viewModelBuilder) Build() ViewModel { method primaryVulnerability (line 232) | func (b *viewModelBuilder) primaryVulnerability() models.Vulnerability... method dedupeAndSortURLs (line 360) | func (b *viewModelBuilder) dedupeAndSortURLs(primaryVulnerability mode... type Findings (line 38) | type Findings type explainedPackage (line 40) | type explainedPackage struct type explainedEvidence (line 53) | type explainedEvidence struct type vulnerabilityExplainer (line 60) | type vulnerabilityExplainer struct method ExplainByID (line 76) | func (e *vulnerabilityExplainer) ExplainByID(ids []string) error { method ExplainBySeverity (line 94) | func (e *vulnerabilityExplainer) ExplainBySeverity(_ string) error { method ExplainAll (line 98) | func (e *vulnerabilityExplainer) ExplainAll() error { function NewVulnerabilityExplainer (line 65) | func NewVulnerabilityExplainer(w io.Writer, doc *models.Document) Vulner... function Doc (line 108) | func Doc(doc *models.Document, requestedIDs []string) (Findings, error) { function newBuilder (line 137) | func newBuilder(requestedIDs []string) *viewModelBuilder { function groupAndSortEvidence (line 248) | func groupAndSortEvidence(matches []models.Match) []*explainedPackage { function explainedPackageIsLess (line 332) | func explainedPackageIsLess(i, j *explainedPackage) bool { function explainMatchDetail (line 339) | func explainMatchDetail(m models.Match, index int) string { function explainLocation (line 405) | func explainLocation(match models.Match, location file.Location) explain... function formatCPEExplanation (line 420) | func formatCPEExplanation(m models.Match) string { function sourcePackageNameAndVersion (line 434) | func sourcePackageNameAndVersion(md models.MatchDetails) (string, string) { function nameForUpstream (line 452) | func nameForUpstream(typ string) string { FILE: grype/presenter/explain/explain_snapshot_test.go function TestExplainSnapshot (line 16) | func TestExplainSnapshot(t *testing.T) { FILE: grype/presenter/internal/test_helpers.go constant DirectorySource (line 28) | DirectorySource SyftSource = "directory" constant ImageSource (line 29) | ImageSource SyftSource = "image" constant FileSource (line 30) | FileSource SyftSource = "file" type SyftSource (line 33) | type SyftSource function GeneratePresenterConfig (line 35) | func GeneratePresenterConfig(t *testing.T, scheme SyftSource) models.Pre... function GenerateAnalysis (line 45) | func GenerateAnalysis(t *testing.T, scheme SyftSource) (*sbom.SBOM, mode... function GenerateAnalysisWithIgnoredMatches (line 67) | func GenerateAnalysisWithIgnoredMatches(t *testing.T, scheme SyftSource)... function Redact (line 87) | func Redact(s []byte) []byte { function generateMatches (line 102) | func generateMatches(t *testing.T, p1, p2 pkg.Package) match.Matches { /... function generateIgnoredMatches (line 216) | func generateIgnoredMatches(t *testing.T, p pkg.Package) []match.Ignored... function generatePackages (line 379) | func generatePackages(t *testing.T) []syftPkg.Package { function generateContext (line 438) | func generateContext(t *testing.T, scheme SyftSource) pkg.Context { FILE: grype/presenter/json/presenter.go type Presenter (line 10) | type Presenter struct method Present (line 22) | func (p *Presenter) Present(output io.Writer) error { function NewPresenter (line 15) | func NewPresenter(pb models.PresenterConfig) *Presenter { FILE: grype/presenter/json/presenter_test.go function TestJsonImgsPresenter (line 26) | func TestJsonImgsPresenter(t *testing.T) { function TestJsonDirsPresenter (line 54) | func TestJsonDirsPresenter(t *testing.T) { function TestEmptyJsonPresenter (line 82) | func TestEmptyJsonPresenter(t *testing.T) { function redact (line 125) | func redact(content []byte) []byte { FILE: grype/presenter/models/alert.go type AlertType (line 8) | type AlertType constant AlertTypeDistroEOL (line 12) | AlertTypeDistroEOL AlertType = "distro-eol" type Alert (line 16) | type Alert struct type DistroAlertMetadata (line 23) | type DistroAlertMetadata struct type PackageAlerts (line 29) | type PackageAlerts struct type DistroAlertData (line 37) | type DistroAlertData struct FILE: grype/presenter/models/alert_test.go function TestAlertTypes (line 11) | func TestAlertTypes(t *testing.T) { function TestAlertJSONSerialization (line 31) | func TestAlertJSONSerialization(t *testing.T) { function TestPackageAlertsJSONSerialization (line 56) | func TestPackageAlertsJSONSerialization(t *testing.T) { function TestAlertDetailsOmitEmpty (line 89) | func TestAlertDetailsOmitEmpty(t *testing.T) { FILE: grype/presenter/models/cvss.go type Cvss (line 5) | type Cvss struct type CvssMetrics (line 14) | type CvssMetrics struct function toCVSS (line 20) | func toCVSS(metadata *vulnerability.Metadata) []Cvss { FILE: grype/presenter/models/descriptor.go type descriptor (line 4) | type descriptor struct FILE: grype/presenter/models/distribution.go type distribution (line 9) | type distribution struct function newDistribution (line 17) | func newDistribution(ctx pkg.Context, d *distro.Distro) distribution { function cleanIDLike (line 34) | func cleanIDLike(idLike []string) []string { FILE: grype/presenter/models/document.go type Document (line 17) | type Document struct function NewDocument (line 29) | func NewDocument(id clio.Identification, packages []pkg.Package, context... function createTimestamp (line 98) | func createTimestamp(outputTimestamp bool) (string, error) { function distroString (line 110) | func distroString(p pkg.Package) string { function buildPackageAlerts (line 118) | func buildPackageAlerts(data *DistroAlertData) []PackageAlerts { function selectMostCommonDistro (line 178) | func selectMostCommonDistro(pkgs []pkg.Package) *distro.Distro { FILE: grype/presenter/models/document_test.go function TestPackagesAreSorted (line 18) | func TestPackagesAreSorted(t *testing.T) { function TestFixSuggestedVersion (line 101) | func TestFixSuggestedVersion(t *testing.T) { function TestTimestampValidFormat (line 145) | func TestTimestampValidFormat(t *testing.T) { function TestConfigurableTimestamp (line 167) | func TestConfigurableTimestamp(t *testing.T) { function TestBuildPackageAlerts (line 184) | func TestBuildPackageAlerts(t *testing.T) { FILE: grype/presenter/models/ignore.go type IgnoredMatch (line 5) | type IgnoredMatch struct type IgnoreRule (line 10) | type IgnoreRule struct type IgnoreRulePackage (line 21) | type IgnoreRulePackage struct function newIgnoreRule (line 30) | func newIgnoreRule(r match.IgnoreRule) IgnoreRule { function mapIgnoreRules (line 57) | func mapIgnoreRules(rules []match.IgnoreRule) []IgnoreRule { FILE: grype/presenter/models/ignore_test.go function TestNewIgnoreRule (line 12) | func TestNewIgnoreRule(t *testing.T) { FILE: grype/presenter/models/match.go type Match (line 15) | type Match struct type MatchDetails (line 23) | type MatchDetails struct type FixDetails (line 32) | type FixDetails struct function newMatch (line 37) | func newMatch(m match.Match, p pkg.Package, metadataProvider vulnerabili... function getFix (line 81) | func getFix(m match.Match, p pkg.Package, format version.Format) *FixDet... function calculateSuggestedFixedVersion (line 91) | func calculateSuggestedFixedVersion(p pkg.Package, fixedVersions []strin... FILE: grype/presenter/models/metadata_mock.go type MetadataMock (line 11) | type MetadataMock struct method VulnerabilityMetadata (line 96) | func (m *MetadataMock) VulnerabilityMetadata(vuln vulnerability.Refere... type MockVendorMetadata (line 15) | type MockVendorMetadata struct function NewMetadataMock (line 21) | func NewMetadataMock() *MetadataMock { function ptr (line 91) | func ptr[T any](t T) *T { FILE: grype/presenter/models/package.go type Package (line 11) | type Package struct type UpstreamPackage (line 26) | type UpstreamPackage struct function newPackage (line 31) | func newPackage(p pkg.Package) Package { FILE: grype/presenter/models/presenter_bundle.go type PresenterConfig (line 8) | type PresenterConfig struct FILE: grype/presenter/models/sort.go type SortStrategy (line 10) | type SortStrategy method String (line 27) | func (s SortStrategy) String() string { constant SortByPackage (line 13) | SortByPackage SortStrategy = "package" constant SortBySeverity (line 14) | SortBySeverity SortStrategy = "severity" constant SortByThreat (line 15) | SortByThreat SortStrategy = "epss" constant SortByRisk (line 16) | SortByRisk SortStrategy = "risk" constant SortByKEV (line 17) | SortByKEV SortStrategy = "kev" constant SortByVulnerability (line 18) | SortByVulnerability SortStrategy = "vulnerability" constant DefaultSortStrategy (line 20) | DefaultSortStrategy = SortByRisk function SortStrategies (line 23) | func SortStrategies() []SortStrategy { type compareFunc (line 37) | type compareFunc type sortStrategyImpl (line 40) | type sortStrategyImpl function compareVulnerabilityAttributes (line 95) | func compareVulnerabilityAttributes(a, b Match) int { function comparePackageAttributes (line 104) | func comparePackageAttributes(a, b Match) int { function combine (line 112) | func combine(impls ...compareFunc) compareFunc { function SortMatches (line 125) | func SortMatches(matches []Match, strategyName SortStrategy) { function getSortStrategy (line 129) | func getSortStrategy(strategyName SortStrategy) sortStrategyImpl { function sortWithStrategy (line 138) | func sortWithStrategy(matches []Match, strategy sortStrategyImpl) { function compareByVulnerabilityID (line 151) | func compareByVulnerabilityID(a, b Match) int { function compareBySeverity (line 165) | func compareBySeverity(a, b Match) int { function compareByEPSSPercentile (line 179) | func compareByEPSSPercentile(a, b Match) int { function compareByPackageName (line 193) | func compareByPackageName(a, b Match) int { function compareByPackageVersion (line 207) | func compareByPackageVersion(a, b Match) int { function compareByPackageType (line 221) | func compareByPackageType(a, b Match) int { function compareByRisk (line 235) | func compareByRisk(a, b Match) int { function compareByKEV (line 249) | func compareByKEV(a, b Match) int { function epssPercentile (line 263) | func epssPercentile(es []EPSS) float64 { function severityPriority (line 277) | func severityPriority(severity string) int { FILE: grype/presenter/models/sort_test.go function TestSortStrategies (line 11) | func TestSortStrategies(t *testing.T) { function TestSortStrategyString (line 24) | func TestSortStrategyString(t *testing.T) { function TestGetSortStrategy (line 33) | func TestGetSortStrategy(t *testing.T) { function TestEPSSPercentile (line 68) | func TestEPSSPercentile(t *testing.T) { function TestSeverityPriority (line 114) | func TestSeverityPriority(t *testing.T) { function createTestMatches (line 141) | func createTestMatches() []Match { function TestAllSortStrategies (line 246) | func TestAllSortStrategies(t *testing.T) { function TestIndividualCompareFunctions (line 296) | func TestIndividualCompareFunctions(t *testing.T) { function TestCombinedCompareFunctions (line 424) | func TestCombinedCompareFunctions(t *testing.T) { function TestSortWithStrategy (line 469) | func TestSortWithStrategy(t *testing.T) { function deepCopyMatches (line 500) | func deepCopyMatches(matches []Match) []Match { FILE: grype/presenter/models/source.go type source (line 10) | type source struct function newSource (line 16) | func newSource(src syftSource.Description) (source, error) { FILE: grype/presenter/models/source_test.go function TestNewSource (line 14) | func TestNewSource(t *testing.T) { FILE: grype/presenter/models/vulnerability.go type Vulnerability (line 11) | type Vulnerability struct type Fix (line 18) | type Fix struct type FixAvailable (line 24) | type FixAvailable struct type Advisory (line 30) | type Advisory struct function NewVulnerability (line 35) | func NewVulnerability(vuln vulnerability.Vulnerability, metadata *vulner... function getFixAvailable (line 68) | func getFixAvailable(fixesAvailable []vulnerability.FixAvailable) []FixA... function sortVersions (line 89) | func sortVersions(fixedVersions []string, format version.Format) []string { FILE: grype/presenter/models/vulnerability_metadata.go type VulnerabilityMetadata (line 9) | type VulnerabilityMetadata struct type KnownExploited (line 22) | type KnownExploited struct type EPSS (line 35) | type EPSS struct type CWE (line 42) | type CWE struct function NewVulnerabilityMetadata (line 49) | func NewVulnerabilityMetadata(id, namespace string, metadata *vulnerabil... function toKnownExploited (line 76) | func toKnownExploited(knownExploited []vulnerability.KnownExploited) []K... function formatDate (line 95) | func formatDate(t *time.Time) string { function toEPSS (line 102) | func toEPSS(epss []vulnerability.EPSS) []EPSS { function toCWE (line 115) | func toCWE(cwes []vulnerability.CWE) []CWE { FILE: grype/presenter/models/vulnerability_test.go function Test_sortVersions (line 13) | func Test_sortVersions(t *testing.T) { function Test_getFixAvailable (line 82) | func Test_getFixAvailable(t *testing.T) { FILE: grype/presenter/presenter.go function GetPresenter (line 13) | func GetPresenter(f string, templatePath string, showSuppressed bool, pb... FILE: grype/presenter/sarif/presenter.go type Presenter (line 23) | type Presenter struct method Present (line 39) | func (p Presenter) Present(output io.Writer) error { method toSarifReport (line 49) | func (p Presenter) toSarifReport() (*sarif.Report, error) { method sarifRules (line 77) | func (p Presenter) sarifRules() (out []*sarif.ReportingDescriptor) { method ruleID (line 130) | func (p Presenter) ruleID(m models.Match) string { method helpText (line 137) | func (p Presenter) helpText(m models.Match, link string) *sarif.Multif... method packagePath (line 158) | func (p Presenter) packagePath(a models.Package) string { method inputPath (line 166) | func (p Presenter) inputPath() string { method locationPath (line 184) | func (p Presenter) locationPath(l file.Location) string { method locations (line 202) | func (p Presenter) locations(m models.Match) []*sarif.Location { method sarifResults (line 372) | func (p Presenter) sarifResults() []*sarif.Result { method resultMessage (line 400) | func (p Presenter) resultMessage(m models.Match) sarif.Message { method partialFingerprints (line 421) | func (p Presenter) partialFingerprints(m models.Match) map[string]any { function NewPresenter (line 30) | func NewPresenter(pb models.PresenterConfig) *Presenter { function severityText (line 257) | func severityText(m models.Match) string { function cvssScore (line 272) | func cvssScore(m models.Match) float64 { function securitySeverityValue (line 311) | func securitySeverityValue(m models.Match) string { function levelValue (line 332) | func levelValue(m models.Match) string { function subtitle (line 347) | func subtitle(m models.Match) string { function fixVersions (line 361) | func fixVersions(m models.Match) string { function shortDescription (line 368) | func shortDescription(m models.Match) string { function ip (line 391) | func ip(i int) *int { function sp (line 396) | func sp(sarif string) *string { function hashWrite (line 434) | func hashWrite(hasher hash.Hash, values ...string) { function ruleName (line 440) | func ruleName(m models.Match) string { function imageShortPathName (line 459) | func imageShortPathName(s source.Description) string { FILE: grype/presenter/sarif/presenter_test.go function TestSarifPresenter (line 24) | func TestSarifPresenter(t *testing.T) { function Test_SarifIsValid (line 68) | func Test_SarifIsValid(t *testing.T) { function Test_locationPath (line 115) | func Test_locationPath(t *testing.T) { function createDirPresenter (line 228) | func createDirPresenter(t *testing.T) *Presenter { function TestToSarifReport (line 243) | func TestToSarifReport(t *testing.T) { function Test_cvssScoreWithMissingMetadata (line 318) | func Test_cvssScoreWithMissingMetadata(t *testing.T) { function Test_cvssScore (line 330) | func Test_cvssScore(t *testing.T) { function Test_imageShortPathName (line 431) | func Test_imageShortPathName(t *testing.T) { FILE: grype/presenter/table/presenter.go constant appendSuppressed (line 20) | appendSuppressed = "suppressed" constant appendSuppressedVEX (line 21) | appendSuppressedVEX = "suppressed by VEX" type Presenter (line 25) | type Presenter struct method Present (line 121) | func (p *Presenter) Present(output io.Writer) error { method getRows (line 173) | func (p *Presenter) getRows(doc models.Document, showSuppressed bool) ... method newRow (line 215) | func (p *Presenter) newRow(m models.Match, extraAnnotation string, sho... method formatSeverity (line 268) | func (p *Presenter) formatSeverity(severity string) string { method formatRisk (line 290) | func (p *Presenter) formatRisk(risk float64) string { method formatFix (line 301) | func (p *Presenter) formatFix(m models.Match) string { method formatVersionsToDisplay (line 337) | func (p *Presenter) formatVersionsToDisplay(m models.Match, recommende... method applyTruncation (line 378) | func (p *Presenter) applyTruncation(formattedVersions []string, allVer... type rows (line 41) | type rows method Render (line 404) | func (rs rows) Render() [][]string { method Deduplicate (line 413) | func (rs rows) Deduplicate() []row { type row (line 43) | type row struct method Columns (line 393) | func (r row) Columns() []string { method String (line 400) | func (r row) String() string { type epss (line 55) | type epss struct method String (line 60) | func (e epss) String() string { function formatPercentileWithSuffix (line 75) | func formatPercentileWithSuffix(percentile float64) string { function NewPresenter (line 97) | func NewPresenter(pb models.PresenterConfig, showSuppressed bool) *Prese... function newTable (line 138) | func newTable(output io.Writer, columns []string) *tablewriter.Table { function supportsColor (line 211) | func supportsColor() bool { function newEPSS (line 258) | func newEPSS(es []models.EPSS) epss { function getRecommendedVersions (line 322) | func getRecommendedVersions(m models.Match) *strset.Set { constant maxVersionFieldLength (line 335) | maxVersionFieldLength = 30 FILE: grype/presenter/table/presenter_test.go function TestCreateRow (line 23) | func TestCreateRow(t *testing.T) { function TestTablePresenter (line 115) | func TestTablePresenter(t *testing.T) { function TestEmptyTablePresenter (line 147) | func TestEmptyTablePresenter(t *testing.T) { function TestHidesIgnoredMatches (line 168) | func TestHidesIgnoredMatches(t *testing.T) { function TestDisplaysIgnoredMatches (line 184) | func TestDisplaysIgnoredMatches(t *testing.T) { function TestDisplaysDistro (line 199) | func TestDisplaysDistro(t *testing.T) { function TestDisplaysIgnoredMatchesAndDistro (line 217) | func TestDisplaysIgnoredMatchesAndDistro(t *testing.T) { function TestRowsRender (line 238) | func TestRowsRender(t *testing.T) { function createTestRow (line 302) | func createTestRow(name, version, fix, pkgType, vulnID, severity string,... function TestEPSS_String (line 345) | func TestEPSS_String(t *testing.T) { function mustRow (line 462) | func mustRow(t *testing.T, name, version, fix, pkgType, vulnID, severity... FILE: grype/presenter/template/presenter.go type Presenter (line 18) | type Presenter struct method Present (line 34) | func (pres *Presenter) Present(output io.Writer) error { function NewPresenter (line 25) | func NewPresenter(pb models.PresenterConfig, templateFile string) *Prese... FILE: grype/presenter/template/presenter_test.go function TestPresenter_Present (line 19) | func TestPresenter_Present(t *testing.T) { function TestPresenter_SprigDate_Fails (line 45) | func TestPresenter_SprigDate_Fails(t *testing.T) { FILE: grype/search/cpe.go type CPECriteria (line 15) | type CPECriteria struct method MatchesVulnerability (line 26) | func (v *CPECriteria) MatchesVulnerability(vuln vulnerability.Vulnerab... method Summarize (line 33) | func (v *CPECriteria) Summarize() string { function ByCPE (line 20) | func ByCPE(c cpe.CPE) vulnerability.Criteria { function containsCPE (line 38) | func containsCPE(cpes []cpe.CPE, cpe cpe.CPE) bool { function matchesAttributes (line 47) | func matchesAttributes(a1 cpe.Attributes, a2 cpe.Attributes) bool { function matchesAttribute (line 62) | func matchesAttribute(a1, a2 string) bool { FILE: grype/search/cpe_test.go function Test_ByCPE (line 13) | func Test_ByCPE(t *testing.T) { FILE: grype/search/criteria.go function CriteriaIterator (line 16) | func CriteriaIterator(criteria []vulnerability.Criteria) iter.Seq2[int, ... function processRemaining (line 31) | func processRemaining(row, criteria []vulnerability.Criteria, yield func... function processRemainingItem (line 38) | func processRemainingItem(row, criteria []vulnerability.Criteria, item v... function ValidateCriteria (line 59) | func ValidateCriteria(criteria []vulnerability.Criteria) error { type or (line 85) | type or method MatchesVulnerability (line 91) | func (c or) MatchesVulnerability(v vulnerability.Vulnerability) (bool,... function Or (line 87) | func Or(criteria ...vulnerability.Criteria) vulnerability.Criteria { type and (line 108) | type and method MatchesVulnerability (line 114) | func (c and) MatchesVulnerability(v vulnerability.Vulnerability) (bool... function And (line 110) | func And(criteria ...vulnerability.Criteria) vulnerability.Criteria { FILE: grype/search/criteria_test.go function Test_CriteriaIterator (line 12) | func Test_CriteriaIterator(t *testing.T) { function Test_ValidateCriteria (line 70) | func Test_ValidateCriteria(t *testing.T) { FILE: grype/search/distro.go function ByDistro (line 14) | func ByDistro(d ...distro.Distro) vulnerability.Criteria { function ByExactDistro (line 24) | func ByExactDistro(d ...distro.Distro) vulnerability.Criteria { type DistroCriteria (line 31) | type DistroCriteria struct method MatchesVulnerability (line 36) | func (c *DistroCriteria) MatchesVulnerability(value vulnerability.Vuln... method Summarize (line 66) | func (c *DistroCriteria) Summarize() string { function matchesDistro (line 79) | func matchesDistro(d *distro.Distro, ns *distroNs.Namespace) bool { function compatibleVersion (line 95) | func compatibleVersion(fullVersion string, partialVersion string) bool { function mimicV6DistroTypeOverrides (line 110) | func mimicV6DistroTypeOverrides(t distro.Type) distro.Type { function matchesExactDistro (line 141) | func matchesExactDistro(d *distro.Distro, ns *distroNs.Namespace) bool { FILE: grype/search/distro_test.go function Test_ByDistro (line 13) | func Test_ByDistro(t *testing.T) { function Test_ByExactDistro (line 62) | func Test_ByExactDistro(t *testing.T) { function Test_ByDistro_vs_ByExactDistro_AliasMapping (line 133) | func Test_ByDistro_vs_ByExactDistro_AliasMapping(t *testing.T) { FILE: grype/search/ecosystem.go function ByEcosystem (line 13) | func ByEcosystem(lang syftPkg.Language, t syftPkg.Type) vulnerability.Cr... type EcosystemCriteria (line 20) | type EcosystemCriteria struct method MatchesVulnerability (line 25) | func (c *EcosystemCriteria) MatchesVulnerability(value vulnerability.V... FILE: grype/search/ecosystem_test.go function Test_ByLanguage (line 13) | func Test_ByLanguage(t *testing.T) { FILE: grype/search/func.go function ByFunc (line 6) | func ByFunc(criteriaFunc func(vulnerability.Vulnerability) (bool, string... type funcCriteria (line 11) | type funcCriteria struct method MatchesVulnerability (line 15) | func (f funcCriteria) MatchesVulnerability(value vulnerability.Vulnera... FILE: grype/search/func_test.go function Test_ByFunc (line 12) | func Test_ByFunc(t *testing.T) { FILE: grype/search/id.go function ByID (line 10) | func ByID(id string) vulnerability.Criteria { type IDCriteria (line 17) | type IDCriteria struct method MatchesVulnerability (line 21) | func (v *IDCriteria) MatchesVulnerability(vuln vulnerability.Vulnerabi... FILE: grype/search/id_test.go function Test_ByID (line 12) | func Test_ByID(t *testing.T) { FILE: grype/search/package_name.go function ByPackageName (line 11) | func ByPackageName(packageName string) vulnerability.Criteria { type PackageNameCriteria (line 17) | type PackageNameCriteria struct method MatchesVulnerability (line 21) | func (v *PackageNameCriteria) MatchesVulnerability(vuln vulnerability.... FILE: grype/search/package_name_test.go function Test_ByPackageName (line 12) | func Test_ByPackageName(t *testing.T) { FILE: grype/search/unaffected.go function ForUnaffected (line 10) | func ForUnaffected() vulnerability.Criteria { type UnaffectedCriteria (line 14) | type UnaffectedCriteria struct method MatchesVulnerability (line 18) | func (c *UnaffectedCriteria) MatchesVulnerability(v vulnerability.Vuln... FILE: grype/search/version_constraint.go type VersionConstraintMatcher (line 19) | type VersionConstraintMatcher interface function ByConstraintFunc (line 24) | func ByConstraintFunc(constraintFunc func(constraint version.Constraint)... type VersionCriteria (line 28) | type VersionCriteria struct method MatchesVulnerability (line 32) | func (v VersionCriteria) MatchesVulnerability(value vulnerability.Vuln... method MatchesConstraint (line 36) | func (v VersionCriteria) MatchesConstraint(constraint version.Constrai... method criteria (line 40) | func (v VersionCriteria) criteria(constraint version.Constraint) (bool... function ByFixedVersion (line 64) | func ByFixedVersion(v version.Version) vulnerability.Criteria { function ByVersion (line 87) | func ByVersion(v version.Version) vulnerability.Criteria { type constraintFuncCriteria (line 94) | type constraintFuncCriteria struct method MatchesConstraint (line 99) | func (f *constraintFuncCriteria) MatchesConstraint(constraint version.... method MatchesVulnerability (line 103) | func (f *constraintFuncCriteria) MatchesVulnerability(value vulnerabil... method Summarize (line 113) | func (f *constraintFuncCriteria) Summarize() string { function MultiConstraintMatcher (line 122) | func MultiConstraintMatcher(a, b VersionConstraintMatcher) VersionConstr... type multiConstraintMatcher (line 130) | type multiConstraintMatcher struct method MatchesConstraint (line 134) | func (m *multiConstraintMatcher) MatchesConstraint(constraint version.... FILE: grype/search/version_constraint_test.go function Test_ByVersion (line 13) | func Test_ByVersion(t *testing.T) { function Test_ByConstraintFunc (line 57) | func Test_ByConstraintFunc(t *testing.T) { function Test_ByFixedVersion (line 104) | func Test_ByFixedVersion(t *testing.T) { FILE: grype/version/apk_version.go type apkVersion (line 9) | type apkVersion struct method Compare (line 33) | func (v apkVersion) Compare(other *Version) (int, error) { function newApkVersion (line 13) | func newApkVersion(raw string) (apkVersion, error) { function trimLeadingV (line 26) | func trimLeadingV(raw string) string { FILE: grype/version/apk_version_test.go function intRef (line 11) | func intRef(i int) *int { function TestTrimLeadingV (line 15) | func TestTrimLeadingV(t *testing.T) { function TestApkVersion_Constraint (line 71) | func TestApkVersion_Constraint(t *testing.T) { function TestApkVersion_Compare (line 124) | func TestApkVersion_Compare(t *testing.T) { function TestApkVersion_Compare_EdgeCases (line 221) | func TestApkVersion_Compare_EdgeCases(t *testing.T) { FILE: grype/version/bitnami_version.go type bitnamiVersion (line 14) | type bitnamiVersion struct method Compare (line 49) | func (v bitnamiVersion) Compare(other *Version) (int, error) { function newBitnamiVersion (line 18) | func newBitnamiVersion(raw string) (bitnamiVersion, error) { FILE: grype/version/bitnami_version_test.go function TestBitnamiVersion_Constraint (line 11) | func TestBitnamiVersion_Constraint(t *testing.T) { function TestBitnamiVersion_Compare (line 71) | func TestBitnamiVersion_Compare(t *testing.T) { function TestBitnamiVersion_Compare_EdgeCases (line 134) | func TestBitnamiVersion_Compare_EdgeCases(t *testing.T) { FILE: grype/version/combined_constraint.go function CombineConstraints (line 10) | func CombineConstraints(constraints ...Constraint) Constraint { type combinedConstraint (line 25) | type combinedConstraint struct method String (line 29) | func (c combinedConstraint) String() string { method Value (line 33) | func (c combinedConstraint) Value() string { method Format (line 45) | func (c combinedConstraint) Format() Format { method Satisfied (line 53) | func (c combinedConstraint) Satisfied(version *Version) (bool, error) { function uniqueConstraints (line 71) | func uniqueConstraints(constraints ...Constraint) []Constraint { FILE: grype/version/combined_constraint_test.go function TestCombineConstraints (line 11) | func TestCombineConstraints(t *testing.T) { function TestCombinedConstraint_Methods (line 83) | func TestCombinedConstraint_Methods(t *testing.T) { function TestCombinedConstraint_Satisfied_WithErrors (line 233) | func TestCombinedConstraint_Satisfied_WithErrors(t *testing.T) { type mockConstraint (line 283) | type mockConstraint struct method String (line 290) | func (m mockConstraint) String() string { method Value (line 294) | func (m mockConstraint) Value() string { method Format (line 298) | func (m mockConstraint) Format() Format { method Satisfied (line 302) | func (m mockConstraint) Satisfied(*Version) (bool, error) { FILE: grype/version/comparator.go type MissingEpochStrategy (line 5) | type MissingEpochStrategy constant MissingEpochStrategyZero (line 9) | MissingEpochStrategyZero MissingEpochStrategy = "zero" constant MissingEpochStrategyAuto (line 11) | MissingEpochStrategyAuto MissingEpochStrategy = "auto" type ComparisonConfig (line 15) | type ComparisonConfig struct type Comparator (line 25) | type Comparator interface FILE: grype/version/constraint.go type Constraint (line 5) | type Constraint interface function GetConstraint (line 12) | func GetConstraint(constStr string, format Format) (Constraint, error) { function MustGetConstraint (line 53) | func MustGetConstraint(constStr string, format Format) Constraint { FILE: grype/version/deb_version.go type debVersion (line 12) | type debVersion struct method Compare (line 34) | func (v debVersion) Compare(other *Version) (int, error) { method CompareWithConfig (line 57) | func (v debVersion) CompareWithConfig(other *Version, cfg ComparisonCo... function newDebVersion (line 18) | func newDebVersion(raw string) (debVersion, error) { function normalizeComparison (line 86) | func normalizeComparison(cmp int) int { function extractDebEpoch (line 98) | func extractDebEpoch(raw string) *int { FILE: grype/version/deb_version_test.go function TestDebVersion_Constraint (line 11) | func TestDebVersion_Constraint(t *testing.T) { function TestDebVersion_Compare (line 107) | func TestDebVersion_Compare(t *testing.T) { function TestDebVersion_Compare_Epochs (line 161) | func TestDebVersion_Compare_Epochs(t *testing.T) { function TestDebVersion_CompareWithConfig (line 209) | func TestDebVersion_CompareWithConfig(t *testing.T) { function TestDebVersion_CompareWithConfig_ErrorCases (line 368) | func TestDebVersion_CompareWithConfig_ErrorCases(t *testing.T) { function TestDebVersion_CompareWithConfig_ConsistencyWithCompare (line 411) | func TestDebVersion_CompareWithConfig_ConsistencyWithCompare(t *testing.... function TestExtractDebEpoch (line 445) | func TestExtractDebEpoch(t *testing.T) { FILE: grype/version/deprecated.go function NewVersion (line 6) | func NewVersion(raw string, format Format) *Version { FILE: grype/version/error.go type UnsupportedComparisonError (line 16) | type UnsupportedComparisonError struct method Error (line 29) | func (e *UnsupportedComparisonError) Error() string { method Is (line 33) | func (e *UnsupportedComparisonError) Is(target error) bool { function newUnsupportedFormatError (line 22) | func newUnsupportedFormatError(left Format, right *Version) *Unsupported... function invalidFormatError (line 43) | func invalidFormatError(format Format, raw string, err error) error { type NonFatalConstraintError (line 51) | type NonFatalConstraintError struct method Error (line 57) | func (e NonFatalConstraintError) Error() string { FILE: grype/version/format.go constant UnknownFormat (line 10) | UnknownFormat Format = iota constant SemanticFormat (line 11) | SemanticFormat constant ApkFormat (line 12) | ApkFormat constant DebFormat (line 13) | DebFormat constant MavenFormat (line 14) | MavenFormat constant RpmFormat (line 15) | RpmFormat constant PythonFormat (line 16) | PythonFormat constant KBFormat (line 17) | KBFormat constant GemFormat (line 18) | GemFormat constant PortageFormat (line 19) | PortageFormat constant GolangFormat (line 20) | GolangFormat constant JVMFormat (line 21) | JVMFormat constant BitnamiFormat (line 22) | BitnamiFormat constant PacmanFormat (line 23) | PacmanFormat type Format (line 26) | type Format method String (line 94) | func (f Format) String() string { function ParseFormat (line 61) | func ParseFormat(userStr string) Format { FILE: grype/version/format_test.go function TestParseFormat (line 8) | func TestParseFormat(t *testing.T) { FILE: grype/version/fuzzy_constraint.go type fuzzyConstraint (line 18) | type fuzzyConstraint struct method Satisfied (line 64) | func (f fuzzyConstraint) Satisfied(verObj *Version) (bool, error) { method Format (line 105) | func (f fuzzyConstraint) Format() Format { method String (line 109) | func (f fuzzyConstraint) String() string { method Value (line 119) | func (f fuzzyConstraint) Value() string { function newFuzzyConstraint (line 25) | func newFuzzyConstraint(phrase, hint string) (fuzzyConstraint, error) { function fuzzyVersionComparison (line 132) | func fuzzyVersionComparison(v1, v2 string) int { function parseVersionParts (line 175) | func parseVersionParts(v string) (int, int, int) { function leftPad (line 204) | func leftPad(s string, n int) string { function stripLeadingV (line 213) | func stripLeadingV(ver string) string { function hasPatchNumber (line 219) | func hasPatchNumber(segment string) bool { function comparePatchNumbers (line 233) | func comparePatchNumbers(left, right string) int { FILE: grype/version/fuzzy_constraint_test.go function TestFuzzyVersionComparison (line 10) | func TestFuzzyVersionComparison(t *testing.T) { function TestFuzzyVersion_Constraint (line 81) | func TestFuzzyVersion_Constraint(t *testing.T) { function TestPseudoSemverPattern (line 396) | func TestPseudoSemverPattern(t *testing.T) { FILE: grype/version/fuzzy_version.go type fuzzyVersion (line 5) | type fuzzyVersion struct method Compare (line 18) | func (v fuzzyVersion) Compare(other *Version) (int, error) { function newFuzzyVersion (line 11) | func newFuzzyVersion(raw string) (fuzzyVersion, error) { function newFuzzySemver (line 32) | func newFuzzySemver(raw string) *semanticVersion { FILE: grype/version/fuzzy_version_test.go function TestFuzzyVersion_Compare (line 11) | func TestFuzzyVersion_Compare(t *testing.T) { function TestFuzzyVersion_Compare_EdgeCases (line 79) | func TestFuzzyVersion_Compare_EdgeCases(t *testing.T) { function TestFuzzyVersion_Compare_NilScenarios (line 120) | func TestFuzzyVersion_Compare_NilScenarios(t *testing.T) { FILE: grype/version/gem_version.go type gemVersion (line 12) | type gemVersion struct method Compare (line 74) | func (v gemVersion) Compare(other *Version) (int, error) { method compare (line 87) | func (v gemVersion) compare(other gemVersion) (int, error) { method String (line 100) | func (v *gemVersion) String() string { constant rubySegmentPattern (line 20) | rubySegmentPattern = `(\d+|[a-zA-Z]+)` constant rubyCorrectnessPattern (line 21) | rubyCorrectnessPattern = `^[0-9a-zA-Z.\-]+$` function newGemVersion (line 29) | func newGemVersion(raw string) (gemVersion, error) { function partitionSegments (line 104) | func partitionSegments(versionString string) ([]any, error) { function trimTrailingZeros (line 137) | func trimTrailingZeros(segments []any) []any { function trimIntermediateZeros (line 163) | func trimIntermediateZeros(segments []any, isPrerelease bool) []any { function compareSegments (line 207) | func compareSegments(left, right []any) (result int, allEqual bool, err ... function compareLengths (line 251) | func compareLengths(left, right []any, commonResult int) int { function cleanArchFromVersion (line 288) | func cleanArchFromVersion(raw string) string { FILE: grype/version/gem_version_test.go function TestGemVersion_Constraint (line 12) | func TestGemVersion_Constraint(t *testing.T) { function Test_cleanPlatformMakesEqualVersions (line 55) | func Test_cleanPlatformMakesEqualVersions(t *testing.T) { function TestNewGemVersion_ValidInputs (line 96) | func TestNewGemVersion_ValidInputs(t *testing.T) { function TestNewGemVersion_InvalidInputs (line 128) | func TestNewGemVersion_InvalidInputs(t *testing.T) { function TestGemVersion_Compare (line 159) | func TestGemVersion_Compare(t *testing.T) { function TestGemVersion_Compare_Errors (line 250) | func TestGemVersion_Compare_Errors(t *testing.T) { function TestGemVersion_canonical (line 282) | func TestGemVersion_canonical(t *testing.T) { FILE: grype/version/generic_constraint.go type genericConstraint (line 10) | type genericConstraint struct method String (line 28) | func (g genericConstraint) String() string { method Value (line 36) | func (g genericConstraint) Value() string { method Format (line 40) | func (g genericConstraint) Format() Format { method Satisfied (line 44) | func (g genericConstraint) Satisfied(version *Version) (bool, error) { function newGenericConstraint (line 16) | func newGenericConstraint(format Format, raw string) (genericConstraint,... FILE: grype/version/generic_constraint_test.go function TestGenericConstraint_String (line 10) | func TestGenericConstraint_String(t *testing.T) { function TestGenericConstraint_Satisfied_EmptyConstraint (line 60) | func TestGenericConstraint_Satisfied_EmptyConstraint(t *testing.T) { function TestGenericConstraint_Satisfied_WithConstraint (line 91) | func TestGenericConstraint_Satisfied_WithConstraint(t *testing.T) { function TestGenericConstraint_Invalid (line 155) | func TestGenericConstraint_Invalid(t *testing.T) { function TestGenericConstraint_Satisfied_UnknownFormatComparison (line 179) | func TestGenericConstraint_Satisfied_UnknownFormatComparison(t *testing.... FILE: grype/version/golang_version.go type golangVersion (line 12) | type golangVersion struct method Compare (line 45) | func (v golangVersion) Compare(other *Version) (int, error) { method compare (line 66) | func (v golangVersion) compare(o golangVersion) int { function newGolangVersion (line 17) | func newGolangVersion(v string) (golangVersion, error) { FILE: grype/version/golang_version_test.go function TestGolangVersion_Constraint (line 12) | func TestGolangVersion_Constraint(t *testing.T) { function TestGolangVersion_String (line 57) | func TestGolangVersion_String(t *testing.T) { function TestGolangVersion_Compare (line 84) | func TestGolangVersion_Compare(t *testing.T) { function TestGolangVersion_Compare_NilVersion (line 220) | func TestGolangVersion_Compare_NilVersion(t *testing.T) { function TestGolangVersion_Compare_DifferentFormat (line 229) | func TestGolangVersion_Compare_DifferentFormat(t *testing.T) { function TestGolangVersion (line 240) | func TestGolangVersion(t *testing.T) { FILE: grype/version/helper_test.go type testCase (line 12) | type testCase struct method tName (line 20) | func (c *testCase) tName() string { method assertVersionConstraint (line 28) | func (c *testCase) assertVersionConstraint(t *testing.T, format Format... FILE: grype/version/jvm_version.go type jvmVersion (line 22) | type jvmVersion struct method Compare (line 47) | func (v jvmVersion) Compare(other *Version) (int, error) { method compare (line 59) | func (v jvmVersion) compare(other jvmVersion) int { function newJvmVersion (line 27) | func newJvmVersion(raw string) (jvmVersion, error) { function convertNonCompliantSemver (line 63) | func convertNonCompliantSemver(version string) string { function convertPreJep223Version (line 92) | func convertPreJep223Version(version string) string { function buildSemVer (line 119) | func buildSemVer(majorVersion, minorVersion, patchVersion, preRelease, b... function trim0sFromLeft (line 142) | func trim0sFromLeft(v string) string { FILE: grype/version/jvm_version_test.go function TestJVMVersion_Constraint (line 10) | func TestJVMVersion_Constraint(t *testing.T) { function TestJVMVersion_Compare (line 73) | func TestJVMVersion_Compare(t *testing.T) { function TestJVMVersion_ConvertNonCompliantSemver (line 140) | func TestJVMVersion_ConvertNonCompliantSemver(t *testing.T) { function TestJVMVersion_Invalid (line 191) | func TestJVMVersion_Invalid(t *testing.T) { function TestJvmVersion_Compare_Formats (line 215) | func TestJvmVersion_Compare_Formats(t *testing.T) { function TestJvmVersion_Compare_EdgeCases (line 284) | func TestJvmVersion_Compare_EdgeCases(t *testing.T) { FILE: grype/version/kb_constraint.go type kbConstraint (line 5) | type kbConstraint struct method Satisfied (line 27) | func (c kbConstraint) Satisfied(version *Version) (bool, error) { method Format (line 48) | func (c kbConstraint) Format() Format { method String (line 52) | func (c kbConstraint) String() string { method Value (line 59) | func (c kbConstraint) Value() string { function newKBConstraint (line 10) | func newKBConstraint(raw string) (kbConstraint, error) { FILE: grype/version/kb_constraint_test.go function TestKbVersion_Constraint (line 10) | func TestKbVersion_Constraint(t *testing.T) { FILE: grype/version/kb_version.go type kbVersion (line 9) | type kbVersion struct method Compare (line 19) | func (v kbVersion) Compare(other *Version) (int, error) { method compare (line 28) | func (v kbVersion) compare(other kbVersion) int { method String (line 36) | func (v kbVersion) String() string { function newKBVersion (line 13) | func newKBVersion(raw string) kbVersion { FILE: grype/version/kb_version_test.go function TestKbVersion_Compare (line 11) | func TestKbVersion_Compare(t *testing.T) { function TestKbVersion_Compare_EdgeCases (line 65) | func TestKbVersion_Compare_EdgeCases(t *testing.T) { FILE: grype/version/maven_version.go type mavenVersion (line 15) | type mavenVersion struct method Compare (line 60) | func (v mavenVersion) Compare(other *Version) (int, error) { method compare (line 72) | func (v mavenVersion) compare(other mvnv.Version) (int, error) { function stripJavaRuntimeQualifier (line 37) | func stripJavaRuntimeQualifier(version string) string { function newMavenVersion (line 41) | func newMavenVersion(raw string) (mavenVersion, error) { FILE: grype/version/maven_version_test.go function TestStripJavaRuntimeQualifier (line 11) | func TestStripJavaRuntimeQualifier(t *testing.T) { function TestMavenVersion_Constraint (line 92) | func TestMavenVersion_Constraint(t *testing.T) { function TestMavenVersion_Compare (line 180) | func TestMavenVersion_Compare(t *testing.T) { function TestMavenVersion_Compare_Format (line 285) | func TestMavenVersion_Compare_Format(t *testing.T) { function TestMavenVersion_Compare_EdgeCases (line 338) | func TestMavenVersion_Compare_EdgeCases(t *testing.T) { FILE: grype/version/operator.go constant EQ (line 6) | EQ Operator = "=" constant GT (line 7) | GT Operator = ">" constant LT (line 8) | LT Operator = "<" constant GTE (line 9) | GTE Operator = ">=" constant LTE (line 10) | LTE Operator = "<=" type Operator (line 13) | type Operator function parseOperator (line 15) | func parseOperator(op string) (Operator, error) { FILE: grype/version/pacman_version.go type pacmanVersion (line 12) | type pacmanVersion struct method Compare (line 40) | func (v pacmanVersion) Compare(other *Version) (int, error) { method compare (line 56) | func (v pacmanVersion) compare(v2 pacmanVersion) int { method String (line 77) | func (v pacmanVersion) String() string { function newPacmanVersion (line 18) | func newPacmanVersion(raw string) (pacmanVersion, error) { function comparePacmanVersions (line 99) | func comparePacmanVersions(a, b string) int { FILE: grype/version/pacman_version_test.go function TestPacmanVersionCompare (line 9) | func TestPacmanVersionCompare(t *testing.T) { function TestPacmanVersionString (line 142) | func TestPacmanVersionString(t *testing.T) { FILE: grype/version/pep440_version.go type pep440Version (line 9) | type pep440Version struct method Compare (line 41) | func (v pep440Version) Compare(other *Version) (int, error) { function newPep440Version (line 16) | func newPep440Version(raw string) (pep440Version, error) { FILE: grype/version/pep440_version_test.go function TestPep440Version_Constraint (line 11) | func TestPep440Version_Constraint(t *testing.T) { function TestPep440Version_Compare (line 294) | func TestPep440Version_Compare(t *testing.T) { function TestPep440Version_Compare_EdgeCases (line 357) | func TestPep440Version_Compare_EdgeCases(t *testing.T) { FILE: grype/version/portage_version.go type portageVersion (line 19) | type portageVersion struct method Compare (line 29) | func (v portageVersion) Compare(other *Version) (int, error) { method compare (line 38) | func (v portageVersion) compare(v2 portageVersion) int { function newPortageVersion (line 23) | func newPortageVersion(raw string) portageVersion { function comparePortageVersions (line 46) | func comparePortageVersions(a, b string) int { FILE: grype/version/portage_version_test.go function TestPortageVersion_Constraint (line 11) | func TestPortageVersion_Constraint(t *testing.T) { function TestPortageConstraint_Constraint_NilVersion (line 112) | func TestPortageConstraint_Constraint_NilVersion(t *testing.T) { function TestPortageVersion_Constraint_UnsupportedFormat (line 149) | func TestPortageVersion_Constraint_UnsupportedFormat(t *testing.T) { function TestPortageConstraint_String (line 162) | func TestPortageConstraint_String(t *testing.T) { function TestPortageVersion_Compare (line 196) | func TestPortageVersion_Compare(t *testing.T) { function TestPortageVersion_Compare_Format (line 227) | func TestPortageVersion_Compare_Format(t *testing.T) { function TestPortageVersion_Compare_EdgeCases (line 280) | func TestPortageVersion_Compare_EdgeCases(t *testing.T) { FILE: grype/version/range.go type rangeUnit (line 16) | type rangeUnit struct method Satisfied (line 73) | func (c *rangeUnit) Satisfied(comparison int) bool { function parseRange (line 21) | func parseRange(phrase string) (*rangeUnit, error) { function trimQuotes (line 61) | func trimQuotes(s string) (string, error) { function validateVersion (line 92) | func validateVersion(version string) error { FILE: grype/version/range_expression.go type simpleRangeExpression (line 10) | type simpleRangeExpression struct method satisfied (line 43) | func (c *simpleRangeExpression) satisfied(format Format, version *Vers... method satisfiedWithConfig (line 52) | func (c *simpleRangeExpression) satisfiedWithConfig(format Format, ver... function parseRangeExpression (line 14) | func parseRangeExpression(phrase string) (simpleRangeExpression, error) { function compareWithConfig (line 90) | func compareWithConfig(version *Version, constraintVersion *Version, cfg... function scanExpression (line 108) | func scanExpression(phrase string) ([][]string, error) { FILE: grype/version/range_expression_test.go function TestScanExpression (line 10) | func TestScanExpression(t *testing.T) { FILE: grype/version/range_test.go function TestParseRangeUnit (line 11) | func TestParseRangeUnit(t *testing.T) { function TestTrimQuotes (line 136) | func TestTrimQuotes(t *testing.T) { FILE: grype/version/rpm_version.go type rpmVersion (line 14) | type rpmVersion struct method Compare (line 42) | func (v rpmVersion) Compare(other *Version) (int, error) { method CompareWithConfig (line 68) | func (v rpmVersion) CompareWithConfig(other *Version, cfg ComparisonCo... method compareWithConfig (line 81) | func (v rpmVersion) compareWithConfig(v2 rpmVersion, cfg ComparisonCon... method compare (line 114) | func (v rpmVersion) compare(v2 rpmVersion) int { method String (line 155) | func (v rpmVersion) String() string { function newRpmVersion (line 20) | func newRpmVersion(raw string) (rpmVersion, error) { function epochIsPresent (line 139) | func epochIsPresent(epoch *int) bool { function compareEpochs (line 144) | func compareEpochs(e1 int, e2 int) int { function splitEpochFromVersion (line 168) | func splitEpochFromVersion(rawVersion string) (*int, string, error) { function compareRpmVersions (line 202) | func compareRpmVersions(a, b string) int { FILE: grype/version/rpm_version_test.go function TestRpmVersion_Constraint (line 11) | func TestRpmVersion_Constraint(t *testing.T) { function TestRpmVersion_Compare (line 84) | func TestRpmVersion_Compare(t *testing.T) { function TestRpmVersion_Compare_Format (line 127) | func TestRpmVersion_Compare_Format(t *testing.T) { function TestRpmVersion_Compare_EdgeCases (line 181) | func TestRpmVersion_Compare_EdgeCases(t *testing.T) { function TestRpmVersion_CompareWithConfig (line 214) | func TestRpmVersion_CompareWithConfig(t *testing.T) { function TestRpmVersion_CompareWithConfig_ErrorCases (line 366) | func TestRpmVersion_CompareWithConfig_ErrorCases(t *testing.T) { function TestRpmVersion_CompareWithConfig_ConsistencyWithCompare (line 409) | func TestRpmVersion_CompareWithConfig_ConsistencyWithCompare(t *testing.... FILE: grype/version/semantic_version.go type semanticVersion (line 18) | type semanticVersion struct method Compare (line 46) | func (v semanticVersion) Compare(other *Version) (int, error) { function newSemanticVersion (line 24) | func newSemanticVersion(raw string, strict bool) (semanticVersion, error) { FILE: grype/version/semantic_version_test.go function TestSemanticVersion_Constraint (line 11) | func TestSemanticVersion_Constraint(t *testing.T) { function TestSemanticVersion_PrereleaseNormalizer_EdgeCases (line 146) | func TestSemanticVersion_PrereleaseNormalizer_EdgeCases(t *testing.T) { function TestSemanticVersion_PrereleaseNormalizer_WithGemFormat (line 193) | func TestSemanticVersion_PrereleaseNormalizer_WithGemFormat(t *testing.T) { function TestSemanticVersion_Compare_Format (line 214) | func TestSemanticVersion_Compare_Format(t *testing.T) { function TestSemanticVersion_Compare_EdgeCases (line 284) | func TestSemanticVersion_Compare_EdgeCases(t *testing.T) { FILE: grype/version/set.go type Set (line 7) | type Set struct method Add (line 37) | func (s *Set) Add(vs ...*Version) { method Remove (line 51) | func (s *Set) Remove(vs ...*Version) { method Contains (line 65) | func (s *Set) Contains(v *Version) bool { method Values (line 75) | func (s *Set) Values() []*Version { method Size (line 105) | func (s *Set) Size() int { method Clear (line 112) | func (s *Set) Clear() { function NewSet (line 12) | func NewSet(ignoreFormat bool, vs ...*Version) *Set { FILE: grype/version/set_test.go function TestNewSet (line 10) | func TestNewSet(t *testing.T) { function TestSet_Add (line 70) | func TestSet_Add(t *testing.T) { function TestSet_Remove (line 165) | func TestSet_Remove(t *testing.T) { function TestSet_Contains (line 252) | func TestSet_Contains(t *testing.T) { function TestSet_Values (line 336) | func TestSet_Values(t *testing.T) { function TestSet_Size (line 408) | func TestSet_Size(t *testing.T) { function TestSet_Clear (line 461) | func TestSet_Clear(t *testing.T) { function TestSet_Integration (line 504) | func TestSet_Integration(t *testing.T) { FILE: grype/version/version.go type Version (line 10) | type Version struct method Validate (line 35) | func (v *Version) Validate() error { method getComparator (line 41) | func (v *Version) getComparator(format Format) (Comparator, error) { method String (line 89) | func (v Version) String() string { method Compare (line 96) | func (v Version) Compare(other *Version) (int, error) { method Is (line 128) | func (v *Version) Is(op Operator, other *Version) (bool, error) { function New (line 21) | func New(raw string, format Format) *Version { function NewWithConfig (line 27) | func NewWithConfig(raw string, format Format, cfg ComparisonConfig) *Ver... FILE: grype/version/version_test.go function TestVersionCompare (line 11) | func TestVersionCompare(t *testing.T) { function TestVersion_UpgradeUnknownRightSideComparison (line 85) | func TestVersion_UpgradeUnknownRightSideComparison(t *testing.T) { function TestVersionCompareSameFormat (line 96) | func TestVersionCompareSameFormat(t *testing.T) { function TestVersion_Is (line 129) | func TestVersion_Is(t *testing.T) { function TestVersion_Is_AllOperators (line 318) | func TestVersion_Is_AllOperators(t *testing.T) { FILE: grype/vex/csaf/csaf.go type advisoryMatch (line 10) | type advisoryMatch struct method cve (line 17) | func (m *advisoryMatch) cve() string { method statement (line 26) | func (m *advisoryMatch) statement() string { type advisories (line 66) | type advisories method matches (line 71) | func (advisories advisories) matches(vulnID, purl string) *advisoryMat... function purlsFromProductIdentificationHelpers (line 120) | func purlsFromProductIdentificationHelpers(helpers []*csaf.ProductIdenti... FILE: grype/vex/csaf/csaf_test.go function Test_advisoryMatch_statement (line 10) | func Test_advisoryMatch_statement(t *testing.T) { function Test_advisories_matches (line 113) | func Test_advisories_matches(t *testing.T) { FILE: grype/vex/csaf/implementation.go type searchedBy (line 17) | type searchedBy struct type Processor (line 22) | type Processor struct method ReadVexDocuments (line 37) | func (*Processor) ReadVexDocuments(docs []string) (interface{}, error) { method FilterMatches (line 82) | func (*Processor) FilterMatches( method AugmentMatches (line 125) | func (*Processor) AugmentMatches( function New (line 24) | func New() *Processor { function IsCSAF (line 29) | func IsCSAF(document string) bool { function newerCurrentReleaseDateFirst (line 56) | func newerCurrentReleaseDateFirst(a, b *csaf.Advisory) int { function matchingRule (line 160) | func matchingRule(ignoreRules []match.IgnoreRule, m match.Match, advMatc... FILE: grype/vex/csaf/implementation_test.go function Test_newerCurrentReleaseDateFirst (line 18) | func Test_newerCurrentReleaseDateFirst(t *testing.T) { function Test_matchingRule (line 134) | func Test_matchingRule(t *testing.T) { FILE: grype/vex/csaf/status.go type status (line 5) | type status constant firstAffected (line 8) | firstAffected status = "first_affected" constant firstFixed (line 9) | firstFixed status = "first_fixed" constant fixed (line 10) | fixed status = "fixed" constant knownAffected (line 11) | knownAffected status = "known_affected" constant knownNotAffected (line 12) | knownNotAffected status = "known_not_affected" constant lastAffected (line 13) | lastAffected status = "last_affected" constant recommended (line 14) | recommended status = "recommended" constant underInvestigation (line 15) | underInvestigation status = "under_investigation" function matchesVexStatus (line 19) | func matchesVexStatus(csafStatus status, status vexStatus.Status) bool { FILE: grype/vex/openvex/implementation.go type Processor (line 19) | type Processor struct method ReadVexDocuments (line 46) | func (ovm *Processor) ReadVexDocuments(docs []string) (interface{}, er... method FilterMatches (line 206) | func (ovm *Processor) FilterMatches( method AugmentMatches (line 318) | func (ovm *Processor) AugmentMatches( function New (line 21) | func New() *Processor { type Match (line 26) | type Match struct type SearchedBy (line 31) | type SearchedBy struct function IsOpenVex (line 38) | func IsOpenVex(document string) bool { function productIdentifiersFromContext (line 58) | func productIdentifiersFromContext(pkgContext *pkg.Context) []string { function normalizeDockerHubRepositoryURL (line 75) | func normalizeDockerHubRepositoryURL(repoURL string) string { function identifiersFromTags (line 99) | func identifiersFromTags(tags []string, name string) []string { function identifiersFromDigests (line 118) | func identifiersFromDigests(digests []string) []string { function subcomponentIdentifiersFromMatch (line 168) | func subcomponentIdentifiersFromMatch(m *match.Match) []string { function findMatchingStatement (line 188) | func findMatchingStatement(doc *openvex.VEX, vulnID string, products []s... function matchingRule (line 255) | func matchingRule(ignoreRules []match.IgnoreRule, m match.Match, stateme... FILE: grype/vex/openvex/implementation_test.go function TestIdentifiersFromTags (line 17) | func TestIdentifiersFromTags(t *testing.T) { function TestIdentifiersFromDigests (line 39) | func TestIdentifiersFromDigests(t *testing.T) { function TestFilterMatches_NoErrorOnEmptyProducts (line 70) | func TestFilterMatches_NoErrorOnEmptyProducts(t *testing.T) { function TestFilterMatches_ImageProductNoSubcomponents (line 179) | func TestFilterMatches_ImageProductNoSubcomponents(t *testing.T) { function TestFilterMatches_PackageProductDirectoryScan (line 250) | func TestFilterMatches_PackageProductDirectoryScan(t *testing.T) { function TestFilterMatches_PackageProductNoOverMatch (line 303) | func TestFilterMatches_PackageProductNoOverMatch(t *testing.T) { function TestProductIdentifiersFromContext (line 394) | func TestProductIdentifiersFromContext(t *testing.T) { function TestIdentifiersFromDigests_NormalizesDockerHubRepositoryURL (line 545) | func TestIdentifiersFromDigests_NormalizesDockerHubRepositoryURL(t *test... function TestNormalizeDockerHubRepositoryURL (line 570) | func TestNormalizeDockerHubRepositoryURL(t *testing.T) { FILE: grype/vex/processor.go type Processor (line 13) | type Processor struct method ApplyVEX (line 81) | func (vm *Processor) ApplyVEX(pkgContext *pkg.Context, remainingMatche... type vexProcessorImplementation (line 18) | type vexProcessorImplementation interface function getVexImplementation (line 37) | func getVexImplementation(documents []string) (vexProcessorImplementatio... function NewProcessor (line 60) | func NewProcessor(opts ProcessorOptions) (*Processor, error) { type ProcessorOptions (line 73) | type ProcessorOptions struct function extractVexRules (line 116) | func extractVexRules(rules []match.IgnoreRule) []match.IgnoreRule { FILE: grype/vex/processor_test.go function TestProcessor_ApplyVEX (line 16) | func TestProcessor_ApplyVEX(t *testing.T) { FILE: grype/vex/status/status.go type Status (line 3) | type Status constant NotAffected (line 10) | NotAffected Status = "not_affected" constant Affected (line 11) | Affected Status = "affected" constant Fixed (line 12) | Fixed Status = "fixed" constant UnderInvestigation (line 13) | UnderInvestigation Status = "under_investigation" function AugmentList (line 17) | func AugmentList() []Status { function IgnoreList (line 22) | func IgnoreList() []Status { FILE: grype/vulnerability/advisory.go type Advisory (line 3) | type Advisory struct FILE: grype/vulnerability/fix.go type FixState (line 5) | type FixState method String (line 35) | func (f FixState) String() string { constant FixStateUnknown (line 8) | FixStateUnknown FixState = "unknown" constant FixStateFixed (line 9) | FixStateFixed FixState = "fixed" constant FixStateNotFixed (line 10) | FixStateNotFixed FixState = "not-fixed" constant FixStateWontFix (line 11) | FixStateWontFix FixState = "wont-fix" function AllFixStates (line 14) | func AllFixStates() []FixState { type Fix (line 23) | type Fix struct type FixAvailable (line 29) | type FixAvailable struct FILE: grype/vulnerability/metadata.go type Metadata (line 8) | type Metadata struct method RiskScore (line 30) | func (m *Metadata) RiskScore() float64 { function riskScore (line 41) | func riskScore(m Metadata) float64 { function kevModifier (line 45) | func kevModifier(m Metadata) float64 { function threat (line 58) | func threat(m Metadata) float64 { function severity (line 73) | func severity(m Metadata) float64 { function severityToScore (line 84) | func severityToScore(severity string) float64 { function validBaseScores (line 103) | func validBaseScores(as ...Cvss) []float64 { function average (line 115) | func average(as ...float64) float64 { type Cvss (line 126) | type Cvss struct type CvssMetrics (line 135) | type CvssMetrics struct type KnownExploited (line 141) | type KnownExploited struct type EPSS (line 154) | type EPSS struct type CWE (line 161) | type CWE struct FILE: grype/vulnerability/metadata_test.go function TestRiskScore (line 10) | func TestRiskScore(t *testing.T) { function TestSeverityToScore (line 223) | func TestSeverityToScore(t *testing.T) { function TestAverageCVSS (line 251) | func TestAverageCVSS(t *testing.T) { function TestThreat (line 306) | func TestThreat(t *testing.T) { function TestImpact (line 357) | func TestImpact(t *testing.T) { function TestSeverity (line 415) | func TestSeverity(t *testing.T) { FILE: grype/vulnerability/mock/vulnerability_provider.go function VulnerabilityProvider (line 11) | func VulnerabilityProvider(vulnerabilities ...vulnerability.Vulnerabilit... type mockProvider (line 17) | type mockProvider struct method Close (line 22) | func (s *mockProvider) Close() error { method PackageSearchNames (line 26) | func (s *mockProvider) PackageSearchNames(p grypePkg.Package) []string { method VulnerabilityMetadata (line 31) | func (s *mockProvider) VulnerabilityMetadata(ref vulnerability.Referen... method FindVulnerabilities (line 55) | func (s *mockProvider) FindVulnerabilities(criteria ...vulnerability.C... function filterE (line 75) | func filterE[T any](out []T, keep func(v T) (bool, error)) ([]T, error) { FILE: grype/vulnerability/provider.go type Criteria (line 13) | type Criteria interface type MetadataProvider (line 21) | type MetadataProvider interface type Provider (line 29) | type Provider interface type StoreMetadataProvider (line 39) | type StoreMetadataProvider interface type EOLChecker (line 46) | type EOLChecker interface type DataProvenance (line 54) | type DataProvenance struct method MarshalJSON (line 95) | func (s DataProvenance) MarshalJSON() ([]byte, error) { type ProviderStatus (line 59) | type ProviderStatus struct method MarshalJSON (line 67) | func (s ProviderStatus) MarshalJSON() ([]byte, error) { FILE: grype/vulnerability/severity.go constant UnknownSeverity (line 6) | UnknownSeverity Severity = iota constant NegligibleSeverity (line 7) | NegligibleSeverity constant LowSeverity (line 8) | LowSeverity constant MediumSeverity (line 9) | MediumSeverity constant HighSeverity (line 10) | HighSeverity constant CriticalSeverity (line 11) | CriticalSeverity function AllSeverities (line 23) | func AllSeverities() []Severity { type Severity (line 33) | type Severity method String (line 37) | func (f Severity) String() string { type Severities (line 35) | type Severities method Len (line 62) | func (s Severities) Len() int { method Swap (line 66) | func (s Severities) Swap(i, j int) { method Less (line 70) | func (s Severities) Less(i, j int) bool { function ParseSeverity (line 45) | func ParseSeverity(severity string) Severity { FILE: grype/vulnerability/vulnerability.go type Reference (line 12) | type Reference struct type Vulnerability (line 18) | type Vulnerability struct method String (line 32) | func (v Vulnerability) String() string { function LogDropped (line 44) | func LogDropped(id, op, dropReason string, context any) { FILE: grype/vulnerability_matcher.go constant branch (line 29) | branch = "├──" constant leaf (line 30) | leaf = "└──" type AlertsConfig (line 34) | type AlertsConfig struct type VulnerabilityMatcher (line 39) | type VulnerabilityMatcher struct method FailAtOrAboveSeverity (line 54) | func (m *VulnerabilityMatcher) FailAtOrAboveSeverity(severity *vulnera... method WithMatchers (line 59) | func (m *VulnerabilityMatcher) WithMatchers(matchers []match.Matcher) ... method WithIgnoreRules (line 64) | func (m *VulnerabilityMatcher) WithIgnoreRules(ignoreRules []match.Ign... method DistroDetectionFailed (line 71) | func (m *VulnerabilityMatcher) DistroDetectionFailed() bool { method EOLDistroPackages (line 76) | func (m *VulnerabilityMatcher) EOLDistroPackages() []pkg.Package { method FindMatches (line 83) | func (m *VulnerabilityMatcher) FindMatches( method FindMatchesContext (line 92) | func (m *VulnerabilityMatcher) FindMatchesContext( method findDBMatches (line 137) | func (m *VulnerabilityMatcher) findDBMatches(ctx context.Context, pkgs... method mergeIgnoredMatches (line 172) | func (m *VulnerabilityMatcher) mergeIgnoredMatches(allIgnoredMatches .... method searchDBForMatches (line 186) | func (m *VulnerabilityMatcher) searchDBForMatches( method findVEXMatches (line 276) | func (m *VulnerabilityMatcher) findVEXMatches(pkgContext pkg.Context, ... method applyIgnoreRules (line 298) | func (m *VulnerabilityMatcher) applyIgnoreRules(matches match.Matches)... method normalizeByCVE (line 312) | func (m *VulnerabilityMatcher) normalizeByCVE(match match.Match) match... function callMatcherSafely (line 266) | func callMatcherSafely(m match.Matcher, vp vulnerability.Provider, p pkg... type ignoreRulesByIndex (line 369) | type ignoreRulesByIndex struct method IgnoreMatch (line 375) | func (i ignoreRulesByIndex) IgnoreMatch(m match.Match) []match.IgnoreR... function ignoredMatchFilter (line 400) | func ignoredMatchFilter(ignores []match.IgnoreFilter) match.IgnoreFilter { function displayPackage (line 424) | func displayPackage(p pkg.Package) string { function ignoredMatchesDiff (line 436) | func ignoredMatchesDiff(subject []match.IgnoredMatch, other []match.Igno... function newMatcherIndex (line 455) | func newMatcherIndex(matchers []match.Matcher) (map[syftPkg.Type][]match... function isCVE (line 476) | func isCVE(id string) bool { function hasSeverityAtOrAbove (line 481) | func hasSeverityAtOrAbove(store vulnerability.MetadataProvider, severity... function logListSummary (line 498) | func logListSummary(vl *monitorWriter) { function updateVulnerabilityList (line 519) | func updateVulnerabilityList(mon *monitorWriter, matches []match.Match, ... function logPackageMatches (line 543) | func logPackageMatches(p pkg.Package, matches []match.Match) { function selectArm (line 555) | func selectArm(idx, total int) string { function logExplicitDroppedPackageMatches (line 562) | func logExplicitDroppedPackageMatches(p pkg.Package, ignored []match.Ign... function logIgnoredMatches (line 575) | func logIgnoredMatches(ignored []match.IgnoredMatch) { type monitorWriter (line 595) | type monitorWriter struct method SetCompleted (line 635) | func (m *monitorWriter) SetCompleted() { function newMonitor (line 604) | func newMonitor(pkgCount int) (monitorWriter, monitor.Matching) { function trackMatcher (line 646) | func trackMatcher(pkgCount int) *monitorWriter { type eolTracker (line 658) | type eolTracker struct method checkAndTrack (line 684) | func (t *eolTracker) checkAndTrack(p pkg.Package) bool { type eolCacheEntry (line 663) | type eolCacheEntry struct function newEOLTracker (line 668) | func newEOLTracker(enabled bool, provider vulnerability.Provider) *eolTr... FILE: grype/vulnerability_matcher_test.go function testVulnerabilities (line 36) | func testVulnerabilities() []vulnerability.Vulnerability { function Test_HasSeverityAtOrAbove (line 124) | func Test_HasSeverityAtOrAbove(t *testing.T) { function TestVulnerabilityMatcher_FindMatches (line 202) | func TestVulnerabilityMatcher_FindMatches(t *testing.T) { function Test_fatalErrors (line 1015) | func Test_fatalErrors(t *testing.T) { function Test_matchIgnoreFiltering (line 1065) | func Test_matchIgnoreFiltering(t *testing.T) { function Test_ignoredMatchFilterReasons (line 1300) | func Test_ignoredMatchFilterReasons(t *testing.T) { type testIgnoreFilter (line 1356) | type testIgnoreFilter struct method IgnoreMatch (line 1360) | func (t testIgnoreFilter) IgnoreMatch(m match.Match) []match.IgnoreRule { type panicyMatcher (line 1371) | type panicyMatcher struct method PackageTypes (line 1375) | func (m *panicyMatcher) PackageTypes() []syftPkg.Type { method Type (line 1379) | func (m *panicyMatcher) Type() match.MatcherType { method Match (line 1383) | func (m *panicyMatcher) Match(_ vulnerability.Provider, _ pkg.Package)... function TestCallMatcherSafely_RecoverFromPanic (line 1387) | func TestCallMatcherSafely_RecoverFromPanic(t *testing.T) { type busListener (line 1399) | type busListener struct method Publish (line 1403) | func (b *busListener) Publish(e partybus.Event) { type mockEOLProvider (line 1414) | type mockEOLProvider struct method GetOperatingSystemEOL (line 1419) | func (m *mockEOLProvider) GetOperatingSystemEOL(d *distro.Distro) (*ti... function TestEOLTracker (line 1429) | func TestEOLTracker(t *testing.T) { function TestEOLTrackerCaching (line 1520) | func TestEOLTrackerCaching(t *testing.T) { type countingEOLProvider (line 1555) | type countingEOLProvider struct method GetOperatingSystemEOL (line 1561) | func (c *countingEOLProvider) GetOperatingSystemEOL(d *distro.Distro) ... function TestVulnerabilityMatcher_EOLDistroPackages (line 1572) | func TestVulnerabilityMatcher_EOLDistroPackages(t *testing.T) { FILE: internal/bus/bus.go function Set (line 7) | func Set(p partybus.Publisher) { function Publish (line 11) | func Publish(event partybus.Event) { FILE: internal/bus/helpers.go function Exit (line 11) | func Exit() { function ExitWithInterrupt (line 15) | func ExitWithInterrupt() { function Report (line 19) | func Report(report string) { function Notify (line 26) | func Notify(message string) { FILE: internal/cvss/metrics.go function ParseMetricsFromVector (line 16) | func ParseMetricsFromVector(vector string) (*vulnerability.CvssMetrics, ... function SeverityFromBaseScore (line 67) | func SeverityFromBaseScore(bs float64) vulnerability.Severity { function roundScore (line 87) | func roundScore(score float64) float64 { FILE: internal/cvss/metrics_test.go function TestParseMetricsFromVector (line 12) | func TestParseMetricsFromVector(t *testing.T) { function TestSeverityFromBaseScore (line 113) | func TestSeverityFromBaseScore(t *testing.T) { function ptr (line 193) | func ptr(f float64) *float64 { FILE: internal/dbtest/default_vulnerabilities.go function DefaultVulnerabilities (line 9) | func DefaultVulnerabilities() []vulnerability.Vulnerability { FILE: internal/dbtest/server.go type ServerBuilder (line 32) | type ServerBuilder struct method SetDBBuilt (line 45) | func (s *ServerBuilder) SetDBBuilt(t time.Time) *ServerBuilder { method SetDBVersion (line 50) | func (s *ServerBuilder) SetDBVersion(major, minor, patch int) *ServerB... method WithHandler (line 55) | func (s *ServerBuilder) WithHandler(handler http.HandlerFunc) *ServerB... method Start (line 86) | func (s *ServerBuilder) Start() (url string) { method buildDB (line 143) | func (s *ServerBuilder) buildDB() []byte { function NewServer (line 63) | func NewServer(t *testing.T) *ServerBuilder { function sha (line 134) | func sha(contents []byte) string { function pack (line 315) | func pack(t *testing.T, typ string, contents []byte) []byte { function toAffectedVersion (line 348) | func toAffectedVersion(c version.Constraint) v6.Version { type wrappedWriter (line 361) | type wrappedWriter struct method Header (line 366) | func (w *wrappedWriter) Header() http.Header { method Write (line 371) | func (w *wrappedWriter) Write(contents []byte) (int, error) { method WriteHeader (line 376) | func (w *wrappedWriter) WriteHeader(statusCode int) { FILE: internal/dbtest/server_test.go function Test_NewServer (line 18) | func Test_NewServer(t *testing.T) { FILE: internal/file/copy.go function CopyDir (line 12) | func CopyDir(fs afero.Fs, src string, dst string) error { function CopyFile (line 45) | func CopyFile(fs afero.Fs, src, dst string) error { FILE: internal/file/exists.go function Exists (line 9) | func Exists(fs afero.Fs, path string) (bool, error) { FILE: internal/file/getter.go type Getter (line 23) | type Getter interface type HashiGoGetter (line 32) | type HashiGoGetter struct method GetFile (line 49) | func (g HashiGoGetter) GetFile(dst, src string, monitors ...*progress.... method GetToDir (line 57) | func (g HashiGoGetter) GetToDir(dst, src string, monitors ...*progress... function NewGetter (line 38) | func NewGetter(id clio.Identification, httpClient *http.Client) *HashiGo... function validateHTTPSource (line 69) | func validateHTTPSource(src string) error { function getterClient (line 86) | func getterClient(dst, src string, dir bool, httpGetter getter.HttpGette... function withProgress (line 109) | func withProgress(monitor *progress.Manual) func(client *getter.Client) ... function mapToGetterClientOptions (line 115) | func mapToGetterClientOptions(monitors []*progress.Manual) []getter.Clie... type readCloser (line 146) | type readCloser struct method Close (line 150) | func (c *readCloser) Close() error { return nil } type progressAdapter (line 152) | type progressAdapter struct method TrackProgress (line 156) | func (a *progressAdapter) TrackProgress(_ string, currentSize, totalSi... function getterDecompressorNames (line 164) | func getterDecompressorNames() (names []string) { FILE: internal/file/getter_test.go function TestGetter_GetFile (line 21) | func TestGetter_GetFile(t *testing.T) { function TestGetter_GetToDir_FilterNonArchivesWired (line 62) | func TestGetter_GetToDir_FilterNonArchivesWired(t *testing.T) { function TestGetter_validateHttpSource (line 82) | func TestGetter_validateHttpSource(t *testing.T) { function TestGetter_GetToDir_CertConcerns (line 112) | func TestGetter_GetToDir_CertConcerns(t *testing.T) { function assertUnknownAuthorityError (line 154) | func assertUnknownAuthorityError(t assert.TestingT, err error, _ ...inte... function assertErrNonArchiveSource (line 158) | func assertErrNonArchiveSource(t assert.TestingT, err error, _ ...interf... function removeTrustedCAs (line 162) | func removeTrustedCAs(client *http.Client) { function createTarball (line 167) | func createTarball(filename string, content []byte) []byte { type muxOption (line 181) | type muxOption function withResponseForPath (line 183) | func withResponseForPath(t *testing.T, path string, response []byte) mux... function newTestServer (line 203) | func newTestServer(t *testing.T, muxOptions ...muxOption) *httptest.Serv... function createRequestURL (line 217) | func createRequestURL(t *testing.T, server *httptest.Server, path string... function getClient (line 237) | func getClient(t *testing.T, server *httptest.Server) *http.Client { function getHost (line 257) | func getHost(t *testing.T, server *httptest.Server) string { FILE: internal/file/hasher.go function ValidateByHash (line 15) | func ValidateByHash(fs afero.Fs, path, hashStr string) (bool, string, er... function HashFile (line 39) | func HashFile(fs afero.Fs, path string, hasher hash.Hash) (string, error) { function HashReader (line 49) | func HashReader(reader io.Reader, hasher hash.Hash) (string, error) { FILE: internal/file/hasher_test.go function TestValidateByHash (line 11) | func TestValidateByHash(t *testing.T) { FILE: internal/file/tar_xz_decompressor.go type tarXzDecompressor (line 23) | type tarXzDecompressor struct method Decompress (line 39) | func (d *tarXzDecompressor) Decompress(dst, src string, dir bool, umas... function untar (line 67) | func untar(fs afero.Fs, input io.Reader, dst, src string, dir bool, umas... function containsDotDot (line 208) | func containsDotDot(v string) bool { function isSlashRune (line 220) | func isSlashRune(r rune) bool { return r == '/' || r == '\\' } FILE: internal/file/tar_xz_decompressor_test.go function TestTarXzDecompressor_Decompress (line 15) | func TestTarXzDecompressor_Decompress(t *testing.T) { function TestTarXzDecompressor_DecompressWithNestedDirs (line 39) | func TestTarXzDecompressor_DecompressWithNestedDirs(t *testing.T) { function TestTarXzDecompressor_FileSizeLimit (line 65) | func TestTarXzDecompressor_FileSizeLimit(t *testing.T) { function TestTarXzDecompressor_FilesLimit (line 85) | func TestTarXzDecompressor_FilesLimit(t *testing.T) { function TestTarXzDecompressor_DecompressSingleFile (line 105) | func TestTarXzDecompressor_DecompressSingleFile(t *testing.T) { function TestTarXzDecompressor_EmptyArchive (line 126) | func TestTarXzDecompressor_EmptyArchive(t *testing.T) { function TestTarXzDecompressor_PathTraversal (line 142) | func TestTarXzDecompressor_PathTraversal(t *testing.T) { function createTarXzFromFiles (line 160) | func createTarXzFromFiles(t *testing.T, fs afero.Fs, files map[string]st... FILE: internal/file/xz_decompressor.go type xzDecompressor (line 19) | type xzDecompressor struct method Decompress (line 28) | func (d *xzDecompressor) Decompress(dst, src string, dir bool, umask o... function copyReader (line 57) | func copyReader(fs afero.Fs, dst string, src io.Reader, fmode, umask os.... function mode (line 80) | func mode(mode, umask os.FileMode) os.FileMode { FILE: internal/file/xz_decompressor_test.go function TestXzDecompressor_Decompress (line 14) | func TestXzDecompressor_Decompress(t *testing.T) { function TestXzDecompressor_FileSizeLimit (line 33) | func TestXzDecompressor_FileSizeLimit(t *testing.T) { function TestCopyReader (line 55) | func TestCopyReader(t *testing.T) { function createXZFromString (line 83) | func createXZFromString(t *testing.T, fs afero.Fs, content string) (stri... FILE: internal/format/format.go constant UnknownFormat (line 8) | UnknownFormat Format = "unknown" constant JSONFormat (line 9) | JSONFormat Format = "json" constant TableFormat (line 10) | TableFormat Format = "table" constant CycloneDXFormat (line 11) | CycloneDXFormat Format = "cyclonedx" constant CycloneDXJSON (line 12) | CycloneDXJSON Format = "cyclonedx-json" constant CycloneDXXML (line 13) | CycloneDXXML Format = "cyclonedx-xml" constant SarifFormat (line 14) | SarifFormat Format = "sarif" constant TemplateFormat (line 15) | TemplateFormat Format = "template" constant EmbeddedVEXJSON (line 18) | EmbeddedVEXJSON Format = "embedded-cyclonedx-vex-json" constant EmbeddedVEXXML (line 19) | EmbeddedVEXXML Format = "embedded-cyclonedx-vex-xml" type Format (line 23) | type Format method String (line 25) | func (f Format) String() string { function Parse (line 30) | func Parse(userInput string) Format { FILE: internal/format/format_test.go function TestParse (line 9) | func TestParse(t *testing.T) { FILE: internal/format/presenter.go type PresentationConfig (line 15) | type PresentationConfig struct function GetPresenter (line 22) | func GetPresenter(format Format, c PresentationConfig, pb models.Present... FILE: internal/format/writer.go type ScanResultWriter (line 19) | type ScanResultWriter interface function MakeScanResultWriter (line 32) | func MakeScanResultWriter(outputs []string, defaultFile string, cfg Pres... function MakeScanResultWriterForFormat (line 47) | func MakeScanResultWriterForFormat(f string, path string, cfg Presentati... function parseOutputFlags (line 63) | func parseOutputFlags(outputs []string, defaultFile string, cfg Presenta... type scanResultWriterDescription (line 99) | type scanResultWriterDescription struct function newWriterDescription (line 105) | func newWriterDescription(f Format, p string, cfg PresentationConfig) sc... type scanResultMultiWriter (line 120) | type scanResultMultiWriter struct method Write (line 169) | func (m *scanResultMultiWriter) Write(s models.PresenterConfig) (errs ... function newMultiWriter (line 125) | func newMultiWriter(options ...scanResultWriterDescription) (_ *scanResu... type scanResultStreamWriter (line 180) | type scanResultStreamWriter struct method Write (line 187) | func (w *scanResultStreamWriter) Write(s models.PresenterConfig) error { method Close (line 196) | func (w *scanResultStreamWriter) Close() error { type scanResultPublisher (line 204) | type scanResultPublisher struct method Write (line 210) | func (w *scanResultPublisher) Write(s models.PresenterConfig) error { FILE: internal/format/writer_test.go function Test_MakeScanResultWriter (line 12) | func Test_MakeScanResultWriter(t *testing.T) { function Test_newSBOMMultiWriter (line 39) | func Test_newSBOMMultiWriter(t *testing.T) { function Test_newSBOMWriterDescription (line 190) | func Test_newSBOMWriterDescription(t *testing.T) { FILE: internal/input.go function IsStdinPipeOrRedirect (line 9) | func IsStdinPipeOrRedirect() (bool, error) { FILE: internal/log/errors.go function CloseAndLogError (line 5) | func CloseAndLogError(closer io.Closer, location string) { FILE: internal/log/log.go function Set (line 16) | func Set(l logger.Logger) { function Get (line 28) | func Get() logger.Logger { function Errorf (line 33) | func Errorf(format string, args ...interface{}) { function Error (line 38) | func Error(args ...interface{}) { function Warnf (line 43) | func Warnf(format string, args ...interface{}) { function Warn (line 48) | func Warn(args ...interface{}) { function Infof (line 53) | func Infof(format string, args ...interface{}) { function Info (line 58) | func Info(args ...interface{}) { function Debugf (line 63) | func Debugf(format string, args ...interface{}) { function Debug (line 68) | func Debug(args ...interface{}) { function Tracef (line 73) | func Tracef(format string, args ...interface{}) { function Trace (line 78) | func Trace(args ...interface{}) { function WithFields (line 83) | func WithFields(fields ...interface{}) logger.MessageLogger { function Nested (line 88) | func Nested(fields ...interface{}) logger.Logger { FILE: internal/redact/redact.go function Set (line 7) | func Set(s redact.Store) { function Get (line 16) | func Get() redact.Store { function Add (line 20) | func Add(vs ...string) { function Apply (line 29) | func Apply(value string) string { FILE: internal/regex_helpers.go function MatchNamedCaptureGroups (line 7) | func MatchNamedCaptureGroups(regEx *regexp.Regexp, content string) map[s... function isEmptyMap (line 35) | func isEmptyMap(m map[string]string) bool { FILE: internal/regex_helpers_test.go function TestMatchCaptureGroups (line 10) | func TestMatchCaptureGroups(t *testing.T) { FILE: internal/schemaver/schema_ver.go type SchemaVer (line 10) | type SchemaVer struct method Valid (line 46) | func (s SchemaVer) Valid() bool { method MarshalJSON (line 50) | func (s SchemaVer) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 54) | func (s *SchemaVer) UnmarshalJSON(data []byte) error { method String (line 68) | func (s SchemaVer) String() string { method LessThan (line 72) | func (s SchemaVer) LessThan(other SchemaVer) bool { method LessThanOrEqualTo (line 84) | func (s SchemaVer) LessThanOrEqualTo(other SchemaVer) bool { method Equal (line 88) | func (s SchemaVer) Equal(other SchemaVer) bool { method GreaterThan (line 92) | func (s SchemaVer) GreaterThan(other SchemaVer) bool { method GreaterOrEqualTo (line 104) | func (s SchemaVer) GreaterOrEqualTo(other SchemaVer) bool { function New (line 16) | func New(model, revision, addition int) SchemaVer { function Parse (line 24) | func Parse(s string) (SchemaVer, error) { FILE: internal/schemaver/schema_ver_test.go function TestSchemaVer_LessThan (line 11) | func TestSchemaVer_LessThan(t *testing.T) { function TestSchemaVer_GreaterOrEqualTo (line 69) | func TestSchemaVer_GreaterOrEqualTo(t *testing.T) { function TestSchemaVer_LessThanOrEqualTo (line 127) | func TestSchemaVer_LessThanOrEqualTo(t *testing.T) { function TestSchemaVer_Equal (line 173) | func TestSchemaVer_Equal(t *testing.T) { function TestSchemaVer_GreaterThan (line 219) | func TestSchemaVer_GreaterThan(t *testing.T) { function TestParse (line 265) | func TestParse(t *testing.T) { function TestSchemaVer_Valid (line 372) | func TestSchemaVer_Valid(t *testing.T) { function TestSchemaVer_String (line 450) | func TestSchemaVer_String(t *testing.T) { function TestSchemaVer_MarshalJSON (line 485) | func TestSchemaVer_MarshalJSON(t *testing.T) { function TestSchemaVer_UnmarshalJSON (line 517) | func TestSchemaVer_UnmarshalJSON(t *testing.T) { function TestSchemaVer_JSONRoundTrip (line 576) | func TestSchemaVer_JSONRoundTrip(t *testing.T) { FILE: internal/stringutil/color.go constant DefaultColor (line 6) | DefaultColor Color = iota + 30 constant Red (line 7) | Red constant Green (line 8) | Green constant Yellow (line 9) | Yellow constant Blue (line 10) | Blue constant Magenta (line 11) | Magenta constant Cyan (line 12) | Cyan constant White (line 13) | White type Color (line 16) | type Color method Format (line 19) | func (c Color) Format(s string) string { FILE: internal/stringutil/parse.go function MatchCaptureGroups (line 6) | func MatchCaptureGroups(regEx *regexp.Regexp, str string) map[string]str... FILE: internal/stringutil/string_helpers.go function HasAnyOfSuffixes (line 9) | func HasAnyOfSuffixes(input string, suffixes ...string) bool { function HasAnyOfPrefixes (line 20) | func HasAnyOfPrefixes(input string, prefixes ...string) bool { function SplitCommaSeparatedString (line 31) | func SplitCommaSeparatedString(input string) []string { function SplitOnFirstString (line 42) | func SplitOnFirstString(s string, separators ...string) (before, after s... function SplitOnAny (line 60) | func SplitOnAny(s string, separators ...string) []string { FILE: internal/stringutil/string_helpers_test.go function TestHasAnyOfSuffixes (line 9) | func TestHasAnyOfSuffixes(t *testing.T) { function TestHasAnyOfPrefixes (line 66) | func TestHasAnyOfPrefixes(t *testing.T) { function TestSplitCommaSeparatedString (line 124) | func TestSplitCommaSeparatedString(t *testing.T) { function TestSplitOnFirstString (line 158) | func TestSplitOnFirstString(t *testing.T) { function TestSplitOnAny (line 324) | func TestSplitOnAny(t *testing.T) { FILE: internal/stringutil/stringset.go type StringSet (line 3) | type StringSet method Add (line 17) | func (s StringSet) Add(i string) { method Remove (line 21) | func (s StringSet) Remove(i string) { method Contains (line 25) | func (s StringSet) Contains(i string) bool { method ToSlice (line 30) | func (s StringSet) ToSlice() []string { function NewStringSet (line 5) | func NewStringSet() StringSet { function NewStringSetFromSlice (line 9) | func NewStringSetFromSlice(start []string) StringSet { FILE: internal/stringutil/tprint.go function Tprintf (line 9) | func Tprintf(tmpl string, data map[string]interface{}) string { FILE: internal/testutils/golden_file.go constant TestDataDir (line 13) | TestDataDir = "testdata" constant GoldenFileDirName (line 14) | GoldenFileDirName = "snapshot" constant GoldenFileExt (line 15) | GoldenFileExt = ".golden" constant GoldenFileDirPath (line 16) | GoldenFileDirPath = TestDataDir + string(filepath.Separator) + GoldenFil... function dangerText (line 20) | func dangerText(s string) string { function GetGoldenFilePath (line 24) | func GetGoldenFilePath(t *testing.T) string { function UpdateGoldenFileContents (line 32) | func UpdateGoldenFileContents(t *testing.T, contents []byte) { function GetGoldenFileContents (line 45) | func GetGoldenFileContents(t *testing.T) []byte { function fileOrDirExists (line 65) | func fileOrDirExists(t *testing.T, filename string) bool { FILE: schema/grype/db/sql/schema-6.1.1.sql type `affected_cpe_handles` (line 5) | CREATE TABLE `affected_cpe_handles` (`id` integer PRIMARY KEY AUTOINCREM... type `affected_package_handles` (line 7) | CREATE TABLE `affected_package_handles` (`id` integer PRIMARY KEY AUTOIN... type `blobs` (line 9) | CREATE TABLE `blobs` (`id` integer PRIMARY KEY AUTOINCREMENT,`value` tex... type `cpes` (line 11) | CREATE TABLE `cpes` (`id` integer PRIMARY KEY AUTOINCREMENT,`part` text ... type `db_metadata` (line 13) | CREATE TABLE `db_metadata` (`build_timestamp` datetime NOT NULL,`model` ... type `epss_handles` (line 15) | CREATE TABLE `epss_handles` (`id` integer PRIMARY KEY AUTOINCREMENT,`cve... type `epss_metadata` (line 17) | CREATE TABLE `epss_metadata` (`date` datetime NOT NULL) type `known_exploited_vulnerability_handles` (line 19) | CREATE TABLE `known_exploited_vulnerability_handles` (`id` integer PRIMA... type `operating_system_specifier_overrides` (line 21) | CREATE TABLE `operating_system_specifier_overrides` (`alias` text,`versi... type `operating_systems` (line 23) | CREATE TABLE `operating_systems` (`id` integer PRIMARY KEY AUTOINCREMENT... type `package_cpes` (line 25) | CREATE TABLE `package_cpes` (`cpe_id` integer,`package_id` integer,PRIMA... type `package_specifier_overrides` (line 27) | CREATE TABLE `package_specifier_overrides` (`ecosystem` text,`replacemen... type `packages` (line 29) | CREATE TABLE `packages` (`id` integer PRIMARY KEY AUTOINCREMENT,`ecosyst... type `providers` (line 31) | CREATE TABLE `providers` (`id` text,`version` text,`processor` text,`dat... type `unaffected_cpe_handles` (line 33) | CREATE TABLE `unaffected_cpe_handles` (`id` integer PRIMARY KEY AUTOINCR... type `unaffected_package_handles` (line 35) | CREATE TABLE `unaffected_package_handles` (`id` integer PRIMARY KEY AUTO... type `vulnerability_aliases` (line 37) | CREATE TABLE `vulnerability_aliases` (`name` text,`alias` text NOT NULL,... type `vulnerability_handles` (line 39) | CREATE TABLE `vulnerability_handles` (`id` integer PRIMARY KEY AUTOINCRE... type `epss_cve_idx` (line 42) | CREATE INDEX `epss_cve_idx` ON `epss_handles`(`cve` COLLATE NOCASE) type `idx_affected_cpe_handles_cpe_id` (line 44) | CREATE INDEX `idx_affected_cpe_handles_cpe_id` ON `affected_cpe_handles`... type `idx_affected_package_handles_operating_system_id` (line 46) | CREATE INDEX `idx_affected_package_handles_operating_system_id` ON `affe... type `idx_affected_package_handles_package_id` (line 48) | CREATE INDEX `idx_affected_package_handles_package_id` ON `affected_pack... type `idx_affected_package_handles_vulnerability_id` (line 50) | CREATE INDEX `idx_affected_package_handles_vulnerability_id` ON `affecte... type `idx_cpe_product` (line 52) | CREATE INDEX `idx_cpe_product` ON `cpes`(`product` COLLATE NOCASE) type `idx_cpe_vendor` (line 54) | CREATE INDEX `idx_cpe_vendor` ON `cpes`(`vendor` COLLATE NOCASE) type `idx_operating_systems_major_version` (line 56) | CREATE INDEX `idx_operating_systems_major_version` ON `operating_systems... type `idx_operating_systems_minor_version` (line 58) | CREATE INDEX `idx_operating_systems_minor_version` ON `operating_systems... type `idx_package_name` (line 60) | CREATE INDEX `idx_package_name` ON `packages`(`name` COLLATE NOCASE) type `idx_unaffected_cpe_handles_cpe_id` (line 62) | CREATE INDEX `idx_unaffected_cpe_handles_cpe_id` ON `unaffected_cpe_hand... type `idx_unaffected_package_handles_operating_system_id` (line 64) | CREATE INDEX `idx_unaffected_package_handles_operating_system_id` ON `un... type `idx_unaffected_package_handles_package_id` (line 66) | CREATE INDEX `idx_unaffected_package_handles_package_id` ON `unaffected_... type `idx_unaffected_package_handles_vulnerability_id` (line 68) | CREATE INDEX `idx_unaffected_package_handles_vulnerability_id` ON `unaff... type `idx_vuln_provider_id` (line 70) | CREATE INDEX `idx_vuln_provider_id` ON `vulnerability_handles`(`name` CO... type `idx_vulnerability_handles_modified_date` (line 72) | CREATE INDEX `idx_vulnerability_handles_modified_date` ON `vulnerability... type `idx_vulnerability_handles_provider_id` (line 74) | CREATE INDEX `idx_vulnerability_handles_provider_id` ON `vulnerability_h... type `idx_vulnerability_handles_published_date` (line 76) | CREATE INDEX `idx_vulnerability_handles_published_date` ON `vulnerabilit... type `idx_vulnerability_handles_withdrawn_date` (line 78) | CREATE INDEX `idx_vulnerability_handles_withdrawn_date` ON `vulnerabilit... type `kev_cve_idx` (line 80) | CREATE INDEX `kev_cve_idx` ON `known_exploited_vulnerability_handles`(`c... type `os_alias_idx` (line 82) | CREATE INDEX `os_alias_idx` ON `operating_system_specifier_overrides`(`a... type `pkg_ecosystem_idx` (line 84) | CREATE INDEX `pkg_ecosystem_idx` ON `package_specifier_overrides`(`ecosy... type `idx_cpe` (line 86) | CREATE UNIQUE INDEX `idx_cpe` ON `cpes`(`part` COLLATE NOCASE,`vendor` C... type `idx_package` (line 88) | CREATE UNIQUE INDEX `idx_package` ON `packages`(`ecosystem` COLLATE NOCA... type `os_idx` (line 90) | CREATE UNIQUE INDEX `os_idx` ON `operating_systems`(`name`,`release_id`,... FILE: schema/grype/db/sql/schema-6.1.2.sql type `affected_cpe_handles` (line 5) | CREATE TABLE `affected_cpe_handles` (`id` integer PRIMARY KEY AUTOINCREM... type `affected_package_handles` (line 7) | CREATE TABLE `affected_package_handles` (`id` integer PRIMARY KEY AUTOIN... type `blobs` (line 9) | CREATE TABLE `blobs` (`id` integer PRIMARY KEY AUTOINCREMENT,`value` tex... type `cpes` (line 11) | CREATE TABLE `cpes` (`id` integer PRIMARY KEY AUTOINCREMENT,`part` text ... type `cwe_handles` (line 13) | CREATE TABLE `cwe_handles` (`id` integer PRIMARY KEY AUTOINCREMENT,`cve`... type `db_metadata` (line 15) | CREATE TABLE `db_metadata` (`build_timestamp` datetime NOT NULL,`model` ... type `epss_handles` (line 17) | CREATE TABLE `epss_handles` (`id` integer PRIMARY KEY AUTOINCREMENT,`cve... type `epss_metadata` (line 19) | CREATE TABLE `epss_metadata` (`date` datetime NOT NULL) type `known_exploited_vulnerability_handles` (line 21) | CREATE TABLE `known_exploited_vulnerability_handles` (`id` integer PRIMA... type `operating_system_specifier_overrides` (line 23) | CREATE TABLE `operating_system_specifier_overrides` (`alias` text,`versi... type `operating_systems` (line 25) | CREATE TABLE `operating_systems` (`id` integer PRIMARY KEY AUTOINCREMENT... type `package_cpes` (line 27) | CREATE TABLE `package_cpes` (`cpe_id` integer,`package_id` integer,PRIMA... type `package_specifier_overrides` (line 29) | CREATE TABLE `package_specifier_overrides` (`ecosystem` text,`replacemen... type `packages` (line 31) | CREATE TABLE `packages` (`id` integer PRIMARY KEY AUTOINCREMENT,`ecosyst... type `providers` (line 33) | CREATE TABLE `providers` (`id` text,`version` text,`processor` text,`dat... type `unaffected_cpe_handles` (line 35) | CREATE TABLE `unaffected_cpe_handles` (`id` integer PRIMARY KEY AUTOINCR... type `unaffected_package_handles` (line 37) | CREATE TABLE `unaffected_package_handles` (`id` integer PRIMARY KEY AUTO... type `vulnerability_aliases` (line 39) | CREATE TABLE `vulnerability_aliases` (`name` text,`alias` text NOT NULL,... type `vulnerability_handles` (line 41) | CREATE TABLE `vulnerability_handles` (`id` integer PRIMARY KEY AUTOINCRE... type `cwes_cve_idx` (line 44) | CREATE INDEX `cwes_cve_idx` ON `cwe_handles`(`cve` COLLATE NOCASE) type `epss_cve_idx` (line 46) | CREATE INDEX `epss_cve_idx` ON `epss_handles`(`cve` COLLATE NOCASE) type `idx_affected_cpe_handles_cpe_id` (line 48) | CREATE INDEX `idx_affected_cpe_handles_cpe_id` ON `affected_cpe_handles`... type `idx_affected_package_handles_operating_system_id` (line 50) | CREATE INDEX `idx_affected_package_handles_operating_system_id` ON `affe... type `idx_affected_package_handles_package_id` (line 52) | CREATE INDEX `idx_affected_package_handles_package_id` ON `affected_pack... type `idx_affected_package_handles_vulnerability_id` (line 54) | CREATE INDEX `idx_affected_package_handles_vulnerability_id` ON `affecte... type `idx_cpe_product` (line 56) | CREATE INDEX `idx_cpe_product` ON `cpes`(`product` COLLATE NOCASE) type `idx_cpe_vendor` (line 58) | CREATE INDEX `idx_cpe_vendor` ON `cpes`(`vendor` COLLATE NOCASE) type `idx_operating_systems_major_version` (line 60) | CREATE INDEX `idx_operating_systems_major_version` ON `operating_systems... type `idx_operating_systems_minor_version` (line 62) | CREATE INDEX `idx_operating_systems_minor_version` ON `operating_systems... type `idx_package_name` (line 64) | CREATE INDEX `idx_package_name` ON `packages`(`name` COLLATE NOCASE) type `idx_unaffected_cpe_handles_cpe_id` (line 66) | CREATE INDEX `idx_unaffected_cpe_handles_cpe_id` ON `unaffected_cpe_hand... type `idx_unaffected_package_handles_operating_system_id` (line 68) | CREATE INDEX `idx_unaffected_package_handles_operating_system_id` ON `un... type `idx_unaffected_package_handles_package_id` (line 70) | CREATE INDEX `idx_unaffected_package_handles_package_id` ON `unaffected_... type `idx_unaffected_package_handles_vulnerability_id` (line 72) | CREATE INDEX `idx_unaffected_package_handles_vulnerability_id` ON `unaff... type `idx_vuln_provider_id` (line 74) | CREATE INDEX `idx_vuln_provider_id` ON `vulnerability_handles`(`name` CO... type `idx_vulnerability_handles_modified_date` (line 76) | CREATE INDEX `idx_vulnerability_handles_modified_date` ON `vulnerability... type `idx_vulnerability_handles_provider_id` (line 78) | CREATE INDEX `idx_vulnerability_handles_provider_id` ON `vulnerability_h... type `idx_vulnerability_handles_published_date` (line 80) | CREATE INDEX `idx_vulnerability_handles_published_date` ON `vulnerabilit... type `idx_vulnerability_handles_withdrawn_date` (line 82) | CREATE INDEX `idx_vulnerability_handles_withdrawn_date` ON `vulnerabilit... type `kev_cve_idx` (line 84) | CREATE INDEX `kev_cve_idx` ON `known_exploited_vulnerability_handles`(`c... type `os_alias_idx` (line 86) | CREATE INDEX `os_alias_idx` ON `operating_system_specifier_overrides`(`a... type `pkg_ecosystem_idx` (line 88) | CREATE INDEX `pkg_ecosystem_idx` ON `package_specifier_overrides`(`ecosy... type `idx_cpe` (line 90) | CREATE UNIQUE INDEX `idx_cpe` ON `cpes`(`part` COLLATE NOCASE,`vendor` C... type `idx_package` (line 92) | CREATE UNIQUE INDEX `idx_package` ON `packages`(`ecosystem` COLLATE NOCA... type `os_idx` (line 94) | CREATE UNIQUE INDEX `os_idx` ON `operating_systems`(`name`,`release_id`,... FILE: schema/grype/db/sql/schema-6.1.3.sql type `affected_cpe_handles` (line 5) | CREATE TABLE `affected_cpe_handles` (`id` integer PRIMARY KEY AUTOINCREM... type `affected_package_handles` (line 7) | CREATE TABLE `affected_package_handles` (`id` integer PRIMARY KEY AUTOIN... type `blobs` (line 9) | CREATE TABLE `blobs` (`id` integer PRIMARY KEY AUTOINCREMENT,`value` tex... type `cpes` (line 11) | CREATE TABLE `cpes` (`id` integer PRIMARY KEY AUTOINCREMENT,`part` text ... type `cwe_handles` (line 13) | CREATE TABLE `cwe_handles` (`id` integer PRIMARY KEY AUTOINCREMENT,`cve`... type `db_metadata` (line 15) | CREATE TABLE `db_metadata` (`build_timestamp` datetime NOT NULL,`model` ... type `epss_handles` (line 17) | CREATE TABLE `epss_handles` (`id` integer PRIMARY KEY AUTOINCREMENT,`cve... type `epss_metadata` (line 19) | CREATE TABLE `epss_metadata` (`date` datetime NOT NULL) type `known_exploited_vulnerability_handles` (line 21) | CREATE TABLE `known_exploited_vulnerability_handles` (`id` integer PRIMA... type `operating_system_specifier_overrides` (line 23) | CREATE TABLE `operating_system_specifier_overrides` (`alias` text,`versi... type `operating_systems` (line 25) | CREATE TABLE `operating_systems` (`id` integer PRIMARY KEY AUTOINCREMENT... type `package_cpes` (line 27) | CREATE TABLE `package_cpes` (`cpe_id` integer,`package_id` integer,PRIMA... type `package_specifier_overrides` (line 29) | CREATE TABLE `package_specifier_overrides` (`ecosystem` text,`replacemen... type `packages` (line 31) | CREATE TABLE `packages` (`id` integer PRIMARY KEY AUTOINCREMENT,`ecosyst... type `providers` (line 33) | CREATE TABLE `providers` (`id` text,`version` text,`processor` text,`dat... type `unaffected_cpe_handles` (line 35) | CREATE TABLE `unaffected_cpe_handles` (`id` integer PRIMARY KEY AUTOINCR... type `unaffected_package_handles` (line 37) | CREATE TABLE `unaffected_package_handles` (`id` integer PRIMARY KEY AUTO... type `vulnerability_aliases` (line 39) | CREATE TABLE `vulnerability_aliases` (`name` text,`alias` text NOT NULL,... type `vulnerability_handles` (line 41) | CREATE TABLE `vulnerability_handles` (`id` integer PRIMARY KEY AUTOINCRE... type `cwes_cve_idx` (line 44) | CREATE INDEX `cwes_cve_idx` ON `cwe_handles`(`cve` COLLATE NOCASE) type `epss_cve_idx` (line 46) | CREATE INDEX `epss_cve_idx` ON `epss_handles`(`cve` COLLATE NOCASE) type `idx_affected_cpe_handles_cpe_id` (line 48) | CREATE INDEX `idx_affected_cpe_handles_cpe_id` ON `affected_cpe_handles`... type `idx_affected_package_handles_operating_system_id` (line 50) | CREATE INDEX `idx_affected_package_handles_operating_system_id` ON `affe... type `idx_affected_package_handles_package_id` (line 52) | CREATE INDEX `idx_affected_package_handles_package_id` ON `affected_pack... type `idx_affected_package_handles_vulnerability_id` (line 54) | CREATE INDEX `idx_affected_package_handles_vulnerability_id` ON `affecte... type `idx_cpe_product` (line 56) | CREATE INDEX `idx_cpe_product` ON `cpes`(`product` COLLATE NOCASE) type `idx_cpe_vendor` (line 58) | CREATE INDEX `idx_cpe_vendor` ON `cpes`(`vendor` COLLATE NOCASE) type `idx_operating_systems_major_version` (line 60) | CREATE INDEX `idx_operating_systems_major_version` ON `operating_systems... type `idx_operating_systems_minor_version` (line 62) | CREATE INDEX `idx_operating_systems_minor_version` ON `operating_systems... type `idx_package_name` (line 64) | CREATE INDEX `idx_package_name` ON `packages`(`name` COLLATE NOCASE) type `idx_unaffected_cpe_handles_cpe_id` (line 66) | CREATE INDEX `idx_unaffected_cpe_handles_cpe_id` ON `unaffected_cpe_hand... type `idx_unaffected_package_handles_operating_system_id` (line 68) | CREATE INDEX `idx_unaffected_package_handles_operating_system_id` ON `un... type `idx_unaffected_package_handles_package_id` (line 70) | CREATE INDEX `idx_unaffected_package_handles_package_id` ON `unaffected_... type `idx_unaffected_package_handles_vulnerability_id` (line 72) | CREATE INDEX `idx_unaffected_package_handles_vulnerability_id` ON `unaff... type `idx_vuln_provider_id` (line 74) | CREATE INDEX `idx_vuln_provider_id` ON `vulnerability_handles`(`name` CO... type `idx_vulnerability_handles_modified_date` (line 76) | CREATE INDEX `idx_vulnerability_handles_modified_date` ON `vulnerability... type `idx_vulnerability_handles_provider_id` (line 78) | CREATE INDEX `idx_vulnerability_handles_provider_id` ON `vulnerability_h... type `idx_vulnerability_handles_published_date` (line 80) | CREATE INDEX `idx_vulnerability_handles_published_date` ON `vulnerabilit... type `idx_vulnerability_handles_withdrawn_date` (line 82) | CREATE INDEX `idx_vulnerability_handles_withdrawn_date` ON `vulnerabilit... type `kev_cve_idx` (line 84) | CREATE INDEX `kev_cve_idx` ON `known_exploited_vulnerability_handles`(`c... type `os_alias_idx` (line 86) | CREATE INDEX `os_alias_idx` ON `operating_system_specifier_overrides`(`a... type `pkg_ecosystem_idx` (line 88) | CREATE INDEX `pkg_ecosystem_idx` ON `package_specifier_overrides`(`ecosy... type `idx_cpe` (line 90) | CREATE UNIQUE INDEX `idx_cpe` ON `cpes`(`part` COLLATE NOCASE,`vendor` C... type `idx_package` (line 92) | CREATE UNIQUE INDEX `idx_package` ON `packages`(`ecosystem` COLLATE NOCA... type `os_idx` (line 94) | CREATE UNIQUE INDEX `os_idx` ON `operating_systems`(`name`,`release_id`,... FILE: schema/grype/db/sql/schema-6.1.4.sql type `affected_cpe_handles` (line 5) | CREATE TABLE `affected_cpe_handles` (`id` integer PRIMARY KEY AUTOINCREM... type `affected_package_handles` (line 7) | CREATE TABLE `affected_package_handles` (`id` integer PRIMARY KEY AUTOIN... type `blobs` (line 9) | CREATE TABLE `blobs` (`id` integer PRIMARY KEY AUTOINCREMENT,`value` tex... type `cpes` (line 11) | CREATE TABLE `cpes` (`id` integer PRIMARY KEY AUTOINCREMENT,`part` text ... type `cwe_handles` (line 13) | CREATE TABLE `cwe_handles` (`id` integer PRIMARY KEY AUTOINCREMENT,`cve`... type `db_metadata` (line 15) | CREATE TABLE `db_metadata` (`build_timestamp` datetime NOT NULL,`model` ... type `epss_handles` (line 17) | CREATE TABLE `epss_handles` (`id` integer PRIMARY KEY AUTOINCREMENT,`cve... type `epss_metadata` (line 19) | CREATE TABLE `epss_metadata` (`date` datetime NOT NULL) type `known_exploited_vulnerability_handles` (line 21) | CREATE TABLE `known_exploited_vulnerability_handles` (`id` integer PRIMA... type `operating_system_specifier_overrides` (line 23) | CREATE TABLE `operating_system_specifier_overrides` (`alias` text,`versi... type `operating_systems` (line 25) | CREATE TABLE `operating_systems` (`id` integer PRIMARY KEY AUTOINCREMENT... type `package_cpes` (line 27) | CREATE TABLE `package_cpes` (`cpe_id` integer,`package_id` integer,PRIMA... type `package_specifier_overrides` (line 29) | CREATE TABLE `package_specifier_overrides` (`ecosystem` text,`replacemen... type `packages` (line 31) | CREATE TABLE `packages` (`id` integer PRIMARY KEY AUTOINCREMENT,`ecosyst... type `providers` (line 33) | CREATE TABLE `providers` (`id` text,`version` text,`processor` text,`dat... type `unaffected_cpe_handles` (line 35) | CREATE TABLE `unaffected_cpe_handles` (`id` integer PRIMARY KEY AUTOINCR... type `unaffected_package_handles` (line 37) | CREATE TABLE `unaffected_package_handles` (`id` integer PRIMARY KEY AUTO... type `vulnerability_aliases` (line 39) | CREATE TABLE `vulnerability_aliases` (`name` text,`alias` text NOT NULL,... type `vulnerability_handles` (line 41) | CREATE TABLE `vulnerability_handles` (`id` integer PRIMARY KEY AUTOINCRE... type `cwes_cve_idx` (line 44) | CREATE INDEX `cwes_cve_idx` ON `cwe_handles`(`cve` COLLATE NOCASE) type `epss_cve_idx` (line 46) | CREATE INDEX `epss_cve_idx` ON `epss_handles`(`cve` COLLATE NOCASE) type `idx_affected_cpe_handles_cpe_id` (line 48) | CREATE INDEX `idx_affected_cpe_handles_cpe_id` ON `affected_cpe_handles`... type `idx_affected_package_handles_operating_system_id` (line 50) | CREATE INDEX `idx_affected_package_handles_operating_system_id` ON `affe... type `idx_affected_package_handles_package_id` (line 52) | CREATE INDEX `idx_affected_package_handles_package_id` ON `affected_pack... type `idx_affected_package_handles_vulnerability_id` (line 54) | CREATE INDEX `idx_affected_package_handles_vulnerability_id` ON `affecte... type `idx_cpe_product` (line 56) | CREATE INDEX `idx_cpe_product` ON `cpes`(`product` COLLATE NOCASE) type `idx_cpe_vendor` (line 58) | CREATE INDEX `idx_cpe_vendor` ON `cpes`(`vendor` COLLATE NOCASE) type `idx_operating_systems_eol_date` (line 60) | CREATE INDEX `idx_operating_systems_eol_date` ON `operating_systems`(`eo... type `idx_operating_systems_major_version` (line 62) | CREATE INDEX `idx_operating_systems_major_version` ON `operating_systems... type `idx_operating_systems_minor_version` (line 64) | CREATE INDEX `idx_operating_systems_minor_version` ON `operating_systems... type `idx_package_name` (line 66) | CREATE INDEX `idx_package_name` ON `packages`(`name` COLLATE NOCASE) type `idx_unaffected_cpe_handles_cpe_id` (line 68) | CREATE INDEX `idx_unaffected_cpe_handles_cpe_id` ON `unaffected_cpe_hand... type `idx_unaffected_package_handles_operating_system_id` (line 70) | CREATE INDEX `idx_unaffected_package_handles_operating_system_id` ON `un... type `idx_unaffected_package_handles_package_id` (line 72) | CREATE INDEX `idx_unaffected_package_handles_package_id` ON `unaffected_... type `idx_unaffected_package_handles_vulnerability_id` (line 74) | CREATE INDEX `idx_unaffected_package_handles_vulnerability_id` ON `unaff... type `idx_vuln_provider_id` (line 76) | CREATE INDEX `idx_vuln_provider_id` ON `vulnerability_handles`(`name` CO... type `idx_vulnerability_handles_modified_date` (line 78) | CREATE INDEX `idx_vulnerability_handles_modified_date` ON `vulnerability... type `idx_vulnerability_handles_provider_id` (line 80) | CREATE INDEX `idx_vulnerability_handles_provider_id` ON `vulnerability_h... type `idx_vulnerability_handles_published_date` (line 82) | CREATE INDEX `idx_vulnerability_handles_published_date` ON `vulnerabilit... type `idx_vulnerability_handles_withdrawn_date` (line 84) | CREATE INDEX `idx_vulnerability_handles_withdrawn_date` ON `vulnerabilit... type `kev_cve_idx` (line 86) | CREATE INDEX `kev_cve_idx` ON `known_exploited_vulnerability_handles`(`c... type `os_alias_idx` (line 88) | CREATE INDEX `os_alias_idx` ON `operating_system_specifier_overrides`(`a... type `pkg_ecosystem_idx` (line 90) | CREATE INDEX `pkg_ecosystem_idx` ON `package_specifier_overrides`(`ecosy... type `idx_cpe` (line 92) | CREATE UNIQUE INDEX `idx_cpe` ON `cpes`(`part` COLLATE NOCASE,`vendor` C... type `idx_package` (line 94) | CREATE UNIQUE INDEX `idx_package` ON `packages`(`ecosystem` COLLATE NOCA... type `os_idx` (line 96) | CREATE UNIQUE INDEX `os_idx` ON `operating_systems`(`name`,`release_id`,... FILE: schema/grype/db/sql/schema-latest.sql type `affected_cpe_handles` (line 5) | CREATE TABLE `affected_cpe_handles` (`id` integer PRIMARY KEY AUTOINCREM... type `affected_package_handles` (line 7) | CREATE TABLE `affected_package_handles` (`id` integer PRIMARY KEY AUTOIN... type `blobs` (line 9) | CREATE TABLE `blobs` (`id` integer PRIMARY KEY AUTOINCREMENT,`value` tex... type `cpes` (line 11) | CREATE TABLE `cpes` (`id` integer PRIMARY KEY AUTOINCREMENT,`part` text ... type `cwe_handles` (line 13) | CREATE TABLE `cwe_handles` (`id` integer PRIMARY KEY AUTOINCREMENT,`cve`... type `db_metadata` (line 15) | CREATE TABLE `db_metadata` (`build_timestamp` datetime NOT NULL,`model` ... type `epss_handles` (line 17) | CREATE TABLE `epss_handles` (`id` integer PRIMARY KEY AUTOINCREMENT,`cve... type `epss_metadata` (line 19) | CREATE TABLE `epss_metadata` (`date` datetime NOT NULL) type `known_exploited_vulnerability_handles` (line 21) | CREATE TABLE `known_exploited_vulnerability_handles` (`id` integer PRIMA... type `operating_system_specifier_overrides` (line 23) | CREATE TABLE `operating_system_specifier_overrides` (`alias` text,`versi... type `operating_systems` (line 25) | CREATE TABLE `operating_systems` (`id` integer PRIMARY KEY AUTOINCREMENT... type `package_cpes` (line 27) | CREATE TABLE `package_cpes` (`cpe_id` integer,`package_id` integer,PRIMA... type `package_specifier_overrides` (line 29) | CREATE TABLE `package_specifier_overrides` (`ecosystem` text,`replacemen... type `packages` (line 31) | CREATE TABLE `packages` (`id` integer PRIMARY KEY AUTOINCREMENT,`ecosyst... type `providers` (line 33) | CREATE TABLE `providers` (`id` text,`version` text,`processor` text,`dat... type `unaffected_cpe_handles` (line 35) | CREATE TABLE `unaffected_cpe_handles` (`id` integer PRIMARY KEY AUTOINCR... type `unaffected_package_handles` (line 37) | CREATE TABLE `unaffected_package_handles` (`id` integer PRIMARY KEY AUTO... type `vulnerability_aliases` (line 39) | CREATE TABLE `vulnerability_aliases` (`name` text,`alias` text NOT NULL,... type `vulnerability_handles` (line 41) | CREATE TABLE `vulnerability_handles` (`id` integer PRIMARY KEY AUTOINCRE... type `cwes_cve_idx` (line 44) | CREATE INDEX `cwes_cve_idx` ON `cwe_handles`(`cve` COLLATE NOCASE) type `epss_cve_idx` (line 46) | CREATE INDEX `epss_cve_idx` ON `epss_handles`(`cve` COLLATE NOCASE) type `idx_affected_cpe_handles_cpe_id` (line 48) | CREATE INDEX `idx_affected_cpe_handles_cpe_id` ON `affected_cpe_handles`... type `idx_affected_package_handles_operating_system_id` (line 50) | CREATE INDEX `idx_affected_package_handles_operating_system_id` ON `affe... type `idx_affected_package_handles_package_id` (line 52) | CREATE INDEX `idx_affected_package_handles_package_id` ON `affected_pack... type `idx_affected_package_handles_vulnerability_id` (line 54) | CREATE INDEX `idx_affected_package_handles_vulnerability_id` ON `affecte... type `idx_cpe_product` (line 56) | CREATE INDEX `idx_cpe_product` ON `cpes`(`product` COLLATE NOCASE) type `idx_cpe_vendor` (line 58) | CREATE INDEX `idx_cpe_vendor` ON `cpes`(`vendor` COLLATE NOCASE) type `idx_operating_systems_eol_date` (line 60) | CREATE INDEX `idx_operating_systems_eol_date` ON `operating_systems`(`eo... type `idx_operating_systems_major_version` (line 62) | CREATE INDEX `idx_operating_systems_major_version` ON `operating_systems... type `idx_operating_systems_minor_version` (line 64) | CREATE INDEX `idx_operating_systems_minor_version` ON `operating_systems... type `idx_package_name` (line 66) | CREATE INDEX `idx_package_name` ON `packages`(`name` COLLATE NOCASE) type `idx_unaffected_cpe_handles_cpe_id` (line 68) | CREATE INDEX `idx_unaffected_cpe_handles_cpe_id` ON `unaffected_cpe_hand... type `idx_unaffected_package_handles_operating_system_id` (line 70) | CREATE INDEX `idx_unaffected_package_handles_operating_system_id` ON `un... type `idx_unaffected_package_handles_package_id` (line 72) | CREATE INDEX `idx_unaffected_package_handles_package_id` ON `unaffected_... type `idx_unaffected_package_handles_vulnerability_id` (line 74) | CREATE INDEX `idx_unaffected_package_handles_vulnerability_id` ON `unaff... type `idx_vuln_provider_id` (line 76) | CREATE INDEX `idx_vuln_provider_id` ON `vulnerability_handles`(`name` CO... type `idx_vulnerability_handles_modified_date` (line 78) | CREATE INDEX `idx_vulnerability_handles_modified_date` ON `vulnerability... type `idx_vulnerability_handles_provider_id` (line 80) | CREATE INDEX `idx_vulnerability_handles_provider_id` ON `vulnerability_h... type `idx_vulnerability_handles_published_date` (line 82) | CREATE INDEX `idx_vulnerability_handles_published_date` ON `vulnerabilit... type `idx_vulnerability_handles_withdrawn_date` (line 84) | CREATE INDEX `idx_vulnerability_handles_withdrawn_date` ON `vulnerabilit... type `kev_cve_idx` (line 86) | CREATE INDEX `kev_cve_idx` ON `known_exploited_vulnerability_handles`(`c... type `os_alias_idx` (line 88) | CREATE INDEX `os_alias_idx` ON `operating_system_specifier_overrides`(`a... type `pkg_ecosystem_idx` (line 90) | CREATE INDEX `pkg_ecosystem_idx` ON `package_specifier_overrides`(`ecosy... type `idx_cpe` (line 92) | CREATE UNIQUE INDEX `idx_cpe` ON `cpes`(`part` COLLATE NOCASE,`vendor` C... type `idx_package` (line 94) | CREATE UNIQUE INDEX `idx_package` ON `packages`(`ecosystem` COLLATE NOCA... type `os_idx` (line 96) | CREATE UNIQUE INDEX `os_idx` ON `operating_systems`(`name`,`release_id`,... FILE: test/cli/cmd_test.go function TestCmd (line 12) | func TestCmd(t *testing.T) { function Test_descriptorNameAndVersionSet (line 144) | func Test_descriptorNameAndVersionSet(t *testing.T) { FILE: test/cli/config_test.go function Test_configLoading (line 14) | func Test_configLoading(t *testing.T) { function Test_dpkgUseCPEsForEOLEnvVar (line 172) | func Test_dpkgUseCPEsForEOLEnvVar(t *testing.T) { function Test_rpmUseCPEsForEOLEnvVar (line 233) | func Test_rpmUseCPEsForEOLEnvVar(t *testing.T) { FILE: test/cli/db_providers_test.go function TestDBProviders (line 8) | func TestDBProviders(t *testing.T) { FILE: test/cli/db_validations_test.go function TestDBValidations (line 22) | func TestDBValidations(t *testing.T) { function defaultValue (line 475) | func defaultValue[T comparable](value T, defaultValue T) T { function availablePort (line 483) | func availablePort() int { FILE: test/cli/registry_auth_test.go function TestRegistryAuth (line 12) | func TestRegistryAuth(t *testing.T) { function TestRegistryAuthRedactions (line 105) | func TestRegistryAuthRedactions(t *testing.T) { FILE: test/cli/sbom_input_test.go function TestSBOMInput_AsArgument (line 13) | func TestSBOMInput_AsArgument(t *testing.T) { function TestSBOMInput_FromStdin (line 60) | func TestSBOMInput_FromStdin(t *testing.T) { FILE: test/cli/subprocess_test.go function TestSubprocessStdin (line 13) | func TestSubprocessStdin(t *testing.T) { FILE: test/cli/testdata/image-java-subprocess/app.java class GrypeExecutionTest (line 3) | public class GrypeExecutionTest { method main (line 5) | public static void main(String[] args) { FILE: test/cli/trait_assertions_test.go type traitAssertion (line 11) | type traitAssertion function assertNoStderr (line 13) | func assertNoStderr(tb testing.TB, _, stderr string, _ int) { function assertInOutput (line 20) | func assertInOutput(data string) traitAssertion { function assertFailingReturnCode (line 30) | func assertFailingReturnCode(tb testing.TB, _, _ string, rc int) { function assertSucceedingReturnCode (line 37) | func assertSucceedingReturnCode(tb testing.TB, _, _ string, rc int) { function assertRowInStdOut (line 44) | func assertRowInStdOut(row []string) traitAssertion { function assertNotInOutput (line 67) | func assertNotInOutput(notWanted string) traitAssertion { function assertJsonReport (line 75) | func assertJsonReport(tb testing.TB, stdout, _ string, _ int) { function assertDbProvidersTableReport (line 84) | func assertDbProvidersTableReport(tb testing.TB, stdout, _ string, _ int) { FILE: test/cli/utils_test.go function getFixtureImage (line 20) | func getFixtureImage(tb testing.TB, fixtureImageName string) string { function getGrypeCommand (line 27) | func getGrypeCommand(tb testing.TB, args ...string) *exec.Cmd { function grypeCommandHasConfigArg (line 43) | func grypeCommandHasConfigArg(args ...string) bool { function getGrypeSnapshotLocation (line 52) | func getGrypeSnapshotLocation(t testing.TB, goOS string) string { function getGrypeBinaryLocationByOS (line 64) | func getGrypeBinaryLocationByOS(t testing.TB, goOS string) string { function buildBinary (line 85) | func buildBinary(t testing.TB, loc string) { function getDockerRunCommand (line 95) | func getDockerRunCommand(tb testing.TB, args ...string) *exec.Cmd { function runGrype (line 107) | func runGrype(tb testing.TB, env map[string]string, args ...string) (*ex... function runCommand (line 122) | func runCommand(cmd *exec.Cmd, env map[string]string) (string, string) { function envMapToSlice (line 136) | func envMapToSlice(env map[string]string) (envList []string) { function repoRoot (line 146) | func repoRoot(tb testing.TB) string { function attachFileToCommandStdin (line 159) | func attachFileToCommandStdin(tb testing.TB, file io.Reader, command *ex... function assertCommandExecutionSuccess (line 167) | func assertCommandExecutionSuccess(t testing.TB, cmd *exec.Cmd) { function testWithTimeout (line 178) | func testWithTimeout(t *testing.T, name string, timeout time.Duration, t... FILE: test/cli/version_cmd_test.go function TestVersionCmdPrintsToStdout (line 7) | func TestVersionCmdPrintsToStdout(t *testing.T) { FILE: test/integration/compare_sbom_input_vs_lib_test.go function getLatestURL (line 23) | func getLatestURL() string { function must (line 30) | func must(e sbom.FormatEncoder, err error) sbom.FormatEncoder { function TestCompareSBOMInputToLibResults (line 37) | func TestCompareSBOMInputToLibResults(t *testing.T) { FILE: test/integration/db_mock_test.go function newMockDbProvider (line 10) | func newMockDbProvider() vulnerability.Provider { FILE: test/integration/match_by_image_test.go function addAlpineMatches (line 39) | func addAlpineMatches(t *testing.T, theSource source.Source, catalog *sy... function addJavascriptMatches (line 102) | func addJavascriptMatches(t *testing.T, theSource source.Source, catalog... function addPythonMatches (line 139) | func addPythonMatches(t *testing.T, theSource source.Source, catalog *sy... function addDotnetMatches (line 179) | func addDotnetMatches(t *testing.T, theSource source.Source, catalog *sy... function addRubyMatches (line 233) | func addRubyMatches(t *testing.T, theSource source.Source, catalog *syft... function addGolangMatches (line 270) | func addGolangMatches(t *testing.T, theSource source.Source, catalog *sy... function addJavaMatches (line 331) | func addJavaMatches(t *testing.T, theSource source.Source, catalog *syft... function addDpkgMatches (line 376) | func addDpkgMatches(t *testing.T, theSource source.Source, catalog *syft... function addPortageMatches (line 417) | func addPortageMatches(t *testing.T, theSource source.Source, catalog *s... function addRhelMatches (line 457) | func addRhelMatches(t *testing.T, theSource source.Source, catalog *syft... function addSlesMatches (line 497) | func addSlesMatches(t *testing.T, theSource source.Source, catalog *syft... function addArchMatches (line 539) | func addArchMatches(t *testing.T, theSource source.Source, catalog *syft... function addHaskellMatches (line 579) | func addHaskellMatches(t *testing.T, theSource source.Source, catalog *s... function addHexMatches (line 616) | func addHexMatches(t *testing.T, theSource source.Source, catalog *syftP... function addJvmMatches (line 653) | func addJvmMatches(t *testing.T, theSource source.Source, catalog *syftP... function addRustMatches (line 700) | func addRustMatches(t *testing.T, theSource source.Source, catalog *syft... function TestMatchByImage (line 740) | func TestMatchByImage(t *testing.T) { function testIgnoredMatches (line 965) | func testIgnoredMatches() []match.IgnoredMatch { function vexMatches (line 1024) | func vexMatches(t *testing.T, ignoredMatches []match.IgnoredMatch, vexSt... function assertMatches (line 1058) | func assertMatches(t *testing.T, expected, actual []match.Match) { function byNamespace (line 1074) | func byNamespace(ns string) vulnerability.Criteria { FILE: test/integration/match_by_sbom_document_test.go function TestMatchBySBOMDocument (line 19) | func TestMatchBySBOMDocument(t *testing.T) { FILE: test/integration/testdata/image-debian-match-coverage/golang/main.go function main (line 9) | func main() { FILE: test/integration/utils_test.go constant cacheDirRelativePath (line 24) | cacheDirRelativePath string = "./testdata/cache" function PullThroughImageCache (line 26) | func PullThroughImageCache(t testing.TB, imageName string) string { function saveImage (line 49) | func saveImage(t testing.TB, imageName string, destPath string) { function getSyftSBOM (line 74) | func getSyftSBOM(t testing.TB, image, from string, encoder sbom.FormatEn... function getMatchSet (line 98) | func getMatchSet(matches match.Matches) *strset.Set { function repoRoot (line 106) | func repoRoot(tb testing.TB) string { FILE: test/validate-grype-db-schema.py function report_schema_versions_found (line 12) | def report_schema_versions_found(title, schema_to_locations): function assert_single_schema_version (line 20) | def assert_single_schema_version(schema_to_locations): function find_db_schema_usages (line 34) | def find_db_schema_usages(filter_out_regexes=None, keep_regexes=None): function assert_schema_version_prefix (line 69) | def assert_schema_version_prefix(schema, locations): function validate_schema_consumers (line 75) | def validate_schema_consumers(): function validate_schema_definitions (line 82) | def validate_schema_definitions(): function main (line 91) | def main():