assetscanprocessor

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultPollInterval     = 2 * time.Minute
	DefaultReconcileTimeout = 5 * time.Minute
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AssetScanProcessor

type AssetScanProcessor struct {
	// contains filtered or unexported fields
}

func New

func New(config Config) *AssetScanProcessor

func (*AssetScanProcessor) GetItems

func (*AssetScanProcessor) Reconcile

func (asp *AssetScanProcessor) Reconcile(ctx context.Context, event AssetScanReconcileEvent) error

nolint:cyclop

func (*AssetScanProcessor) Start

func (asp *AssetScanProcessor) Start(ctx context.Context)

type AssetScanReconcileEvent

type AssetScanReconcileEvent struct {
	AssetScanID models.AssetScanID
}

func (AssetScanReconcileEvent) Hash

func (AssetScanReconcileEvent) String

func (e AssetScanReconcileEvent) String() string

func (AssetScanReconcileEvent) ToFields

func (e AssetScanReconcileEvent) ToFields() logrus.Fields

type Config

type Config struct {
	Backend          *backendclient.BackendClient
	PollPeriod       time.Duration `mapstructure:"poll_period"`
	ReconcileTimeout time.Duration `mapstructure:"reconcile_timeout"`
}

func (Config) WithBackendClient

func (c Config) WithBackendClient(b *backendclient.BackendClient) Config

func (Config) WithPollPeriod

func (c Config) WithPollPeriod(t time.Duration) Config

func (Config) WithReconcileTimeout

func (c Config) WithReconcileTimeout(t time.Duration) Config

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL