patrol

package
v0.0.0-...-44dad58 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2021 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 runtime.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