Documentation ¶
Index ¶
- type CortexClient
- func (_m *CortexClient) CreateAlertmanagerConfig(_a0 cortex.AlertManagerConfig, _a1 string) error
- func (_m *CortexClient) CreateRuleGroup(ctx context.Context, namespace string, rg rwrulefmt.RuleGroup) error
- func (_m *CortexClient) DeleteRuleGroup(ctx context.Context, namespace string, groupName string) error
- func (_m *CortexClient) EXPECT() *CortexClient_Expecter
- func (_m *CortexClient) GetRuleGroup(ctx context.Context, namespace string, groupName string) (*rwrulefmt.RuleGroup, error)
- func (_m *CortexClient) ListRules(ctx context.Context, namespace string) (map[string][]rwrulefmt.RuleGroup, error)
- type CortexClient_CreateAlertmanagerConfig_Call
- type CortexClient_CreateRuleGroup_Call
- type CortexClient_DeleteRuleGroup_Call
- type CortexClient_Expecter
- func (_e *CortexClient_Expecter) CreateAlertmanagerConfig(_a0 interface{}, _a1 interface{}) *CortexClient_CreateAlertmanagerConfig_Call
- func (_e *CortexClient_Expecter) CreateRuleGroup(ctx interface{}, namespace interface{}, rg interface{}) *CortexClient_CreateRuleGroup_Call
- func (_e *CortexClient_Expecter) DeleteRuleGroup(ctx interface{}, namespace interface{}, groupName interface{}) *CortexClient_DeleteRuleGroup_Call
- func (_e *CortexClient_Expecter) GetRuleGroup(ctx interface{}, namespace interface{}, groupName interface{}) *CortexClient_GetRuleGroup_Call
- func (_e *CortexClient_Expecter) ListRules(ctx interface{}, namespace interface{}) *CortexClient_ListRules_Call
- type CortexClient_GetRuleGroup_Call
- type CortexClient_ListRules_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
- type 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
- type NamespaceService_List_Call
- type NamespaceService_Update_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
- type 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
- type ProviderService_List_Call
- type 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) (*receiver.Receiver, error)
- func (_m *ReceiverService) GetSubscriptionConfig(subsConfs map[string]string, rcv *receiver.Receiver) (map[string]string, error)
- func (_m *ReceiverService) List(ctx context.Context, flt receiver.Filter) ([]receiver.Receiver, error)
- func (_m *ReceiverService) Notify(ctx context.Context, id uint64, payloadMessage receiver.NotificationMessage) error
- func (_m *ReceiverService) Update(ctx context.Context, rcv *receiver.Receiver) error
- type ReceiverService_Create_Call
- type 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{}) *ReceiverService_Get_Call
- func (_e *ReceiverService_Expecter) GetSubscriptionConfig(subsConfs interface{}, rcv interface{}) *ReceiverService_GetSubscriptionConfig_Call
- func (_e *ReceiverService_Expecter) List(ctx interface{}, flt interface{}) *ReceiverService_List_Call
- func (_e *ReceiverService_Expecter) Notify(ctx interface{}, id interface{}, payloadMessage interface{}) *ReceiverService_Notify_Call
- func (_e *ReceiverService_Expecter) Update(ctx interface{}, rcv interface{}) *ReceiverService_Update_Call
- type ReceiverService_GetSubscriptionConfig_Call
- func (_c *ReceiverService_GetSubscriptionConfig_Call) Return(_a0 map[string]string, _a1 error) *ReceiverService_GetSubscriptionConfig_Call
- func (_c *ReceiverService_GetSubscriptionConfig_Call) Run(run func(subsConfs map[string]string, rcv *receiver.Receiver)) *ReceiverService_GetSubscriptionConfig_Call
- type ReceiverService_Get_Call
- type ReceiverService_List_Call
- type ReceiverService_Notify_Call
- type ReceiverService_Update_Call
- type SubscriptionRepository
- func (_m *SubscriptionRepository) Commit(ctx context.Context) error
- func (_m *SubscriptionRepository) Create(_a0 context.Context, _a1 *subscription.Subscription) error
- func (_m *SubscriptionRepository) Delete(_a0 context.Context, _a1 uint64, _a2 uint64) error
- func (_m *SubscriptionRepository) EXPECT() *SubscriptionRepository_Expecter
- func (_m *SubscriptionRepository) Get(_a0 context.Context, _a1 uint64) (*subscription.Subscription, error)
- func (_m *SubscriptionRepository) List(_a0 context.Context, _a1 subscription.Filter) ([]subscription.Subscription, error)
- func (_m *SubscriptionRepository) Rollback(ctx context.Context, err error) error
- func (_m *SubscriptionRepository) Update(_a0 context.Context, _a1 *subscription.Subscription) error
- func (_m *SubscriptionRepository) WithTransaction(ctx context.Context) context.Context
- type SubscriptionRepository_Commit_Call
- type SubscriptionRepository_Create_Call
- type SubscriptionRepository_Delete_Call
- type SubscriptionRepository_Expecter
- func (_e *SubscriptionRepository_Expecter) Commit(ctx interface{}) *SubscriptionRepository_Commit_Call
- func (_e *SubscriptionRepository_Expecter) Create(_a0 interface{}, _a1 interface{}) *SubscriptionRepository_Create_Call
- func (_e *SubscriptionRepository_Expecter) Delete(_a0 interface{}, _a1 interface{}, _a2 interface{}) *SubscriptionRepository_Delete_Call
- func (_e *SubscriptionRepository_Expecter) Get(_a0 interface{}, _a1 interface{}) *SubscriptionRepository_Get_Call
- func (_e *SubscriptionRepository_Expecter) List(_a0 interface{}, _a1 interface{}) *SubscriptionRepository_List_Call
- func (_e *SubscriptionRepository_Expecter) Rollback(ctx interface{}, err interface{}) *SubscriptionRepository_Rollback_Call
- func (_e *SubscriptionRepository_Expecter) Update(_a0 interface{}, _a1 interface{}) *SubscriptionRepository_Update_Call
- func (_e *SubscriptionRepository_Expecter) WithTransaction(ctx interface{}) *SubscriptionRepository_WithTransaction_Call
- type SubscriptionRepository_Get_Call
- type SubscriptionRepository_List_Call
- type SubscriptionRepository_Rollback_Call
- type SubscriptionRepository_Update_Call
- type SubscriptionRepository_WithTransaction_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CortexClient ¶
CortexClient is an autogenerated mock type for the CortexClient type
func NewCortexClient ¶
func NewCortexClient(t mockConstructorTestingTNewCortexClient) *CortexClient
NewCortexClient creates a new instance of CortexClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*CortexClient) CreateAlertmanagerConfig ¶
func (_m *CortexClient) CreateAlertmanagerConfig(_a0 cortex.AlertManagerConfig, _a1 string) error
CreateAlertmanagerConfig provides a mock function with given fields: _a0, _a1
func (*CortexClient) CreateRuleGroup ¶
func (_m *CortexClient) CreateRuleGroup(ctx context.Context, namespace string, rg rwrulefmt.RuleGroup) error
CreateRuleGroup provides a mock function with given fields: ctx, namespace, rg
func (*CortexClient) DeleteRuleGroup ¶
func (_m *CortexClient) DeleteRuleGroup(ctx context.Context, namespace string, groupName string) error
DeleteRuleGroup provides a mock function with given fields: ctx, namespace, groupName
func (*CortexClient) EXPECT ¶
func (_m *CortexClient) EXPECT() *CortexClient_Expecter
func (*CortexClient) GetRuleGroup ¶
func (_m *CortexClient) GetRuleGroup(ctx context.Context, namespace string, groupName string) (*rwrulefmt.RuleGroup, error)
GetRuleGroup provides a mock function with given fields: ctx, namespace, groupName
type CortexClient_CreateAlertmanagerConfig_Call ¶
CortexClient_CreateAlertmanagerConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateAlertmanagerConfig'
func (*CortexClient_CreateAlertmanagerConfig_Call) Return ¶
func (_c *CortexClient_CreateAlertmanagerConfig_Call) Return(_a0 error) *CortexClient_CreateAlertmanagerConfig_Call
func (*CortexClient_CreateAlertmanagerConfig_Call) Run ¶
func (_c *CortexClient_CreateAlertmanagerConfig_Call) Run(run func(_a0 cortex.AlertManagerConfig, _a1 string)) *CortexClient_CreateAlertmanagerConfig_Call
type CortexClient_CreateRuleGroup_Call ¶
CortexClient_CreateRuleGroup_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateRuleGroup'
func (*CortexClient_CreateRuleGroup_Call) Return ¶
func (_c *CortexClient_CreateRuleGroup_Call) Return(_a0 error) *CortexClient_CreateRuleGroup_Call
func (*CortexClient_CreateRuleGroup_Call) Run ¶
func (_c *CortexClient_CreateRuleGroup_Call) Run(run func(ctx context.Context, namespace string, rg rwrulefmt.RuleGroup)) *CortexClient_CreateRuleGroup_Call
type CortexClient_DeleteRuleGroup_Call ¶
CortexClient_DeleteRuleGroup_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteRuleGroup'
func (*CortexClient_DeleteRuleGroup_Call) Return ¶
func (_c *CortexClient_DeleteRuleGroup_Call) Return(_a0 error) *CortexClient_DeleteRuleGroup_Call
func (*CortexClient_DeleteRuleGroup_Call) Run ¶
func (_c *CortexClient_DeleteRuleGroup_Call) Run(run func(ctx context.Context, namespace string, groupName string)) *CortexClient_DeleteRuleGroup_Call
type CortexClient_Expecter ¶
type CortexClient_Expecter struct {
// contains filtered or unexported fields
}
func (*CortexClient_Expecter) CreateAlertmanagerConfig ¶
func (_e *CortexClient_Expecter) CreateAlertmanagerConfig(_a0 interface{}, _a1 interface{}) *CortexClient_CreateAlertmanagerConfig_Call
CreateAlertmanagerConfig is a helper method to define mock.On call
- _a0 cortex.AlertManagerConfig
- _a1 string
func (*CortexClient_Expecter) CreateRuleGroup ¶
func (_e *CortexClient_Expecter) CreateRuleGroup(ctx interface{}, namespace interface{}, rg interface{}) *CortexClient_CreateRuleGroup_Call
CreateRuleGroup is a helper method to define mock.On call
- ctx context.Context
- namespace string
- rg rwrulefmt.RuleGroup
func (*CortexClient_Expecter) DeleteRuleGroup ¶
func (_e *CortexClient_Expecter) DeleteRuleGroup(ctx interface{}, namespace interface{}, groupName interface{}) *CortexClient_DeleteRuleGroup_Call
DeleteRuleGroup is a helper method to define mock.On call
- ctx context.Context
- namespace string
- groupName string
func (*CortexClient_Expecter) GetRuleGroup ¶
func (_e *CortexClient_Expecter) GetRuleGroup(ctx interface{}, namespace interface{}, groupName interface{}) *CortexClient_GetRuleGroup_Call
GetRuleGroup is a helper method to define mock.On call
- ctx context.Context
- namespace string
- groupName string
func (*CortexClient_Expecter) ListRules ¶
func (_e *CortexClient_Expecter) ListRules(ctx interface{}, namespace interface{}) *CortexClient_ListRules_Call
ListRules is a helper method to define mock.On call
- ctx context.Context
- namespace string
type CortexClient_GetRuleGroup_Call ¶
CortexClient_GetRuleGroup_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRuleGroup'
func (*CortexClient_GetRuleGroup_Call) Return ¶
func (_c *CortexClient_GetRuleGroup_Call) Return(_a0 *rwrulefmt.RuleGroup, _a1 error) *CortexClient_GetRuleGroup_Call
func (*CortexClient_GetRuleGroup_Call) Run ¶
func (_c *CortexClient_GetRuleGroup_Call) Run(run func(ctx context.Context, namespace string, groupName string)) *CortexClient_GetRuleGroup_Call
type CortexClient_ListRules_Call ¶
CortexClient_ListRules_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListRules'
func (*CortexClient_ListRules_Call) Return ¶
func (_c *CortexClient_ListRules_Call) Return(_a0 map[string][]rwrulefmt.RuleGroup, _a1 error) *CortexClient_ListRules_Call
func (*CortexClient_ListRules_Call) Run ¶
func (_c *CortexClient_ListRules_Call) Run(run func(ctx context.Context, namespace string)) *CortexClient_ListRules_Call
type NamespaceService ¶
NamespaceService is an autogenerated mock type for the NamespaceService type
func NewNamespaceService ¶
func NewNamespaceService(t mockConstructorTestingTNewNamespaceService) *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.
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
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
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
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
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
type ProviderService ¶
ProviderService is an autogenerated mock type for the ProviderService type
func NewProviderService ¶
func NewProviderService(t mockConstructorTestingTNewProviderService) *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.
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
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
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
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
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
type ReceiverService ¶
ReceiverService is an autogenerated mock type for the ReceiverService type
func NewReceiverService ¶
func NewReceiverService(t mockConstructorTestingTNewReceiverService) *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.
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) GetSubscriptionConfig ¶
func (_m *ReceiverService) GetSubscriptionConfig(subsConfs map[string]string, rcv *receiver.Receiver) (map[string]string, error)
GetSubscriptionConfig provides a mock function with given fields: subsConfs, rcv
func (*ReceiverService) List ¶
func (_m *ReceiverService) List(ctx context.Context, flt receiver.Filter) ([]receiver.Receiver, error)
List provides a mock function with given fields: ctx, flt
func (*ReceiverService) Notify ¶
func (_m *ReceiverService) Notify(ctx context.Context, id uint64, payloadMessage receiver.NotificationMessage) error
Notify provides a mock function with given fields: ctx, id, payloadMessage
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
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
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{}) *ReceiverService_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- id uint64
func (*ReceiverService_Expecter) GetSubscriptionConfig ¶
func (_e *ReceiverService_Expecter) GetSubscriptionConfig(subsConfs interface{}, rcv interface{}) *ReceiverService_GetSubscriptionConfig_Call
GetSubscriptionConfig is a helper method to define mock.On call
- subsConfs map[string]string
- rcv *receiver.Receiver
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) Notify ¶
func (_e *ReceiverService_Expecter) Notify(ctx interface{}, id interface{}, payloadMessage interface{}) *ReceiverService_Notify_Call
Notify is a helper method to define mock.On call
- ctx context.Context
- id uint64
- payloadMessage receiver.NotificationMessage
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_GetSubscriptionConfig_Call ¶
ReceiverService_GetSubscriptionConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSubscriptionConfig'
func (*ReceiverService_GetSubscriptionConfig_Call) Return ¶
func (_c *ReceiverService_GetSubscriptionConfig_Call) Return(_a0 map[string]string, _a1 error) *ReceiverService_GetSubscriptionConfig_Call
func (*ReceiverService_GetSubscriptionConfig_Call) Run ¶
func (_c *ReceiverService_GetSubscriptionConfig_Call) Run(run func(subsConfs map[string]string, rcv *receiver.Receiver)) *ReceiverService_GetSubscriptionConfig_Call
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)) *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
type ReceiverService_Notify_Call ¶
ReceiverService_Notify_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Notify'
func (*ReceiverService_Notify_Call) Return ¶
func (_c *ReceiverService_Notify_Call) Return(_a0 error) *ReceiverService_Notify_Call
func (*ReceiverService_Notify_Call) Run ¶
func (_c *ReceiverService_Notify_Call) Run(run func(ctx context.Context, id uint64, payloadMessage receiver.NotificationMessage)) *ReceiverService_Notify_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
type SubscriptionRepository ¶
SubscriptionRepository is an autogenerated mock type for the Repository type
func NewSubscriptionRepository ¶
func NewSubscriptionRepository(t mockConstructorTestingTNewSubscriptionRepository) *SubscriptionRepository
NewSubscriptionRepository creates a new instance of SubscriptionRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*SubscriptionRepository) Commit ¶
func (_m *SubscriptionRepository) Commit(ctx context.Context) error
Commit provides a mock function with given fields: ctx
func (*SubscriptionRepository) Create ¶
func (_m *SubscriptionRepository) Create(_a0 context.Context, _a1 *subscription.Subscription) error
Create provides a mock function with given fields: _a0, _a1
func (*SubscriptionRepository) Delete ¶
Delete provides a mock function with given fields: _a0, _a1, _a2
func (*SubscriptionRepository) EXPECT ¶
func (_m *SubscriptionRepository) EXPECT() *SubscriptionRepository_Expecter
func (*SubscriptionRepository) Get ¶
func (_m *SubscriptionRepository) Get(_a0 context.Context, _a1 uint64) (*subscription.Subscription, error)
Get provides a mock function with given fields: _a0, _a1
func (*SubscriptionRepository) List ¶
func (_m *SubscriptionRepository) List(_a0 context.Context, _a1 subscription.Filter) ([]subscription.Subscription, error)
List provides a mock function with given fields: _a0, _a1
func (*SubscriptionRepository) Rollback ¶
func (_m *SubscriptionRepository) Rollback(ctx context.Context, err error) error
Rollback provides a mock function with given fields: ctx, err
func (*SubscriptionRepository) Update ¶
func (_m *SubscriptionRepository) Update(_a0 context.Context, _a1 *subscription.Subscription) error
Update provides a mock function with given fields: _a0, _a1
func (*SubscriptionRepository) WithTransaction ¶
func (_m *SubscriptionRepository) WithTransaction(ctx context.Context) context.Context
WithTransaction provides a mock function with given fields: ctx
type SubscriptionRepository_Commit_Call ¶
SubscriptionRepository_Commit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Commit'
func (*SubscriptionRepository_Commit_Call) Return ¶
func (_c *SubscriptionRepository_Commit_Call) Return(_a0 error) *SubscriptionRepository_Commit_Call
func (*SubscriptionRepository_Commit_Call) Run ¶
func (_c *SubscriptionRepository_Commit_Call) Run(run func(ctx context.Context)) *SubscriptionRepository_Commit_Call
type SubscriptionRepository_Create_Call ¶
SubscriptionRepository_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*SubscriptionRepository_Create_Call) Return ¶
func (_c *SubscriptionRepository_Create_Call) Return(_a0 error) *SubscriptionRepository_Create_Call
func (*SubscriptionRepository_Create_Call) Run ¶
func (_c *SubscriptionRepository_Create_Call) Run(run func(_a0 context.Context, _a1 *subscription.Subscription)) *SubscriptionRepository_Create_Call
type SubscriptionRepository_Delete_Call ¶
SubscriptionRepository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*SubscriptionRepository_Delete_Call) Return ¶
func (_c *SubscriptionRepository_Delete_Call) Return(_a0 error) *SubscriptionRepository_Delete_Call
func (*SubscriptionRepository_Delete_Call) Run ¶
func (_c *SubscriptionRepository_Delete_Call) Run(run func(_a0 context.Context, _a1 uint64, _a2 uint64)) *SubscriptionRepository_Delete_Call
type SubscriptionRepository_Expecter ¶
type SubscriptionRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*SubscriptionRepository_Expecter) Commit ¶
func (_e *SubscriptionRepository_Expecter) Commit(ctx interface{}) *SubscriptionRepository_Commit_Call
Commit is a helper method to define mock.On call
- ctx context.Context
func (*SubscriptionRepository_Expecter) Create ¶
func (_e *SubscriptionRepository_Expecter) Create(_a0 interface{}, _a1 interface{}) *SubscriptionRepository_Create_Call
Create is a helper method to define mock.On call
- _a0 context.Context
- _a1 *subscription.Subscription
func (*SubscriptionRepository_Expecter) Delete ¶
func (_e *SubscriptionRepository_Expecter) Delete(_a0 interface{}, _a1 interface{}, _a2 interface{}) *SubscriptionRepository_Delete_Call
Delete is a helper method to define mock.On call
- _a0 context.Context
- _a1 uint64
- _a2 uint64
func (*SubscriptionRepository_Expecter) Get ¶
func (_e *SubscriptionRepository_Expecter) Get(_a0 interface{}, _a1 interface{}) *SubscriptionRepository_Get_Call
Get is a helper method to define mock.On call
- _a0 context.Context
- _a1 uint64
func (*SubscriptionRepository_Expecter) List ¶
func (_e *SubscriptionRepository_Expecter) List(_a0 interface{}, _a1 interface{}) *SubscriptionRepository_List_Call
List is a helper method to define mock.On call
- _a0 context.Context
- _a1 subscription.Filter
func (*SubscriptionRepository_Expecter) Rollback ¶
func (_e *SubscriptionRepository_Expecter) Rollback(ctx interface{}, err interface{}) *SubscriptionRepository_Rollback_Call
Rollback is a helper method to define mock.On call
- ctx context.Context
- err error
func (*SubscriptionRepository_Expecter) Update ¶
func (_e *SubscriptionRepository_Expecter) Update(_a0 interface{}, _a1 interface{}) *SubscriptionRepository_Update_Call
Update is a helper method to define mock.On call
- _a0 context.Context
- _a1 *subscription.Subscription
func (*SubscriptionRepository_Expecter) WithTransaction ¶
func (_e *SubscriptionRepository_Expecter) WithTransaction(ctx interface{}) *SubscriptionRepository_WithTransaction_Call
WithTransaction is a helper method to define mock.On call
- ctx context.Context
type SubscriptionRepository_Get_Call ¶
SubscriptionRepository_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*SubscriptionRepository_Get_Call) Return ¶
func (_c *SubscriptionRepository_Get_Call) Return(_a0 *subscription.Subscription, _a1 error) *SubscriptionRepository_Get_Call
func (*SubscriptionRepository_Get_Call) Run ¶
func (_c *SubscriptionRepository_Get_Call) Run(run func(_a0 context.Context, _a1 uint64)) *SubscriptionRepository_Get_Call
type SubscriptionRepository_List_Call ¶
SubscriptionRepository_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*SubscriptionRepository_List_Call) Return ¶
func (_c *SubscriptionRepository_List_Call) Return(_a0 []subscription.Subscription, _a1 error) *SubscriptionRepository_List_Call
func (*SubscriptionRepository_List_Call) Run ¶
func (_c *SubscriptionRepository_List_Call) Run(run func(_a0 context.Context, _a1 subscription.Filter)) *SubscriptionRepository_List_Call
type SubscriptionRepository_Rollback_Call ¶
SubscriptionRepository_Rollback_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Rollback'
func (*SubscriptionRepository_Rollback_Call) Return ¶
func (_c *SubscriptionRepository_Rollback_Call) Return(_a0 error) *SubscriptionRepository_Rollback_Call
func (*SubscriptionRepository_Rollback_Call) Run ¶
func (_c *SubscriptionRepository_Rollback_Call) Run(run func(ctx context.Context, err error)) *SubscriptionRepository_Rollback_Call
type SubscriptionRepository_Update_Call ¶
SubscriptionRepository_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*SubscriptionRepository_Update_Call) Return ¶
func (_c *SubscriptionRepository_Update_Call) Return(_a0 error) *SubscriptionRepository_Update_Call
func (*SubscriptionRepository_Update_Call) Run ¶
func (_c *SubscriptionRepository_Update_Call) Run(run func(_a0 context.Context, _a1 *subscription.Subscription)) *SubscriptionRepository_Update_Call
type SubscriptionRepository_WithTransaction_Call ¶
SubscriptionRepository_WithTransaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithTransaction'
func (*SubscriptionRepository_WithTransaction_Call) Return ¶
func (_c *SubscriptionRepository_WithTransaction_Call) Return(_a0 context.Context) *SubscriptionRepository_WithTransaction_Call
func (*SubscriptionRepository_WithTransaction_Call) Run ¶
func (_c *SubscriptionRepository_WithTransaction_Call) Run(run func(ctx context.Context)) *SubscriptionRepository_WithTransaction_Call