package
2.0.8+incompatible
Repository: https://github.com/gitlawr/clair.git
Documentation: pkg.go.dev

# Packages

Package pgsql implements database.Datastore with PostgreSQL.

# Functions

NewSeverity attempts to parse a string into a standard Severity value.
Open opens a Datastore specified by a configuration.
Register makes a Constructor available by the provided name.

# Constants

CriticalSeverity is a world-burning problem, exploitable for nearly all people in a default installation of Linux.
Defcon1Severity is a Critical problem which has been manually highlighted by the team.
HighSeverity is a real problem, exploitable for many people in a default installation.
LowSeverity 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.
MediumSeverity is a real security problem, and is exploitable for many people.
NegligibleSeverity 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.
UnknownSeverity is either a security problem that has not been assigned to a priority yet or a priority that our system did not recognize.

# Variables

DebianReleasesMapping translates Debian code names and class names to version numbers.
ErrBackendException is an error that occurs when the database backend does not work properly (ie.
ErrFailedToParseSeverity is the error returned when a severity could not be parsed from a string.
ErrInconsistent is an error that occurs when a database consistency check fails (i.e.
No description provided by the author
Severities lists all known severities, ordered from lowest to highest.
UbuntuReleasesMapping translates Ubuntu code names to version numbers.
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
MockDatastore implements Datastore and enables overriding each available method.
ID is only meant to be used by database implementations and should never be used for anything else.
No description provided by the author
RegistrableComponentConfig is a configuration block that can be used to determine which registrable component should be initialized and pass custom configuration to it.
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

Datastore represents the required operations on a persistent data store for a Clair deployment.

# Type aliases

Driver is a function that opens a Datastore specified by its database driver type and specific configuration.
No description provided by the author
Severity defines a standard scale for measuring the severity of a vulnerability.