Documentation ¶
Index ¶
- type SubscriptionRepository
- func (_m *SubscriptionRepository) Create(_a0 context.Context, _a1 silence.Silence) (string, error)
- func (_m *SubscriptionRepository) EXPECT() *SubscriptionRepository_Expecter
- func (_m *SubscriptionRepository) Get(ctx context.Context, id string) (silence.Silence, error)
- func (_m *SubscriptionRepository) List(_a0 context.Context, _a1 silence.Filter) ([]silence.Silence, error)
- func (_m *SubscriptionRepository) SoftDelete(ctx context.Context, id string) error
- type SubscriptionRepository_Create_Call
- func (_c *SubscriptionRepository_Create_Call) Return(_a0 string, _a1 error) *SubscriptionRepository_Create_Call
- func (_c *SubscriptionRepository_Create_Call) Run(run func(_a0 context.Context, _a1 silence.Silence)) *SubscriptionRepository_Create_Call
- func (_c *SubscriptionRepository_Create_Call) RunAndReturn(run func(context.Context, silence.Silence) (string, error)) *SubscriptionRepository_Create_Call
- type SubscriptionRepository_Expecter
- func (_e *SubscriptionRepository_Expecter) Create(_a0 interface{}, _a1 interface{}) *SubscriptionRepository_Create_Call
- func (_e *SubscriptionRepository_Expecter) Get(ctx interface{}, id interface{}) *SubscriptionRepository_Get_Call
- func (_e *SubscriptionRepository_Expecter) List(_a0 interface{}, _a1 interface{}) *SubscriptionRepository_List_Call
- func (_e *SubscriptionRepository_Expecter) SoftDelete(ctx interface{}, id interface{}) *SubscriptionRepository_SoftDelete_Call
- type SubscriptionRepository_Get_Call
- func (_c *SubscriptionRepository_Get_Call) Return(_a0 silence.Silence, _a1 error) *SubscriptionRepository_Get_Call
- func (_c *SubscriptionRepository_Get_Call) Run(run func(ctx context.Context, id string)) *SubscriptionRepository_Get_Call
- func (_c *SubscriptionRepository_Get_Call) RunAndReturn(run func(context.Context, string) (silence.Silence, error)) *SubscriptionRepository_Get_Call
- type SubscriptionRepository_List_Call
- func (_c *SubscriptionRepository_List_Call) Return(_a0 []silence.Silence, _a1 error) *SubscriptionRepository_List_Call
- func (_c *SubscriptionRepository_List_Call) Run(run func(_a0 context.Context, _a1 silence.Filter)) *SubscriptionRepository_List_Call
- func (_c *SubscriptionRepository_List_Call) RunAndReturn(run func(context.Context, silence.Filter) ([]silence.Silence, error)) *SubscriptionRepository_List_Call
- type SubscriptionRepository_SoftDelete_Call
- func (_c *SubscriptionRepository_SoftDelete_Call) Return(_a0 error) *SubscriptionRepository_SoftDelete_Call
- func (_c *SubscriptionRepository_SoftDelete_Call) Run(run func(ctx context.Context, id string)) *SubscriptionRepository_SoftDelete_Call
- func (_c *SubscriptionRepository_SoftDelete_Call) RunAndReturn(run func(context.Context, string) error) *SubscriptionRepository_SoftDelete_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SubscriptionRepository ¶
SubscriptionRepository is an autogenerated mock type for the Repository type
func NewSubscriptionRepository ¶
func NewSubscriptionRepository(t interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
func (*SubscriptionRepository) EXPECT ¶
func (_m *SubscriptionRepository) EXPECT() *SubscriptionRepository_Expecter
func (*SubscriptionRepository) List ¶
func (_m *SubscriptionRepository) List(_a0 context.Context, _a1 silence.Filter) ([]silence.Silence, error)
List provides a mock function with given fields: _a0, _a1
func (*SubscriptionRepository) SoftDelete ¶
func (_m *SubscriptionRepository) SoftDelete(ctx context.Context, id string) error
SoftDelete provides a mock function with given fields: ctx, id
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 string, _a1 error) *SubscriptionRepository_Create_Call
func (*SubscriptionRepository_Create_Call) Run ¶
func (_c *SubscriptionRepository_Create_Call) Run(run func(_a0 context.Context, _a1 silence.Silence)) *SubscriptionRepository_Create_Call
func (*SubscriptionRepository_Create_Call) RunAndReturn ¶ added in v0.6.1
func (_c *SubscriptionRepository_Create_Call) RunAndReturn(run func(context.Context, silence.Silence) (string, error)) *SubscriptionRepository_Create_Call
type SubscriptionRepository_Expecter ¶
type SubscriptionRepository_Expecter struct {
// contains filtered or unexported fields
}
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 silence.Silence
func (*SubscriptionRepository_Expecter) Get ¶
func (_e *SubscriptionRepository_Expecter) Get(ctx interface{}, id interface{}) *SubscriptionRepository_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- id string
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 silence.Filter
func (*SubscriptionRepository_Expecter) SoftDelete ¶
func (_e *SubscriptionRepository_Expecter) SoftDelete(ctx interface{}, id interface{}) *SubscriptionRepository_SoftDelete_Call
SoftDelete is a helper method to define mock.On call
- ctx context.Context
- id string
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 silence.Silence, _a1 error) *SubscriptionRepository_Get_Call
func (*SubscriptionRepository_Get_Call) Run ¶
func (_c *SubscriptionRepository_Get_Call) Run(run func(ctx context.Context, id string)) *SubscriptionRepository_Get_Call
func (*SubscriptionRepository_Get_Call) RunAndReturn ¶ added in v0.6.1
func (_c *SubscriptionRepository_Get_Call) RunAndReturn(run func(context.Context, string) (silence.Silence, error)) *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 []silence.Silence, _a1 error) *SubscriptionRepository_List_Call
func (*SubscriptionRepository_List_Call) Run ¶
func (_c *SubscriptionRepository_List_Call) Run(run func(_a0 context.Context, _a1 silence.Filter)) *SubscriptionRepository_List_Call
func (*SubscriptionRepository_List_Call) RunAndReturn ¶ added in v0.6.1
func (_c *SubscriptionRepository_List_Call) RunAndReturn(run func(context.Context, silence.Filter) ([]silence.Silence, error)) *SubscriptionRepository_List_Call
type SubscriptionRepository_SoftDelete_Call ¶
SubscriptionRepository_SoftDelete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SoftDelete'
func (*SubscriptionRepository_SoftDelete_Call) Return ¶
func (_c *SubscriptionRepository_SoftDelete_Call) Return(_a0 error) *SubscriptionRepository_SoftDelete_Call
func (*SubscriptionRepository_SoftDelete_Call) Run ¶
func (_c *SubscriptionRepository_SoftDelete_Call) Run(run func(ctx context.Context, id string)) *SubscriptionRepository_SoftDelete_Call
func (*SubscriptionRepository_SoftDelete_Call) RunAndReturn ¶ added in v0.6.1
func (_c *SubscriptionRepository_SoftDelete_Call) RunAndReturn(run func(context.Context, string) error) *SubscriptionRepository_SoftDelete_Call