compare

package
v0.0.0-...-82b092a Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

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