controllers

package
v1.0.0-alpha9 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2021 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CronEntry

type CronEntry struct {
	// contains filtered or unexported fields
}

type PatchVirusScanCondition

type PatchVirusScanCondition struct {
	Condition avv1beta1.VirusScanCondition
}

func (*PatchVirusScanCondition) Data

func (p *PatchVirusScanCondition) Data(obj runtime.Object) ([]byte, error)

func (*PatchVirusScanCondition) Type

type PatchVirusScanResult

type PatchVirusScanResult struct {
	ScanReport *engine.ScanReport
}

func (*PatchVirusScanResult) Data

func (p *PatchVirusScanResult) Data(obj runtime.Object) ([]byte, error)

func (*PatchVirusScanResult) Type

type ScheduledVirusScanReconciler

type ScheduledVirusScanReconciler struct {
	client.Client
	Scheme      *runtime.Scheme
	Recorder    record.EventRecorder
	Cron        *cron.Cron
	CronEntries map[string]CronEntry
}

ScheduledVirusScanReconciler reconciles a ScheduledVirusScan object

func (*ScheduledVirusScanReconciler) Reconcile

func (r *ScheduledVirusScanReconciler) Reconcile(ctx context.Context, request ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*ScheduledVirusScanReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type UpdaterController

type UpdaterController struct {
	// contains filtered or unexported fields
}

func NewUpdaterController

func NewUpdaterController(c client.Client, l logr.Logger, ns string) *UpdaterController

func (*UpdaterController) NeedLeaderElection

func (u *UpdaterController) NeedLeaderElection() bool

func (*UpdaterController) Start

func (u *UpdaterController) Start(ctx context.Context) error

type VirusScanReconciler

type VirusScanReconciler struct {
	client.Client
	Scheme   *runtime.Scheme
	Recorder record.EventRecorder
}

VirusScanReconciler reconciles a VirusScan object

func (*VirusScanReconciler) Reconcile

func (r *VirusScanReconciler) Reconcile(ctx context.Context, request ctrl.Request) (res ctrl.Result, err error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*VirusScanReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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