patrol

package
v0.0.0-...-4d19ac6 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OptConfig

type OptConfig func(*Options)

func WithControllerName

func WithControllerName(name string) OptConfig

WithControllerName set the controller name.

func WithOptions

func WithOptions(o *Options) OptConfig

WithOptions set options.

func WithPeriod

func WithPeriod(t time.Duration) OptConfig

WithPeriod set patrol JitterPeriod.

func WithReconciler

func WithReconciler(rc reconciler.PatrolReconciler) OptConfig

WithReconciler set the reconciler.

type Options

type Options struct {
	Reconciler reconciler.PatrolReconciler
	Period     time.Duration
	// contains filtered or unexported fields
}

Options are the arguments for creating a new Patrol.

type Patroller

type Patroller struct {
	Options
	// contains filtered or unexported fields
}

func NewPatroller

func NewPatroller(objectType client.Object, rc reconciler.PatrolReconciler, opts ...OptConfig) (*Patroller, error)

func (*Patroller) Start

func (p *Patroller) Start(stop <-chan struct{})

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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