Documentation ¶
Index ¶
- type AuthnService
- type AuthnService_Expecter
- type AuthnService_GetPrincipal_Call
- func (_c *AuthnService_GetPrincipal_Call) Return(_a0 authenticate.Principal, _a1 error) *AuthnService_GetPrincipal_Call
- func (_c *AuthnService_GetPrincipal_Call) Run(run func(ctx context.Context, via ...authenticate.ClientAssertion)) *AuthnService_GetPrincipal_Call
- func (_c *AuthnService_GetPrincipal_Call) RunAndReturn(...) *AuthnService_GetPrincipal_Call
- type PolicyService
- func (_m *PolicyService) Create(ctx context.Context, _a1 policy.Policy) (policy.Policy, error)
- func (_m *PolicyService) Delete(ctx context.Context, id string) error
- func (_m *PolicyService) EXPECT() *PolicyService_Expecter
- func (_m *PolicyService) List(ctx context.Context, flt policy.Filter) ([]policy.Policy, error)
- func (_m *PolicyService) OrgMemberCount(ctx context.Context, id string) (policy.MemberCount, error)
- 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_Delete_Call
- func (_c *PolicyService_Delete_Call) Return(_a0 error) *PolicyService_Delete_Call
- func (_c *PolicyService_Delete_Call) Run(run func(ctx context.Context, id string)) *PolicyService_Delete_Call
- func (_c *PolicyService_Delete_Call) RunAndReturn(run func(context.Context, string) error) *PolicyService_Delete_Call
- type PolicyService_Expecter
- func (_e *PolicyService_Expecter) Create(ctx interface{}, _a1 interface{}) *PolicyService_Create_Call
- func (_e *PolicyService_Expecter) Delete(ctx interface{}, id interface{}) *PolicyService_Delete_Call
- func (_e *PolicyService_Expecter) List(ctx interface{}, flt interface{}) *PolicyService_List_Call
- func (_e *PolicyService_Expecter) OrgMemberCount(ctx interface{}, id interface{}) *PolicyService_OrgMemberCount_Call
- type PolicyService_List_Call
- func (_c *PolicyService_List_Call) Return(_a0 []policy.Policy, _a1 error) *PolicyService_List_Call
- func (_c *PolicyService_List_Call) Run(run func(ctx context.Context, flt policy.Filter)) *PolicyService_List_Call
- func (_c *PolicyService_List_Call) RunAndReturn(run func(context.Context, policy.Filter) ([]policy.Policy, error)) *PolicyService_List_Call
- type PolicyService_OrgMemberCount_Call
- func (_c *PolicyService_OrgMemberCount_Call) Return(_a0 policy.MemberCount, _a1 error) *PolicyService_OrgMemberCount_Call
- func (_c *PolicyService_OrgMemberCount_Call) Run(run func(ctx context.Context, id string)) *PolicyService_OrgMemberCount_Call
- func (_c *PolicyService_OrgMemberCount_Call) RunAndReturn(run func(context.Context, string) (policy.MemberCount, error)) *PolicyService_OrgMemberCount_Call
- 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
- func (_m *RelationService) Create(ctx context.Context, rel relation.Relation) (relation.Relation, error)
- func (_m *RelationService) Delete(ctx context.Context, rel relation.Relation) error
- func (_m *RelationService) EXPECT() *RelationService_Expecter
- func (_m *RelationService) LookupResources(ctx context.Context, rel relation.Relation) ([]string, error)
- 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
- func (_e *RelationService_Expecter) Create(ctx interface{}, rel interface{}) *RelationService_Create_Call
- func (_e *RelationService_Expecter) Delete(ctx interface{}, rel interface{}) *RelationService_Delete_Call
- func (_e *RelationService_Expecter) LookupResources(ctx interface{}, rel interface{}) *RelationService_LookupResources_Call
- type RelationService_LookupResources_Call
- func (_c *RelationService_LookupResources_Call) Return(_a0 []string, _a1 error) *RelationService_LookupResources_Call
- func (_c *RelationService_LookupResources_Call) Run(run func(ctx context.Context, rel relation.Relation)) *RelationService_LookupResources_Call
- func (_c *RelationService_LookupResources_Call) RunAndReturn(run func(context.Context, relation.Relation) ([]string, error)) *RelationService_LookupResources_Call
- type Repository
- func (_m *Repository) Create(ctx context.Context, org organization.Organization) (organization.Organization, error)
- func (_m *Repository) Delete(ctx context.Context, id string) error
- func (_m *Repository) EXPECT() *Repository_Expecter
- func (_m *Repository) GetByID(ctx context.Context, id string) (organization.Organization, error)
- func (_m *Repository) GetByIDs(ctx context.Context, ids []string) ([]organization.Organization, error)
- func (_m *Repository) GetByName(ctx context.Context, name string) (organization.Organization, error)
- func (_m *Repository) List(ctx context.Context, flt organization.Filter) ([]organization.Organization, error)
- func (_m *Repository) SetState(ctx context.Context, id string, state organization.State) error
- func (_m *Repository) UpdateByID(ctx context.Context, org organization.Organization) (organization.Organization, error)
- func (_m *Repository) UpdateByName(ctx context.Context, org organization.Organization) (organization.Organization, error)
- type Repository_Create_Call
- func (_c *Repository_Create_Call) Return(_a0 organization.Organization, _a1 error) *Repository_Create_Call
- func (_c *Repository_Create_Call) Run(run func(ctx context.Context, org organization.Organization)) *Repository_Create_Call
- func (_c *Repository_Create_Call) RunAndReturn(...) *Repository_Create_Call
- type Repository_Delete_Call
- type Repository_Expecter
- func (_e *Repository_Expecter) Create(ctx interface{}, org interface{}) *Repository_Create_Call
- func (_e *Repository_Expecter) Delete(ctx interface{}, id interface{}) *Repository_Delete_Call
- func (_e *Repository_Expecter) GetByID(ctx interface{}, id interface{}) *Repository_GetByID_Call
- func (_e *Repository_Expecter) GetByIDs(ctx interface{}, ids interface{}) *Repository_GetByIDs_Call
- func (_e *Repository_Expecter) GetByName(ctx interface{}, name interface{}) *Repository_GetByName_Call
- func (_e *Repository_Expecter) List(ctx interface{}, flt interface{}) *Repository_List_Call
- func (_e *Repository_Expecter) SetState(ctx interface{}, id interface{}, state interface{}) *Repository_SetState_Call
- func (_e *Repository_Expecter) UpdateByID(ctx interface{}, org interface{}) *Repository_UpdateByID_Call
- func (_e *Repository_Expecter) UpdateByName(ctx interface{}, org interface{}) *Repository_UpdateByName_Call
- type Repository_GetByID_Call
- func (_c *Repository_GetByID_Call) Return(_a0 organization.Organization, _a1 error) *Repository_GetByID_Call
- func (_c *Repository_GetByID_Call) Run(run func(ctx context.Context, id string)) *Repository_GetByID_Call
- func (_c *Repository_GetByID_Call) RunAndReturn(run func(context.Context, string) (organization.Organization, error)) *Repository_GetByID_Call
- type Repository_GetByIDs_Call
- func (_c *Repository_GetByIDs_Call) Return(_a0 []organization.Organization, _a1 error) *Repository_GetByIDs_Call
- func (_c *Repository_GetByIDs_Call) Run(run func(ctx context.Context, ids []string)) *Repository_GetByIDs_Call
- func (_c *Repository_GetByIDs_Call) RunAndReturn(run func(context.Context, []string) ([]organization.Organization, error)) *Repository_GetByIDs_Call
- type Repository_GetByName_Call
- func (_c *Repository_GetByName_Call) Return(_a0 organization.Organization, _a1 error) *Repository_GetByName_Call
- func (_c *Repository_GetByName_Call) Run(run func(ctx context.Context, name string)) *Repository_GetByName_Call
- func (_c *Repository_GetByName_Call) RunAndReturn(run func(context.Context, string) (organization.Organization, error)) *Repository_GetByName_Call
- type Repository_List_Call
- type Repository_SetState_Call
- func (_c *Repository_SetState_Call) Return(_a0 error) *Repository_SetState_Call
- func (_c *Repository_SetState_Call) Run(run func(ctx context.Context, id string, state organization.State)) *Repository_SetState_Call
- func (_c *Repository_SetState_Call) RunAndReturn(run func(context.Context, string, organization.State) error) *Repository_SetState_Call
- type Repository_UpdateByID_Call
- func (_c *Repository_UpdateByID_Call) Return(_a0 organization.Organization, _a1 error) *Repository_UpdateByID_Call
- func (_c *Repository_UpdateByID_Call) Run(run func(ctx context.Context, org organization.Organization)) *Repository_UpdateByID_Call
- func (_c *Repository_UpdateByID_Call) RunAndReturn(...) *Repository_UpdateByID_Call
- type Repository_UpdateByName_Call
- func (_c *Repository_UpdateByName_Call) Return(_a0 organization.Organization, _a1 error) *Repository_UpdateByName_Call
- func (_c *Repository_UpdateByName_Call) Run(run func(ctx context.Context, org organization.Organization)) *Repository_UpdateByName_Call
- func (_c *Repository_UpdateByName_Call) RunAndReturn(...) *Repository_UpdateByName_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 AuthnService ¶
AuthnService is an autogenerated mock type for the AuthnService type
func NewAuthnService ¶
func NewAuthnService(t interface { mock.TestingT Cleanup(func()) }) *AuthnService
NewAuthnService creates a new instance of AuthnService. 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 (*AuthnService) EXPECT ¶
func (_m *AuthnService) EXPECT() *AuthnService_Expecter
func (*AuthnService) GetPrincipal ¶
func (_m *AuthnService) GetPrincipal(ctx context.Context, via ...authenticate.ClientAssertion) (authenticate.Principal, error)
GetPrincipal provides a mock function with given fields: ctx, via
type AuthnService_Expecter ¶
type AuthnService_Expecter struct {
// contains filtered or unexported fields
}
func (*AuthnService_Expecter) GetPrincipal ¶
func (_e *AuthnService_Expecter) GetPrincipal(ctx interface{}, via ...interface{}) *AuthnService_GetPrincipal_Call
GetPrincipal is a helper method to define mock.On call
- ctx context.Context
- via ...authenticate.ClientAssertion
type AuthnService_GetPrincipal_Call ¶
AuthnService_GetPrincipal_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPrincipal'
func (*AuthnService_GetPrincipal_Call) Return ¶
func (_c *AuthnService_GetPrincipal_Call) Return(_a0 authenticate.Principal, _a1 error) *AuthnService_GetPrincipal_Call
func (*AuthnService_GetPrincipal_Call) Run ¶
func (_c *AuthnService_GetPrincipal_Call) Run(run func(ctx context.Context, via ...authenticate.ClientAssertion)) *AuthnService_GetPrincipal_Call
func (*AuthnService_GetPrincipal_Call) RunAndReturn ¶
func (_c *AuthnService_GetPrincipal_Call) RunAndReturn(run func(context.Context, ...authenticate.ClientAssertion) (authenticate.Principal, error)) *AuthnService_GetPrincipal_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) Delete ¶
func (_m *PolicyService) Delete(ctx context.Context, id string) error
Delete provides a mock function with given fields: ctx, id
func (*PolicyService) EXPECT ¶
func (_m *PolicyService) EXPECT() *PolicyService_Expecter
func (*PolicyService) OrgMemberCount ¶
func (_m *PolicyService) OrgMemberCount(ctx context.Context, id string) (policy.MemberCount, error)
OrgMemberCount provides a mock function with given fields: ctx, id
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_Delete_Call ¶
PolicyService_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*PolicyService_Delete_Call) Return ¶
func (_c *PolicyService_Delete_Call) Return(_a0 error) *PolicyService_Delete_Call
func (*PolicyService_Delete_Call) Run ¶
func (_c *PolicyService_Delete_Call) Run(run func(ctx context.Context, id string)) *PolicyService_Delete_Call
func (*PolicyService_Delete_Call) RunAndReturn ¶
func (_c *PolicyService_Delete_Call) RunAndReturn(run func(context.Context, string) error) *PolicyService_Delete_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
func (*PolicyService_Expecter) Delete ¶
func (_e *PolicyService_Expecter) Delete(ctx interface{}, id interface{}) *PolicyService_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- id string
func (*PolicyService_Expecter) List ¶
func (_e *PolicyService_Expecter) List(ctx interface{}, flt interface{}) *PolicyService_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- flt policy.Filter
func (*PolicyService_Expecter) OrgMemberCount ¶
func (_e *PolicyService_Expecter) OrgMemberCount(ctx interface{}, id interface{}) *PolicyService_OrgMemberCount_Call
OrgMemberCount is a helper method to define mock.On call
- ctx context.Context
- id string
type PolicyService_List_Call ¶
PolicyService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*PolicyService_List_Call) Return ¶
func (_c *PolicyService_List_Call) Return(_a0 []policy.Policy, _a1 error) *PolicyService_List_Call
func (*PolicyService_List_Call) Run ¶
func (_c *PolicyService_List_Call) Run(run func(ctx context.Context, flt policy.Filter)) *PolicyService_List_Call
func (*PolicyService_List_Call) RunAndReturn ¶
func (_c *PolicyService_List_Call) RunAndReturn(run func(context.Context, policy.Filter) ([]policy.Policy, error)) *PolicyService_List_Call
type PolicyService_OrgMemberCount_Call ¶
PolicyService_OrgMemberCount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OrgMemberCount'
func (*PolicyService_OrgMemberCount_Call) Return ¶
func (_c *PolicyService_OrgMemberCount_Call) Return(_a0 policy.MemberCount, _a1 error) *PolicyService_OrgMemberCount_Call
func (*PolicyService_OrgMemberCount_Call) Run ¶
func (_c *PolicyService_OrgMemberCount_Call) Run(run func(ctx context.Context, id string)) *PolicyService_OrgMemberCount_Call
func (*PolicyService_OrgMemberCount_Call) RunAndReturn ¶
func (_c *PolicyService_OrgMemberCount_Call) RunAndReturn(run func(context.Context, string) (policy.MemberCount, error)) *PolicyService_OrgMemberCount_Call
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
func (*RelationService) LookupResources ¶
func (_m *RelationService) LookupResources(ctx context.Context, rel relation.Relation) ([]string, error)
LookupResources provides a mock function with given fields: ctx, rel
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
func (*RelationService_Expecter) LookupResources ¶
func (_e *RelationService_Expecter) LookupResources(ctx interface{}, rel interface{}) *RelationService_LookupResources_Call
LookupResources is a helper method to define mock.On call
- ctx context.Context
- rel relation.Relation
type RelationService_LookupResources_Call ¶
RelationService_LookupResources_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LookupResources'
func (*RelationService_LookupResources_Call) Return ¶
func (_c *RelationService_LookupResources_Call) Return(_a0 []string, _a1 error) *RelationService_LookupResources_Call
func (*RelationService_LookupResources_Call) Run ¶
func (_c *RelationService_LookupResources_Call) Run(run func(ctx context.Context, rel relation.Relation)) *RelationService_LookupResources_Call
func (*RelationService_LookupResources_Call) RunAndReturn ¶
func (_c *RelationService_LookupResources_Call) RunAndReturn(run func(context.Context, relation.Relation) ([]string, error)) *RelationService_LookupResources_Call
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) Create ¶
func (_m *Repository) Create(ctx context.Context, org organization.Organization) (organization.Organization, error)
Create provides a mock function with given fields: ctx, org
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) GetByID ¶
func (_m *Repository) GetByID(ctx context.Context, id string) (organization.Organization, error)
GetByID provides a mock function with given fields: ctx, id
func (*Repository) GetByIDs ¶
func (_m *Repository) GetByIDs(ctx context.Context, ids []string) ([]organization.Organization, error)
GetByIDs provides a mock function with given fields: ctx, ids
func (*Repository) GetByName ¶
func (_m *Repository) GetByName(ctx context.Context, name string) (organization.Organization, error)
GetByName provides a mock function with given fields: ctx, name
func (*Repository) List ¶
func (_m *Repository) List(ctx context.Context, flt organization.Filter) ([]organization.Organization, error)
List provides a mock function with given fields: ctx, flt
func (*Repository) SetState ¶
func (_m *Repository) SetState(ctx context.Context, id string, state organization.State) error
SetState provides a mock function with given fields: ctx, id, state
func (*Repository) UpdateByID ¶
func (_m *Repository) UpdateByID(ctx context.Context, org organization.Organization) (organization.Organization, error)
UpdateByID provides a mock function with given fields: ctx, org
func (*Repository) UpdateByName ¶
func (_m *Repository) UpdateByName(ctx context.Context, org organization.Organization) (organization.Organization, error)
UpdateByName provides a mock function with given fields: ctx, org
type Repository_Create_Call ¶
Repository_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*Repository_Create_Call) Return ¶
func (_c *Repository_Create_Call) Return(_a0 organization.Organization, _a1 error) *Repository_Create_Call
func (*Repository_Create_Call) Run ¶
func (_c *Repository_Create_Call) Run(run func(ctx context.Context, org organization.Organization)) *Repository_Create_Call
func (*Repository_Create_Call) RunAndReturn ¶
func (_c *Repository_Create_Call) RunAndReturn(run func(context.Context, organization.Organization) (organization.Organization, error)) *Repository_Create_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 ¶
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) Create ¶
func (_e *Repository_Expecter) Create(ctx interface{}, org interface{}) *Repository_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- org organization.Organization
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) GetByID ¶
func (_e *Repository_Expecter) GetByID(ctx interface{}, id interface{}) *Repository_GetByID_Call
GetByID is a helper method to define mock.On call
- ctx context.Context
- id string
func (*Repository_Expecter) GetByIDs ¶
func (_e *Repository_Expecter) GetByIDs(ctx interface{}, ids interface{}) *Repository_GetByIDs_Call
GetByIDs is a helper method to define mock.On call
- ctx context.Context
- ids []string
func (*Repository_Expecter) GetByName ¶
func (_e *Repository_Expecter) GetByName(ctx interface{}, name interface{}) *Repository_GetByName_Call
GetByName is a helper method to define mock.On call
- ctx context.Context
- name 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 organization.Filter
func (*Repository_Expecter) SetState ¶
func (_e *Repository_Expecter) SetState(ctx interface{}, id interface{}, state interface{}) *Repository_SetState_Call
SetState is a helper method to define mock.On call
- ctx context.Context
- id string
- state organization.State
func (*Repository_Expecter) UpdateByID ¶
func (_e *Repository_Expecter) UpdateByID(ctx interface{}, org interface{}) *Repository_UpdateByID_Call
UpdateByID is a helper method to define mock.On call
- ctx context.Context
- org organization.Organization
func (*Repository_Expecter) UpdateByName ¶
func (_e *Repository_Expecter) UpdateByName(ctx interface{}, org interface{}) *Repository_UpdateByName_Call
UpdateByName is a helper method to define mock.On call
- ctx context.Context
- org organization.Organization
type Repository_GetByID_Call ¶
Repository_GetByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByID'
func (*Repository_GetByID_Call) Return ¶
func (_c *Repository_GetByID_Call) Return(_a0 organization.Organization, _a1 error) *Repository_GetByID_Call
func (*Repository_GetByID_Call) Run ¶
func (_c *Repository_GetByID_Call) Run(run func(ctx context.Context, id string)) *Repository_GetByID_Call
func (*Repository_GetByID_Call) RunAndReturn ¶
func (_c *Repository_GetByID_Call) RunAndReturn(run func(context.Context, string) (organization.Organization, error)) *Repository_GetByID_Call
type Repository_GetByIDs_Call ¶
Repository_GetByIDs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByIDs'
func (*Repository_GetByIDs_Call) Return ¶
func (_c *Repository_GetByIDs_Call) Return(_a0 []organization.Organization, _a1 error) *Repository_GetByIDs_Call
func (*Repository_GetByIDs_Call) Run ¶
func (_c *Repository_GetByIDs_Call) Run(run func(ctx context.Context, ids []string)) *Repository_GetByIDs_Call
func (*Repository_GetByIDs_Call) RunAndReturn ¶
func (_c *Repository_GetByIDs_Call) RunAndReturn(run func(context.Context, []string) ([]organization.Organization, error)) *Repository_GetByIDs_Call
type Repository_GetByName_Call ¶
Repository_GetByName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByName'
func (*Repository_GetByName_Call) Return ¶
func (_c *Repository_GetByName_Call) Return(_a0 organization.Organization, _a1 error) *Repository_GetByName_Call
func (*Repository_GetByName_Call) Run ¶
func (_c *Repository_GetByName_Call) Run(run func(ctx context.Context, name string)) *Repository_GetByName_Call
func (*Repository_GetByName_Call) RunAndReturn ¶
func (_c *Repository_GetByName_Call) RunAndReturn(run func(context.Context, string) (organization.Organization, error)) *Repository_GetByName_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 []organization.Organization, _a1 error) *Repository_List_Call
func (*Repository_List_Call) Run ¶
func (_c *Repository_List_Call) Run(run func(ctx context.Context, flt organization.Filter)) *Repository_List_Call
func (*Repository_List_Call) RunAndReturn ¶
func (_c *Repository_List_Call) RunAndReturn(run func(context.Context, organization.Filter) ([]organization.Organization, error)) *Repository_List_Call
type Repository_SetState_Call ¶
Repository_SetState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetState'
func (*Repository_SetState_Call) Return ¶
func (_c *Repository_SetState_Call) Return(_a0 error) *Repository_SetState_Call
func (*Repository_SetState_Call) Run ¶
func (_c *Repository_SetState_Call) Run(run func(ctx context.Context, id string, state organization.State)) *Repository_SetState_Call
func (*Repository_SetState_Call) RunAndReturn ¶
func (_c *Repository_SetState_Call) RunAndReturn(run func(context.Context, string, organization.State) error) *Repository_SetState_Call
type Repository_UpdateByID_Call ¶
Repository_UpdateByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateByID'
func (*Repository_UpdateByID_Call) Return ¶
func (_c *Repository_UpdateByID_Call) Return(_a0 organization.Organization, _a1 error) *Repository_UpdateByID_Call
func (*Repository_UpdateByID_Call) Run ¶
func (_c *Repository_UpdateByID_Call) Run(run func(ctx context.Context, org organization.Organization)) *Repository_UpdateByID_Call
func (*Repository_UpdateByID_Call) RunAndReturn ¶
func (_c *Repository_UpdateByID_Call) RunAndReturn(run func(context.Context, organization.Organization) (organization.Organization, error)) *Repository_UpdateByID_Call
type Repository_UpdateByName_Call ¶
Repository_UpdateByName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateByName'
func (*Repository_UpdateByName_Call) Return ¶
func (_c *Repository_UpdateByName_Call) Return(_a0 organization.Organization, _a1 error) *Repository_UpdateByName_Call
func (*Repository_UpdateByName_Call) Run ¶
func (_c *Repository_UpdateByName_Call) Run(run func(ctx context.Context, org organization.Organization)) *Repository_UpdateByName_Call
func (*Repository_UpdateByName_Call) RunAndReturn ¶
func (_c *Repository_UpdateByName_Call) RunAndReturn(run func(context.Context, organization.Organization) (organization.Organization, error)) *Repository_UpdateByName_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