rhcc

package
v1.5.34 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2025 License: Apache-2.0 Imports: 18 Imported by: 3

Documentation

Overview

Package rhcc implements an ecosystem for the Red Hat Container Catalog.

This ecosystem treats an entire container as a package and matches advisories against it.

Index

Constants

View Source
const DefaultName2ReposMappingURL = "https://security.access.redhat.com/data/metrics/container-name-repos-map.json"

DefaultName2ReposMappingURL is the default URL with a mapping file provided by Red Hat.

Variables

View Source
var GoldRepo = claircore.Repository{
	Name: "Red Hat Container Catalog",
	URI:  `https://catalog.redhat.com/software/containers/explore`,
}

GoldRepo is the claircore.Repository that every RHCC index record is associated with. It is also the claircore.Repository that is associated with OCI VEX vulnerabilities.

View Source
var Matcher driver.Matcher = &matcher{}

Matcher is an instance of the rhcc matcher. It's exported so it can be used in the "defaults" package.

This instance is safe for concurrent use.

Functions

func NewEcosystem

func NewEcosystem(_ context.Context) *indexer.Ecosystem

NewEcosystem returns an rhcc ecosystem.

Types

type ScannerConfig

type ScannerConfig struct {
	// Name2ReposMappingURL is a URL where a mapping file can be fetched.
	//
	// See also [DefaultName2ReposMappingURL]
	Name2ReposMappingURL string `json:"name2repos_mapping_url" yaml:"name2repos_mapping_url"`
	// Name2ReposMappingFile is a path to a local mapping file.
	Name2ReposMappingFile string `json:"name2repos_mapping_file" yaml:"name2repos_mapping_file"`
	// Timeout is a timeout for all network calls made to update the mapping
	// file.
	//
	// The default is 10 seconds.
	Timeout time.Duration `json:"timeout" yaml:"timeout"`
}

ScannerConfig is the configuration for the package scanner.

The interaction between the "URL" and "File" members is the same as described in the github.com/quay/claircore/rhel.RepositoryScannerConfig documentation.

By convention, it's in a "rhel_containerscanner" key.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL