Documentation ¶
Index ¶
Constants ¶
View Source
const ( OSReleaseName = "Debian GNU/Linux" OSReleaseID = "debian" )
identifiers commonly in debian distro os-release file
View Source
const ( OVALTemplate = "https://www.debian.org/security/oval/oval-definitions-%s.xml" PkgNameVersion = `([^\s]+) DPKG is earlier than (.+)` )
Variables ¶
Functions ¶
func ResolveVersionCodeName ¶
Resolve iterates over each os-release entry and tries to find a release string. if found we return the found release in string form. if not found empty string is returned
Types ¶
type Matcher ¶
type Matcher struct{}
func (*Matcher) Query ¶
func (*Matcher) Query() []driver.MatchConstraint
func (*Matcher) Vulnerable ¶
func (*Matcher) Vulnerable(record *claircore.IndexRecord, vuln *claircore.Vulnerability) bool
type Updater ¶
type Updater struct {
// contains filtered or unexported fields
}
Updater implements the claircore.Updater.Fetcher and claircore.Updater.Parser interfaces making it eligible to be used as an Updater.
func NewUpdater ¶
func (*Updater) Fetch ¶
func (u *Updater) Fetch(ctx context.Context, fingerprint driver.Fingerprint) (io.ReadCloser, driver.Fingerprint, error)
func (*Updater) Parse ¶
func (u *Updater) Parse(ctx context.Context, contents io.ReadCloser) ([]*claircore.Vulnerability, error)
Click to show internal directories.
Click to hide internal directories.