operator

package
v0.7.0-rc Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Overview

Package operator provides primitives for implementing Trivy-Operator Operator.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(ctx context.Context, buildInfo trivyoperator.BuildInfo, operatorConfig etc.Config) error

Start starts all registered reconcilers and blocks until the context is cancelled. Returns an error if there is an error starting any reconciler.

Types

type TTLReportReconciler added in v0.5.0

type TTLReportReconciler struct {
	logr.Logger
	etc.Config
	client.Client
	ext.Clock
}

func (*TTLReportReconciler) DeleteReportIfExpired added in v0.5.0

func (r *TTLReportReconciler) DeleteReportIfExpired(ctx context.Context, namespacedName types.NamespacedName, reportType client.Object) (ctrl.Result, error)

func (*TTLReportReconciler) SetupWithManager added in v0.5.0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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