watcher

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2025 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	PollInterval   time.Duration
	RescanInterval time.Duration
}

Config contains configuration for the watcher

type Watcher

type Watcher interface {
	// Start begins the continuous discovery loop
	Start(ctx context.Context) error

	// Discover performs a single discovery cycle
	Discover(ctx context.Context) error
}

Watcher continuously monitors the container registry for new and updated images

func NewWatcher

func NewWatcher(
	registryClient registry.Client,
	regsyncConfig *config.RegsyncConfig,
	stateStore statestore.StateStore,
	taskQueue queue.TaskQueue,
	config Config,
	logger *slog.Logger,
) Watcher

NewWatcher creates a new registry watcher

Jump to

Keyboard shortcuts

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