name

package
v0.114.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2026 License: Apache-2.0 Imports: 9 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Normalize

func Normalize(name string, pkgType syftPkg.Type) string

func PackageNames

func PackageNames(p grypePkg.Package) []string

PackageNames returns the list of names a matcher should search the DB by when looking up vulnerabilities for p. Per-ecosystem resolvers (Python, Java) provide alternate canonical forms (PEP 503 normalization, Maven group+artifact splits); rootio packages additionally fan out across both naming directions so the matcher reaches every record relevant to a rootio build regardless of which naming model the SBOM uses:

  • prefixed → bare: a scan against `rootio-libssl3` reaches the upstream `libssl3` disclosure in the distro namespace.
  • bare → prefixed: a scan against `libgcrypt20@1.10.1-3.root.io.2` (upstream-named rootio build) reaches the rootio NAK keyed under `rootio-libgcrypt20`.

Rootio data carries no false-positive risk through this fanout: rootio publishes only UnaffectedPackageHandles (NAKs), so any extra-name search can suppress a match but cannot manufacture one. The RootIO package qualifier on those NAKs gives second-line protection — it keeps a rootio-tagged record from applying to a scanned package that isn't itself a rootio build.

Types

type JavaResolver

type JavaResolver struct {
}

func (*JavaResolver) Names

func (r *JavaResolver) Names(p grypePkg.Package) []string

func (*JavaResolver) Normalize

func (r *JavaResolver) Normalize(name string) string

type PythonResolver

type PythonResolver struct {
}

func (*PythonResolver) Names

func (r *PythonResolver) Names(p grypePkg.Package) []string

func (*PythonResolver) Normalize

func (r *PythonResolver) Normalize(name string) string

type Resolver

type Resolver interface {
	Normalize(string) string
	Names(p grypePkg.Package) []string
}

func FromType

func FromType(t syftPkg.Type) Resolver

Jump to

Keyboard shortcuts

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