notifications

package
v1.10.3 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Overview

Package notifications is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockNotifier

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

MockNotifier is a mock of Notifier interface.

func NewMockNotifier

func NewMockNotifier(ctrl *gomock.Controller) *MockNotifier

NewMockNotifier creates a new mock instance.

func (*MockNotifier) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockNotifier) Enabled

func (m *MockNotifier) Enabled() bool

Enabled mocks base method.

func (*MockNotifier) Notify

func (m *MockNotifier) Notify(event events.Event, radixBatch *v1.RadixBatch, jopbStatuses []v1.RadixBatchJobStatus, errChan chan error) chan struct{}

Notify mocks base method.

func (*MockNotifier) String

func (m *MockNotifier) String() string

String mocks base method.

type MockNotifierMockRecorder

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

MockNotifierMockRecorder is the mock recorder for MockNotifier.

func (*MockNotifierMockRecorder) Enabled

func (mr *MockNotifierMockRecorder) Enabled() *gomock.Call

Enabled indicates an expected call of Enabled.

func (*MockNotifierMockRecorder) Notify

func (mr *MockNotifierMockRecorder) Notify(event, radixBatch, jopbStatuses, errChan interface{}) *gomock.Call

Notify indicates an expected call of Notify.

func (*MockNotifierMockRecorder) String

func (mr *MockNotifierMockRecorder) String() *gomock.Call

String indicates an expected call of String.

type Notifier

type Notifier interface {
	// Notify Send notification
	Notify(event events.Event, radixBatch *radixv1.RadixBatch, jopbStatuses []radixv1.RadixBatchJobStatus, errChan chan error) chan struct{}
	// Enabled The notifier is enabled and can be used
	Enabled() bool
	// String Describes the notifier
	String() string
}

Notifier to notify about RadixBatch events and changes

func NewWebhookNotifier

func NewWebhookNotifier(radixDeployJobComponent *radixv1.RadixDeployJobComponent) Notifier

type Watcher

type Watcher struct {
	Stop chan struct{}
	// contains filtered or unexported fields
}

func NewRadixBatchWatcher

func NewRadixBatchWatcher(radixClient radixclient.Interface, namespace string, notifier Notifier) (*Watcher, error)

NewRadixBatchWatcher New RadixBatch watcher, notifying on adding and changing of RadixBatches and their jobs

func NullRadixBatchWatcher

func NullRadixBatchWatcher() *Watcher

NullRadixBatchWatcher The void watcher

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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