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 ¶
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) Fetch ¶
func (u *Updater) Fetch() (io.ReadCloser, string, error)
Fetch satifies the driver.Updater interface.
func (*Updater) Parse ¶
func (u *Updater) Parse(r io.ReadCloser) ([]*claircore.Vulnerability, error)
Parse implements driver.Parser.
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.