handler

package
v1.4.0-rc.5 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2025 License: MIT Imports: 7 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 interface {
	Handle(ctx context.Context, imageName, platform string, dockerConfig dockercfg.Config) error
}

Handler interface

func New

func New(scanner scan.Scanner, repository db.Repository, opts ...Option) Handler

New creates a Handler to scan images for vulnerabilities and store the scan results in a database

type Option

type Option func(s *imageVulnerabilityScanner)

Option configuration for vulnerability scanner

func WithRescanAge

func WithRescanAge(t time.Duration) Option

WithRescanAge sets the rescan age

func WithScanTimeout

func WithScanTimeout(t time.Duration) Option

WithScanTimeout sets the scan timeout

Jump to

Keyboard shortcuts

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