package
2.1.4-stackrox+incompatible
Repository: https://github.com/stackrox/scanner.git
Documentation: pkg.go.dev

# Packages

Package dpkg implements a versionfmt.Parser for version numbers used in dpkg based software packages.
Package rpm implements a versionfmt.Parser for version numbers used in rpm based software packages.

# Functions

Compare is a helper function that will compare two versions with a given format and return an error if there are any failures.
GetParser returns the registered Parser with a provided name.
RegisterParser provides a way to dynamically register an implementation of a Parser.
Valid is a helper function that will return an error if the version fails to validate with a given format.

# Constants

MaxVersion is a special package version which is always sorted last.
MinVersion is a special package version which is always sorted first.

# Variables

ErrInvalidVersion is returned when a function needs to validate a version, but should return an error in the case where the version is invalid.
ErrUnknownVersionFormat is returned when a function does not have enough context to determine the format of a version.

# Interfaces

Parser represents any format that can compare two version strings.