MCPcopy Create free account

hub / github.com/aquasecurity/trivy-db / functions

Functions727 in github.com/aquasecurity/trivy-db

↓ 68 callersFunctionMustTimeParse
(value string)
pkg/utils/time.go:9
↓ 62 callersMethodString
()
pkg/vulnsrc/osv/range.go:19
↓ 56 callersMethodName
()
pkg/vulnsrc/bucket/bucket.go:15
↓ 44 callersMethodGet
(GetParams)
pkg/db/db.go:61
↓ 41 callersMethodContains
(ver string)
pkg/vulnsrc/osv/range.go:18
↓ 33 callersFunctionTestUpdate
(t *testing.T, vulnsrc Updater, args TestUpdateArgs)
pkg/vulnsrctest/vulnsrctest.go:31
↓ 26 callersMethodBatchUpdate
(fn func(*bolt.Tx) error)
pkg/db/db.go:30
↓ 26 callersMethodPutVulnerabilityID
(tx *bolt.Tx, vulnerabilityID string)
pkg/db/db.go:40
↓ 25 callersMethodPutAdvisoryDetail
(tx *bolt.Tx, vulnerabilityID, pkgName string, nestedBktNames []string, advisory any)
pkg/db/db.go:47
↓ 24 callersMethodPutDataSource
(tx *bolt.Tx, bktName string, source types.DataSource)
pkg/db/db.go:50
↓ 24 callersFunctionWithPrefix
WithPrefix returns a new logger with the specified prefix
pkg/log/log.go:72
↓ 23 callersFunctionFileWalk
(root string, walkFn func(r io.Reader, path string) error)
pkg/utils/file.go:18
↓ 22 callersFunctionnewOS
newOS creates a bucket for OS ecosystems
pkg/vulnsrc/bucket/bucket.go:61
↓ 18 callersMethodPutVulnerabilityDetail
(tx *bolt.Tx, vulnerabilityID string, source types.SourceID, vulnerability types.VulnerabilityDetail)
pkg/db/db.go:33
↓ 17 callersFunctionClose
()
pkg/db/db.go:130
↓ 16 callersMethodGetAdvisories
(source string, pkgName string)
pkg/db/db.go:38
↓ 16 callersMethodParse
(dir string)
pkg/vulnsrc/redhat-csaf/parse.go:57
↓ 16 callersFunctionnewLang
newLang creates a bucket for language ecosystems
pkg/vulnsrc/bucket/bucket.go:69
↓ 14 callersFunctionErr
(err error)
pkg/log/log.go:44
↓ 14 callersMethodValues
Values returns all elements in the set as an unsorted slice
pkg/set/set.go:39
↓ 12 callersMethodBucket
(name []byte)
pkg/dbtest/assert.go:57
↓ 11 callersFunctionTestGet
(t *testing.T, vulnsrc db.Getter, args TestGetArgs)
pkg/vulnsrctest/vulnsrctest.go:66
↓ 10 callersMethodAppend
Append inserts elements into the set
pkg/set/set.go:26
↓ 10 callersFunctionNewSeverity
(severity string)
pkg/types/types.go:47
↓ 9 callersFunctionInfo
Package-level logging functions
pkg/log/log.go:24
↓ 9 callersFunctionInit
(dbDir string, opts ...Option)
pkg/db/db.go:84
↓ 8 callersFunctionInitDB
(t *testing.T, fixtureFiles []string)
pkg/dbtest/init.go:12
↓ 8 callersFunctionNew
(dir string, sourceID types.SourceID, dataSources map[ecosystem.Type]types.DataSource, options ...func(*OSV))
pkg/vulnsrc/osv/osv.go:96
↓ 8 callersMethodPut
(*bolt.Tx, PutInput)
pkg/vulnsrc/rocky/rocky.go:54
↓ 8 callersMethodUpdate
(dir string)
pkg/vulnsrc/vulnsrc.go:39
↓ 8 callersMethodput
(tx *bolt.Tx, bktNames []string, key string, value any)
pkg/db/db.go:153
↓ 7 callersMethodIndices
(cpes []string)
pkg/vulnsrc/redhat-oval/cpe.go:31
↓ 7 callersFunctionPath
(dbDir string)
pkg/db/db.go:125
↓ 6 callersFunctionWarn
(msg string, args ...any)
pkg/log/log.go:28
↓ 5 callersMethodEcosystem
()
pkg/vulnsrc/bucket/bucket.go:16
↓ 5 callersFunctionFilePath
(path string)
pkg/log/log.go:48
↓ 5 callersFunctionNewAlpine
NewAlpine creates a bucket for Alpine Linux
pkg/vulnsrc/bucket/bucket.go:92
↓ 5 callersFunctionNewNpm
NewNpm creates a bucket for npm ecosystem with data source
pkg/vulnsrc/bucket/bucket.go:330
↓ 4 callersFunctionConstructVersion
(epoch, version, release string)
pkg/utils/utils.go:17
↓ 4 callersFunctionNew
(dbc db.Operation)
pkg/vulnsrc/vulnerability/vulnerability.go:26
↓ 4 callersFunctionNewGo
NewGo creates a bucket for Go ecosystem with data source
pkg/vulnsrc/bucket/bucket.go:310
↓ 4 callersFunctionNewRubyGems
NewRubyGems creates a bucket for RubyGems ecosystem with data source
pkg/vulnsrc/bucket/bucket.go:350
↓ 4 callersFunctionNewVulnSrc
(dist Distribution)
pkg/vulnsrc/azure/azure.go:59
↓ 4 callersFunctionNewVulnSrc
(opts ...Option)
pkg/vulnsrc/debian/debian.go:93
↓ 4 callersFunctionNoBucket
(t *testing.T, dbPath string, buckets []string, msgAndArgs ...any)
pkg/dbtest/assert.go:25
↓ 4 callersFunctionWithTransformer
WithTransformer sets a custom transformer
pkg/vulnsrc/osv/osv.go:90
↓ 4 callersFunctioncompareVersions
(v1, v2 string)
pkg/vulnsrc/debian/debian.go:670
↓ 4 callersFunctionencodeCVEs
encodeCVEs creates a consistent string representation of CVE entries Format: "id1:severity1|id2:severity2|..." The CVE entries are already sorted by I
pkg/vulnsrc/redhat-csaf/aggregate.go:187
↓ 3 callersMethodDataSource
()
pkg/vulnsrc/bucket/bucket.go:22
↓ 3 callersFunctionExists
(path string)
pkg/utils/file.go:87
↓ 3 callersMethodForEachAdvisory
(sources []string, pkgName string)
pkg/db/db.go:37
↓ 3 callersFunctionJSONEq
(t *testing.T, dbPath string, key []string, want any, msgAndArgs ...any)
pkg/dbtest/assert.go:46
↓ 3 callersMethodLen
()
pkg/vulnsrc/redhat-csaf/types.go:101
↓ 3 callersFunctionLoad
Load reads config.yaml from the given directory
pkg/override/override.go:36
↓ 3 callersMethodName
()
pkg/vulnsrc/vulnsrc.go:38
↓ 3 callersFunctionNew
(cacheDir, outputDir string, updateInterval time.Duration, opts ...Option)
pkg/vulndb/db.go:46
↓ 3 callersFunctionNewComposer
NewComposer creates a bucket for Composer ecosystem with data source
pkg/vulnsrc/bucket/bucket.go:300
↓ 3 callersFunctionNewDebian
NewDebian creates a bucket for Debian
pkg/vulnsrc/bucket/bucket.go:101
↓ 3 callersFunctionNewParser
()
pkg/vulnsrc/redhat-csaf/parse.go:40
↓ 3 callersFunctionNewPyPI
NewPyPI creates a bucket for PyPI ecosystem with data source
pkg/vulnsrc/bucket/bucket.go:345
↓ 3 callersFunctionNewRedHat
NewRedHat creates a bucket for Red Hat
pkg/vulnsrc/bucket/bucket.go:191
↓ 3 callersFunctionNewSUSELinuxEnterprise
NewSUSELinuxEnterprise creates a bucket for SUSE Linux Enterprise
pkg/vulnsrc/bucket/bucket.go:266
↓ 3 callersFunctionNewSUSELinuxEnterpriseMicro
NewSUSELinuxEnterpriseMicro creates a bucket for SUSE Linux Enterprise Micro
pkg/vulnsrc/bucket/bucket.go:271
↓ 3 callersFunctionNewVulnSrc
(opts ...Option)
pkg/vulnsrc/ubuntu/ubuntu.go:89
↓ 3 callersFunctionNewVulnSrc
()
pkg/vulnsrc/rootio/rootio.go:56
↓ 3 callersFunctionNewVulnSrc
()
pkg/vulnsrc/bottlerocket/bottlerocket.go:34
↓ 3 callersFunctionNewVulnSrc
()
pkg/vulnsrc/alpine/alpine.go:33
↓ 3 callersFunctionNewVulnSrc
()
pkg/vulnsrc/echo/echo.go:40
↓ 3 callersFunctionNewVulnSrc
(dist Distribution)
pkg/vulnsrc/suse-cvrf/suse-cvrf.go:63
↓ 3 callersFunctionNewVulnSrc
()
pkg/vulnsrc/photon/photon.go:33
↓ 3 callersFunctionNewVulnSrc
()
pkg/vulnsrc/amazon/amazon.go:69
↓ 3 callersFunctionNewVulnSrc
()
pkg/vulnsrc/rocky/rocky.go:66
↓ 3 callersFunctionNormalizePkgName
NormalizePkgName normalizes package name for ecosystem.Type
pkg/vulnsrc/vulnerability/vulnerability.go:291
↓ 3 callersMethodPutRedHatCPEs
(tx *bolt.Tx, cpeIndex int, cpe string)
pkg/db/db.go:55
↓ 3 callersFunctionUnmarshalJSONFile
(v any, fileName string)
pkg/utils/file.go:98
↓ 3 callersMethoddeleteBucket
(bucketName string)
pkg/db/db.go:285
↓ 3 callersMethodput
(errataVer map[string][]Erratum)
pkg/vulnsrc/alma/alma.go:110
↓ 3 callersFunctionscoreToSeverity
(score float64)
pkg/vulnsrc/vulnerability/vulnerability.go:275
↓ 3 callersFunctionunmarshalJSONFile
(v any, fileName string)
pkg/vulnsrc/redhat-oval/parse.go:18
↓ 3 callersFunctionupdateCPEs
(cpes []string, uniqCPEs CPEMap)
pkg/vulnsrc/redhat-oval/redhat-oval.go:488
↓ 2 callersMethodAdd
(cpe string)
pkg/vulnsrc/redhat-oval/cpe.go:7
↓ 2 callersMethodAdvisories
()
pkg/vulnsrc/redhat-csaf/parse.go:420
↓ 2 callersMethodAggregateEntries
AggregateEntries aggregates raw entries through multiple stages: 1. Aggregate CVEs (merge entries that only differ in CVE-ID and severity) 2. Aggregat
pkg/vulnsrc/redhat-csaf/aggregate.go:24
↓ 2 callersMethodApply
Apply applies the patch to the original content. Returns: - ([]byte{}, nil) if the file should be deleted (empty result) - (patched, nil) if the patch
pkg/override/override.go:109
↓ 2 callersMethodBuild
(targets []string)
pkg/vulndb/db.go:19
↓ 2 callersMethodCPEList
()
pkg/vulnsrc/redhat-csaf/parse.go:443
↓ 2 callersFunctionDirPath
(path string)
pkg/log/log.go:52
↓ 2 callersMethodFinish
()
pkg/utils/progress.go:59
↓ 2 callersMethodForEachAdvisory
(sources []string, pkgName string)
pkg/db/advisory.go:20
↓ 2 callersMethodGetDetails
(vulnID string)
pkg/vulnsrc/vulnerability/vulnerability.go:30
↓ 2 callersFunctionHasIntersection
(list1, list2 []int)
pkg/utils/ints/ints.go:20
↓ 2 callersMethodIncrement
()
pkg/utils/progress.go:53
↓ 2 callersMethodIndex
(cpe string)
pkg/vulnsrc/redhat-oval/cpe.go:22
↓ 2 callersMethodInsert
(targets []string)
pkg/vulndb/db.go:71
↓ 2 callersMethodIsRejected
(details map[types.SourceID]types.VulnerabilityDetail)
pkg/vulnsrc/vulnerability/vulnerability.go:41
↓ 2 callersMethodMatch
Match checks if any patch matches the given path. Returns (patch, true) if a match is found, (nil, false) otherwise. The diff file is read when a matc
pkg/override/override.go:81
↓ 2 callersFunctionNewAlma
Standard OS buckets // NewAlma creates a bucket for Alma Linux
pkg/vulnsrc/bucket/bucket.go:84
↓ 2 callersFunctionNewAmazon
NewAmazon creates a bucket for Amazon Linux
pkg/vulnsrc/bucket/bucket.go:132
↓ 2 callersFunctionNewArchLinux
NewArchLinux creates a bucket for Arch Linux
pkg/vulnsrc/bucket/bucket.go:95
↓ 2 callersFunctionNewCargo
NewCargo creates a bucket for Cargo ecosystem with data source
pkg/vulnsrc/bucket/bucket.go:285
next →1–100 of 727, ranked by callers