trivy

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FsScanSharedVolumeMountPath   = "/var/run/image-scanner"
	FsScanSharedVolumeName        = "image-scanner"
	FsScanTrivyBinaryPath         = FsScanSharedVolumeMountPath + "/trivy"
	JobNameSpecHashPartLength     = 5
	KubernetesJobNameMaxLength    = validation.DNS1123LabelMaxLength
	KubernetesLabelValueMaxLength = validation.DNS1123LabelMaxLength
	ScanJobContainerName          = "scan-image"
	TempVolumeName                = "tmp"
	TempVolumeMountPath           = "/tmp"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageScanJobBuilder

type ImageScanJobBuilder interface {
	OnPreferredNodes(nodeNames ...string) ImageScanJobBuilder
	ForCIS(cis *stasv1alpha1.ContainerImageScan) (*batchv1.Job, error)
}

func NewImageScanJob

func NewImageScanJob(cfg config.Config) ImageScanJobBuilder

Jump to

Keyboard shortcuts

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