Documentation ¶
Index ¶
- type ProviderRepository
- func (_m *ProviderRepository) Create(_a0 context.Context, _a1 *provider.Provider) error
- func (_m *ProviderRepository) Delete(_a0 context.Context, _a1 uint64) error
- func (_m *ProviderRepository) EXPECT() *ProviderRepository_Expecter
- func (_m *ProviderRepository) Get(_a0 context.Context, _a1 uint64) (*provider.Provider, error)
- func (_m *ProviderRepository) List(_a0 context.Context, _a1 provider.Filter) ([]provider.Provider, error)
- func (_m *ProviderRepository) Update(_a0 context.Context, _a1 *provider.Provider) error
- type ProviderRepository_Create_Call
- func (_c *ProviderRepository_Create_Call) Return(_a0 error) *ProviderRepository_Create_Call
- func (_c *ProviderRepository_Create_Call) Run(run func(_a0 context.Context, _a1 *provider.Provider)) *ProviderRepository_Create_Call
- func (_c *ProviderRepository_Create_Call) RunAndReturn(run func(context.Context, *provider.Provider) error) *ProviderRepository_Create_Call
- type ProviderRepository_Delete_Call
- func (_c *ProviderRepository_Delete_Call) Return(_a0 error) *ProviderRepository_Delete_Call
- func (_c *ProviderRepository_Delete_Call) Run(run func(_a0 context.Context, _a1 uint64)) *ProviderRepository_Delete_Call
- func (_c *ProviderRepository_Delete_Call) RunAndReturn(run func(context.Context, uint64) error) *ProviderRepository_Delete_Call
- type ProviderRepository_Expecter
- func (_e *ProviderRepository_Expecter) Create(_a0 interface{}, _a1 interface{}) *ProviderRepository_Create_Call
- func (_e *ProviderRepository_Expecter) Delete(_a0 interface{}, _a1 interface{}) *ProviderRepository_Delete_Call
- func (_e *ProviderRepository_Expecter) Get(_a0 interface{}, _a1 interface{}) *ProviderRepository_Get_Call
- func (_e *ProviderRepository_Expecter) List(_a0 interface{}, _a1 interface{}) *ProviderRepository_List_Call
- func (_e *ProviderRepository_Expecter) Update(_a0 interface{}, _a1 interface{}) *ProviderRepository_Update_Call
- type ProviderRepository_Get_Call
- func (_c *ProviderRepository_Get_Call) Return(_a0 *provider.Provider, _a1 error) *ProviderRepository_Get_Call
- func (_c *ProviderRepository_Get_Call) Run(run func(_a0 context.Context, _a1 uint64)) *ProviderRepository_Get_Call
- func (_c *ProviderRepository_Get_Call) RunAndReturn(run func(context.Context, uint64) (*provider.Provider, error)) *ProviderRepository_Get_Call
- type ProviderRepository_List_Call
- func (_c *ProviderRepository_List_Call) Return(_a0 []provider.Provider, _a1 error) *ProviderRepository_List_Call
- func (_c *ProviderRepository_List_Call) Run(run func(_a0 context.Context, _a1 provider.Filter)) *ProviderRepository_List_Call
- func (_c *ProviderRepository_List_Call) RunAndReturn(run func(context.Context, provider.Filter) ([]provider.Provider, error)) *ProviderRepository_List_Call
- type ProviderRepository_Update_Call
- func (_c *ProviderRepository_Update_Call) Return(_a0 error) *ProviderRepository_Update_Call
- func (_c *ProviderRepository_Update_Call) Run(run func(_a0 context.Context, _a1 *provider.Provider)) *ProviderRepository_Update_Call
- func (_c *ProviderRepository_Update_Call) RunAndReturn(run func(context.Context, *provider.Provider) error) *ProviderRepository_Update_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProviderRepository ¶
ProviderRepository is an autogenerated mock type for the Repository type
func NewProviderRepository ¶
func NewProviderRepository(t mockConstructorTestingTNewProviderRepository) *ProviderRepository
NewProviderRepository creates a new instance of ProviderRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ProviderRepository) Delete ¶
func (_m *ProviderRepository) Delete(_a0 context.Context, _a1 uint64) error
Delete provides a mock function with given fields: _a0, _a1
func (*ProviderRepository) EXPECT ¶
func (_m *ProviderRepository) EXPECT() *ProviderRepository_Expecter
type ProviderRepository_Create_Call ¶
ProviderRepository_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*ProviderRepository_Create_Call) Return ¶
func (_c *ProviderRepository_Create_Call) Return(_a0 error) *ProviderRepository_Create_Call
func (*ProviderRepository_Create_Call) Run ¶
func (_c *ProviderRepository_Create_Call) Run(run func(_a0 context.Context, _a1 *provider.Provider)) *ProviderRepository_Create_Call
func (*ProviderRepository_Create_Call) RunAndReturn ¶ added in v0.6.1
func (_c *ProviderRepository_Create_Call) RunAndReturn(run func(context.Context, *provider.Provider) error) *ProviderRepository_Create_Call
type ProviderRepository_Delete_Call ¶
ProviderRepository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*ProviderRepository_Delete_Call) Return ¶
func (_c *ProviderRepository_Delete_Call) Return(_a0 error) *ProviderRepository_Delete_Call
func (*ProviderRepository_Delete_Call) Run ¶
func (_c *ProviderRepository_Delete_Call) Run(run func(_a0 context.Context, _a1 uint64)) *ProviderRepository_Delete_Call
func (*ProviderRepository_Delete_Call) RunAndReturn ¶ added in v0.6.1
func (_c *ProviderRepository_Delete_Call) RunAndReturn(run func(context.Context, uint64) error) *ProviderRepository_Delete_Call
type ProviderRepository_Expecter ¶
type ProviderRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*ProviderRepository_Expecter) Create ¶
func (_e *ProviderRepository_Expecter) Create(_a0 interface{}, _a1 interface{}) *ProviderRepository_Create_Call
Create is a helper method to define mock.On call
- _a0 context.Context
- _a1 *provider.Provider
func (*ProviderRepository_Expecter) Delete ¶
func (_e *ProviderRepository_Expecter) Delete(_a0 interface{}, _a1 interface{}) *ProviderRepository_Delete_Call
Delete is a helper method to define mock.On call
- _a0 context.Context
- _a1 uint64
func (*ProviderRepository_Expecter) Get ¶
func (_e *ProviderRepository_Expecter) Get(_a0 interface{}, _a1 interface{}) *ProviderRepository_Get_Call
Get is a helper method to define mock.On call
- _a0 context.Context
- _a1 uint64
func (*ProviderRepository_Expecter) List ¶
func (_e *ProviderRepository_Expecter) List(_a0 interface{}, _a1 interface{}) *ProviderRepository_List_Call
List is a helper method to define mock.On call
- _a0 context.Context
- _a1 provider.Filter
func (*ProviderRepository_Expecter) Update ¶
func (_e *ProviderRepository_Expecter) Update(_a0 interface{}, _a1 interface{}) *ProviderRepository_Update_Call
Update is a helper method to define mock.On call
- _a0 context.Context
- _a1 *provider.Provider
type ProviderRepository_Get_Call ¶
ProviderRepository_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*ProviderRepository_Get_Call) Return ¶
func (_c *ProviderRepository_Get_Call) Return(_a0 *provider.Provider, _a1 error) *ProviderRepository_Get_Call
func (*ProviderRepository_Get_Call) Run ¶
func (_c *ProviderRepository_Get_Call) Run(run func(_a0 context.Context, _a1 uint64)) *ProviderRepository_Get_Call
func (*ProviderRepository_Get_Call) RunAndReturn ¶ added in v0.6.1
func (_c *ProviderRepository_Get_Call) RunAndReturn(run func(context.Context, uint64) (*provider.Provider, error)) *ProviderRepository_Get_Call
type ProviderRepository_List_Call ¶
ProviderRepository_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*ProviderRepository_List_Call) Return ¶
func (_c *ProviderRepository_List_Call) Return(_a0 []provider.Provider, _a1 error) *ProviderRepository_List_Call
func (*ProviderRepository_List_Call) Run ¶
func (_c *ProviderRepository_List_Call) Run(run func(_a0 context.Context, _a1 provider.Filter)) *ProviderRepository_List_Call
func (*ProviderRepository_List_Call) RunAndReturn ¶ added in v0.6.1
func (_c *ProviderRepository_List_Call) RunAndReturn(run func(context.Context, provider.Filter) ([]provider.Provider, error)) *ProviderRepository_List_Call
type ProviderRepository_Update_Call ¶
ProviderRepository_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*ProviderRepository_Update_Call) Return ¶
func (_c *ProviderRepository_Update_Call) Return(_a0 error) *ProviderRepository_Update_Call
func (*ProviderRepository_Update_Call) Run ¶
func (_c *ProviderRepository_Update_Call) Run(run func(_a0 context.Context, _a1 *provider.Provider)) *ProviderRepository_Update_Call
func (*ProviderRepository_Update_Call) RunAndReturn ¶ added in v0.6.1
func (_c *ProviderRepository_Update_Call) RunAndReturn(run func(context.Context, *provider.Provider) error) *ProviderRepository_Update_Call