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 ¶
func (m *MockNotifier) EXPECT() *MockNotifierMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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.
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