scanrequest

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ScannerJobName   = "scan-image"
	SharedVolumeName = "shared-disk"
	WorkDir          = "/root/.cache"
)

Variables

This section is empty.

Functions

func EnsureScanReport

func EnsureScanReport(kc client.Client, imageRef string, resp trivy.BackendResponse) (*api.ImageScanReport, error)

Types

type Reconciler

type Reconciler struct {
	client.Client
	// contains filtered or unexported fields
}

func NewImageScanRequestReconciler

func NewImageScanRequestReconciler(
	kc client.Client,
	nc *nats.Conn,
	scannedImage, trivyImage, trivyDBCacherImage, fsAddr, fileServerDir string,
	garbageCol time.Duration,
	workspace string,
) *Reconciler

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*Reconciler) SetupWithManager

func (r *Reconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type RequestReconciler

type RequestReconciler struct {
	*Reconciler
	// contains filtered or unexported fields
}

func (*RequestReconciler) ScanForPrivateImage

func (r *RequestReconciler) ScanForPrivateImage() error

Jump to

Keyboard shortcuts

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