compare

package
v0.40.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2023 License: Apache-2.0 Imports: 5 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsVulnerable

func IsVulnerable(pkgVer string, advisory dbTypes.Advisory, match matchVersion) bool

IsVulnerable checks if the package version is vulnerable to the advisory.

Types

type Comparer

type Comparer interface {
	IsVulnerable(currentVersion string, advisory dbTypes.Advisory) bool
}

Comparer is an interface for version comparison

type GenericComparer

type GenericComparer struct{}

GenericComparer represents a comparer for semver-like versioning

func (GenericComparer) IsVulnerable

func (v GenericComparer) IsVulnerable(ver string, advisory dbTypes.Advisory) bool

IsVulnerable checks if the package version is vulnerable to the advisory.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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