normalization

package
v0.0.72 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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 NormalizePURL

func NormalizePURL(pkg string, d *types.Distro) (string, string)

func NormalizeSBOM

func NormalizeSBOM(sb *types.SBOM) ([]string, map[string]string)

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 OsQualifiers

func OsQualifiers(release *linux.Release) (types.Distro, map[string]string)

func ToPackageUrl

func ToPackageUrl(url string) (anchorepackageurl.PackageURL, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL