Documentation ¶
Index ¶
- Variables
- func DenormalizeSBOM(vp *types.VulnerabilitiesByPurls, purlMapping map[string]string)
- func NormalizePURL(pkg string, d *types.Distro) (string, string)
- func NormalizeSBOM(sb *types.SBOM) ([]string, map[string]string)
- func OsQualifiers(release *linux.Release) (types.Distro, map[string]string)
- func ToPackageUrl(url string) (anchorepackageurl.PackageURL, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var NamespaceMapping = map[string]string{
"oracle": "oraclelinux",
"ol": "oraclelinux",
"amazon": "amazonlinux",
"amzn": "amazonlinux",
"rhel": "redhatlinux",
}
Functions ¶
func DenormalizeSBOM ¶
func DenormalizeSBOM(vp *types.VulnerabilitiesByPurls, purlMapping map[string]string)
func NormalizeSBOM ¶
NormalizeSBOM creates the canonical representation of our internal PURL model This has to be moved into the backend API layer some time in the future
func ToPackageUrl ¶
func ToPackageUrl(url string) (anchorepackageurl.PackageURL, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.