redhat

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Feed

type Feed struct {
	// 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