Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockNotificationListener ¶
type MockNotificationListener struct {
// contains filtered or unexported fields
}
MockNotificationListener is a mock implementation of a notification listener for secret rotation events.
func NewMockListener ¶
func NewMockListener(events []events.SecretRotationEvent, emitInterval time.Duration, eventChan chan events.SecretRotationEvent) *MockNotificationListener
NewMockListener creates a new MockNotificationListener with specified events, emit interval, and event channel.
func (*MockNotificationListener) Start ¶
func (m *MockNotificationListener) Start() error
Start initiates the emission of events from the MockNotificationListener. Returns an error if the listener has been stopped.
func (*MockNotificationListener) Stop ¶
func (m *MockNotificationListener) Stop() error
Stop signals the MockNotificationListener to stop emitting events.
type Provider ¶
type Provider struct{}
func (*Provider) CreateListener ¶
func (p *Provider) CreateListener(ctx context.Context, source *v1alpha1.NotificationSource, client client.Client, eventChan chan events.SecretRotationEvent, logger logr.Logger) (schema.Listener, error)
CreateListener creates a mock listener for simulated secret rotation events.
Click to show internal directories.
Click to hide internal directories.