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

# Packages

Package errors defines error types that are used in several modules.
Package http provides utility functions for HTTP servers and clients.
Package types defines useful types that are used in database models.

# Functions

CleanURL removes all parameters from an URL.
CompareStringLists returns the strings that are present in X but not in Y.
CompareStringListsInBoth returns the strings that are present in both X and Y.
Contains looks for a string into an array of strings and returns whether the string exists.
Exec runs the given binary with arguments.
NewStopper initializes a new Stopper instance.
NewXzReader shells out to a command line xz executable (if available) to decompress the given io.Reader using the xz compression format and returns an *XzReader.
PrometheusObserveTimeMilliseconds observes the elapsed time since start, in milliseconds, on the specified Prometheus Histogram.
SelectivelyExtractArchive extracts the specified files and folders from targz data read from the given reader and store them in a map indexed by file paths.

# Variables

ErrCouldNotExtract occurs when an extraction fails.
ErrExtractedFileTooBig occurs when a file to extract is too big.

# Structs

Stopper eases the graceful termination of a group of goroutines.
TarReadCloser embeds a *tar.Reader and the related io.Closer It is the caller's responsibility to call Close on TarReadCloser when done.
XzReader is an io.ReadCloser which decompresses xz compressed data.