finishable

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2022 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 Controller

type Controller interface {
	manager.Runnable

	Watch(src source.Source, eventhandler handler.EventHandler, predicates ...predicate.Predicate) error
}

func NewController

func NewController(name string, mgr manager.Manager, reconciler Reconciler) (Controller, error)

NewController returns a controller that can be stopped from the Reconciler implementation.

type Reconciler

type Reconciler interface {
	Reconcile(context.Context, reconcile.Request) (Result, error)
}

Reconciler interface extends reconcile.Reconciler interface with the option to stop the reconciliation.

type Result

type Result struct {
	reconcile.Result
	Finished bool
}

Jump to

Keyboard shortcuts

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