Documentation
¶
Index ¶
- type RelationService
- type RelationService_Delete_Call
- func (_c *RelationService_Delete_Call) Return(_a0 error) *RelationService_Delete_Call
- func (_c *RelationService_Delete_Call) Run(run func(ctx context.Context, rel relation.Relation)) *RelationService_Delete_Call
- func (_c *RelationService_Delete_Call) RunAndReturn(run func(context.Context, relation.Relation) error) *RelationService_Delete_Call
- type RelationService_Expecter
- type Repository
- func (_m *Repository) Delete(ctx context.Context, id string) error
- func (_m *Repository) EXPECT() *Repository_Expecter
- func (_m *Repository) Get(ctx context.Context, id string) (permission.Permission, error)
- func (_m *Repository) GetBySlug(ctx context.Context, id string) (permission.Permission, error)
- func (_m *Repository) List(ctx context.Context, flt permission.Filter) ([]permission.Permission, error)
- func (_m *Repository) Update(ctx context.Context, action permission.Permission) (permission.Permission, error)
- func (_m *Repository) Upsert(ctx context.Context, action permission.Permission) (permission.Permission, error)
- type Repository_Delete_Call
- type Repository_Expecter
- func (_e *Repository_Expecter) Delete(ctx interface{}, id interface{}) *Repository_Delete_Call
- func (_e *Repository_Expecter) Get(ctx interface{}, id interface{}) *Repository_Get_Call
- func (_e *Repository_Expecter) GetBySlug(ctx interface{}, id interface{}) *Repository_GetBySlug_Call
- func (_e *Repository_Expecter) List(ctx interface{}, flt interface{}) *Repository_List_Call
- func (_e *Repository_Expecter) Update(ctx interface{}, action interface{}) *Repository_Update_Call
- func (_e *Repository_Expecter) Upsert(ctx interface{}, action interface{}) *Repository_Upsert_Call
- type Repository_GetBySlug_Call
- func (_c *Repository_GetBySlug_Call) Return(_a0 permission.Permission, _a1 error) *Repository_GetBySlug_Call
- func (_c *Repository_GetBySlug_Call) Run(run func(ctx context.Context, id string)) *Repository_GetBySlug_Call
- func (_c *Repository_GetBySlug_Call) RunAndReturn(run func(context.Context, string) (permission.Permission, error)) *Repository_GetBySlug_Call
- type Repository_Get_Call
- func (_c *Repository_Get_Call) Return(_a0 permission.Permission, _a1 error) *Repository_Get_Call
- func (_c *Repository_Get_Call) Run(run func(ctx context.Context, id string)) *Repository_Get_Call
- func (_c *Repository_Get_Call) RunAndReturn(run func(context.Context, string) (permission.Permission, error)) *Repository_Get_Call
- type Repository_List_Call
- func (_c *Repository_List_Call) Return(_a0 []permission.Permission, _a1 error) *Repository_List_Call
- func (_c *Repository_List_Call) Run(run func(ctx context.Context, flt permission.Filter)) *Repository_List_Call
- func (_c *Repository_List_Call) RunAndReturn(run func(context.Context, permission.Filter) ([]permission.Permission, error)) *Repository_List_Call
- type Repository_Update_Call
- func (_c *Repository_Update_Call) Return(_a0 permission.Permission, _a1 error) *Repository_Update_Call
- func (_c *Repository_Update_Call) Run(run func(ctx context.Context, action permission.Permission)) *Repository_Update_Call
- func (_c *Repository_Update_Call) RunAndReturn(...) *Repository_Update_Call
- type Repository_Upsert_Call
- func (_c *Repository_Upsert_Call) Return(_a0 permission.Permission, _a1 error) *Repository_Upsert_Call
- func (_c *Repository_Upsert_Call) Run(run func(ctx context.Context, action permission.Permission)) *Repository_Upsert_Call
- func (_c *Repository_Upsert_Call) RunAndReturn(...) *Repository_Upsert_Call
- type RoleService
- type RoleService_Expecter
- type RoleService_RemovePermissionFromRoles_Call
- func (_c *RoleService_RemovePermissionFromRoles_Call) Return(_a0 error) *RoleService_RemovePermissionFromRoles_Call
- func (_c *RoleService_RemovePermissionFromRoles_Call) Run(run func(ctx context.Context, slug string)) *RoleService_RemovePermissionFromRoles_Call
- func (_c *RoleService_RemovePermissionFromRoles_Call) RunAndReturn(run func(context.Context, string) error) *RoleService_RemovePermissionFromRoles_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RelationService ¶ added in v0.107.0
RelationService is an autogenerated mock type for the RelationService type
func NewRelationService ¶ added in v0.107.0
func NewRelationService(t interface {
mock.TestingT
Cleanup(func())
}) *RelationService
NewRelationService creates a new instance of RelationService. 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 (*RelationService) Delete ¶ added in v0.107.0
Delete provides a mock function with given fields: ctx, rel
func (*RelationService) EXPECT ¶ added in v0.107.0
func (_m *RelationService) EXPECT() *RelationService_Expecter
type RelationService_Delete_Call ¶ added in v0.107.0
RelationService_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*RelationService_Delete_Call) Return ¶ added in v0.107.0
func (_c *RelationService_Delete_Call) Return(_a0 error) *RelationService_Delete_Call
func (*RelationService_Delete_Call) Run ¶ added in v0.107.0
func (_c *RelationService_Delete_Call) Run(run func(ctx context.Context, rel relation.Relation)) *RelationService_Delete_Call
func (*RelationService_Delete_Call) RunAndReturn ¶ added in v0.107.0
func (_c *RelationService_Delete_Call) RunAndReturn(run func(context.Context, relation.Relation) error) *RelationService_Delete_Call
type RelationService_Expecter ¶ added in v0.107.0
type RelationService_Expecter struct {
// contains filtered or unexported fields
}
func (*RelationService_Expecter) Delete ¶ added in v0.107.0
func (_e *RelationService_Expecter) Delete(ctx interface{}, rel interface{}) *RelationService_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- rel relation.Relation
type Repository ¶
Repository is an autogenerated mock type for the Repository type
func NewRepository ¶
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) 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) Get ¶
func (_m *Repository) Get(ctx context.Context, id string) (permission.Permission, error)
Get provides a mock function with given fields: ctx, id
func (*Repository) GetBySlug ¶
func (_m *Repository) GetBySlug(ctx context.Context, id string) (permission.Permission, error)
GetBySlug provides a mock function with given fields: ctx, id
func (*Repository) List ¶
func (_m *Repository) List(ctx context.Context, flt permission.Filter) ([]permission.Permission, error)
List provides a mock function with given fields: ctx, flt
func (*Repository) Update ¶
func (_m *Repository) Update(ctx context.Context, action permission.Permission) (permission.Permission, error)
Update provides a mock function with given fields: ctx, action
func (*Repository) Upsert ¶
func (_m *Repository) Upsert(ctx context.Context, action permission.Permission) (permission.Permission, error)
Upsert provides a mock function with given fields: ctx, action
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 ¶
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) 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) Get ¶
func (_e *Repository_Expecter) Get(ctx interface{}, id interface{}) *Repository_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- id string
func (*Repository_Expecter) GetBySlug ¶
func (_e *Repository_Expecter) GetBySlug(ctx interface{}, id interface{}) *Repository_GetBySlug_Call
GetBySlug is a helper method to define mock.On call
- ctx context.Context
- id string
func (*Repository_Expecter) List ¶
func (_e *Repository_Expecter) List(ctx interface{}, flt interface{}) *Repository_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- flt permission.Filter
func (*Repository_Expecter) Update ¶
func (_e *Repository_Expecter) Update(ctx interface{}, action interface{}) *Repository_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- action permission.Permission
func (*Repository_Expecter) Upsert ¶
func (_e *Repository_Expecter) Upsert(ctx interface{}, action interface{}) *Repository_Upsert_Call
Upsert is a helper method to define mock.On call
- ctx context.Context
- action permission.Permission
type Repository_GetBySlug_Call ¶
Repository_GetBySlug_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBySlug'
func (*Repository_GetBySlug_Call) Return ¶
func (_c *Repository_GetBySlug_Call) Return(_a0 permission.Permission, _a1 error) *Repository_GetBySlug_Call
func (*Repository_GetBySlug_Call) Run ¶
func (_c *Repository_GetBySlug_Call) Run(run func(ctx context.Context, id string)) *Repository_GetBySlug_Call
func (*Repository_GetBySlug_Call) RunAndReturn ¶
func (_c *Repository_GetBySlug_Call) RunAndReturn(run func(context.Context, string) (permission.Permission, error)) *Repository_GetBySlug_Call
type Repository_Get_Call ¶
Repository_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*Repository_Get_Call) Return ¶
func (_c *Repository_Get_Call) Return(_a0 permission.Permission, _a1 error) *Repository_Get_Call
func (*Repository_Get_Call) Run ¶
func (_c *Repository_Get_Call) Run(run func(ctx context.Context, id string)) *Repository_Get_Call
func (*Repository_Get_Call) RunAndReturn ¶
func (_c *Repository_Get_Call) RunAndReturn(run func(context.Context, string) (permission.Permission, error)) *Repository_Get_Call
type Repository_List_Call ¶
Repository_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*Repository_List_Call) Return ¶
func (_c *Repository_List_Call) Return(_a0 []permission.Permission, _a1 error) *Repository_List_Call
func (*Repository_List_Call) Run ¶
func (_c *Repository_List_Call) Run(run func(ctx context.Context, flt permission.Filter)) *Repository_List_Call
func (*Repository_List_Call) RunAndReturn ¶
func (_c *Repository_List_Call) RunAndReturn(run func(context.Context, permission.Filter) ([]permission.Permission, error)) *Repository_List_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 permission.Permission, _a1 error) *Repository_Update_Call
func (*Repository_Update_Call) Run ¶
func (_c *Repository_Update_Call) Run(run func(ctx context.Context, action permission.Permission)) *Repository_Update_Call
func (*Repository_Update_Call) RunAndReturn ¶
func (_c *Repository_Update_Call) RunAndReturn(run func(context.Context, permission.Permission) (permission.Permission, error)) *Repository_Update_Call
type Repository_Upsert_Call ¶
Repository_Upsert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Upsert'
func (*Repository_Upsert_Call) Return ¶
func (_c *Repository_Upsert_Call) Return(_a0 permission.Permission, _a1 error) *Repository_Upsert_Call
func (*Repository_Upsert_Call) Run ¶
func (_c *Repository_Upsert_Call) Run(run func(ctx context.Context, action permission.Permission)) *Repository_Upsert_Call
func (*Repository_Upsert_Call) RunAndReturn ¶
func (_c *Repository_Upsert_Call) RunAndReturn(run func(context.Context, permission.Permission) (permission.Permission, error)) *Repository_Upsert_Call
type RoleService ¶ added in v0.107.0
RoleService is an autogenerated mock type for the RoleService type
func NewRoleService ¶ added in v0.107.0
func NewRoleService(t interface {
mock.TestingT
Cleanup(func())
}) *RoleService
NewRoleService creates a new instance of RoleService. 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 (*RoleService) EXPECT ¶ added in v0.107.0
func (_m *RoleService) EXPECT() *RoleService_Expecter
func (*RoleService) RemovePermissionFromRoles ¶ added in v0.107.0
func (_m *RoleService) RemovePermissionFromRoles(ctx context.Context, slug string) error
RemovePermissionFromRoles provides a mock function with given fields: ctx, slug
type RoleService_Expecter ¶ added in v0.107.0
type RoleService_Expecter struct {
// contains filtered or unexported fields
}
func (*RoleService_Expecter) RemovePermissionFromRoles ¶ added in v0.107.0
func (_e *RoleService_Expecter) RemovePermissionFromRoles(ctx interface{}, slug interface{}) *RoleService_RemovePermissionFromRoles_Call
RemovePermissionFromRoles is a helper method to define mock.On call
- ctx context.Context
- slug string
type RoleService_RemovePermissionFromRoles_Call ¶ added in v0.107.0
RoleService_RemovePermissionFromRoles_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemovePermissionFromRoles'
func (*RoleService_RemovePermissionFromRoles_Call) Return ¶ added in v0.107.0
func (_c *RoleService_RemovePermissionFromRoles_Call) Return(_a0 error) *RoleService_RemovePermissionFromRoles_Call
func (*RoleService_RemovePermissionFromRoles_Call) Run ¶ added in v0.107.0
func (_c *RoleService_RemovePermissionFromRoles_Call) Run(run func(ctx context.Context, slug string)) *RoleService_RemovePermissionFromRoles_Call
func (*RoleService_RemovePermissionFromRoles_Call) RunAndReturn ¶ added in v0.107.0
func (_c *RoleService_RemovePermissionFromRoles_Call) RunAndReturn(run func(context.Context, string) error) *RoleService_RemovePermissionFromRoles_Call