redhat

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2022 License: Apache-2.0 Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Feed

type Feed struct {
	// Data is map of CVEs as returned by the redhat API, keyed by CVE names.
	Data map[string]*schema.CVE
	// contains filtered or unexported fields
}

Feed is a collection of CVEs from RedHat.

func LoadFeed

func LoadFeed(path string) (*Feed, error)

LoadFeed loads a Feed from a JSON file.

func (*Feed) Checker

func (feed *Feed) Checker() (rpm.Checker, error)

Checker returns an rpm.Checker that uses the Feed.

func (*Feed) ListFixedCVEs

func (feed *Feed) ListFixedCVEs(d *wfn.Attributes, p *rpm.Package) ([]string, error)

ListFixedCVEs will return the list of CVEs that aren't applicable for the given (distro, package). Those CVEs could be not applicable for various reasons. For instance for packaged version isn't vulnerable or a fix has been backported. distro is a CPE identifying a distribution. pkg is the full package name as reported, for instance by rpm -qa.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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