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 WithDeleteEOLImages ¶
func WithDeleteEOLImages(deleteEOLImages bool) ConfigFunc
sets deleteEOLimages flag.
func WithDeleteScanFailedImages ¶
func WithDeleteScanFailedImages(deleteScanFailedImages bool) ConfigFunc
sets deleteScanFailedImages flag.
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
Click to show internal directories.
Click to hide internal directories.