template

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigFunc

type ConfigFunc func(*config)

func WithContext

func WithContext(ctx context.Context) ConfigFunc

provide custom context.

func WithDeleteEOLImages

func WithDeleteEOLImages(deleteEOLImages bool) ConfigFunc

sets deleteEOLimages flag.

func WithDeleteScanFailedImages

func WithDeleteScanFailedImages(deleteScanFailedImages bool) ConfigFunc

sets deleteScanFailedImages flag.

func WithLogger

func WithLogger(log logr.Logger) ConfigFunc

provide custom logger.

func WithMetrics

func WithMetrics(reportMetrics bool) ConfigFunc

sets boolean for recording metrics.

type ImageProvider

type ImageProvider interface {
	// receive list of all non-running, non-excluded images from collector container to process.
	ReceiveImages() ([]unversioned.Image, error)

	// sends non-compliant images found to remover container for removal.
	SendImages(nonCompliantImages, failedImages []unversioned.Image) error

	// completes scanner communication process - required after custom scanning finishes.
	Finish() error
}

interface for custom scanners to communicate with Eraser.

func NewImageProvider

func NewImageProvider(funcs ...ConfigFunc) ImageProvider

Jump to

Keyboard shortcuts

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