Documentation ¶
Index ¶
- type GroupService
- func (_m *GroupService) AddMember(ctx context.Context, groupID string, principal authenticate.Principal) error
- func (_m *GroupService) EXPECT() *GroupService_Expecter
- func (_m *GroupService) Get(ctx context.Context, id string) (group.Group, error)
- func (_m *GroupService) ListByUser(ctx context.Context, principalID string, principalType string, ...) ([]group.Group, error)
- type GroupService_AddMember_Call
- func (_c *GroupService_AddMember_Call) Return(_a0 error) *GroupService_AddMember_Call
- func (_c *GroupService_AddMember_Call) Run(...) *GroupService_AddMember_Call
- func (_c *GroupService_AddMember_Call) RunAndReturn(run func(context.Context, string, authenticate.Principal) error) *GroupService_AddMember_Call
- type GroupService_Expecter
- func (_e *GroupService_Expecter) AddMember(ctx interface{}, groupID interface{}, principal interface{}) *GroupService_AddMember_Call
- func (_e *GroupService_Expecter) Get(ctx interface{}, id interface{}) *GroupService_Get_Call
- func (_e *GroupService_Expecter) ListByUser(ctx interface{}, principalID interface{}, principalType interface{}, ...) *GroupService_ListByUser_Call
- type GroupService_Get_Call
- func (_c *GroupService_Get_Call) Return(_a0 group.Group, _a1 error) *GroupService_Get_Call
- func (_c *GroupService_Get_Call) Run(run func(ctx context.Context, id string)) *GroupService_Get_Call
- func (_c *GroupService_Get_Call) RunAndReturn(run func(context.Context, string) (group.Group, error)) *GroupService_Get_Call
- type GroupService_ListByUser_Call
- func (_c *GroupService_ListByUser_Call) Return(_a0 []group.Group, _a1 error) *GroupService_ListByUser_Call
- func (_c *GroupService_ListByUser_Call) Run(run func(ctx context.Context, principalID string, principalType string, ...)) *GroupService_ListByUser_Call
- func (_c *GroupService_ListByUser_Call) RunAndReturn(run func(context.Context, string, string, group.Filter) ([]group.Group, error)) *GroupService_ListByUser_Call
- type OrganizationService
- func (_m *OrganizationService) AddMember(ctx context.Context, orgID string, relationName string, ...) error
- func (_m *OrganizationService) EXPECT() *OrganizationService_Expecter
- func (_m *OrganizationService) Get(ctx context.Context, id string) (organization.Organization, error)
- func (_m *OrganizationService) ListByUser(ctx context.Context, p authenticate.Principal, f organization.Filter) ([]organization.Organization, error)
- type OrganizationService_AddMember_Call
- func (_c *OrganizationService_AddMember_Call) Return(_a0 error) *OrganizationService_AddMember_Call
- func (_c *OrganizationService_AddMember_Call) Run(run func(ctx context.Context, orgID string, relationName string, ...)) *OrganizationService_AddMember_Call
- func (_c *OrganizationService_AddMember_Call) RunAndReturn(run func(context.Context, string, string, authenticate.Principal) error) *OrganizationService_AddMember_Call
- type OrganizationService_Expecter
- func (_e *OrganizationService_Expecter) AddMember(ctx interface{}, orgID interface{}, relationName interface{}, ...) *OrganizationService_AddMember_Call
- func (_e *OrganizationService_Expecter) Get(ctx interface{}, id interface{}) *OrganizationService_Get_Call
- func (_e *OrganizationService_Expecter) ListByUser(ctx interface{}, p interface{}, f interface{}) *OrganizationService_ListByUser_Call
- type OrganizationService_Get_Call
- func (_c *OrganizationService_Get_Call) Return(_a0 organization.Organization, _a1 error) *OrganizationService_Get_Call
- func (_c *OrganizationService_Get_Call) Run(run func(ctx context.Context, id string)) *OrganizationService_Get_Call
- func (_c *OrganizationService_Get_Call) RunAndReturn(run func(context.Context, string) (organization.Organization, error)) *OrganizationService_Get_Call
- type OrganizationService_ListByUser_Call
- func (_c *OrganizationService_ListByUser_Call) Return(_a0 []organization.Organization, _a1 error) *OrganizationService_ListByUser_Call
- func (_c *OrganizationService_ListByUser_Call) Run(run func(ctx context.Context, p authenticate.Principal, f organization.Filter)) *OrganizationService_ListByUser_Call
- func (_c *OrganizationService_ListByUser_Call) RunAndReturn(...) *OrganizationService_ListByUser_Call
- type PolicyService
- type PolicyService_Create_Call
- func (_c *PolicyService_Create_Call) Return(_a0 policy.Policy, _a1 error) *PolicyService_Create_Call
- func (_c *PolicyService_Create_Call) Run(run func(ctx context.Context, _a1 policy.Policy)) *PolicyService_Create_Call
- func (_c *PolicyService_Create_Call) RunAndReturn(run func(context.Context, policy.Policy) (policy.Policy, error)) *PolicyService_Create_Call
- type PolicyService_Expecter
- type PreferencesService
- type PreferencesService_Expecter
- type PreferencesService_LoadPlatformPreferences_Call
- func (_c *PreferencesService_LoadPlatformPreferences_Call) Return(_a0 map[string]string, _a1 error) *PreferencesService_LoadPlatformPreferences_Call
- func (_c *PreferencesService_LoadPlatformPreferences_Call) Run(run func(ctx context.Context)) *PreferencesService_LoadPlatformPreferences_Call
- func (_c *PreferencesService_LoadPlatformPreferences_Call) RunAndReturn(run func(context.Context) (map[string]string, error)) *PreferencesService_LoadPlatformPreferences_Call
- type RelationService
- type RelationService_Create_Call
- func (_c *RelationService_Create_Call) Return(_a0 relation.Relation, _a1 error) *RelationService_Create_Call
- func (_c *RelationService_Create_Call) Run(run func(ctx context.Context, rel relation.Relation)) *RelationService_Create_Call
- func (_c *RelationService_Create_Call) RunAndReturn(run func(context.Context, relation.Relation) (relation.Relation, error)) *RelationService_Create_Call
- 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 uuid.UUID) error
- func (_m *Repository) EXPECT() *Repository_Expecter
- func (_m *Repository) Get(ctx context.Context, id uuid.UUID) (invitation.Invitation, error)
- func (_m *Repository) List(ctx context.Context, flt invitation.Filter) ([]invitation.Invitation, error)
- func (_m *Repository) ListByUser(ctx context.Context, id string) ([]invitation.Invitation, error)
- func (_m *Repository) Set(ctx context.Context, invite invitation.Invitation) (invitation.Invitation, 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) List(ctx interface{}, flt interface{}) *Repository_List_Call
- func (_e *Repository_Expecter) ListByUser(ctx interface{}, id interface{}) *Repository_ListByUser_Call
- func (_e *Repository_Expecter) Set(ctx interface{}, invite interface{}) *Repository_Set_Call
- type Repository_Get_Call
- func (_c *Repository_Get_Call) Return(_a0 invitation.Invitation, _a1 error) *Repository_Get_Call
- func (_c *Repository_Get_Call) Run(run func(ctx context.Context, id uuid.UUID)) *Repository_Get_Call
- func (_c *Repository_Get_Call) RunAndReturn(run func(context.Context, uuid.UUID) (invitation.Invitation, error)) *Repository_Get_Call
- type Repository_ListByUser_Call
- func (_c *Repository_ListByUser_Call) Return(_a0 []invitation.Invitation, _a1 error) *Repository_ListByUser_Call
- func (_c *Repository_ListByUser_Call) Run(run func(ctx context.Context, id string)) *Repository_ListByUser_Call
- func (_c *Repository_ListByUser_Call) RunAndReturn(run func(context.Context, string) ([]invitation.Invitation, error)) *Repository_ListByUser_Call
- type Repository_List_Call
- func (_c *Repository_List_Call) Return(_a0 []invitation.Invitation, _a1 error) *Repository_List_Call
- func (_c *Repository_List_Call) Run(run func(ctx context.Context, flt invitation.Filter)) *Repository_List_Call
- func (_c *Repository_List_Call) RunAndReturn(run func(context.Context, invitation.Filter) ([]invitation.Invitation, error)) *Repository_List_Call
- type Repository_Set_Call
- type UserService
- type UserService_Expecter
- type UserService_GetByID_Call
- func (_c *UserService_GetByID_Call) Return(_a0 user.User, _a1 error) *UserService_GetByID_Call
- func (_c *UserService_GetByID_Call) Run(run func(ctx context.Context, id string)) *UserService_GetByID_Call
- func (_c *UserService_GetByID_Call) RunAndReturn(run func(context.Context, string) (user.User, error)) *UserService_GetByID_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GroupService ¶
GroupService is an autogenerated mock type for the GroupService type
func NewGroupService ¶
func NewGroupService(t interface { mock.TestingT Cleanup(func()) }) *GroupService
NewGroupService creates a new instance of GroupService. 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 (*GroupService) AddMember ¶
func (_m *GroupService) AddMember(ctx context.Context, groupID string, principal authenticate.Principal) error
AddMember provides a mock function with given fields: ctx, groupID, principal
func (*GroupService) EXPECT ¶
func (_m *GroupService) EXPECT() *GroupService_Expecter
type GroupService_AddMember_Call ¶
GroupService_AddMember_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddMember'
func (*GroupService_AddMember_Call) Return ¶
func (_c *GroupService_AddMember_Call) Return(_a0 error) *GroupService_AddMember_Call
func (*GroupService_AddMember_Call) Run ¶
func (_c *GroupService_AddMember_Call) Run(run func(ctx context.Context, groupID string, principal authenticate.Principal)) *GroupService_AddMember_Call
func (*GroupService_AddMember_Call) RunAndReturn ¶
func (_c *GroupService_AddMember_Call) RunAndReturn(run func(context.Context, string, authenticate.Principal) error) *GroupService_AddMember_Call
type GroupService_Expecter ¶
type GroupService_Expecter struct {
// contains filtered or unexported fields
}
func (*GroupService_Expecter) AddMember ¶
func (_e *GroupService_Expecter) AddMember(ctx interface{}, groupID interface{}, principal interface{}) *GroupService_AddMember_Call
AddMember is a helper method to define mock.On call
- ctx context.Context
- groupID string
- principal authenticate.Principal
func (*GroupService_Expecter) Get ¶
func (_e *GroupService_Expecter) Get(ctx interface{}, id interface{}) *GroupService_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- id string
func (*GroupService_Expecter) ListByUser ¶
func (_e *GroupService_Expecter) ListByUser(ctx interface{}, principalID interface{}, principalType interface{}, flt interface{}) *GroupService_ListByUser_Call
ListByUser is a helper method to define mock.On call
- ctx context.Context
- principalID string
- principalType string
- flt group.Filter
type GroupService_Get_Call ¶
GroupService_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*GroupService_Get_Call) Return ¶
func (_c *GroupService_Get_Call) Return(_a0 group.Group, _a1 error) *GroupService_Get_Call
func (*GroupService_Get_Call) Run ¶
func (_c *GroupService_Get_Call) Run(run func(ctx context.Context, id string)) *GroupService_Get_Call
func (*GroupService_Get_Call) RunAndReturn ¶
func (_c *GroupService_Get_Call) RunAndReturn(run func(context.Context, string) (group.Group, error)) *GroupService_Get_Call
type GroupService_ListByUser_Call ¶
GroupService_ListByUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListByUser'
func (*GroupService_ListByUser_Call) Return ¶
func (_c *GroupService_ListByUser_Call) Return(_a0 []group.Group, _a1 error) *GroupService_ListByUser_Call
func (*GroupService_ListByUser_Call) Run ¶
func (_c *GroupService_ListByUser_Call) Run(run func(ctx context.Context, principalID string, principalType string, flt group.Filter)) *GroupService_ListByUser_Call
func (*GroupService_ListByUser_Call) RunAndReturn ¶
type OrganizationService ¶
OrganizationService is an autogenerated mock type for the OrganizationService type
func NewOrganizationService ¶
func NewOrganizationService(t interface { mock.TestingT Cleanup(func()) }) *OrganizationService
NewOrganizationService creates a new instance of OrganizationService. 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 (*OrganizationService) AddMember ¶
func (_m *OrganizationService) AddMember(ctx context.Context, orgID string, relationName string, principal authenticate.Principal) error
AddMember provides a mock function with given fields: ctx, orgID, relationName, principal
func (*OrganizationService) EXPECT ¶
func (_m *OrganizationService) EXPECT() *OrganizationService_Expecter
func (*OrganizationService) Get ¶
func (_m *OrganizationService) Get(ctx context.Context, id string) (organization.Organization, error)
Get provides a mock function with given fields: ctx, id
func (*OrganizationService) ListByUser ¶
func (_m *OrganizationService) ListByUser(ctx context.Context, p authenticate.Principal, f organization.Filter) ([]organization.Organization, error)
ListByUser provides a mock function with given fields: ctx, p, f
type OrganizationService_AddMember_Call ¶
OrganizationService_AddMember_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddMember'
func (*OrganizationService_AddMember_Call) Return ¶
func (_c *OrganizationService_AddMember_Call) Return(_a0 error) *OrganizationService_AddMember_Call
func (*OrganizationService_AddMember_Call) Run ¶
func (_c *OrganizationService_AddMember_Call) Run(run func(ctx context.Context, orgID string, relationName string, principal authenticate.Principal)) *OrganizationService_AddMember_Call
func (*OrganizationService_AddMember_Call) RunAndReturn ¶
func (_c *OrganizationService_AddMember_Call) RunAndReturn(run func(context.Context, string, string, authenticate.Principal) error) *OrganizationService_AddMember_Call
type OrganizationService_Expecter ¶
type OrganizationService_Expecter struct {
// contains filtered or unexported fields
}
func (*OrganizationService_Expecter) AddMember ¶
func (_e *OrganizationService_Expecter) AddMember(ctx interface{}, orgID interface{}, relationName interface{}, principal interface{}) *OrganizationService_AddMember_Call
AddMember is a helper method to define mock.On call
- ctx context.Context
- orgID string
- relationName string
- principal authenticate.Principal
func (*OrganizationService_Expecter) Get ¶
func (_e *OrganizationService_Expecter) Get(ctx interface{}, id interface{}) *OrganizationService_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- id string
func (*OrganizationService_Expecter) ListByUser ¶
func (_e *OrganizationService_Expecter) ListByUser(ctx interface{}, p interface{}, f interface{}) *OrganizationService_ListByUser_Call
ListByUser is a helper method to define mock.On call
- ctx context.Context
- p authenticate.Principal
- f organization.Filter
type OrganizationService_Get_Call ¶
OrganizationService_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*OrganizationService_Get_Call) Return ¶
func (_c *OrganizationService_Get_Call) Return(_a0 organization.Organization, _a1 error) *OrganizationService_Get_Call
func (*OrganizationService_Get_Call) Run ¶
func (_c *OrganizationService_Get_Call) Run(run func(ctx context.Context, id string)) *OrganizationService_Get_Call
func (*OrganizationService_Get_Call) RunAndReturn ¶
func (_c *OrganizationService_Get_Call) RunAndReturn(run func(context.Context, string) (organization.Organization, error)) *OrganizationService_Get_Call
type OrganizationService_ListByUser_Call ¶
OrganizationService_ListByUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListByUser'
func (*OrganizationService_ListByUser_Call) Return ¶
func (_c *OrganizationService_ListByUser_Call) Return(_a0 []organization.Organization, _a1 error) *OrganizationService_ListByUser_Call
func (*OrganizationService_ListByUser_Call) Run ¶
func (_c *OrganizationService_ListByUser_Call) Run(run func(ctx context.Context, p authenticate.Principal, f organization.Filter)) *OrganizationService_ListByUser_Call
func (*OrganizationService_ListByUser_Call) RunAndReturn ¶
func (_c *OrganizationService_ListByUser_Call) RunAndReturn(run func(context.Context, authenticate.Principal, organization.Filter) ([]organization.Organization, error)) *OrganizationService_ListByUser_Call
type PolicyService ¶
PolicyService is an autogenerated mock type for the PolicyService type
func NewPolicyService ¶
func NewPolicyService(t interface { mock.TestingT Cleanup(func()) }) *PolicyService
NewPolicyService creates a new instance of PolicyService. 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 (*PolicyService) EXPECT ¶
func (_m *PolicyService) EXPECT() *PolicyService_Expecter
type PolicyService_Create_Call ¶
PolicyService_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*PolicyService_Create_Call) Return ¶
func (_c *PolicyService_Create_Call) Return(_a0 policy.Policy, _a1 error) *PolicyService_Create_Call
func (*PolicyService_Create_Call) Run ¶
func (_c *PolicyService_Create_Call) Run(run func(ctx context.Context, _a1 policy.Policy)) *PolicyService_Create_Call
func (*PolicyService_Create_Call) RunAndReturn ¶
func (_c *PolicyService_Create_Call) RunAndReturn(run func(context.Context, policy.Policy) (policy.Policy, error)) *PolicyService_Create_Call
type PolicyService_Expecter ¶
type PolicyService_Expecter struct {
// contains filtered or unexported fields
}
func (*PolicyService_Expecter) Create ¶
func (_e *PolicyService_Expecter) Create(ctx interface{}, _a1 interface{}) *PolicyService_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- _a1 policy.Policy
type PreferencesService ¶
PreferencesService is an autogenerated mock type for the PreferencesService type
func NewPreferencesService ¶
func NewPreferencesService(t interface { mock.TestingT Cleanup(func()) }) *PreferencesService
NewPreferencesService creates a new instance of PreferencesService. 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 (*PreferencesService) EXPECT ¶
func (_m *PreferencesService) EXPECT() *PreferencesService_Expecter
func (*PreferencesService) LoadPlatformPreferences ¶
func (_m *PreferencesService) LoadPlatformPreferences(ctx context.Context) (map[string]string, error)
LoadPlatformPreferences provides a mock function with given fields: ctx
type PreferencesService_Expecter ¶
type PreferencesService_Expecter struct {
// contains filtered or unexported fields
}
func (*PreferencesService_Expecter) LoadPlatformPreferences ¶
func (_e *PreferencesService_Expecter) LoadPlatformPreferences(ctx interface{}) *PreferencesService_LoadPlatformPreferences_Call
LoadPlatformPreferences is a helper method to define mock.On call
- ctx context.Context
type PreferencesService_LoadPlatformPreferences_Call ¶
PreferencesService_LoadPlatformPreferences_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LoadPlatformPreferences'
func (*PreferencesService_LoadPlatformPreferences_Call) Return ¶
func (_c *PreferencesService_LoadPlatformPreferences_Call) Return(_a0 map[string]string, _a1 error) *PreferencesService_LoadPlatformPreferences_Call
func (*PreferencesService_LoadPlatformPreferences_Call) Run ¶
func (_c *PreferencesService_LoadPlatformPreferences_Call) Run(run func(ctx context.Context)) *PreferencesService_LoadPlatformPreferences_Call
func (*PreferencesService_LoadPlatformPreferences_Call) RunAndReturn ¶
func (_c *PreferencesService_LoadPlatformPreferences_Call) RunAndReturn(run func(context.Context) (map[string]string, error)) *PreferencesService_LoadPlatformPreferences_Call
type RelationService ¶
RelationService is an autogenerated mock type for the RelationService type
func NewRelationService ¶
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) Create ¶
func (_m *RelationService) Create(ctx context.Context, rel relation.Relation) (relation.Relation, error)
Create provides a mock function with given fields: ctx, rel
func (*RelationService) EXPECT ¶
func (_m *RelationService) EXPECT() *RelationService_Expecter
type RelationService_Create_Call ¶
RelationService_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*RelationService_Create_Call) Return ¶
func (_c *RelationService_Create_Call) Return(_a0 relation.Relation, _a1 error) *RelationService_Create_Call
func (*RelationService_Create_Call) Run ¶
func (_c *RelationService_Create_Call) Run(run func(ctx context.Context, rel relation.Relation)) *RelationService_Create_Call
func (*RelationService_Create_Call) RunAndReturn ¶
func (_c *RelationService_Create_Call) RunAndReturn(run func(context.Context, relation.Relation) (relation.Relation, error)) *RelationService_Create_Call
type RelationService_Delete_Call ¶
RelationService_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*RelationService_Delete_Call) Return ¶
func (_c *RelationService_Delete_Call) Return(_a0 error) *RelationService_Delete_Call
func (*RelationService_Delete_Call) Run ¶
func (_c *RelationService_Delete_Call) Run(run func(ctx context.Context, rel relation.Relation)) *RelationService_Delete_Call
func (*RelationService_Delete_Call) RunAndReturn ¶
func (_c *RelationService_Delete_Call) RunAndReturn(run func(context.Context, relation.Relation) error) *RelationService_Delete_Call
type RelationService_Expecter ¶
type RelationService_Expecter struct {
// contains filtered or unexported fields
}
func (*RelationService_Expecter) Create ¶
func (_e *RelationService_Expecter) Create(ctx interface{}, rel interface{}) *RelationService_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- rel relation.Relation
func (*RelationService_Expecter) Delete ¶
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) EXPECT ¶
func (_m *Repository) EXPECT() *Repository_Expecter
func (*Repository) Get ¶
func (_m *Repository) Get(ctx context.Context, id uuid.UUID) (invitation.Invitation, error)
Get provides a mock function with given fields: ctx, id
func (*Repository) List ¶
func (_m *Repository) List(ctx context.Context, flt invitation.Filter) ([]invitation.Invitation, error)
List provides a mock function with given fields: ctx, flt
func (*Repository) ListByUser ¶
func (_m *Repository) ListByUser(ctx context.Context, id string) ([]invitation.Invitation, error)
ListByUser provides a mock function with given fields: ctx, id
func (*Repository) Set ¶
func (_m *Repository) Set(ctx context.Context, invite invitation.Invitation) (invitation.Invitation, error)
Set provides a mock function with given fields: ctx, invite
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 uuid.UUID)) *Repository_Delete_Call
func (*Repository_Delete_Call) RunAndReturn ¶
func (_c *Repository_Delete_Call) RunAndReturn(run func(context.Context, uuid.UUID) 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 uuid.UUID
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 uuid.UUID
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 invitation.Filter
func (*Repository_Expecter) ListByUser ¶
func (_e *Repository_Expecter) ListByUser(ctx interface{}, id interface{}) *Repository_ListByUser_Call
ListByUser is a helper method to define mock.On call
- ctx context.Context
- id string
func (*Repository_Expecter) Set ¶
func (_e *Repository_Expecter) Set(ctx interface{}, invite interface{}) *Repository_Set_Call
Set is a helper method to define mock.On call
- ctx context.Context
- invite invitation.Invitation
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 invitation.Invitation, _a1 error) *Repository_Get_Call
func (*Repository_Get_Call) Run ¶
func (_c *Repository_Get_Call) Run(run func(ctx context.Context, id uuid.UUID)) *Repository_Get_Call
func (*Repository_Get_Call) RunAndReturn ¶
func (_c *Repository_Get_Call) RunAndReturn(run func(context.Context, uuid.UUID) (invitation.Invitation, error)) *Repository_Get_Call
type Repository_ListByUser_Call ¶
Repository_ListByUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListByUser'
func (*Repository_ListByUser_Call) Return ¶
func (_c *Repository_ListByUser_Call) Return(_a0 []invitation.Invitation, _a1 error) *Repository_ListByUser_Call
func (*Repository_ListByUser_Call) Run ¶
func (_c *Repository_ListByUser_Call) Run(run func(ctx context.Context, id string)) *Repository_ListByUser_Call
func (*Repository_ListByUser_Call) RunAndReturn ¶
func (_c *Repository_ListByUser_Call) RunAndReturn(run func(context.Context, string) ([]invitation.Invitation, error)) *Repository_ListByUser_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 []invitation.Invitation, _a1 error) *Repository_List_Call
func (*Repository_List_Call) Run ¶
func (_c *Repository_List_Call) Run(run func(ctx context.Context, flt invitation.Filter)) *Repository_List_Call
func (*Repository_List_Call) RunAndReturn ¶
func (_c *Repository_List_Call) RunAndReturn(run func(context.Context, invitation.Filter) ([]invitation.Invitation, error)) *Repository_List_Call
type Repository_Set_Call ¶
Repository_Set_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Set'
func (*Repository_Set_Call) Return ¶
func (_c *Repository_Set_Call) Return(_a0 invitation.Invitation, _a1 error) *Repository_Set_Call
func (*Repository_Set_Call) Run ¶
func (_c *Repository_Set_Call) Run(run func(ctx context.Context, invite invitation.Invitation)) *Repository_Set_Call
func (*Repository_Set_Call) RunAndReturn ¶
func (_c *Repository_Set_Call) RunAndReturn(run func(context.Context, invitation.Invitation) (invitation.Invitation, error)) *Repository_Set_Call
type UserService ¶
UserService is an autogenerated mock type for the UserService type
func NewUserService ¶
func NewUserService(t interface { mock.TestingT Cleanup(func()) }) *UserService
NewUserService creates a new instance of UserService. 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 (*UserService) EXPECT ¶
func (_m *UserService) EXPECT() *UserService_Expecter
type UserService_Expecter ¶
type UserService_Expecter struct {
// contains filtered or unexported fields
}
func (*UserService_Expecter) GetByID ¶
func (_e *UserService_Expecter) GetByID(ctx interface{}, id interface{}) *UserService_GetByID_Call
GetByID is a helper method to define mock.On call
- ctx context.Context
- id string
type UserService_GetByID_Call ¶
UserService_GetByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByID'
func (*UserService_GetByID_Call) Return ¶
func (_c *UserService_GetByID_Call) Return(_a0 user.User, _a1 error) *UserService_GetByID_Call
func (*UserService_GetByID_Call) Run ¶
func (_c *UserService_GetByID_Call) Run(run func(ctx context.Context, id string)) *UserService_GetByID_Call
func (*UserService_GetByID_Call) RunAndReturn ¶
func (_c *UserService_GetByID_Call) RunAndReturn(run func(context.Context, string) (user.User, error)) *UserService_GetByID_Call