periodic

package
v0.0.0-...-8d685b2 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(c *Runner) error

Option is a function which configures the Runner.

func WithClient

func WithClient(c client.Client) Option

WithClient configures the Runner with the given client.

func WithEventChannel

func WithEventChannel(ch chan event.GenericEvent) Option

WithEventChannel configures the Runner to use the given channel for enqueuing.

func WithInterval

func WithInterval(interval time.Duration) Option

WithInterval configures the Runner with the given interval.

type Runner

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

Runner is a periodic runner which enqueues Pods for reconciliation on regular intervals.

func New

func New(opts ...Option) (*Runner, error)

New creates a new periodic runner and configures it using the provided options.

func (*Runner) Start

func (r *Runner) Start(ctx context.Context) error

Start implements the sigs.k8s.io/controller-runtime/pkg/manager.Runnable interface.

Jump to

Keyboard shortcuts

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