listener

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

Manager manages event listeners for secret rotation events. It coordinates the creation, starting, and stopping of listeners.

func NewListenerManager

func NewListenerManager(ctx context.Context, eventChan chan events.SecretRotationEvent, client client.Client, logger logr.Logger) *Manager

func (*Manager) ManageListeners

func (lm *Manager) ManageListeners(manifestName types.NamespacedName, sources []esov1alpha1.NotificationSource) error

ManageListeners manages the active listeners based on the provided notification sources. It starts new listeners and stops unwanted ones.

func (*Manager) StopAll

func (lm *Manager) StopAll() error

StopAll stops all active listeners managed by the Manager and removes them from the listeners map.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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