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) RunOnDelete ¶
RunOnDelete runs OnDelete on all handlers.
func (Handlers) RunOnUpdate ¶
RunOnUpdate runs OnUpdate on all handlers.
Click to show internal directories.
Click to hide internal directories.