Documentation ¶
Index ¶
- Constants
- type Config
- func (c Config) WithBackendClient(b *backendclient.BackendClient) Config
- func (c Config) WithPollPeriod(t time.Duration) Config
- func (c Config) WithProviderClient(p provider.Provider) Config
- func (c Config) WithReconcileTimeout(t time.Duration) Config
- func (c Config) WithScanTimeout(t time.Duration) Config
- type ScanPoller
- type ScanQueue
- type ScanReconcileEvent
- type ScanReconciler
- type Watcher
Constants ¶
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Backend *backendclient.BackendClient Provider provider.Provider PollPeriod time.Duration `mapstructure:"poll_period"` ReconcileTimeout time.Duration `mapstructure:"reconcile_timeout"` ScanTimeout time.Duration `mapstructure:"scan_timeout"` }
func (Config) WithBackendClient ¶
func (c Config) WithBackendClient(b *backendclient.BackendClient) Config
type ScanPoller ¶
type ScanPoller = common.Poller[ScanReconcileEvent]
type ScanQueue ¶
type ScanQueue = common.Queue[ScanReconcileEvent]
type ScanReconcileEvent ¶
func (ScanReconcileEvent) Hash ¶
func (e ScanReconcileEvent) Hash() string
func (ScanReconcileEvent) String ¶
func (e ScanReconcileEvent) String() string
func (ScanReconcileEvent) ToFields ¶
func (e ScanReconcileEvent) ToFields() log.Fields
type ScanReconciler ¶
type ScanReconciler = common.Reconciler[ScanReconcileEvent]
type Watcher ¶
type Watcher struct {
// contains filtered or unexported fields
}
func (*Watcher) GetRunningScans ¶
func (w *Watcher) GetRunningScans(ctx context.Context) ([]ScanReconcileEvent, error)
nolint:cyclop
Click to show internal directories.
Click to hide internal directories.