/
githubmirror
/
trivy
Обзор
Документация
Войти
/
githubmirror
/
trivy
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
pkg/dependency/parser/java/pom/cache.go
21 строка
411 B
DmitriyLewen
fix(java): add hash of GAV+root pom file path for pkgID for packages from pom.xml files (#9880)
15 янв 2026, 10:31
Не верифицирован
15 янв 2026, 10:31
809db46
Код
Авторство
О чём код?
package pom import "fmt" type pomCache map[string]*analysisResult func newPOMCache() pomCache { return pomCache{} } func (c pomCache) put(art artifact, result analysisResult) { c[c.key(art)] = &result } func (c pomCache) get(art artifact) *analysisResult { return c[c.key(art)] } func (c pomCache) key(art artifact) string { return fmt.Sprintf("%s:%s:%s", art.Name(), art.Version, art.RootFilePath) }