Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
Option configures the provided Updater.
func WithClient ¶
WithClient returns an Option that will make the Updater use the specified http.Client, instead of http.DefaultClient.
func WithLogger ¶
WithLogger sets the default logger.
Functions that take a context.Context will use the logger embedded in there instead of the Logger passed in via this Option.
type Updater ¶
type Updater struct { ovalutil.Fetcher // Fetch method promoted via embed // contains filtered or unexported fields }
Updater implements driver.Updater for Oracle Linux.
func NewUpdater ¶
NewUpdater returns an updater configured according to the provided Options.
If year is -1, the "all" database will be pulled.
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.