Documentation ¶
Overview ¶
Package alert is a generated GoMock package.
Package alert is a generated GoMock package.
Index ¶
- func GetAlertSecretName(alertName string) string
- func GetSlackConfigSecretKeyName(receiverName string) string
- type AlertSyncer
- type AlertSyncerFactory
- type AlertSyncerFactoryFunc
- type MockAlertSyncer
- type MockAlertSyncerFactory
- type MockAlertSyncerFactoryMockRecorder
- type MockAlertSyncerMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAlertSecretName ¶
GetAlertSecretName returns name of secret used to store configuration for the RadixAlert
func GetSlackConfigSecretKeyName ¶
GetSlackConfigSecretKeyName returns the secret key name to store Slack webhook URL for a given receiver
Types ¶
type AlertSyncer ¶
type AlertSyncer interface {
OnSync() error
}
AlertSyncer defines interface for syncing a RadixAlert
func New ¶
func New(kubeclient kubernetes.Interface, kubeutil *kube.Kube, radixclient radixclient.Interface, prometheusperatorclient monitoring.Interface, radixAlert *radixv1.RadixAlert) AlertSyncer
New creates a new alert syncer
type AlertSyncerFactory ¶
type AlertSyncerFactory interface { CreateAlertSyncer( kubeclient kubernetes.Interface, kubeutil *kube.Kube, radixclient radixclient.Interface, prometheusperatorclient monitoring.Interface, radixAlert *v1.RadixAlert) AlertSyncer }
AlertSyncerFactory defines a factory to create a DeploymentSyncer
type AlertSyncerFactoryFunc ¶
type AlertSyncerFactoryFunc func( kubeclient kubernetes.Interface, kubeutil *kube.Kube, radixclient radixclient.Interface, prometheusperatorclient monitoring.Interface, radixAlert *v1.RadixAlert, ) AlertSyncer
AlertSyncerFactoryFunc is an adapter that can be used to convert a function into a DeploymentSyncerFactory
func (AlertSyncerFactoryFunc) CreateAlertSyncer ¶
func (f AlertSyncerFactoryFunc) CreateAlertSyncer( kubeclient kubernetes.Interface, kubeutil *kube.Kube, radixclient radixclient.Interface, prometheusperatorclient monitoring.Interface, radixAlert *v1.RadixAlert, ) AlertSyncer
type MockAlertSyncer ¶
type MockAlertSyncer struct {
// contains filtered or unexported fields
}
MockAlertSyncer is a mock of AlertSyncer interface.
func NewMockAlertSyncer ¶
func NewMockAlertSyncer(ctrl *gomock.Controller) *MockAlertSyncer
NewMockAlertSyncer creates a new mock instance.
func (*MockAlertSyncer) EXPECT ¶
func (m *MockAlertSyncer) EXPECT() *MockAlertSyncerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockAlertSyncerFactory ¶
type MockAlertSyncerFactory struct {
// contains filtered or unexported fields
}
MockAlertSyncerFactory is a mock of AlertSyncerFactory interface.
func NewMockAlertSyncerFactory ¶
func NewMockAlertSyncerFactory(ctrl *gomock.Controller) *MockAlertSyncerFactory
NewMockAlertSyncerFactory creates a new mock instance.
func (*MockAlertSyncerFactory) CreateAlertSyncer ¶
func (m *MockAlertSyncerFactory) CreateAlertSyncer(kubeclient kubernetes.Interface, kubeutil *kube.Kube, radixclient versioned.Interface, prometheusperatorclient versioned0.Interface, radixAlert *v1.RadixAlert) AlertSyncer
CreateAlertSyncer mocks base method.
func (*MockAlertSyncerFactory) EXPECT ¶
func (m *MockAlertSyncerFactory) EXPECT() *MockAlertSyncerFactoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockAlertSyncerFactoryMockRecorder ¶
type MockAlertSyncerFactoryMockRecorder struct {
// contains filtered or unexported fields
}
MockAlertSyncerFactoryMockRecorder is the mock recorder for MockAlertSyncerFactory.
func (*MockAlertSyncerFactoryMockRecorder) CreateAlertSyncer ¶
func (mr *MockAlertSyncerFactoryMockRecorder) CreateAlertSyncer(kubeclient, kubeutil, radixclient, prometheusperatorclient, radixAlert interface{}) *gomock.Call
CreateAlertSyncer indicates an expected call of CreateAlertSyncer.
type MockAlertSyncerMockRecorder ¶
type MockAlertSyncerMockRecorder struct {
// contains filtered or unexported fields
}
MockAlertSyncerMockRecorder is the mock recorder for MockAlertSyncer.
func (*MockAlertSyncerMockRecorder) OnSync ¶
func (mr *MockAlertSyncerMockRecorder) OnSync() *gomock.Call
OnSync indicates an expected call of OnSync.