scenario

package
v1.7.12 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package operator provides benchmark operator crd information and preriodically update

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BenchmarkScenarioWatcher

type BenchmarkScenarioWatcher k8s.ResourceController

func New

func New(opts ...Option) (BenchmarkScenarioWatcher, error)

type Option

type Option func(*reconciler) error

func WithControllerName

func WithControllerName(name string) Option

WithControllerName returns Option that sets r.name.

func WithManager

func WithManager(mgr manager.Manager) Option

WithManager returns Option that sets r.mgr.

func WithNamespaces

func WithNamespaces(nss ...string) Option

WithNamespaces returns Option to set the namespace.

func WithOnErrorFunc

func WithOnErrorFunc(f func(err error)) Option

WithOnErrorFunc returns Option that sets r.onError.

func WithOnReconcileFunc

func WithOnReconcileFunc(f func(ctx context.Context, scenarioList map[string]v1.ValdBenchmarkScenario)) Option

WithOnReconcileFunc returns Option that sets r.onReconcile.

Jump to

Keyboard shortcuts

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