matcherkit

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2026 License: Apache-2.0 Imports: 2 Imported by: 4

Documentation

Overview

Package matcherkit contains shared helper functions for matcher implementations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MissingLicensePackages

func MissingLicensePackages(packages []*sdk.Package) []*sdk.Package

MissingLicensePackages returns the packages eligible for external license lookup.

func NormalizeLicenseSet

func NormalizeLicenseSet(values []string, sourceType string) []sdk.PackageLicense

NormalizeLicenseSet converts raw license strings into Bomly package licenses.

func RegistryPackagesForGraph

func RegistryPackagesForGraph(g *sdk.Graph, reg *sdk.PackageRegistry, target *sdk.Dependency) []*sdk.Package

RegistryPackagesForGraph seeds the PURL-keyed package registry from the dependency graph and returns the registry packages that matchers should enrich. Each dependency node is linked to its package via PackageRef (PURL); packages are deduplicated by PURL so a matcher enriches each unique package once regardless of how many dependency instances reference it. First-party nodes (sdk.NodeIsEnrichable is false) are never returned: they are absent from external sources, and querying them risks coincidental name matches.

When a target is set, only the target dependency is considered.

Types

This section is empty.

Jump to

Keyboard shortcuts

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