package
1.5.35
Repository: https://github.com/quay/claircore.git
Documentation: pkg.go.dev

# Packages

Bisect is a git bisect helper.
Package fetch implements just enough of a client for the OCI Distribution specification for use in tests.
Package integration is a helper for running integration tests.
No description provided by the author
Ovaldebug is a helper for debugging the ovalutil package.
Package periodic contains tests meant to be run periodically in CI.
Package postgres contains testing helpers for PostgreSQL databases.
No description provided by the author
No description provided by the author

# Functions

GenDuplicatePackages creates an array of packages with duplicates.
GenEnrichments creates an array of enrichment records, with no meaningful content.
GenerateFixture is a helper for generating a test fixture.
GenUniqueDistributions creates an array of unique distributions.
GenUniqueDistributionScanners creates n number of unique DistributionScanners.
GenUniquePackages creates an array of unique packages.
GenUniquePackageScanners creates n number of unique PackageScanners.
GenUniqueRepositories creates an array of unique repositories.
GenUniqueRepositoryScanners creates n number of unique RepositoryScanners.
GenUniqueVulnerabilities creates an array of unique Vulnerabilities.
Modtime is a helper for picking a timestamp to use with [GenerateFixture] and [GenerateLayer].
NewCachedArena returns an initialized CachedArena.
NewLayerMatcher returns a [LayerMatcher].
RandomSHA256Digest returns a random Digest.
RealizeLayer is a helper around [RealizeLayers] for a single layer.
RealizeLayers uses fetch.Layer to populate a directory and returns a slice of Layers describing them.
RunMatcherTests tests provided [driver.Matcher] implementations using all [txtar.Archive] files matching the glob "*.txtar" in "dir".
ServeLayers constructs "n" random layers, arranges to serve them, and returns corresponding LayerDescriptions.
SplitJSONSeq is a [bufio.SplitFunc] that splits "application/json-seq" streams.
WFN returns a [cpe.WFN] with "i" as the CPE version.

# Constants

MediaType is a media type that can be used in [claircore.LayerDescription]s in tests.

# Variables

AnyDescription is pre-made [LayerDescription] for cases where the actual contents of the description *shouldn't* matter.
CmpOptions is a bundle of [cmp.Option] for [claircore] types.
CompareDigests allows for comparing [claircore.Digest] objects.
CompareVulnerabilityReports allows for comparing [claircore.VulnerabilityReport] objects.

# Structs

CachedArena is an [indexer.FetchArena] that populates Layers out of the testing caches.
CachedRealizer is the [indexer.Realizer] returned by [CachedArena].
LayerMatcher is a [gomock.Matcher] for [claircore.LayerDescription]s that allows them to match both [LayerDescription] and [Layer].
LayerRef is a remote layer.
MatcherGetCall describes one call to a [datastore.Vulnerabilities.Get] method.
ScannerTestcase can be used for testing layers found in the wild against a scanner.

# Type aliases

DigestMatcher is a [gomock.Matcher] for [claircore.Digest]s.
GenRepoOption is a functional option to [GenUniqueRepositories].