Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Matcher ¶ added in v0.0.8
type Matcher struct{}
Matcher implements driver.Matcher.
func (*Matcher) Filter ¶ added in v0.0.8
func (*Matcher) Filter(record *claircore.IndexRecord) bool
Filter implements driver.Matcher.
func (*Matcher) Query ¶ added in v0.0.8
func (*Matcher) Query() []driver.MatchConstraint
Query implements driver.Matcher.
func (*Matcher) Vulnerable ¶ added in v0.0.8
func (*Matcher) Vulnerable(record *claircore.IndexRecord, vuln *claircore.Vulnerability) bool
Vulnerable implements driver.Matcher.
type Option ¶
Option is a type to configure an Updater.
func WithClient ¶
WithClient sets an http.Client for use with an Updater.
If this Option is not supplied, http.DefaultClient will be used.
type Updater ¶
type Updater struct {
ovalutil.Fetcher // fetch method promoted via embed
// contains filtered or unexported fields
}
Updater fetches and parses RHEL-flavored OVAL databases.
func NewUpdater ¶
NewUpdater returns an Updater.
func (*Updater) Parse ¶
func (u *Updater) Parse(ctx context.Context, r io.ReadCloser) ([]*claircore.Vulnerability, error)
ParseContext is like Parse, but with context.
Click to show internal directories.
Click to hide internal directories.