Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
*Opts
}
Controller is a control structure for fetching, parsing, and updating a vulnstore.
func NewController ¶ added in v0.0.21
func NewController(opts *Opts) *Controller
New is a constructor for an Controller
type Opts ¶
type Opts struct {
// an embedded updater interface
driver.Updater
// a unique name for this controller. must be unique between controllers
Name string
// store for persistence
Store vulnstore.Updater
// update interval
Interval time.Duration
// lock to ensure only process updating
Lock distlock.Locker
// immediately update on construction
UpdateOnStart bool
}
Opts are options used to create an Updater
Click to show internal directories.
Click to hide internal directories.