handler

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2025 License: Apache-2.0 Imports: 9 Imported by: 60 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const NoRateLimiter = ""

Variables

This section is empty.

Functions

This section is empty.

Types

type EventHandler

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

EventHandler handles Kubernetes events by queueing reconcile requests for objects and allows upjet components to queue reconcile requests.

func NewEventHandler

func NewEventHandler(opts ...Option) *EventHandler

NewEventHandler initializes a new EventHandler instance.

func (*EventHandler) Create

func (*EventHandler) Delete

func (*EventHandler) Forget

func (e *EventHandler) Forget(rateLimiterName string, name types.NamespacedName)

Forget indicates that the reconcile retries is finished for the specified name.

func (*EventHandler) Generic

func (*EventHandler) RequestReconcile

func (e *EventHandler) RequestReconcile(rateLimiterName string, name types.NamespacedName, failureLimit *int) bool

RequestReconcile requeues a reconciliation request for the specified name. Returns true if the reconcile request was successfully queued.

func (*EventHandler) Update

type Option

type Option func(eventHandler *EventHandler)

Option configures an option for the EventHandler.

func WithLogger

func WithLogger(logger logging.Logger) Option

WithLogger configures the logger for the EventHandler.

Jump to

Keyboard shortcuts

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