Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 ¶
Updater fetches and parses RHEL-flavored OVAL databases.
func NewUpdater ¶
NewUpdater returns an Updater.
func (*Updater) Fetch ¶
func (u *Updater) Fetch() (io.ReadCloser, string, error)
Fetch satisifies the driver.Updater interface.
func (*Updater) Parse ¶
func (u *Updater) Parse(r io.ReadCloser) ([]*claircore.Vulnerability, error)
Parse satisifies the driver.Updater interface.
func (*Updater) ParseContext ¶
func (u *Updater) ParseContext(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.