mock

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: 10 Imported by: 0

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.

Jump to

Keyboard shortcuts

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