compare

package
v1.10.3 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VersionEqual   = 0
	VersionLess    = -1
	VersionGreater = 1
)

Variables

This section is empty.

Functions

func Analyze

func Analyze(bom *cyclonedx.BOM)

func MatchCPE

func MatchCPE(componentCPE string, vulnCPEs []string) (bool, string)

func MatchGenericConstraint

func MatchGenericConstraint(packageVersion *string, constraints string) (bool, string)

Using semver to compare versions and constraints, this function will return true if the package version satisfies the constraint.

Types

This section is empty.

Jump to

Keyboard shortcuts

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