Documentation ¶
Index ¶
- type AuditLogger
- type AuditLogger_Expecter
- type AuditLogger_Log_Call
- func (_c *AuditLogger_Log_Call) Return(_a0 error) *AuditLogger_Log_Call
- func (_c *AuditLogger_Log_Call) Run(run func(ctx context.Context, action string, data interface{})) *AuditLogger_Log_Call
- func (_c *AuditLogger_Log_Call) RunAndReturn(run func(context.Context, string, interface{}) error) *AuditLogger_Log_Call
- type Repository
- func (_m *Repository) BatchDelete(_a0 context.Context, _a1 []string) error
- func (_m *Repository) BulkUpsert(_a0 context.Context, _a1 []*domain.Resource) error
- func (_m *Repository) Delete(ctx context.Context, id string) error
- func (_m *Repository) EXPECT() *Repository_Expecter
- func (_m *Repository) Find(_a0 context.Context, _a1 domain.ListResourcesFilter) ([]*domain.Resource, error)
- func (_m *Repository) GetOne(ctx context.Context, id string) (*domain.Resource, error)
- func (_m *Repository) GetResourcesTotalCount(_a0 context.Context, _a1 domain.ListResourcesFilter) (int64, error)
- func (_m *Repository) Update(_a0 context.Context, _a1 *domain.Resource) error
- type Repository_BatchDelete_Call
- func (_c *Repository_BatchDelete_Call) Return(_a0 error) *Repository_BatchDelete_Call
- func (_c *Repository_BatchDelete_Call) Run(run func(_a0 context.Context, _a1 []string)) *Repository_BatchDelete_Call
- func (_c *Repository_BatchDelete_Call) RunAndReturn(run func(context.Context, []string) error) *Repository_BatchDelete_Call
- type Repository_BulkUpsert_Call
- func (_c *Repository_BulkUpsert_Call) Return(_a0 error) *Repository_BulkUpsert_Call
- func (_c *Repository_BulkUpsert_Call) Run(run func(_a0 context.Context, _a1 []*domain.Resource)) *Repository_BulkUpsert_Call
- func (_c *Repository_BulkUpsert_Call) RunAndReturn(run func(context.Context, []*domain.Resource) error) *Repository_BulkUpsert_Call
- type Repository_Delete_Call
- type Repository_Expecter
- func (_e *Repository_Expecter) BatchDelete(_a0 interface{}, _a1 interface{}) *Repository_BatchDelete_Call
- func (_e *Repository_Expecter) BulkUpsert(_a0 interface{}, _a1 interface{}) *Repository_BulkUpsert_Call
- func (_e *Repository_Expecter) Delete(ctx interface{}, id interface{}) *Repository_Delete_Call
- func (_e *Repository_Expecter) Find(_a0 interface{}, _a1 interface{}) *Repository_Find_Call
- func (_e *Repository_Expecter) GetOne(ctx interface{}, id interface{}) *Repository_GetOne_Call
- func (_e *Repository_Expecter) GetResourcesTotalCount(_a0 interface{}, _a1 interface{}) *Repository_GetResourcesTotalCount_Call
- func (_e *Repository_Expecter) Update(_a0 interface{}, _a1 interface{}) *Repository_Update_Call
- type Repository_Find_Call
- type Repository_GetOne_Call
- func (_c *Repository_GetOne_Call) Return(_a0 *domain.Resource, _a1 error) *Repository_GetOne_Call
- func (_c *Repository_GetOne_Call) Run(run func(ctx context.Context, id string)) *Repository_GetOne_Call
- func (_c *Repository_GetOne_Call) RunAndReturn(run func(context.Context, string) (*domain.Resource, error)) *Repository_GetOne_Call
- type Repository_GetResourcesTotalCount_Call
- func (_c *Repository_GetResourcesTotalCount_Call) Return(_a0 int64, _a1 error) *Repository_GetResourcesTotalCount_Call
- func (_c *Repository_GetResourcesTotalCount_Call) Run(run func(_a0 context.Context, _a1 domain.ListResourcesFilter)) *Repository_GetResourcesTotalCount_Call
- func (_c *Repository_GetResourcesTotalCount_Call) RunAndReturn(run func(context.Context, domain.ListResourcesFilter) (int64, error)) *Repository_GetResourcesTotalCount_Call
- type Repository_Update_Call
- func (_c *Repository_Update_Call) Return(_a0 error) *Repository_Update_Call
- func (_c *Repository_Update_Call) Run(run func(_a0 context.Context, _a1 *domain.Resource)) *Repository_Update_Call
- func (_c *Repository_Update_Call) RunAndReturn(run func(context.Context, *domain.Resource) error) *Repository_Update_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuditLogger ¶
AuditLogger is an autogenerated mock type for the auditLogger type
func NewAuditLogger ¶ added in v0.9.0
func NewAuditLogger(t interface { mock.TestingT Cleanup(func()) }) *AuditLogger
NewAuditLogger creates a new instance of AuditLogger. 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 (*AuditLogger) EXPECT ¶
func (_m *AuditLogger) EXPECT() *AuditLogger_Expecter
type AuditLogger_Expecter ¶
type AuditLogger_Expecter struct {
// contains filtered or unexported fields
}
func (*AuditLogger_Expecter) Log ¶
func (_e *AuditLogger_Expecter) Log(ctx interface{}, action interface{}, data interface{}) *AuditLogger_Log_Call
Log is a helper method to define mock.On call
- ctx context.Context
- action string
- data interface{}
type AuditLogger_Log_Call ¶
AuditLogger_Log_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Log'
func (*AuditLogger_Log_Call) Return ¶
func (_c *AuditLogger_Log_Call) Return(_a0 error) *AuditLogger_Log_Call
func (*AuditLogger_Log_Call) Run ¶
func (_c *AuditLogger_Log_Call) Run(run func(ctx context.Context, action string, data interface{})) *AuditLogger_Log_Call
func (*AuditLogger_Log_Call) RunAndReturn ¶ added in v0.9.0
func (_c *AuditLogger_Log_Call) RunAndReturn(run func(context.Context, string, interface{}) error) *AuditLogger_Log_Call
type Repository ¶
Repository is an autogenerated mock type for the repository type
func NewRepository ¶ added in v0.9.0
func NewRepository(t interface { mock.TestingT Cleanup(func()) }) *Repository
NewRepository creates a new instance of Repository. 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 (*Repository) BatchDelete ¶
func (_m *Repository) BatchDelete(_a0 context.Context, _a1 []string) error
BatchDelete provides a mock function with given fields: _a0, _a1
func (*Repository) BulkUpsert ¶
BulkUpsert provides a mock function with given fields: _a0, _a1
func (*Repository) Delete ¶
func (_m *Repository) Delete(ctx context.Context, id string) error
Delete provides a mock function with given fields: ctx, id
func (*Repository) EXPECT ¶
func (_m *Repository) EXPECT() *Repository_Expecter
func (*Repository) Find ¶
func (_m *Repository) Find(_a0 context.Context, _a1 domain.ListResourcesFilter) ([]*domain.Resource, error)
Find provides a mock function with given fields: _a0, _a1
func (*Repository) GetResourcesTotalCount ¶ added in v0.7.7
func (_m *Repository) GetResourcesTotalCount(_a0 context.Context, _a1 domain.ListResourcesFilter) (int64, error)
GetResourcesTotalCount provides a mock function with given fields: _a0, _a1
type Repository_BatchDelete_Call ¶
Repository_BatchDelete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BatchDelete'
func (*Repository_BatchDelete_Call) Return ¶
func (_c *Repository_BatchDelete_Call) Return(_a0 error) *Repository_BatchDelete_Call
func (*Repository_BatchDelete_Call) Run ¶
func (_c *Repository_BatchDelete_Call) Run(run func(_a0 context.Context, _a1 []string)) *Repository_BatchDelete_Call
func (*Repository_BatchDelete_Call) RunAndReturn ¶ added in v0.9.0
func (_c *Repository_BatchDelete_Call) RunAndReturn(run func(context.Context, []string) error) *Repository_BatchDelete_Call
type Repository_BulkUpsert_Call ¶
Repository_BulkUpsert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BulkUpsert'
func (*Repository_BulkUpsert_Call) Return ¶
func (_c *Repository_BulkUpsert_Call) Return(_a0 error) *Repository_BulkUpsert_Call
func (*Repository_BulkUpsert_Call) Run ¶
func (_c *Repository_BulkUpsert_Call) Run(run func(_a0 context.Context, _a1 []*domain.Resource)) *Repository_BulkUpsert_Call
func (*Repository_BulkUpsert_Call) RunAndReturn ¶ added in v0.9.0
func (_c *Repository_BulkUpsert_Call) RunAndReturn(run func(context.Context, []*domain.Resource) error) *Repository_BulkUpsert_Call
type Repository_Delete_Call ¶
Repository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*Repository_Delete_Call) Return ¶
func (_c *Repository_Delete_Call) Return(_a0 error) *Repository_Delete_Call
func (*Repository_Delete_Call) Run ¶
func (_c *Repository_Delete_Call) Run(run func(ctx context.Context, id string)) *Repository_Delete_Call
func (*Repository_Delete_Call) RunAndReturn ¶ added in v0.9.0
func (_c *Repository_Delete_Call) RunAndReturn(run func(context.Context, string) error) *Repository_Delete_Call
type Repository_Expecter ¶
type Repository_Expecter struct {
// contains filtered or unexported fields
}
func (*Repository_Expecter) BatchDelete ¶
func (_e *Repository_Expecter) BatchDelete(_a0 interface{}, _a1 interface{}) *Repository_BatchDelete_Call
BatchDelete is a helper method to define mock.On call
- _a0 context.Context
- _a1 []string
func (*Repository_Expecter) BulkUpsert ¶
func (_e *Repository_Expecter) BulkUpsert(_a0 interface{}, _a1 interface{}) *Repository_BulkUpsert_Call
BulkUpsert is a helper method to define mock.On call
- _a0 context.Context
- _a1 []*domain.Resource
func (*Repository_Expecter) Delete ¶
func (_e *Repository_Expecter) Delete(ctx interface{}, id interface{}) *Repository_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- id string
func (*Repository_Expecter) Find ¶
func (_e *Repository_Expecter) Find(_a0 interface{}, _a1 interface{}) *Repository_Find_Call
Find is a helper method to define mock.On call
- _a0 context.Context
- _a1 domain.ListResourcesFilter
func (*Repository_Expecter) GetOne ¶
func (_e *Repository_Expecter) GetOne(ctx interface{}, id interface{}) *Repository_GetOne_Call
GetOne is a helper method to define mock.On call
- ctx context.Context
- id string
func (*Repository_Expecter) GetResourcesTotalCount ¶ added in v0.7.7
func (_e *Repository_Expecter) GetResourcesTotalCount(_a0 interface{}, _a1 interface{}) *Repository_GetResourcesTotalCount_Call
GetResourcesTotalCount is a helper method to define mock.On call
- _a0 context.Context
- _a1 domain.ListResourcesFilter
func (*Repository_Expecter) Update ¶
func (_e *Repository_Expecter) Update(_a0 interface{}, _a1 interface{}) *Repository_Update_Call
Update is a helper method to define mock.On call
- _a0 context.Context
- _a1 *domain.Resource
type Repository_Find_Call ¶
Repository_Find_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Find'
func (*Repository_Find_Call) Return ¶
func (_c *Repository_Find_Call) Return(_a0 []*domain.Resource, _a1 error) *Repository_Find_Call
func (*Repository_Find_Call) Run ¶
func (_c *Repository_Find_Call) Run(run func(_a0 context.Context, _a1 domain.ListResourcesFilter)) *Repository_Find_Call
func (*Repository_Find_Call) RunAndReturn ¶ added in v0.9.0
func (_c *Repository_Find_Call) RunAndReturn(run func(context.Context, domain.ListResourcesFilter) ([]*domain.Resource, error)) *Repository_Find_Call
type Repository_GetOne_Call ¶
Repository_GetOne_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOne'
func (*Repository_GetOne_Call) Return ¶
func (_c *Repository_GetOne_Call) Return(_a0 *domain.Resource, _a1 error) *Repository_GetOne_Call
func (*Repository_GetOne_Call) Run ¶
func (_c *Repository_GetOne_Call) Run(run func(ctx context.Context, id string)) *Repository_GetOne_Call
func (*Repository_GetOne_Call) RunAndReturn ¶ added in v0.9.0
func (_c *Repository_GetOne_Call) RunAndReturn(run func(context.Context, string) (*domain.Resource, error)) *Repository_GetOne_Call
type Repository_GetResourcesTotalCount_Call ¶ added in v0.7.7
Repository_GetResourcesTotalCount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetResourcesTotalCount'
func (*Repository_GetResourcesTotalCount_Call) Return ¶ added in v0.7.7
func (_c *Repository_GetResourcesTotalCount_Call) Return(_a0 int64, _a1 error) *Repository_GetResourcesTotalCount_Call
func (*Repository_GetResourcesTotalCount_Call) Run ¶ added in v0.7.7
func (_c *Repository_GetResourcesTotalCount_Call) Run(run func(_a0 context.Context, _a1 domain.ListResourcesFilter)) *Repository_GetResourcesTotalCount_Call
func (*Repository_GetResourcesTotalCount_Call) RunAndReturn ¶ added in v0.7.7
func (_c *Repository_GetResourcesTotalCount_Call) RunAndReturn(run func(context.Context, domain.ListResourcesFilter) (int64, error)) *Repository_GetResourcesTotalCount_Call
type Repository_Update_Call ¶
Repository_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*Repository_Update_Call) Return ¶
func (_c *Repository_Update_Call) Return(_a0 error) *Repository_Update_Call
func (*Repository_Update_Call) Run ¶
func (_c *Repository_Update_Call) Run(run func(_a0 context.Context, _a1 *domain.Resource)) *Repository_Update_Call
func (*Repository_Update_Call) RunAndReturn ¶ added in v0.9.0
func (_c *Repository_Update_Call) RunAndReturn(run func(context.Context, *domain.Resource) error) *Repository_Update_Call