Documentation ¶
Index ¶
- type AlertService
- type AlertService_CreateAlerts_Call
- func (_c *AlertService_CreateAlerts_Call) Return(_a0 []alert.Alert, _a1 error) *AlertService_CreateAlerts_Call
- func (_c *AlertService_CreateAlerts_Call) Run(run func(ctx context.Context, providerType string, providerID uint64, ...)) *AlertService_CreateAlerts_Call
- func (_c *AlertService_CreateAlerts_Call) RunAndReturn(...) *AlertService_CreateAlerts_Call
- type AlertService_Expecter
- type AlertService_List_Call
- func (_c *AlertService_List_Call) Return(_a0 []alert.Alert, _a1 error) *AlertService_List_Call
- func (_c *AlertService_List_Call) Run(run func(_a0 context.Context, _a1 alert.Filter)) *AlertService_List_Call
- func (_c *AlertService_List_Call) RunAndReturn(run func(context.Context, alert.Filter) ([]alert.Alert, error)) *AlertService_List_Call
- type NamespaceService
- func (_m *NamespaceService) Create(_a0 context.Context, _a1 *namespace.Namespace) error
- func (_m *NamespaceService) Delete(_a0 context.Context, _a1 uint64) error
- func (_m *NamespaceService) EXPECT() *NamespaceService_Expecter
- func (_m *NamespaceService) Get(_a0 context.Context, _a1 uint64) (*namespace.Namespace, error)
- func (_m *NamespaceService) List(_a0 context.Context) ([]namespace.Namespace, error)
- func (_m *NamespaceService) Update(_a0 context.Context, _a1 *namespace.Namespace) error
- type NamespaceService_Create_Call
- func (_c *NamespaceService_Create_Call) Return(_a0 error) *NamespaceService_Create_Call
- func (_c *NamespaceService_Create_Call) Run(run func(_a0 context.Context, _a1 *namespace.Namespace)) *NamespaceService_Create_Call
- func (_c *NamespaceService_Create_Call) RunAndReturn(run func(context.Context, *namespace.Namespace) error) *NamespaceService_Create_Call
- type NamespaceService_Delete_Call
- func (_c *NamespaceService_Delete_Call) Return(_a0 error) *NamespaceService_Delete_Call
- func (_c *NamespaceService_Delete_Call) Run(run func(_a0 context.Context, _a1 uint64)) *NamespaceService_Delete_Call
- func (_c *NamespaceService_Delete_Call) RunAndReturn(run func(context.Context, uint64) error) *NamespaceService_Delete_Call
- type NamespaceService_Expecter
- func (_e *NamespaceService_Expecter) Create(_a0 interface{}, _a1 interface{}) *NamespaceService_Create_Call
- func (_e *NamespaceService_Expecter) Delete(_a0 interface{}, _a1 interface{}) *NamespaceService_Delete_Call
- func (_e *NamespaceService_Expecter) Get(_a0 interface{}, _a1 interface{}) *NamespaceService_Get_Call
- func (_e *NamespaceService_Expecter) List(_a0 interface{}) *NamespaceService_List_Call
- func (_e *NamespaceService_Expecter) Update(_a0 interface{}, _a1 interface{}) *NamespaceService_Update_Call
- type NamespaceService_Get_Call
- func (_c *NamespaceService_Get_Call) Return(_a0 *namespace.Namespace, _a1 error) *NamespaceService_Get_Call
- func (_c *NamespaceService_Get_Call) Run(run func(_a0 context.Context, _a1 uint64)) *NamespaceService_Get_Call
- func (_c *NamespaceService_Get_Call) RunAndReturn(run func(context.Context, uint64) (*namespace.Namespace, error)) *NamespaceService_Get_Call
- type NamespaceService_List_Call
- func (_c *NamespaceService_List_Call) Return(_a0 []namespace.Namespace, _a1 error) *NamespaceService_List_Call
- func (_c *NamespaceService_List_Call) Run(run func(_a0 context.Context)) *NamespaceService_List_Call
- func (_c *NamespaceService_List_Call) RunAndReturn(run func(context.Context) ([]namespace.Namespace, error)) *NamespaceService_List_Call
- type NamespaceService_Update_Call
- func (_c *NamespaceService_Update_Call) Return(_a0 error) *NamespaceService_Update_Call
- func (_c *NamespaceService_Update_Call) Run(run func(_a0 context.Context, _a1 *namespace.Namespace)) *NamespaceService_Update_Call
- func (_c *NamespaceService_Update_Call) RunAndReturn(run func(context.Context, *namespace.Namespace) error) *NamespaceService_Update_Call
- type NotificationService
- func (_m *NotificationService) CheckIdempotency(ctx context.Context, scope string, key string) (string, error)
- func (_m *NotificationService) Dispatch(_a0 context.Context, _a1 []notification.Notification, _a2 string) ([]string, error)
- func (_m *NotificationService) EXPECT() *NotificationService_Expecter
- func (_m *NotificationService) InsertIdempotency(ctx context.Context, scope string, key string, notificationID string) error
- func (_m *NotificationService) List(ctx context.Context, flt notification.Filter) ([]notification.Notification, error)
- func (_m *NotificationService) ListNotificationMessages(ctx context.Context, notificationID string) ([]notification.Message, error)
- func (_m *NotificationService) RemoveIdempotencies(ctx context.Context, TTL time.Duration) error
- type NotificationService_CheckIdempotency_Call
- func (_c *NotificationService_CheckIdempotency_Call) Return(_a0 string, _a1 error) *NotificationService_CheckIdempotency_Call
- func (_c *NotificationService_CheckIdempotency_Call) Run(run func(ctx context.Context, scope string, key string)) *NotificationService_CheckIdempotency_Call
- func (_c *NotificationService_CheckIdempotency_Call) RunAndReturn(run func(context.Context, string, string) (string, error)) *NotificationService_CheckIdempotency_Call
- type NotificationService_Dispatch_Call
- func (_c *NotificationService_Dispatch_Call) Return(_a0 []string, _a1 error) *NotificationService_Dispatch_Call
- func (_c *NotificationService_Dispatch_Call) Run(run func(_a0 context.Context, _a1 []notification.Notification, _a2 string)) *NotificationService_Dispatch_Call
- func (_c *NotificationService_Dispatch_Call) RunAndReturn(...) *NotificationService_Dispatch_Call
- type NotificationService_Expecter
- func (_e *NotificationService_Expecter) CheckIdempotency(ctx interface{}, scope interface{}, key interface{}) *NotificationService_CheckIdempotency_Call
- func (_e *NotificationService_Expecter) Dispatch(_a0 interface{}, _a1 interface{}, _a2 interface{}) *NotificationService_Dispatch_Call
- func (_e *NotificationService_Expecter) InsertIdempotency(ctx interface{}, scope interface{}, key interface{}, ...) *NotificationService_InsertIdempotency_Call
- func (_e *NotificationService_Expecter) List(ctx interface{}, flt interface{}) *NotificationService_List_Call
- func (_e *NotificationService_Expecter) ListNotificationMessages(ctx interface{}, notificationID interface{}) *NotificationService_ListNotificationMessages_Call
- func (_e *NotificationService_Expecter) RemoveIdempotencies(ctx interface{}, TTL interface{}) *NotificationService_RemoveIdempotencies_Call
- type NotificationService_InsertIdempotency_Call
- func (_c *NotificationService_InsertIdempotency_Call) Return(_a0 error) *NotificationService_InsertIdempotency_Call
- func (_c *NotificationService_InsertIdempotency_Call) Run(run func(ctx context.Context, scope string, key string, notificationID string)) *NotificationService_InsertIdempotency_Call
- func (_c *NotificationService_InsertIdempotency_Call) RunAndReturn(run func(context.Context, string, string, string) error) *NotificationService_InsertIdempotency_Call
- type NotificationService_ListNotificationMessages_Call
- func (_c *NotificationService_ListNotificationMessages_Call) Return(_a0 []notification.Message, _a1 error) *NotificationService_ListNotificationMessages_Call
- func (_c *NotificationService_ListNotificationMessages_Call) Run(run func(ctx context.Context, notificationID string)) *NotificationService_ListNotificationMessages_Call
- func (_c *NotificationService_ListNotificationMessages_Call) RunAndReturn(run func(context.Context, string) ([]notification.Message, error)) *NotificationService_ListNotificationMessages_Call
- type NotificationService_List_Call
- func (_c *NotificationService_List_Call) Return(_a0 []notification.Notification, _a1 error) *NotificationService_List_Call
- func (_c *NotificationService_List_Call) Run(run func(ctx context.Context, flt notification.Filter)) *NotificationService_List_Call
- func (_c *NotificationService_List_Call) RunAndReturn(...) *NotificationService_List_Call
- type NotificationService_RemoveIdempotencies_Call
- func (_c *NotificationService_RemoveIdempotencies_Call) Return(_a0 error) *NotificationService_RemoveIdempotencies_Call
- func (_c *NotificationService_RemoveIdempotencies_Call) Run(run func(ctx context.Context, TTL time.Duration)) *NotificationService_RemoveIdempotencies_Call
- func (_c *NotificationService_RemoveIdempotencies_Call) RunAndReturn(run func(context.Context, time.Duration) error) *NotificationService_RemoveIdempotencies_Call
- type ProviderService
- func (_m *ProviderService) Create(_a0 context.Context, _a1 *provider.Provider) error
- func (_m *ProviderService) Delete(_a0 context.Context, _a1 uint64) error
- func (_m *ProviderService) EXPECT() *ProviderService_Expecter
- func (_m *ProviderService) Get(_a0 context.Context, _a1 uint64) (*provider.Provider, error)
- func (_m *ProviderService) List(_a0 context.Context, _a1 provider.Filter) ([]provider.Provider, error)
- func (_m *ProviderService) Update(_a0 context.Context, _a1 *provider.Provider) error
- type ProviderService_Create_Call
- func (_c *ProviderService_Create_Call) Return(_a0 error) *ProviderService_Create_Call
- func (_c *ProviderService_Create_Call) Run(run func(_a0 context.Context, _a1 *provider.Provider)) *ProviderService_Create_Call
- func (_c *ProviderService_Create_Call) RunAndReturn(run func(context.Context, *provider.Provider) error) *ProviderService_Create_Call
- type ProviderService_Delete_Call
- func (_c *ProviderService_Delete_Call) Return(_a0 error) *ProviderService_Delete_Call
- func (_c *ProviderService_Delete_Call) Run(run func(_a0 context.Context, _a1 uint64)) *ProviderService_Delete_Call
- func (_c *ProviderService_Delete_Call) RunAndReturn(run func(context.Context, uint64) error) *ProviderService_Delete_Call
- type ProviderService_Expecter
- func (_e *ProviderService_Expecter) Create(_a0 interface{}, _a1 interface{}) *ProviderService_Create_Call
- func (_e *ProviderService_Expecter) Delete(_a0 interface{}, _a1 interface{}) *ProviderService_Delete_Call
- func (_e *ProviderService_Expecter) Get(_a0 interface{}, _a1 interface{}) *ProviderService_Get_Call
- func (_e *ProviderService_Expecter) List(_a0 interface{}, _a1 interface{}) *ProviderService_List_Call
- func (_e *ProviderService_Expecter) Update(_a0 interface{}, _a1 interface{}) *ProviderService_Update_Call
- type ProviderService_Get_Call
- func (_c *ProviderService_Get_Call) Return(_a0 *provider.Provider, _a1 error) *ProviderService_Get_Call
- func (_c *ProviderService_Get_Call) Run(run func(_a0 context.Context, _a1 uint64)) *ProviderService_Get_Call
- func (_c *ProviderService_Get_Call) RunAndReturn(run func(context.Context, uint64) (*provider.Provider, error)) *ProviderService_Get_Call
- type ProviderService_List_Call
- func (_c *ProviderService_List_Call) Return(_a0 []provider.Provider, _a1 error) *ProviderService_List_Call
- func (_c *ProviderService_List_Call) Run(run func(_a0 context.Context, _a1 provider.Filter)) *ProviderService_List_Call
- func (_c *ProviderService_List_Call) RunAndReturn(run func(context.Context, provider.Filter) ([]provider.Provider, error)) *ProviderService_List_Call
- type ProviderService_Update_Call
- func (_c *ProviderService_Update_Call) Return(_a0 error) *ProviderService_Update_Call
- func (_c *ProviderService_Update_Call) Run(run func(_a0 context.Context, _a1 *provider.Provider)) *ProviderService_Update_Call
- func (_c *ProviderService_Update_Call) RunAndReturn(run func(context.Context, *provider.Provider) error) *ProviderService_Update_Call
- type ReceiverService
- func (_m *ReceiverService) Create(ctx context.Context, rcv *receiver.Receiver) error
- func (_m *ReceiverService) Delete(ctx context.Context, id uint64) error
- func (_m *ReceiverService) EXPECT() *ReceiverService_Expecter
- func (_m *ReceiverService) Get(ctx context.Context, id uint64, gopts ...receiver.GetOption) (*receiver.Receiver, error)
- func (_m *ReceiverService) List(ctx context.Context, flt receiver.Filter) ([]receiver.Receiver, error)
- func (_m *ReceiverService) Update(ctx context.Context, rcv *receiver.Receiver) error
- type ReceiverService_Create_Call
- func (_c *ReceiverService_Create_Call) Return(_a0 error) *ReceiverService_Create_Call
- func (_c *ReceiverService_Create_Call) Run(run func(ctx context.Context, rcv *receiver.Receiver)) *ReceiverService_Create_Call
- func (_c *ReceiverService_Create_Call) RunAndReturn(run func(context.Context, *receiver.Receiver) error) *ReceiverService_Create_Call
- type ReceiverService_Delete_Call
- func (_c *ReceiverService_Delete_Call) Return(_a0 error) *ReceiverService_Delete_Call
- func (_c *ReceiverService_Delete_Call) Run(run func(ctx context.Context, id uint64)) *ReceiverService_Delete_Call
- func (_c *ReceiverService_Delete_Call) RunAndReturn(run func(context.Context, uint64) error) *ReceiverService_Delete_Call
- type ReceiverService_Expecter
- func (_e *ReceiverService_Expecter) Create(ctx interface{}, rcv interface{}) *ReceiverService_Create_Call
- func (_e *ReceiverService_Expecter) Delete(ctx interface{}, id interface{}) *ReceiverService_Delete_Call
- func (_e *ReceiverService_Expecter) Get(ctx interface{}, id interface{}, gopts ...interface{}) *ReceiverService_Get_Call
- func (_e *ReceiverService_Expecter) List(ctx interface{}, flt interface{}) *ReceiverService_List_Call
- func (_e *ReceiverService_Expecter) Update(ctx interface{}, rcv interface{}) *ReceiverService_Update_Call
- type ReceiverService_Get_Call
- func (_c *ReceiverService_Get_Call) Return(_a0 *receiver.Receiver, _a1 error) *ReceiverService_Get_Call
- func (_c *ReceiverService_Get_Call) Run(run func(ctx context.Context, id uint64, gopts ...receiver.GetOption)) *ReceiverService_Get_Call
- func (_c *ReceiverService_Get_Call) RunAndReturn(...) *ReceiverService_Get_Call
- type ReceiverService_List_Call
- func (_c *ReceiverService_List_Call) Return(_a0 []receiver.Receiver, _a1 error) *ReceiverService_List_Call
- func (_c *ReceiverService_List_Call) Run(run func(ctx context.Context, flt receiver.Filter)) *ReceiverService_List_Call
- func (_c *ReceiverService_List_Call) RunAndReturn(run func(context.Context, receiver.Filter) ([]receiver.Receiver, error)) *ReceiverService_List_Call
- type ReceiverService_Update_Call
- func (_c *ReceiverService_Update_Call) Return(_a0 error) *ReceiverService_Update_Call
- func (_c *ReceiverService_Update_Call) Run(run func(ctx context.Context, rcv *receiver.Receiver)) *ReceiverService_Update_Call
- func (_c *ReceiverService_Update_Call) RunAndReturn(run func(context.Context, *receiver.Receiver) error) *ReceiverService_Update_Call
- type RuleService
- type RuleService_Expecter
- type RuleService_List_Call
- func (_c *RuleService_List_Call) Return(_a0 []rule.Rule, _a1 error) *RuleService_List_Call
- func (_c *RuleService_List_Call) Run(run func(_a0 context.Context, _a1 rule.Filter)) *RuleService_List_Call
- func (_c *RuleService_List_Call) RunAndReturn(run func(context.Context, rule.Filter) ([]rule.Rule, error)) *RuleService_List_Call
- type RuleService_Upsert_Call
- func (_c *RuleService_Upsert_Call) Return(_a0 error) *RuleService_Upsert_Call
- func (_c *RuleService_Upsert_Call) Run(run func(_a0 context.Context, _a1 *rule.Rule)) *RuleService_Upsert_Call
- func (_c *RuleService_Upsert_Call) RunAndReturn(run func(context.Context, *rule.Rule) error) *RuleService_Upsert_Call
- type SilenceService
- func (_m *SilenceService) Create(ctx context.Context, sil silence.Silence) (string, error)
- func (_m *SilenceService) Delete(ctx context.Context, id string) error
- func (_m *SilenceService) EXPECT() *SilenceService_Expecter
- func (_m *SilenceService) Get(ctx context.Context, id string) (silence.Silence, error)
- func (_m *SilenceService) List(ctx context.Context, filter silence.Filter) ([]silence.Silence, error)
- type SilenceService_Create_Call
- func (_c *SilenceService_Create_Call) Return(_a0 string, _a1 error) *SilenceService_Create_Call
- func (_c *SilenceService_Create_Call) Run(run func(ctx context.Context, sil silence.Silence)) *SilenceService_Create_Call
- func (_c *SilenceService_Create_Call) RunAndReturn(run func(context.Context, silence.Silence) (string, error)) *SilenceService_Create_Call
- type SilenceService_Delete_Call
- func (_c *SilenceService_Delete_Call) Return(_a0 error) *SilenceService_Delete_Call
- func (_c *SilenceService_Delete_Call) Run(run func(ctx context.Context, id string)) *SilenceService_Delete_Call
- func (_c *SilenceService_Delete_Call) RunAndReturn(run func(context.Context, string) error) *SilenceService_Delete_Call
- type SilenceService_Expecter
- func (_e *SilenceService_Expecter) Create(ctx interface{}, sil interface{}) *SilenceService_Create_Call
- func (_e *SilenceService_Expecter) Delete(ctx interface{}, id interface{}) *SilenceService_Delete_Call
- func (_e *SilenceService_Expecter) Get(ctx interface{}, id interface{}) *SilenceService_Get_Call
- func (_e *SilenceService_Expecter) List(ctx interface{}, filter interface{}) *SilenceService_List_Call
- type SilenceService_Get_Call
- func (_c *SilenceService_Get_Call) Return(_a0 silence.Silence, _a1 error) *SilenceService_Get_Call
- func (_c *SilenceService_Get_Call) Run(run func(ctx context.Context, id string)) *SilenceService_Get_Call
- func (_c *SilenceService_Get_Call) RunAndReturn(run func(context.Context, string) (silence.Silence, error)) *SilenceService_Get_Call
- type SilenceService_List_Call
- func (_c *SilenceService_List_Call) Return(_a0 []silence.Silence, _a1 error) *SilenceService_List_Call
- func (_c *SilenceService_List_Call) Run(run func(ctx context.Context, filter silence.Filter)) *SilenceService_List_Call
- func (_c *SilenceService_List_Call) RunAndReturn(run func(context.Context, silence.Filter) ([]silence.Silence, error)) *SilenceService_List_Call
- type SubscriptionService
- func (_m *SubscriptionService) Create(_a0 context.Context, _a1 *subscription.Subscription) error
- func (_m *SubscriptionService) CreateV2(_a0 context.Context, _a1 *subscription.Subscription) error
- func (_m *SubscriptionService) Delete(_a0 context.Context, _a1 uint64) error
- func (_m *SubscriptionService) DeleteV2(_a0 context.Context, _a1 uint64) error
- func (_m *SubscriptionService) EXPECT() *SubscriptionService_Expecter
- func (_m *SubscriptionService) Get(_a0 context.Context, _a1 uint64) (*subscription.Subscription, error)
- func (_m *SubscriptionService) GetV2(_a0 context.Context, _a1 uint64) (*subscription.Subscription, error)
- func (_m *SubscriptionService) List(_a0 context.Context, _a1 subscription.Filter) ([]subscription.Subscription, error)
- func (_m *SubscriptionService) ListV2(_a0 context.Context, _a1 subscription.Filter) ([]subscription.Subscription, error)
- func (_m *SubscriptionService) Update(_a0 context.Context, _a1 *subscription.Subscription) error
- func (_m *SubscriptionService) UpdateV2(_a0 context.Context, _a1 *subscription.Subscription) error
- type SubscriptionService_CreateV2_Call
- func (_c *SubscriptionService_CreateV2_Call) Return(_a0 error) *SubscriptionService_CreateV2_Call
- func (_c *SubscriptionService_CreateV2_Call) Run(run func(_a0 context.Context, _a1 *subscription.Subscription)) *SubscriptionService_CreateV2_Call
- func (_c *SubscriptionService_CreateV2_Call) RunAndReturn(run func(context.Context, *subscription.Subscription) error) *SubscriptionService_CreateV2_Call
- type SubscriptionService_Create_Call
- func (_c *SubscriptionService_Create_Call) Return(_a0 error) *SubscriptionService_Create_Call
- func (_c *SubscriptionService_Create_Call) Run(run func(_a0 context.Context, _a1 *subscription.Subscription)) *SubscriptionService_Create_Call
- func (_c *SubscriptionService_Create_Call) RunAndReturn(run func(context.Context, *subscription.Subscription) error) *SubscriptionService_Create_Call
- type SubscriptionService_DeleteV2_Call
- func (_c *SubscriptionService_DeleteV2_Call) Return(_a0 error) *SubscriptionService_DeleteV2_Call
- func (_c *SubscriptionService_DeleteV2_Call) Run(run func(_a0 context.Context, _a1 uint64)) *SubscriptionService_DeleteV2_Call
- func (_c *SubscriptionService_DeleteV2_Call) RunAndReturn(run func(context.Context, uint64) error) *SubscriptionService_DeleteV2_Call
- type SubscriptionService_Delete_Call
- func (_c *SubscriptionService_Delete_Call) Return(_a0 error) *SubscriptionService_Delete_Call
- func (_c *SubscriptionService_Delete_Call) Run(run func(_a0 context.Context, _a1 uint64)) *SubscriptionService_Delete_Call
- func (_c *SubscriptionService_Delete_Call) RunAndReturn(run func(context.Context, uint64) error) *SubscriptionService_Delete_Call
- type SubscriptionService_Expecter
- func (_e *SubscriptionService_Expecter) Create(_a0 interface{}, _a1 interface{}) *SubscriptionService_Create_Call
- func (_e *SubscriptionService_Expecter) CreateV2(_a0 interface{}, _a1 interface{}) *SubscriptionService_CreateV2_Call
- func (_e *SubscriptionService_Expecter) Delete(_a0 interface{}, _a1 interface{}) *SubscriptionService_Delete_Call
- func (_e *SubscriptionService_Expecter) DeleteV2(_a0 interface{}, _a1 interface{}) *SubscriptionService_DeleteV2_Call
- func (_e *SubscriptionService_Expecter) Get(_a0 interface{}, _a1 interface{}) *SubscriptionService_Get_Call
- func (_e *SubscriptionService_Expecter) GetV2(_a0 interface{}, _a1 interface{}) *SubscriptionService_GetV2_Call
- func (_e *SubscriptionService_Expecter) List(_a0 interface{}, _a1 interface{}) *SubscriptionService_List_Call
- func (_e *SubscriptionService_Expecter) ListV2(_a0 interface{}, _a1 interface{}) *SubscriptionService_ListV2_Call
- func (_e *SubscriptionService_Expecter) Update(_a0 interface{}, _a1 interface{}) *SubscriptionService_Update_Call
- func (_e *SubscriptionService_Expecter) UpdateV2(_a0 interface{}, _a1 interface{}) *SubscriptionService_UpdateV2_Call
- type SubscriptionService_GetV2_Call
- func (_c *SubscriptionService_GetV2_Call) Return(_a0 *subscription.Subscription, _a1 error) *SubscriptionService_GetV2_Call
- func (_c *SubscriptionService_GetV2_Call) Run(run func(_a0 context.Context, _a1 uint64)) *SubscriptionService_GetV2_Call
- func (_c *SubscriptionService_GetV2_Call) RunAndReturn(run func(context.Context, uint64) (*subscription.Subscription, error)) *SubscriptionService_GetV2_Call
- type SubscriptionService_Get_Call
- func (_c *SubscriptionService_Get_Call) Return(_a0 *subscription.Subscription, _a1 error) *SubscriptionService_Get_Call
- func (_c *SubscriptionService_Get_Call) Run(run func(_a0 context.Context, _a1 uint64)) *SubscriptionService_Get_Call
- func (_c *SubscriptionService_Get_Call) RunAndReturn(run func(context.Context, uint64) (*subscription.Subscription, error)) *SubscriptionService_Get_Call
- type SubscriptionService_ListV2_Call
- func (_c *SubscriptionService_ListV2_Call) Return(_a0 []subscription.Subscription, _a1 error) *SubscriptionService_ListV2_Call
- func (_c *SubscriptionService_ListV2_Call) Run(run func(_a0 context.Context, _a1 subscription.Filter)) *SubscriptionService_ListV2_Call
- func (_c *SubscriptionService_ListV2_Call) RunAndReturn(...) *SubscriptionService_ListV2_Call
- type SubscriptionService_List_Call
- func (_c *SubscriptionService_List_Call) Return(_a0 []subscription.Subscription, _a1 error) *SubscriptionService_List_Call
- func (_c *SubscriptionService_List_Call) Run(run func(_a0 context.Context, _a1 subscription.Filter)) *SubscriptionService_List_Call
- func (_c *SubscriptionService_List_Call) RunAndReturn(...) *SubscriptionService_List_Call
- type SubscriptionService_UpdateV2_Call
- func (_c *SubscriptionService_UpdateV2_Call) Return(_a0 error) *SubscriptionService_UpdateV2_Call
- func (_c *SubscriptionService_UpdateV2_Call) Run(run func(_a0 context.Context, _a1 *subscription.Subscription)) *SubscriptionService_UpdateV2_Call
- func (_c *SubscriptionService_UpdateV2_Call) RunAndReturn(run func(context.Context, *subscription.Subscription) error) *SubscriptionService_UpdateV2_Call
- type SubscriptionService_Update_Call
- func (_c *SubscriptionService_Update_Call) Return(_a0 error) *SubscriptionService_Update_Call
- func (_c *SubscriptionService_Update_Call) Run(run func(_a0 context.Context, _a1 *subscription.Subscription)) *SubscriptionService_Update_Call
- func (_c *SubscriptionService_Update_Call) RunAndReturn(run func(context.Context, *subscription.Subscription) error) *SubscriptionService_Update_Call
- type TemplateService
- func (_m *TemplateService) Delete(_a0 context.Context, _a1 string) error
- func (_m *TemplateService) EXPECT() *TemplateService_Expecter
- func (_m *TemplateService) GetByName(_a0 context.Context, _a1 string) (*template.Template, error)
- func (_m *TemplateService) List(_a0 context.Context, _a1 template.Filter) ([]template.Template, error)
- func (_m *TemplateService) Render(_a0 context.Context, _a1 string, _a2 map[string]string) (string, error)
- func (_m *TemplateService) Upsert(_a0 context.Context, _a1 *template.Template) error
- type TemplateService_Delete_Call
- func (_c *TemplateService_Delete_Call) Return(_a0 error) *TemplateService_Delete_Call
- func (_c *TemplateService_Delete_Call) Run(run func(_a0 context.Context, _a1 string)) *TemplateService_Delete_Call
- func (_c *TemplateService_Delete_Call) RunAndReturn(run func(context.Context, string) error) *TemplateService_Delete_Call
- type TemplateService_Expecter
- func (_e *TemplateService_Expecter) Delete(_a0 interface{}, _a1 interface{}) *TemplateService_Delete_Call
- func (_e *TemplateService_Expecter) GetByName(_a0 interface{}, _a1 interface{}) *TemplateService_GetByName_Call
- func (_e *TemplateService_Expecter) List(_a0 interface{}, _a1 interface{}) *TemplateService_List_Call
- func (_e *TemplateService_Expecter) Render(_a0 interface{}, _a1 interface{}, _a2 interface{}) *TemplateService_Render_Call
- func (_e *TemplateService_Expecter) Upsert(_a0 interface{}, _a1 interface{}) *TemplateService_Upsert_Call
- type TemplateService_GetByName_Call
- func (_c *TemplateService_GetByName_Call) Return(_a0 *template.Template, _a1 error) *TemplateService_GetByName_Call
- func (_c *TemplateService_GetByName_Call) Run(run func(_a0 context.Context, _a1 string)) *TemplateService_GetByName_Call
- func (_c *TemplateService_GetByName_Call) RunAndReturn(run func(context.Context, string) (*template.Template, error)) *TemplateService_GetByName_Call
- type TemplateService_List_Call
- func (_c *TemplateService_List_Call) Return(_a0 []template.Template, _a1 error) *TemplateService_List_Call
- func (_c *TemplateService_List_Call) Run(run func(_a0 context.Context, _a1 template.Filter)) *TemplateService_List_Call
- func (_c *TemplateService_List_Call) RunAndReturn(run func(context.Context, template.Filter) ([]template.Template, error)) *TemplateService_List_Call
- type TemplateService_Render_Call
- func (_c *TemplateService_Render_Call) Return(_a0 string, _a1 error) *TemplateService_Render_Call
- func (_c *TemplateService_Render_Call) Run(run func(_a0 context.Context, _a1 string, _a2 map[string]string)) *TemplateService_Render_Call
- func (_c *TemplateService_Render_Call) RunAndReturn(run func(context.Context, string, map[string]string) (string, error)) *TemplateService_Render_Call
- type TemplateService_Upsert_Call
- func (_c *TemplateService_Upsert_Call) Return(_a0 error) *TemplateService_Upsert_Call
- func (_c *TemplateService_Upsert_Call) Run(run func(_a0 context.Context, _a1 *template.Template)) *TemplateService_Upsert_Call
- func (_c *TemplateService_Upsert_Call) RunAndReturn(run func(context.Context, *template.Template) error) *TemplateService_Upsert_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlertService ¶
AlertService is an autogenerated mock type for the AlertService type
func NewAlertService ¶
func NewAlertService(t interface { mock.TestingT Cleanup(func()) }) *AlertService
NewAlertService creates a new instance of AlertService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*AlertService) CreateAlerts ¶
func (_m *AlertService) CreateAlerts(ctx context.Context, providerType string, providerID uint64, namespaceID uint64, body map[string]interface{}) ([]alert.Alert, error)
CreateAlerts provides a mock function with given fields: ctx, providerType, providerID, namespaceID, body
func (*AlertService) EXPECT ¶
func (_m *AlertService) EXPECT() *AlertService_Expecter
type AlertService_CreateAlerts_Call ¶
AlertService_CreateAlerts_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateAlerts'
func (*AlertService_CreateAlerts_Call) Return ¶
func (_c *AlertService_CreateAlerts_Call) Return(_a0 []alert.Alert, _a1 error) *AlertService_CreateAlerts_Call
func (*AlertService_CreateAlerts_Call) Run ¶
func (_c *AlertService_CreateAlerts_Call) Run(run func(ctx context.Context, providerType string, providerID uint64, namespaceID uint64, body map[string]interface{})) *AlertService_CreateAlerts_Call
func (*AlertService_CreateAlerts_Call) RunAndReturn ¶ added in v0.6.1
type AlertService_Expecter ¶
type AlertService_Expecter struct {
// contains filtered or unexported fields
}
func (*AlertService_Expecter) CreateAlerts ¶
func (_e *AlertService_Expecter) CreateAlerts(ctx interface{}, providerType interface{}, providerID interface{}, namespaceID interface{}, body interface{}) *AlertService_CreateAlerts_Call
CreateAlerts is a helper method to define mock.On call
- ctx context.Context
- providerType string
- providerID uint64
- namespaceID uint64
- body map[string]interface{}
func (*AlertService_Expecter) List ¶
func (_e *AlertService_Expecter) List(_a0 interface{}, _a1 interface{}) *AlertService_List_Call
List is a helper method to define mock.On call
- _a0 context.Context
- _a1 alert.Filter
type AlertService_List_Call ¶
AlertService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*AlertService_List_Call) Return ¶
func (_c *AlertService_List_Call) Return(_a0 []alert.Alert, _a1 error) *AlertService_List_Call
func (*AlertService_List_Call) Run ¶
func (_c *AlertService_List_Call) Run(run func(_a0 context.Context, _a1 alert.Filter)) *AlertService_List_Call
func (*AlertService_List_Call) RunAndReturn ¶ added in v0.6.1
func (_c *AlertService_List_Call) RunAndReturn(run func(context.Context, alert.Filter) ([]alert.Alert, error)) *AlertService_List_Call
type NamespaceService ¶
NamespaceService is an autogenerated mock type for the NamespaceService type
func NewNamespaceService ¶
func NewNamespaceService(t interface { mock.TestingT Cleanup(func()) }) *NamespaceService
NewNamespaceService creates a new instance of NamespaceService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*NamespaceService) Delete ¶
func (_m *NamespaceService) Delete(_a0 context.Context, _a1 uint64) error
Delete provides a mock function with given fields: _a0, _a1
func (*NamespaceService) EXPECT ¶
func (_m *NamespaceService) EXPECT() *NamespaceService_Expecter
type NamespaceService_Create_Call ¶
NamespaceService_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*NamespaceService_Create_Call) Return ¶
func (_c *NamespaceService_Create_Call) Return(_a0 error) *NamespaceService_Create_Call
func (*NamespaceService_Create_Call) Run ¶
func (_c *NamespaceService_Create_Call) Run(run func(_a0 context.Context, _a1 *namespace.Namespace)) *NamespaceService_Create_Call
func (*NamespaceService_Create_Call) RunAndReturn ¶ added in v0.6.1
func (_c *NamespaceService_Create_Call) RunAndReturn(run func(context.Context, *namespace.Namespace) error) *NamespaceService_Create_Call
type NamespaceService_Delete_Call ¶
NamespaceService_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*NamespaceService_Delete_Call) Return ¶
func (_c *NamespaceService_Delete_Call) Return(_a0 error) *NamespaceService_Delete_Call
func (*NamespaceService_Delete_Call) Run ¶
func (_c *NamespaceService_Delete_Call) Run(run func(_a0 context.Context, _a1 uint64)) *NamespaceService_Delete_Call
func (*NamespaceService_Delete_Call) RunAndReturn ¶ added in v0.6.1
func (_c *NamespaceService_Delete_Call) RunAndReturn(run func(context.Context, uint64) error) *NamespaceService_Delete_Call
type NamespaceService_Expecter ¶
type NamespaceService_Expecter struct {
// contains filtered or unexported fields
}
func (*NamespaceService_Expecter) Create ¶
func (_e *NamespaceService_Expecter) Create(_a0 interface{}, _a1 interface{}) *NamespaceService_Create_Call
Create is a helper method to define mock.On call
- _a0 context.Context
- _a1 *namespace.Namespace
func (*NamespaceService_Expecter) Delete ¶
func (_e *NamespaceService_Expecter) Delete(_a0 interface{}, _a1 interface{}) *NamespaceService_Delete_Call
Delete is a helper method to define mock.On call
- _a0 context.Context
- _a1 uint64
func (*NamespaceService_Expecter) Get ¶
func (_e *NamespaceService_Expecter) Get(_a0 interface{}, _a1 interface{}) *NamespaceService_Get_Call
Get is a helper method to define mock.On call
- _a0 context.Context
- _a1 uint64
func (*NamespaceService_Expecter) List ¶
func (_e *NamespaceService_Expecter) List(_a0 interface{}) *NamespaceService_List_Call
List is a helper method to define mock.On call
- _a0 context.Context
func (*NamespaceService_Expecter) Update ¶
func (_e *NamespaceService_Expecter) Update(_a0 interface{}, _a1 interface{}) *NamespaceService_Update_Call
Update is a helper method to define mock.On call
- _a0 context.Context
- _a1 *namespace.Namespace
type NamespaceService_Get_Call ¶
NamespaceService_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*NamespaceService_Get_Call) Return ¶
func (_c *NamespaceService_Get_Call) Return(_a0 *namespace.Namespace, _a1 error) *NamespaceService_Get_Call
func (*NamespaceService_Get_Call) Run ¶
func (_c *NamespaceService_Get_Call) Run(run func(_a0 context.Context, _a1 uint64)) *NamespaceService_Get_Call
func (*NamespaceService_Get_Call) RunAndReturn ¶ added in v0.6.1
func (_c *NamespaceService_Get_Call) RunAndReturn(run func(context.Context, uint64) (*namespace.Namespace, error)) *NamespaceService_Get_Call
type NamespaceService_List_Call ¶
NamespaceService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*NamespaceService_List_Call) Return ¶
func (_c *NamespaceService_List_Call) Return(_a0 []namespace.Namespace, _a1 error) *NamespaceService_List_Call
func (*NamespaceService_List_Call) Run ¶
func (_c *NamespaceService_List_Call) Run(run func(_a0 context.Context)) *NamespaceService_List_Call
func (*NamespaceService_List_Call) RunAndReturn ¶ added in v0.6.1
func (_c *NamespaceService_List_Call) RunAndReturn(run func(context.Context) ([]namespace.Namespace, error)) *NamespaceService_List_Call
type NamespaceService_Update_Call ¶
NamespaceService_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*NamespaceService_Update_Call) Return ¶
func (_c *NamespaceService_Update_Call) Return(_a0 error) *NamespaceService_Update_Call
func (*NamespaceService_Update_Call) Run ¶
func (_c *NamespaceService_Update_Call) Run(run func(_a0 context.Context, _a1 *namespace.Namespace)) *NamespaceService_Update_Call
func (*NamespaceService_Update_Call) RunAndReturn ¶ added in v0.6.1
func (_c *NamespaceService_Update_Call) RunAndReturn(run func(context.Context, *namespace.Namespace) error) *NamespaceService_Update_Call
type NotificationService ¶
NotificationService is an autogenerated mock type for the NotificationService type
func NewNotificationService ¶
func NewNotificationService(t interface { mock.TestingT Cleanup(func()) }) *NotificationService
NewNotificationService creates a new instance of NotificationService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*NotificationService) CheckIdempotency ¶ added in v0.7.0
func (_m *NotificationService) CheckIdempotency(ctx context.Context, scope string, key string) (string, error)
CheckIdempotency provides a mock function with given fields: ctx, scope, key
func (*NotificationService) Dispatch ¶
func (_m *NotificationService) Dispatch(_a0 context.Context, _a1 []notification.Notification, _a2 string) ([]string, error)
Dispatch provides a mock function with given fields: _a0, _a1, _a2
func (*NotificationService) EXPECT ¶
func (_m *NotificationService) EXPECT() *NotificationService_Expecter
func (*NotificationService) InsertIdempotency ¶ added in v0.7.0
func (_m *NotificationService) InsertIdempotency(ctx context.Context, scope string, key string, notificationID string) error
InsertIdempotency provides a mock function with given fields: ctx, scope, key, notificationID
func (*NotificationService) List ¶ added in v0.7.4
func (_m *NotificationService) List(ctx context.Context, flt notification.Filter) ([]notification.Notification, error)
List provides a mock function with given fields: ctx, flt
func (*NotificationService) ListNotificationMessages ¶ added in v0.7.3
func (_m *NotificationService) ListNotificationMessages(ctx context.Context, notificationID string) ([]notification.Message, error)
ListNotificationMessages provides a mock function with given fields: ctx, notificationID
func (*NotificationService) RemoveIdempotencies ¶
RemoveIdempotencies provides a mock function with given fields: ctx, TTL
type NotificationService_CheckIdempotency_Call ¶ added in v0.7.0
NotificationService_CheckIdempotency_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckIdempotency'
func (*NotificationService_CheckIdempotency_Call) Return ¶ added in v0.7.0
func (_c *NotificationService_CheckIdempotency_Call) Return(_a0 string, _a1 error) *NotificationService_CheckIdempotency_Call
func (*NotificationService_CheckIdempotency_Call) Run ¶ added in v0.7.0
func (_c *NotificationService_CheckIdempotency_Call) Run(run func(ctx context.Context, scope string, key string)) *NotificationService_CheckIdempotency_Call
func (*NotificationService_CheckIdempotency_Call) RunAndReturn ¶ added in v0.7.0
func (_c *NotificationService_CheckIdempotency_Call) RunAndReturn(run func(context.Context, string, string) (string, error)) *NotificationService_CheckIdempotency_Call
type NotificationService_Dispatch_Call ¶
NotificationService_Dispatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Dispatch'
func (*NotificationService_Dispatch_Call) Return ¶
func (_c *NotificationService_Dispatch_Call) Return(_a0 []string, _a1 error) *NotificationService_Dispatch_Call
func (*NotificationService_Dispatch_Call) Run ¶
func (_c *NotificationService_Dispatch_Call) Run(run func(_a0 context.Context, _a1 []notification.Notification, _a2 string)) *NotificationService_Dispatch_Call
func (*NotificationService_Dispatch_Call) RunAndReturn ¶ added in v0.6.1
func (_c *NotificationService_Dispatch_Call) RunAndReturn(run func(context.Context, []notification.Notification, string) ([]string, error)) *NotificationService_Dispatch_Call
type NotificationService_Expecter ¶
type NotificationService_Expecter struct {
// contains filtered or unexported fields
}
func (*NotificationService_Expecter) CheckIdempotency ¶ added in v0.7.0
func (_e *NotificationService_Expecter) CheckIdempotency(ctx interface{}, scope interface{}, key interface{}) *NotificationService_CheckIdempotency_Call
CheckIdempotency is a helper method to define mock.On call
- ctx context.Context
- scope string
- key string
func (*NotificationService_Expecter) Dispatch ¶
func (_e *NotificationService_Expecter) Dispatch(_a0 interface{}, _a1 interface{}, _a2 interface{}) *NotificationService_Dispatch_Call
Dispatch is a helper method to define mock.On call
- _a0 context.Context
- _a1 []notification.Notification
- _a2 string
func (*NotificationService_Expecter) InsertIdempotency ¶ added in v0.7.0
func (_e *NotificationService_Expecter) InsertIdempotency(ctx interface{}, scope interface{}, key interface{}, notificationID interface{}) *NotificationService_InsertIdempotency_Call
InsertIdempotency is a helper method to define mock.On call
- ctx context.Context
- scope string
- key string
- notificationID string
func (*NotificationService_Expecter) List ¶ added in v0.7.4
func (_e *NotificationService_Expecter) List(ctx interface{}, flt interface{}) *NotificationService_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- flt notification.Filter
func (*NotificationService_Expecter) ListNotificationMessages ¶ added in v0.7.3
func (_e *NotificationService_Expecter) ListNotificationMessages(ctx interface{}, notificationID interface{}) *NotificationService_ListNotificationMessages_Call
ListNotificationMessages is a helper method to define mock.On call
- ctx context.Context
- notificationID string
func (*NotificationService_Expecter) RemoveIdempotencies ¶
func (_e *NotificationService_Expecter) RemoveIdempotencies(ctx interface{}, TTL interface{}) *NotificationService_RemoveIdempotencies_Call
RemoveIdempotencies is a helper method to define mock.On call
- ctx context.Context
- TTL time.Duration
type NotificationService_InsertIdempotency_Call ¶ added in v0.7.0
NotificationService_InsertIdempotency_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InsertIdempotency'
func (*NotificationService_InsertIdempotency_Call) Return ¶ added in v0.7.0
func (_c *NotificationService_InsertIdempotency_Call) Return(_a0 error) *NotificationService_InsertIdempotency_Call
func (*NotificationService_InsertIdempotency_Call) Run ¶ added in v0.7.0
func (_c *NotificationService_InsertIdempotency_Call) Run(run func(ctx context.Context, scope string, key string, notificationID string)) *NotificationService_InsertIdempotency_Call
func (*NotificationService_InsertIdempotency_Call) RunAndReturn ¶ added in v0.7.0
func (_c *NotificationService_InsertIdempotency_Call) RunAndReturn(run func(context.Context, string, string, string) error) *NotificationService_InsertIdempotency_Call
type NotificationService_ListNotificationMessages_Call ¶ added in v0.7.3
NotificationService_ListNotificationMessages_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListNotificationMessages'
func (*NotificationService_ListNotificationMessages_Call) Return ¶ added in v0.7.3
func (_c *NotificationService_ListNotificationMessages_Call) Return(_a0 []notification.Message, _a1 error) *NotificationService_ListNotificationMessages_Call
func (*NotificationService_ListNotificationMessages_Call) Run ¶ added in v0.7.3
func (_c *NotificationService_ListNotificationMessages_Call) Run(run func(ctx context.Context, notificationID string)) *NotificationService_ListNotificationMessages_Call
func (*NotificationService_ListNotificationMessages_Call) RunAndReturn ¶ added in v0.7.3
func (_c *NotificationService_ListNotificationMessages_Call) RunAndReturn(run func(context.Context, string) ([]notification.Message, error)) *NotificationService_ListNotificationMessages_Call
type NotificationService_List_Call ¶ added in v0.7.4
NotificationService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*NotificationService_List_Call) Return ¶ added in v0.7.4
func (_c *NotificationService_List_Call) Return(_a0 []notification.Notification, _a1 error) *NotificationService_List_Call
func (*NotificationService_List_Call) Run ¶ added in v0.7.4
func (_c *NotificationService_List_Call) Run(run func(ctx context.Context, flt notification.Filter)) *NotificationService_List_Call
func (*NotificationService_List_Call) RunAndReturn ¶ added in v0.7.4
func (_c *NotificationService_List_Call) RunAndReturn(run func(context.Context, notification.Filter) ([]notification.Notification, error)) *NotificationService_List_Call
type NotificationService_RemoveIdempotencies_Call ¶
NotificationService_RemoveIdempotencies_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveIdempotencies'
func (*NotificationService_RemoveIdempotencies_Call) Return ¶
func (_c *NotificationService_RemoveIdempotencies_Call) Return(_a0 error) *NotificationService_RemoveIdempotencies_Call
func (*NotificationService_RemoveIdempotencies_Call) Run ¶
func (_c *NotificationService_RemoveIdempotencies_Call) Run(run func(ctx context.Context, TTL time.Duration)) *NotificationService_RemoveIdempotencies_Call
func (*NotificationService_RemoveIdempotencies_Call) RunAndReturn ¶ added in v0.6.1
func (_c *NotificationService_RemoveIdempotencies_Call) RunAndReturn(run func(context.Context, time.Duration) error) *NotificationService_RemoveIdempotencies_Call
type ProviderService ¶
ProviderService is an autogenerated mock type for the ProviderService type
func NewProviderService ¶
func NewProviderService(t interface { mock.TestingT Cleanup(func()) }) *ProviderService
NewProviderService creates a new instance of ProviderService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*ProviderService) Delete ¶
func (_m *ProviderService) Delete(_a0 context.Context, _a1 uint64) error
Delete provides a mock function with given fields: _a0, _a1
func (*ProviderService) EXPECT ¶
func (_m *ProviderService) EXPECT() *ProviderService_Expecter
type ProviderService_Create_Call ¶
ProviderService_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*ProviderService_Create_Call) Return ¶
func (_c *ProviderService_Create_Call) Return(_a0 error) *ProviderService_Create_Call
func (*ProviderService_Create_Call) Run ¶
func (_c *ProviderService_Create_Call) Run(run func(_a0 context.Context, _a1 *provider.Provider)) *ProviderService_Create_Call
func (*ProviderService_Create_Call) RunAndReturn ¶ added in v0.6.1
func (_c *ProviderService_Create_Call) RunAndReturn(run func(context.Context, *provider.Provider) error) *ProviderService_Create_Call
type ProviderService_Delete_Call ¶
ProviderService_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*ProviderService_Delete_Call) Return ¶
func (_c *ProviderService_Delete_Call) Return(_a0 error) *ProviderService_Delete_Call
func (*ProviderService_Delete_Call) Run ¶
func (_c *ProviderService_Delete_Call) Run(run func(_a0 context.Context, _a1 uint64)) *ProviderService_Delete_Call
func (*ProviderService_Delete_Call) RunAndReturn ¶ added in v0.6.1
func (_c *ProviderService_Delete_Call) RunAndReturn(run func(context.Context, uint64) error) *ProviderService_Delete_Call
type ProviderService_Expecter ¶
type ProviderService_Expecter struct {
// contains filtered or unexported fields
}
func (*ProviderService_Expecter) Create ¶
func (_e *ProviderService_Expecter) Create(_a0 interface{}, _a1 interface{}) *ProviderService_Create_Call
Create is a helper method to define mock.On call
- _a0 context.Context
- _a1 *provider.Provider
func (*ProviderService_Expecter) Delete ¶
func (_e *ProviderService_Expecter) Delete(_a0 interface{}, _a1 interface{}) *ProviderService_Delete_Call
Delete is a helper method to define mock.On call
- _a0 context.Context
- _a1 uint64
func (*ProviderService_Expecter) Get ¶
func (_e *ProviderService_Expecter) Get(_a0 interface{}, _a1 interface{}) *ProviderService_Get_Call
Get is a helper method to define mock.On call
- _a0 context.Context
- _a1 uint64
func (*ProviderService_Expecter) List ¶
func (_e *ProviderService_Expecter) List(_a0 interface{}, _a1 interface{}) *ProviderService_List_Call
List is a helper method to define mock.On call
- _a0 context.Context
- _a1 provider.Filter
func (*ProviderService_Expecter) Update ¶
func (_e *ProviderService_Expecter) Update(_a0 interface{}, _a1 interface{}) *ProviderService_Update_Call
Update is a helper method to define mock.On call
- _a0 context.Context
- _a1 *provider.Provider
type ProviderService_Get_Call ¶
ProviderService_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*ProviderService_Get_Call) Return ¶
func (_c *ProviderService_Get_Call) Return(_a0 *provider.Provider, _a1 error) *ProviderService_Get_Call
func (*ProviderService_Get_Call) Run ¶
func (_c *ProviderService_Get_Call) Run(run func(_a0 context.Context, _a1 uint64)) *ProviderService_Get_Call
func (*ProviderService_Get_Call) RunAndReturn ¶ added in v0.6.1
func (_c *ProviderService_Get_Call) RunAndReturn(run func(context.Context, uint64) (*provider.Provider, error)) *ProviderService_Get_Call
type ProviderService_List_Call ¶
ProviderService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*ProviderService_List_Call) Return ¶
func (_c *ProviderService_List_Call) Return(_a0 []provider.Provider, _a1 error) *ProviderService_List_Call
func (*ProviderService_List_Call) Run ¶
func (_c *ProviderService_List_Call) Run(run func(_a0 context.Context, _a1 provider.Filter)) *ProviderService_List_Call
func (*ProviderService_List_Call) RunAndReturn ¶ added in v0.6.1
func (_c *ProviderService_List_Call) RunAndReturn(run func(context.Context, provider.Filter) ([]provider.Provider, error)) *ProviderService_List_Call
type ProviderService_Update_Call ¶
ProviderService_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*ProviderService_Update_Call) Return ¶
func (_c *ProviderService_Update_Call) Return(_a0 error) *ProviderService_Update_Call
func (*ProviderService_Update_Call) Run ¶
func (_c *ProviderService_Update_Call) Run(run func(_a0 context.Context, _a1 *provider.Provider)) *ProviderService_Update_Call
func (*ProviderService_Update_Call) RunAndReturn ¶ added in v0.6.1
func (_c *ProviderService_Update_Call) RunAndReturn(run func(context.Context, *provider.Provider) error) *ProviderService_Update_Call
type ReceiverService ¶
ReceiverService is an autogenerated mock type for the ReceiverService type
func NewReceiverService ¶
func NewReceiverService(t interface { mock.TestingT Cleanup(func()) }) *ReceiverService
NewReceiverService creates a new instance of ReceiverService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*ReceiverService) Delete ¶
func (_m *ReceiverService) Delete(ctx context.Context, id uint64) error
Delete provides a mock function with given fields: ctx, id
func (*ReceiverService) EXPECT ¶
func (_m *ReceiverService) EXPECT() *ReceiverService_Expecter
func (*ReceiverService) Get ¶
func (_m *ReceiverService) Get(ctx context.Context, id uint64, gopts ...receiver.GetOption) (*receiver.Receiver, error)
Get provides a mock function with given fields: ctx, id, gopts
type ReceiverService_Create_Call ¶
ReceiverService_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*ReceiverService_Create_Call) Return ¶
func (_c *ReceiverService_Create_Call) Return(_a0 error) *ReceiverService_Create_Call
func (*ReceiverService_Create_Call) Run ¶
func (_c *ReceiverService_Create_Call) Run(run func(ctx context.Context, rcv *receiver.Receiver)) *ReceiverService_Create_Call
func (*ReceiverService_Create_Call) RunAndReturn ¶ added in v0.6.1
func (_c *ReceiverService_Create_Call) RunAndReturn(run func(context.Context, *receiver.Receiver) error) *ReceiverService_Create_Call
type ReceiverService_Delete_Call ¶
ReceiverService_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*ReceiverService_Delete_Call) Return ¶
func (_c *ReceiverService_Delete_Call) Return(_a0 error) *ReceiverService_Delete_Call
func (*ReceiverService_Delete_Call) Run ¶
func (_c *ReceiverService_Delete_Call) Run(run func(ctx context.Context, id uint64)) *ReceiverService_Delete_Call
func (*ReceiverService_Delete_Call) RunAndReturn ¶ added in v0.6.1
func (_c *ReceiverService_Delete_Call) RunAndReturn(run func(context.Context, uint64) error) *ReceiverService_Delete_Call
type ReceiverService_Expecter ¶
type ReceiverService_Expecter struct {
// contains filtered or unexported fields
}
func (*ReceiverService_Expecter) Create ¶
func (_e *ReceiverService_Expecter) Create(ctx interface{}, rcv interface{}) *ReceiverService_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- rcv *receiver.Receiver
func (*ReceiverService_Expecter) Delete ¶
func (_e *ReceiverService_Expecter) Delete(ctx interface{}, id interface{}) *ReceiverService_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- id uint64
func (*ReceiverService_Expecter) Get ¶
func (_e *ReceiverService_Expecter) Get(ctx interface{}, id interface{}, gopts ...interface{}) *ReceiverService_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- id uint64
- gopts ...receiver.GetOption
func (*ReceiverService_Expecter) List ¶
func (_e *ReceiverService_Expecter) List(ctx interface{}, flt interface{}) *ReceiverService_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- flt receiver.Filter
func (*ReceiverService_Expecter) Update ¶
func (_e *ReceiverService_Expecter) Update(ctx interface{}, rcv interface{}) *ReceiverService_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- rcv *receiver.Receiver
type ReceiverService_Get_Call ¶
ReceiverService_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*ReceiverService_Get_Call) Return ¶
func (_c *ReceiverService_Get_Call) Return(_a0 *receiver.Receiver, _a1 error) *ReceiverService_Get_Call
func (*ReceiverService_Get_Call) Run ¶
func (_c *ReceiverService_Get_Call) Run(run func(ctx context.Context, id uint64, gopts ...receiver.GetOption)) *ReceiverService_Get_Call
func (*ReceiverService_Get_Call) RunAndReturn ¶ added in v0.6.1
func (_c *ReceiverService_Get_Call) RunAndReturn(run func(context.Context, uint64, ...receiver.GetOption) (*receiver.Receiver, error)) *ReceiverService_Get_Call
type ReceiverService_List_Call ¶
ReceiverService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*ReceiverService_List_Call) Return ¶
func (_c *ReceiverService_List_Call) Return(_a0 []receiver.Receiver, _a1 error) *ReceiverService_List_Call
func (*ReceiverService_List_Call) Run ¶
func (_c *ReceiverService_List_Call) Run(run func(ctx context.Context, flt receiver.Filter)) *ReceiverService_List_Call
func (*ReceiverService_List_Call) RunAndReturn ¶ added in v0.6.1
func (_c *ReceiverService_List_Call) RunAndReturn(run func(context.Context, receiver.Filter) ([]receiver.Receiver, error)) *ReceiverService_List_Call
type ReceiverService_Update_Call ¶
ReceiverService_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*ReceiverService_Update_Call) Return ¶
func (_c *ReceiverService_Update_Call) Return(_a0 error) *ReceiverService_Update_Call
func (*ReceiverService_Update_Call) Run ¶
func (_c *ReceiverService_Update_Call) Run(run func(ctx context.Context, rcv *receiver.Receiver)) *ReceiverService_Update_Call
func (*ReceiverService_Update_Call) RunAndReturn ¶ added in v0.6.1
func (_c *ReceiverService_Update_Call) RunAndReturn(run func(context.Context, *receiver.Receiver) error) *ReceiverService_Update_Call
type RuleService ¶
RuleService is an autogenerated mock type for the RuleService type
func NewRuleService ¶
func NewRuleService(t interface { mock.TestingT Cleanup(func()) }) *RuleService
NewRuleService creates a new instance of RuleService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*RuleService) EXPECT ¶
func (_m *RuleService) EXPECT() *RuleService_Expecter
type RuleService_Expecter ¶
type RuleService_Expecter struct {
// contains filtered or unexported fields
}
func (*RuleService_Expecter) List ¶
func (_e *RuleService_Expecter) List(_a0 interface{}, _a1 interface{}) *RuleService_List_Call
List is a helper method to define mock.On call
- _a0 context.Context
- _a1 rule.Filter
func (*RuleService_Expecter) Upsert ¶
func (_e *RuleService_Expecter) Upsert(_a0 interface{}, _a1 interface{}) *RuleService_Upsert_Call
Upsert is a helper method to define mock.On call
- _a0 context.Context
- _a1 *rule.Rule
type RuleService_List_Call ¶
RuleService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*RuleService_List_Call) Return ¶
func (_c *RuleService_List_Call) Return(_a0 []rule.Rule, _a1 error) *RuleService_List_Call
func (*RuleService_List_Call) Run ¶
func (_c *RuleService_List_Call) Run(run func(_a0 context.Context, _a1 rule.Filter)) *RuleService_List_Call
func (*RuleService_List_Call) RunAndReturn ¶ added in v0.6.1
func (_c *RuleService_List_Call) RunAndReturn(run func(context.Context, rule.Filter) ([]rule.Rule, error)) *RuleService_List_Call
type RuleService_Upsert_Call ¶
RuleService_Upsert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Upsert'
func (*RuleService_Upsert_Call) Return ¶
func (_c *RuleService_Upsert_Call) Return(_a0 error) *RuleService_Upsert_Call
func (*RuleService_Upsert_Call) Run ¶
func (_c *RuleService_Upsert_Call) Run(run func(_a0 context.Context, _a1 *rule.Rule)) *RuleService_Upsert_Call
func (*RuleService_Upsert_Call) RunAndReturn ¶ added in v0.6.1
func (_c *RuleService_Upsert_Call) RunAndReturn(run func(context.Context, *rule.Rule) error) *RuleService_Upsert_Call
type SilenceService ¶
SilenceService is an autogenerated mock type for the SilenceService type
func NewSilenceService ¶
func NewSilenceService(t interface { mock.TestingT Cleanup(func()) }) *SilenceService
NewSilenceService creates a new instance of SilenceService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*SilenceService) Delete ¶
func (_m *SilenceService) Delete(ctx context.Context, id string) error
Delete provides a mock function with given fields: ctx, id
func (*SilenceService) EXPECT ¶
func (_m *SilenceService) EXPECT() *SilenceService_Expecter
type SilenceService_Create_Call ¶
SilenceService_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*SilenceService_Create_Call) Return ¶
func (_c *SilenceService_Create_Call) Return(_a0 string, _a1 error) *SilenceService_Create_Call
func (*SilenceService_Create_Call) Run ¶
func (_c *SilenceService_Create_Call) Run(run func(ctx context.Context, sil silence.Silence)) *SilenceService_Create_Call
func (*SilenceService_Create_Call) RunAndReturn ¶ added in v0.6.1
func (_c *SilenceService_Create_Call) RunAndReturn(run func(context.Context, silence.Silence) (string, error)) *SilenceService_Create_Call
type SilenceService_Delete_Call ¶
SilenceService_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*SilenceService_Delete_Call) Return ¶
func (_c *SilenceService_Delete_Call) Return(_a0 error) *SilenceService_Delete_Call
func (*SilenceService_Delete_Call) Run ¶
func (_c *SilenceService_Delete_Call) Run(run func(ctx context.Context, id string)) *SilenceService_Delete_Call
func (*SilenceService_Delete_Call) RunAndReturn ¶ added in v0.6.1
func (_c *SilenceService_Delete_Call) RunAndReturn(run func(context.Context, string) error) *SilenceService_Delete_Call
type SilenceService_Expecter ¶
type SilenceService_Expecter struct {
// contains filtered or unexported fields
}
func (*SilenceService_Expecter) Create ¶
func (_e *SilenceService_Expecter) Create(ctx interface{}, sil interface{}) *SilenceService_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- sil silence.Silence
func (*SilenceService_Expecter) Delete ¶
func (_e *SilenceService_Expecter) Delete(ctx interface{}, id interface{}) *SilenceService_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- id string
func (*SilenceService_Expecter) Get ¶
func (_e *SilenceService_Expecter) Get(ctx interface{}, id interface{}) *SilenceService_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- id string
func (*SilenceService_Expecter) List ¶
func (_e *SilenceService_Expecter) List(ctx interface{}, filter interface{}) *SilenceService_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- filter silence.Filter
type SilenceService_Get_Call ¶
SilenceService_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*SilenceService_Get_Call) Return ¶
func (_c *SilenceService_Get_Call) Return(_a0 silence.Silence, _a1 error) *SilenceService_Get_Call
func (*SilenceService_Get_Call) Run ¶
func (_c *SilenceService_Get_Call) Run(run func(ctx context.Context, id string)) *SilenceService_Get_Call
func (*SilenceService_Get_Call) RunAndReturn ¶ added in v0.6.1
func (_c *SilenceService_Get_Call) RunAndReturn(run func(context.Context, string) (silence.Silence, error)) *SilenceService_Get_Call
type SilenceService_List_Call ¶
SilenceService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*SilenceService_List_Call) Return ¶
func (_c *SilenceService_List_Call) Return(_a0 []silence.Silence, _a1 error) *SilenceService_List_Call
func (*SilenceService_List_Call) Run ¶
func (_c *SilenceService_List_Call) Run(run func(ctx context.Context, filter silence.Filter)) *SilenceService_List_Call
func (*SilenceService_List_Call) RunAndReturn ¶ added in v0.6.1
func (_c *SilenceService_List_Call) RunAndReturn(run func(context.Context, silence.Filter) ([]silence.Silence, error)) *SilenceService_List_Call
type SubscriptionService ¶
SubscriptionService is an autogenerated mock type for the SubscriptionService type
func NewSubscriptionService ¶
func NewSubscriptionService(t interface { mock.TestingT Cleanup(func()) }) *SubscriptionService
NewSubscriptionService creates a new instance of SubscriptionService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*SubscriptionService) Create ¶
func (_m *SubscriptionService) Create(_a0 context.Context, _a1 *subscription.Subscription) error
Create provides a mock function with given fields: _a0, _a1
func (*SubscriptionService) CreateV2 ¶ added in v0.7.5
func (_m *SubscriptionService) CreateV2(_a0 context.Context, _a1 *subscription.Subscription) error
CreateV2 provides a mock function with given fields: _a0, _a1
func (*SubscriptionService) Delete ¶
func (_m *SubscriptionService) Delete(_a0 context.Context, _a1 uint64) error
Delete provides a mock function with given fields: _a0, _a1
func (*SubscriptionService) DeleteV2 ¶ added in v0.7.5
func (_m *SubscriptionService) DeleteV2(_a0 context.Context, _a1 uint64) error
DeleteV2 provides a mock function with given fields: _a0, _a1
func (*SubscriptionService) EXPECT ¶
func (_m *SubscriptionService) EXPECT() *SubscriptionService_Expecter
func (*SubscriptionService) Get ¶
func (_m *SubscriptionService) Get(_a0 context.Context, _a1 uint64) (*subscription.Subscription, error)
Get provides a mock function with given fields: _a0, _a1
func (*SubscriptionService) GetV2 ¶ added in v0.7.5
func (_m *SubscriptionService) GetV2(_a0 context.Context, _a1 uint64) (*subscription.Subscription, error)
GetV2 provides a mock function with given fields: _a0, _a1
func (*SubscriptionService) List ¶
func (_m *SubscriptionService) List(_a0 context.Context, _a1 subscription.Filter) ([]subscription.Subscription, error)
List provides a mock function with given fields: _a0, _a1
func (*SubscriptionService) ListV2 ¶ added in v0.7.5
func (_m *SubscriptionService) ListV2(_a0 context.Context, _a1 subscription.Filter) ([]subscription.Subscription, error)
ListV2 provides a mock function with given fields: _a0, _a1
func (*SubscriptionService) Update ¶
func (_m *SubscriptionService) Update(_a0 context.Context, _a1 *subscription.Subscription) error
Update provides a mock function with given fields: _a0, _a1
func (*SubscriptionService) UpdateV2 ¶ added in v0.7.5
func (_m *SubscriptionService) UpdateV2(_a0 context.Context, _a1 *subscription.Subscription) error
UpdateV2 provides a mock function with given fields: _a0, _a1
type SubscriptionService_CreateV2_Call ¶ added in v0.7.5
SubscriptionService_CreateV2_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateV2'
func (*SubscriptionService_CreateV2_Call) Return ¶ added in v0.7.5
func (_c *SubscriptionService_CreateV2_Call) Return(_a0 error) *SubscriptionService_CreateV2_Call
func (*SubscriptionService_CreateV2_Call) Run ¶ added in v0.7.5
func (_c *SubscriptionService_CreateV2_Call) Run(run func(_a0 context.Context, _a1 *subscription.Subscription)) *SubscriptionService_CreateV2_Call
func (*SubscriptionService_CreateV2_Call) RunAndReturn ¶ added in v0.7.5
func (_c *SubscriptionService_CreateV2_Call) RunAndReturn(run func(context.Context, *subscription.Subscription) error) *SubscriptionService_CreateV2_Call
type SubscriptionService_Create_Call ¶
SubscriptionService_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*SubscriptionService_Create_Call) Return ¶
func (_c *SubscriptionService_Create_Call) Return(_a0 error) *SubscriptionService_Create_Call
func (*SubscriptionService_Create_Call) Run ¶
func (_c *SubscriptionService_Create_Call) Run(run func(_a0 context.Context, _a1 *subscription.Subscription)) *SubscriptionService_Create_Call
func (*SubscriptionService_Create_Call) RunAndReturn ¶ added in v0.6.1
func (_c *SubscriptionService_Create_Call) RunAndReturn(run func(context.Context, *subscription.Subscription) error) *SubscriptionService_Create_Call
type SubscriptionService_DeleteV2_Call ¶ added in v0.7.5
SubscriptionService_DeleteV2_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteV2'
func (*SubscriptionService_DeleteV2_Call) Return ¶ added in v0.7.5
func (_c *SubscriptionService_DeleteV2_Call) Return(_a0 error) *SubscriptionService_DeleteV2_Call
func (*SubscriptionService_DeleteV2_Call) Run ¶ added in v0.7.5
func (_c *SubscriptionService_DeleteV2_Call) Run(run func(_a0 context.Context, _a1 uint64)) *SubscriptionService_DeleteV2_Call
func (*SubscriptionService_DeleteV2_Call) RunAndReturn ¶ added in v0.7.5
func (_c *SubscriptionService_DeleteV2_Call) RunAndReturn(run func(context.Context, uint64) error) *SubscriptionService_DeleteV2_Call
type SubscriptionService_Delete_Call ¶
SubscriptionService_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*SubscriptionService_Delete_Call) Return ¶
func (_c *SubscriptionService_Delete_Call) Return(_a0 error) *SubscriptionService_Delete_Call
func (*SubscriptionService_Delete_Call) Run ¶
func (_c *SubscriptionService_Delete_Call) Run(run func(_a0 context.Context, _a1 uint64)) *SubscriptionService_Delete_Call
func (*SubscriptionService_Delete_Call) RunAndReturn ¶ added in v0.6.1
func (_c *SubscriptionService_Delete_Call) RunAndReturn(run func(context.Context, uint64) error) *SubscriptionService_Delete_Call
type SubscriptionService_Expecter ¶
type SubscriptionService_Expecter struct {
// contains filtered or unexported fields
}
func (*SubscriptionService_Expecter) Create ¶
func (_e *SubscriptionService_Expecter) Create(_a0 interface{}, _a1 interface{}) *SubscriptionService_Create_Call
Create is a helper method to define mock.On call
- _a0 context.Context
- _a1 *subscription.Subscription
func (*SubscriptionService_Expecter) CreateV2 ¶ added in v0.7.5
func (_e *SubscriptionService_Expecter) CreateV2(_a0 interface{}, _a1 interface{}) *SubscriptionService_CreateV2_Call
CreateV2 is a helper method to define mock.On call
- _a0 context.Context
- _a1 *subscription.Subscription
func (*SubscriptionService_Expecter) Delete ¶
func (_e *SubscriptionService_Expecter) Delete(_a0 interface{}, _a1 interface{}) *SubscriptionService_Delete_Call
Delete is a helper method to define mock.On call
- _a0 context.Context
- _a1 uint64
func (*SubscriptionService_Expecter) DeleteV2 ¶ added in v0.7.5
func (_e *SubscriptionService_Expecter) DeleteV2(_a0 interface{}, _a1 interface{}) *SubscriptionService_DeleteV2_Call
DeleteV2 is a helper method to define mock.On call
- _a0 context.Context
- _a1 uint64
func (*SubscriptionService_Expecter) Get ¶
func (_e *SubscriptionService_Expecter) Get(_a0 interface{}, _a1 interface{}) *SubscriptionService_Get_Call
Get is a helper method to define mock.On call
- _a0 context.Context
- _a1 uint64
func (*SubscriptionService_Expecter) GetV2 ¶ added in v0.7.5
func (_e *SubscriptionService_Expecter) GetV2(_a0 interface{}, _a1 interface{}) *SubscriptionService_GetV2_Call
GetV2 is a helper method to define mock.On call
- _a0 context.Context
- _a1 uint64
func (*SubscriptionService_Expecter) List ¶
func (_e *SubscriptionService_Expecter) List(_a0 interface{}, _a1 interface{}) *SubscriptionService_List_Call
List is a helper method to define mock.On call
- _a0 context.Context
- _a1 subscription.Filter
func (*SubscriptionService_Expecter) ListV2 ¶ added in v0.7.5
func (_e *SubscriptionService_Expecter) ListV2(_a0 interface{}, _a1 interface{}) *SubscriptionService_ListV2_Call
ListV2 is a helper method to define mock.On call
- _a0 context.Context
- _a1 subscription.Filter
func (*SubscriptionService_Expecter) Update ¶
func (_e *SubscriptionService_Expecter) Update(_a0 interface{}, _a1 interface{}) *SubscriptionService_Update_Call
Update is a helper method to define mock.On call
- _a0 context.Context
- _a1 *subscription.Subscription
func (*SubscriptionService_Expecter) UpdateV2 ¶ added in v0.7.5
func (_e *SubscriptionService_Expecter) UpdateV2(_a0 interface{}, _a1 interface{}) *SubscriptionService_UpdateV2_Call
UpdateV2 is a helper method to define mock.On call
- _a0 context.Context
- _a1 *subscription.Subscription
type SubscriptionService_GetV2_Call ¶ added in v0.7.5
SubscriptionService_GetV2_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetV2'
func (*SubscriptionService_GetV2_Call) Return ¶ added in v0.7.5
func (_c *SubscriptionService_GetV2_Call) Return(_a0 *subscription.Subscription, _a1 error) *SubscriptionService_GetV2_Call
func (*SubscriptionService_GetV2_Call) Run ¶ added in v0.7.5
func (_c *SubscriptionService_GetV2_Call) Run(run func(_a0 context.Context, _a1 uint64)) *SubscriptionService_GetV2_Call
func (*SubscriptionService_GetV2_Call) RunAndReturn ¶ added in v0.7.5
func (_c *SubscriptionService_GetV2_Call) RunAndReturn(run func(context.Context, uint64) (*subscription.Subscription, error)) *SubscriptionService_GetV2_Call
type SubscriptionService_Get_Call ¶
SubscriptionService_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*SubscriptionService_Get_Call) Return ¶
func (_c *SubscriptionService_Get_Call) Return(_a0 *subscription.Subscription, _a1 error) *SubscriptionService_Get_Call
func (*SubscriptionService_Get_Call) Run ¶
func (_c *SubscriptionService_Get_Call) Run(run func(_a0 context.Context, _a1 uint64)) *SubscriptionService_Get_Call
func (*SubscriptionService_Get_Call) RunAndReturn ¶ added in v0.6.1
func (_c *SubscriptionService_Get_Call) RunAndReturn(run func(context.Context, uint64) (*subscription.Subscription, error)) *SubscriptionService_Get_Call
type SubscriptionService_ListV2_Call ¶ added in v0.7.5
SubscriptionService_ListV2_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListV2'
func (*SubscriptionService_ListV2_Call) Return ¶ added in v0.7.5
func (_c *SubscriptionService_ListV2_Call) Return(_a0 []subscription.Subscription, _a1 error) *SubscriptionService_ListV2_Call
func (*SubscriptionService_ListV2_Call) Run ¶ added in v0.7.5
func (_c *SubscriptionService_ListV2_Call) Run(run func(_a0 context.Context, _a1 subscription.Filter)) *SubscriptionService_ListV2_Call
func (*SubscriptionService_ListV2_Call) RunAndReturn ¶ added in v0.7.5
func (_c *SubscriptionService_ListV2_Call) RunAndReturn(run func(context.Context, subscription.Filter) ([]subscription.Subscription, error)) *SubscriptionService_ListV2_Call
type SubscriptionService_List_Call ¶
SubscriptionService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*SubscriptionService_List_Call) Return ¶
func (_c *SubscriptionService_List_Call) Return(_a0 []subscription.Subscription, _a1 error) *SubscriptionService_List_Call
func (*SubscriptionService_List_Call) Run ¶
func (_c *SubscriptionService_List_Call) Run(run func(_a0 context.Context, _a1 subscription.Filter)) *SubscriptionService_List_Call
func (*SubscriptionService_List_Call) RunAndReturn ¶ added in v0.6.1
func (_c *SubscriptionService_List_Call) RunAndReturn(run func(context.Context, subscription.Filter) ([]subscription.Subscription, error)) *SubscriptionService_List_Call
type SubscriptionService_UpdateV2_Call ¶ added in v0.7.5
SubscriptionService_UpdateV2_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateV2'
func (*SubscriptionService_UpdateV2_Call) Return ¶ added in v0.7.5
func (_c *SubscriptionService_UpdateV2_Call) Return(_a0 error) *SubscriptionService_UpdateV2_Call
func (*SubscriptionService_UpdateV2_Call) Run ¶ added in v0.7.5
func (_c *SubscriptionService_UpdateV2_Call) Run(run func(_a0 context.Context, _a1 *subscription.Subscription)) *SubscriptionService_UpdateV2_Call
func (*SubscriptionService_UpdateV2_Call) RunAndReturn ¶ added in v0.7.5
func (_c *SubscriptionService_UpdateV2_Call) RunAndReturn(run func(context.Context, *subscription.Subscription) error) *SubscriptionService_UpdateV2_Call
type SubscriptionService_Update_Call ¶
SubscriptionService_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*SubscriptionService_Update_Call) Return ¶
func (_c *SubscriptionService_Update_Call) Return(_a0 error) *SubscriptionService_Update_Call
func (*SubscriptionService_Update_Call) Run ¶
func (_c *SubscriptionService_Update_Call) Run(run func(_a0 context.Context, _a1 *subscription.Subscription)) *SubscriptionService_Update_Call
func (*SubscriptionService_Update_Call) RunAndReturn ¶ added in v0.6.1
func (_c *SubscriptionService_Update_Call) RunAndReturn(run func(context.Context, *subscription.Subscription) error) *SubscriptionService_Update_Call
type TemplateService ¶
TemplateService is an autogenerated mock type for the TemplateService type
func NewTemplateService ¶
func NewTemplateService(t interface { mock.TestingT Cleanup(func()) }) *TemplateService
NewTemplateService creates a new instance of TemplateService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*TemplateService) Delete ¶
func (_m *TemplateService) Delete(_a0 context.Context, _a1 string) error
Delete provides a mock function with given fields: _a0, _a1
func (*TemplateService) EXPECT ¶
func (_m *TemplateService) EXPECT() *TemplateService_Expecter
func (*TemplateService) List ¶
func (_m *TemplateService) List(_a0 context.Context, _a1 template.Filter) ([]template.Template, error)
List provides a mock function with given fields: _a0, _a1
type TemplateService_Delete_Call ¶
TemplateService_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*TemplateService_Delete_Call) Return ¶
func (_c *TemplateService_Delete_Call) Return(_a0 error) *TemplateService_Delete_Call
func (*TemplateService_Delete_Call) Run ¶
func (_c *TemplateService_Delete_Call) Run(run func(_a0 context.Context, _a1 string)) *TemplateService_Delete_Call
func (*TemplateService_Delete_Call) RunAndReturn ¶ added in v0.6.1
func (_c *TemplateService_Delete_Call) RunAndReturn(run func(context.Context, string) error) *TemplateService_Delete_Call
type TemplateService_Expecter ¶
type TemplateService_Expecter struct {
// contains filtered or unexported fields
}
func (*TemplateService_Expecter) Delete ¶
func (_e *TemplateService_Expecter) Delete(_a0 interface{}, _a1 interface{}) *TemplateService_Delete_Call
Delete is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
func (*TemplateService_Expecter) GetByName ¶
func (_e *TemplateService_Expecter) GetByName(_a0 interface{}, _a1 interface{}) *TemplateService_GetByName_Call
GetByName is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
func (*TemplateService_Expecter) List ¶
func (_e *TemplateService_Expecter) List(_a0 interface{}, _a1 interface{}) *TemplateService_List_Call
List is a helper method to define mock.On call
- _a0 context.Context
- _a1 template.Filter
func (*TemplateService_Expecter) Render ¶
func (_e *TemplateService_Expecter) Render(_a0 interface{}, _a1 interface{}, _a2 interface{}) *TemplateService_Render_Call
Render is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
- _a2 map[string]string
func (*TemplateService_Expecter) Upsert ¶
func (_e *TemplateService_Expecter) Upsert(_a0 interface{}, _a1 interface{}) *TemplateService_Upsert_Call
Upsert is a helper method to define mock.On call
- _a0 context.Context
- _a1 *template.Template
type TemplateService_GetByName_Call ¶
TemplateService_GetByName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByName'
func (*TemplateService_GetByName_Call) Return ¶
func (_c *TemplateService_GetByName_Call) Return(_a0 *template.Template, _a1 error) *TemplateService_GetByName_Call
func (*TemplateService_GetByName_Call) Run ¶
func (_c *TemplateService_GetByName_Call) Run(run func(_a0 context.Context, _a1 string)) *TemplateService_GetByName_Call
func (*TemplateService_GetByName_Call) RunAndReturn ¶ added in v0.6.1
func (_c *TemplateService_GetByName_Call) RunAndReturn(run func(context.Context, string) (*template.Template, error)) *TemplateService_GetByName_Call
type TemplateService_List_Call ¶
TemplateService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*TemplateService_List_Call) Return ¶
func (_c *TemplateService_List_Call) Return(_a0 []template.Template, _a1 error) *TemplateService_List_Call
func (*TemplateService_List_Call) Run ¶
func (_c *TemplateService_List_Call) Run(run func(_a0 context.Context, _a1 template.Filter)) *TemplateService_List_Call
func (*TemplateService_List_Call) RunAndReturn ¶ added in v0.6.1
func (_c *TemplateService_List_Call) RunAndReturn(run func(context.Context, template.Filter) ([]template.Template, error)) *TemplateService_List_Call
type TemplateService_Render_Call ¶
TemplateService_Render_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Render'
func (*TemplateService_Render_Call) Return ¶
func (_c *TemplateService_Render_Call) Return(_a0 string, _a1 error) *TemplateService_Render_Call
func (*TemplateService_Render_Call) Run ¶
func (_c *TemplateService_Render_Call) Run(run func(_a0 context.Context, _a1 string, _a2 map[string]string)) *TemplateService_Render_Call
func (*TemplateService_Render_Call) RunAndReturn ¶ added in v0.6.1
func (_c *TemplateService_Render_Call) RunAndReturn(run func(context.Context, string, map[string]string) (string, error)) *TemplateService_Render_Call
type TemplateService_Upsert_Call ¶
TemplateService_Upsert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Upsert'
func (*TemplateService_Upsert_Call) Return ¶
func (_c *TemplateService_Upsert_Call) Return(_a0 error) *TemplateService_Upsert_Call
func (*TemplateService_Upsert_Call) Run ¶
func (_c *TemplateService_Upsert_Call) Run(run func(_a0 context.Context, _a1 *template.Template)) *TemplateService_Upsert_Call
func (*TemplateService_Upsert_Call) RunAndReturn ¶ added in v0.6.1
func (_c *TemplateService_Upsert_Call) RunAndReturn(run func(context.Context, *template.Template) error) *TemplateService_Upsert_Call