Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterFixedPackages ¶
FilterFixedPackages will return those packages which haven't been fixed already on the given distro and for a given cve if some package can't be parsed as an rpm package, it will not be checked and will be included in the output list
func LabelCompare ¶
LabelCompare returns 0 if the two packages have the same label, -1 if l1 < l2 and 1 of l1 > l2.
Types ¶
type Checker ¶
type Checker interface { // Check should return whether a given package on distribution is fixed for some CVE Check(pkg *Package, distro *wfn.Attributes, cve string) bool }
Checker knows how to verify whether some package has been fixed or not
type Package ¶
Package represents one RPM package
func Parse ¶
Parse returns name, version, release and architecture parsed from RPM package name NEVRA: https://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
Click to show internal directories.
Click to hide internal directories.