package
1.21.0-rc1
Repository: https://github.com/hashicorp/consul.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

MakeRequests accepts a list of pbresource.ID and pbresource.Reference items, and mirrors them into a slice of []controller.Request items where the Type of the items has replaced by 'typ'.
MakeRequestsFromResources accepts a list of items and converts them into a slice of []controller.Request items where the Type of the items has replaced by 'typ'.
NewController creates a controller that is setup to watched the managed type.
NewManager creates a Manager.
NewTestController will create a new TestController from the provided Controller and ResourceServiceClient.
RequeueAfter constructs a RequeueAfterError with the given duration setting.
RequeueNow constructs a RequeueAfterError that reschedules the Request immediately.

# Constants

PlacementEachServer ensures there is a replica of the controller running on each server in the cluster.
PlacementSingleton ensures there is a single, leader-elected, instance of the controller running in the cluster at any time.

# Structs

Controller runs a reconciliation loop to respond to changes in resources and their dependencies.
Event captures an event in the system which the API can choose to respond to.
Manager is responsible for scheduling the execution of controllers.
Request represents a request to reconcile the resource with the given ID.
Runtime contains the dependencies required by reconcilers.
Source is used as a generic source of events.
TestController is most useful when writing unit tests for a controller where individual Reconcile calls need to be made instead of having a Manager execute the controller in response to watch events.

# Interfaces

Initializer implements the business logic that is executed when the controller is first started.
Lease is used to ensure controllers are run as singletons (i.e.
Reconciler implements the business logic of a controller.

# Type aliases

CustomDependencyMapper is called when an Event occurs to determine which of the controller's managed resources need to be reconciled.
No description provided by the author
DependencyMapper is called when a dependency watched via WithWatch is changed to determine which of the controller's managed resources need to be reconciled.
Placement determines where and how many replicas of the controller will run.
RequeueAfterError is an error that allows a Reconciler to override the exponential backoff behavior of the Controller, rather than applying the backoff algorithm, returning a RequeueAfterError will cause the Controller to reschedule the Request at a given time in the future.
No description provided by the author