package
1.2.6
Repository: https://github.com/coreos/clair.git
Documentation: pkg.go.dev

# Functions

NewVersion function parses a string into a Version struct which can be compared The implementation is based on http://man.he.net/man5/deb-version on https://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Version It uses the dpkg-1.17.25's algorithm (lib/parsehelp.c).
NewVersionUnsafe is just a wrapper around NewVersion that ignore potentiel parsing error.

# Constants

Critical is a world-burning problem, exploitable for nearly all people in a default installation of Linux.
Defcon1 is a Critical problem which has been manually highlighted by the team.
High is a real problem, exploitable for many people in a default installation.
Low is a security problem, but is hard to exploit due to environment, requires a user-assisted attack, a small install base, or does very little damage.
Medium is a real security problem, and is exploitable for many people.
Negligible is technically a security problem, but is only theoretical in nature, requires a very special situation, has almost no install base, or does no real damage.
Unknown is either a security problem that has not been assigned to a priority yet or a priority that our system did not recognize.

# Variables

MaxVersion is a special package version which is always sorted last.
MinVersion is a special package version which is always sorted first.
Priorities lists all known priorities, ordered from lower to higher.

# Structs

Version represents a package version.

# Type aliases

Priority defines a vulnerability priority.