update

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Path string
	// contains filtered or unexported fields
}

Handler is an API handler used for triggering container update scans.

func New

func New(scanner Scanner) *Handler

New is a factory function creating a new Handler instance.

func (*Handler) Handle

func (handle *Handler) Handle(w http.ResponseWriter, r *http.Request)

Handle parses the requested images and delegates the guarded scan to the Scanner. A targeted image update waits for the guard; a full scan is skipped when one is already running.

type Scanner added in v1.0.0

type Scanner interface {
	Scan(images []string, wait bool) (ran bool)
}

Scanner runs guarded container update scans. wait blocks for the single-flight guard; when false the run is skipped if one is already in progress. The guard itself lives in the Scanner, not this handler.

Jump to

Keyboard shortcuts

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