package
2.0.0-pre.3+incompatible
Repository: https://github.com/andrewwebber/clair.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# 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.