handlers

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler interface {
	// OnAdd is called when a new logical cluster is added.
	OnAdd(obj client.Object)

	// OnUpdate is called when a logical cluster is updated.
	OnUpdate(oldObj, newObj client.Object)

	// OnDelete is called when a logical cluster is deleted.
	OnDelete(obj client.Object)
}

Handler are lifecycle hook for logical clusters managed by a provider and presented as apibindings via APIExport virtual workspace. It allows to react to addition, update and deletion of apibindings (consumers) in the provider. Handlers should be implemented with care to avoid blocking the main reconciliation loop.

type Handlers

type Handlers []Handler

Handlers is a collection of Handler.

func (Handlers) RunOnAdd

func (h Handlers) RunOnAdd(obj client.Object)

RunOnAdd runs OnAdd on all handlers.

func (Handlers) RunOnDelete

func (h Handlers) RunOnDelete(obj client.Object)

RunOnDelete runs OnDelete on all handlers.

func (Handlers) RunOnUpdate

func (h Handlers) RunOnUpdate(oldObj, newObj client.Object)

RunOnUpdate runs OnUpdate on all handlers.

Jump to

Keyboard shortcuts

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