Documentation ¶
Index ¶
- type ActivityService
- func (_m *ActivityService) EXPECT() *ActivityService_Expecter
- func (_m *ActivityService) Find(_a0 context.Context, _a1 domain.ListProviderActivitiesFilter) ([]*domain.Activity, error)
- func (_m *ActivityService) GetOne(_a0 context.Context, _a1 string) (*domain.Activity, error)
- func (_m *ActivityService) Import(_a0 context.Context, _a1 domain.ListActivitiesFilter) ([]*domain.Activity, error)
- type ActivityService_Expecter
- func (_e *ActivityService_Expecter) Find(_a0 interface{}, _a1 interface{}) *ActivityService_Find_Call
- func (_e *ActivityService_Expecter) GetOne(_a0 interface{}, _a1 interface{}) *ActivityService_GetOne_Call
- func (_e *ActivityService_Expecter) Import(_a0 interface{}, _a1 interface{}) *ActivityService_Import_Call
- type ActivityService_Find_Call
- func (_c *ActivityService_Find_Call) Return(_a0 []*domain.Activity, _a1 error) *ActivityService_Find_Call
- func (_c *ActivityService_Find_Call) Run(run func(_a0 context.Context, _a1 domain.ListProviderActivitiesFilter)) *ActivityService_Find_Call
- func (_c *ActivityService_Find_Call) RunAndReturn(...) *ActivityService_Find_Call
- type ActivityService_GetOne_Call
- func (_c *ActivityService_GetOne_Call) Return(_a0 *domain.Activity, _a1 error) *ActivityService_GetOne_Call
- func (_c *ActivityService_GetOne_Call) Run(run func(_a0 context.Context, _a1 string)) *ActivityService_GetOne_Call
- func (_c *ActivityService_GetOne_Call) RunAndReturn(run func(context.Context, string) (*domain.Activity, error)) *ActivityService_GetOne_Call
- type ActivityService_Import_Call
- func (_c *ActivityService_Import_Call) Return(_a0 []*domain.Activity, _a1 error) *ActivityService_Import_Call
- func (_c *ActivityService_Import_Call) Run(run func(_a0 context.Context, _a1 domain.ListActivitiesFilter)) *ActivityService_Import_Call
- func (_c *ActivityService_Import_Call) RunAndReturn(...) *ActivityService_Import_Call
- type AppealService
- func (_m *AppealService) AddApprover(ctx context.Context, appealID string, approvalID string, email string) (*domain.Appeal, error)
- func (_m *AppealService) Cancel(_a0 context.Context, _a1 string) (*domain.Appeal, error)
- func (_m *AppealService) Create(_a0 context.Context, _a1 []*domain.Appeal, _a2 ...appeal.CreateAppealOption) error
- func (_m *AppealService) DeleteApprover(ctx context.Context, appealID string, approvalID string, email string) (*domain.Appeal, error)
- func (_m *AppealService) EXPECT() *AppealService_Expecter
- func (_m *AppealService) Find(_a0 context.Context, _a1 *domain.ListAppealsFilter) ([]*domain.Appeal, error)
- func (_m *AppealService) GetAppealsTotalCount(_a0 context.Context, _a1 *domain.ListAppealsFilter) (int64, error)
- func (_m *AppealService) GetByID(_a0 context.Context, _a1 string) (*domain.Appeal, error)
- func (_m *AppealService) UpdateApproval(ctx context.Context, approvalAction domain.ApprovalAction) (*domain.Appeal, error)
- type AppealService_AddApprover_Call
- func (_c *AppealService_AddApprover_Call) Return(_a0 *domain.Appeal, _a1 error) *AppealService_AddApprover_Call
- func (_c *AppealService_AddApprover_Call) Run(...) *AppealService_AddApprover_Call
- func (_c *AppealService_AddApprover_Call) RunAndReturn(run func(context.Context, string, string, string) (*domain.Appeal, error)) *AppealService_AddApprover_Call
- type AppealService_Cancel_Call
- func (_c *AppealService_Cancel_Call) Return(_a0 *domain.Appeal, _a1 error) *AppealService_Cancel_Call
- func (_c *AppealService_Cancel_Call) Run(run func(_a0 context.Context, _a1 string)) *AppealService_Cancel_Call
- func (_c *AppealService_Cancel_Call) RunAndReturn(run func(context.Context, string) (*domain.Appeal, error)) *AppealService_Cancel_Call
- type AppealService_Create_Call
- type AppealService_DeleteApprover_Call
- func (_c *AppealService_DeleteApprover_Call) Return(_a0 *domain.Appeal, _a1 error) *AppealService_DeleteApprover_Call
- func (_c *AppealService_DeleteApprover_Call) Run(...) *AppealService_DeleteApprover_Call
- func (_c *AppealService_DeleteApprover_Call) RunAndReturn(run func(context.Context, string, string, string) (*domain.Appeal, error)) *AppealService_DeleteApprover_Call
- type AppealService_Expecter
- func (_e *AppealService_Expecter) AddApprover(ctx interface{}, appealID interface{}, approvalID interface{}, ...) *AppealService_AddApprover_Call
- func (_e *AppealService_Expecter) Cancel(_a0 interface{}, _a1 interface{}) *AppealService_Cancel_Call
- func (_e *AppealService_Expecter) Create(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *AppealService_Create_Call
- func (_e *AppealService_Expecter) DeleteApprover(ctx interface{}, appealID interface{}, approvalID interface{}, ...) *AppealService_DeleteApprover_Call
- func (_e *AppealService_Expecter) Find(_a0 interface{}, _a1 interface{}) *AppealService_Find_Call
- func (_e *AppealService_Expecter) GetAppealsTotalCount(_a0 interface{}, _a1 interface{}) *AppealService_GetAppealsTotalCount_Call
- func (_e *AppealService_Expecter) GetByID(_a0 interface{}, _a1 interface{}) *AppealService_GetByID_Call
- func (_e *AppealService_Expecter) UpdateApproval(ctx interface{}, approvalAction interface{}) *AppealService_UpdateApproval_Call
- type AppealService_Find_Call
- func (_c *AppealService_Find_Call) Return(_a0 []*domain.Appeal, _a1 error) *AppealService_Find_Call
- func (_c *AppealService_Find_Call) Run(run func(_a0 context.Context, _a1 *domain.ListAppealsFilter)) *AppealService_Find_Call
- func (_c *AppealService_Find_Call) RunAndReturn(run func(context.Context, *domain.ListAppealsFilter) ([]*domain.Appeal, error)) *AppealService_Find_Call
- type AppealService_GetAppealsTotalCount_Call
- func (_c *AppealService_GetAppealsTotalCount_Call) Return(_a0 int64, _a1 error) *AppealService_GetAppealsTotalCount_Call
- func (_c *AppealService_GetAppealsTotalCount_Call) Run(run func(_a0 context.Context, _a1 *domain.ListAppealsFilter)) *AppealService_GetAppealsTotalCount_Call
- func (_c *AppealService_GetAppealsTotalCount_Call) RunAndReturn(run func(context.Context, *domain.ListAppealsFilter) (int64, error)) *AppealService_GetAppealsTotalCount_Call
- type AppealService_GetByID_Call
- func (_c *AppealService_GetByID_Call) Return(_a0 *domain.Appeal, _a1 error) *AppealService_GetByID_Call
- func (_c *AppealService_GetByID_Call) Run(run func(_a0 context.Context, _a1 string)) *AppealService_GetByID_Call
- func (_c *AppealService_GetByID_Call) RunAndReturn(run func(context.Context, string) (*domain.Appeal, error)) *AppealService_GetByID_Call
- type AppealService_UpdateApproval_Call
- func (_c *AppealService_UpdateApproval_Call) Return(_a0 *domain.Appeal, _a1 error) *AppealService_UpdateApproval_Call
- func (_c *AppealService_UpdateApproval_Call) Run(run func(ctx context.Context, approvalAction domain.ApprovalAction)) *AppealService_UpdateApproval_Call
- func (_c *AppealService_UpdateApproval_Call) RunAndReturn(run func(context.Context, domain.ApprovalAction) (*domain.Appeal, error)) *AppealService_UpdateApproval_Call
- type ApprovalService
- func (_m *ApprovalService) BulkInsert(_a0 context.Context, _a1 []*domain.Approval) error
- func (_m *ApprovalService) EXPECT() *ApprovalService_Expecter
- func (_m *ApprovalService) GetApprovalsTotalCount(_a0 context.Context, _a1 *domain.ListApprovalsFilter) (int64, error)
- func (_m *ApprovalService) ListApprovals(_a0 context.Context, _a1 *domain.ListApprovalsFilter) ([]*domain.Approval, error)
- type ApprovalService_BulkInsert_Call
- func (_c *ApprovalService_BulkInsert_Call) Return(_a0 error) *ApprovalService_BulkInsert_Call
- func (_c *ApprovalService_BulkInsert_Call) Run(run func(_a0 context.Context, _a1 []*domain.Approval)) *ApprovalService_BulkInsert_Call
- func (_c *ApprovalService_BulkInsert_Call) RunAndReturn(run func(context.Context, []*domain.Approval) error) *ApprovalService_BulkInsert_Call
- type ApprovalService_Expecter
- func (_e *ApprovalService_Expecter) BulkInsert(_a0 interface{}, _a1 interface{}) *ApprovalService_BulkInsert_Call
- func (_e *ApprovalService_Expecter) GetApprovalsTotalCount(_a0 interface{}, _a1 interface{}) *ApprovalService_GetApprovalsTotalCount_Call
- func (_e *ApprovalService_Expecter) ListApprovals(_a0 interface{}, _a1 interface{}) *ApprovalService_ListApprovals_Call
- type ApprovalService_GetApprovalsTotalCount_Call
- func (_c *ApprovalService_GetApprovalsTotalCount_Call) Return(_a0 int64, _a1 error) *ApprovalService_GetApprovalsTotalCount_Call
- func (_c *ApprovalService_GetApprovalsTotalCount_Call) Run(run func(_a0 context.Context, _a1 *domain.ListApprovalsFilter)) *ApprovalService_GetApprovalsTotalCount_Call
- func (_c *ApprovalService_GetApprovalsTotalCount_Call) RunAndReturn(run func(context.Context, *domain.ListApprovalsFilter) (int64, error)) *ApprovalService_GetApprovalsTotalCount_Call
- type ApprovalService_ListApprovals_Call
- func (_c *ApprovalService_ListApprovals_Call) Return(_a0 []*domain.Approval, _a1 error) *ApprovalService_ListApprovals_Call
- func (_c *ApprovalService_ListApprovals_Call) Run(run func(_a0 context.Context, _a1 *domain.ListApprovalsFilter)) *ApprovalService_ListApprovals_Call
- func (_c *ApprovalService_ListApprovals_Call) RunAndReturn(...) *ApprovalService_ListApprovals_Call
- type GrantService
- func (_m *GrantService) BulkRevoke(ctx context.Context, filter domain.RevokeGrantsFilter, actor string, ...) ([]*domain.Grant, error)
- func (_m *GrantService) EXPECT() *GrantService_Expecter
- func (_m *GrantService) GetByID(_a0 context.Context, _a1 string) (*domain.Grant, error)
- func (_m *GrantService) GetGrantsTotalCount(_a0 context.Context, _a1 domain.ListGrantsFilter) (int64, error)
- func (_m *GrantService) ImportFromProvider(ctx context.Context, criteria grant.ImportFromProviderCriteria) ([]*domain.Grant, error)
- func (_m *GrantService) List(_a0 context.Context, _a1 domain.ListGrantsFilter) ([]domain.Grant, error)
- func (_m *GrantService) ListUserRoles(_a0 context.Context, _a1 string) ([]string, error)
- func (_m *GrantService) Revoke(ctx context.Context, id string, actor string, reason string, ...) (*domain.Grant, error)
- func (_m *GrantService) Update(_a0 context.Context, _a1 *domain.Grant) error
- type GrantService_BulkRevoke_Call
- type GrantService_Expecter
- func (_e *GrantService_Expecter) BulkRevoke(ctx interface{}, filter interface{}, actor interface{}, reason interface{}) *GrantService_BulkRevoke_Call
- func (_e *GrantService_Expecter) GetByID(_a0 interface{}, _a1 interface{}) *GrantService_GetByID_Call
- func (_e *GrantService_Expecter) GetGrantsTotalCount(_a0 interface{}, _a1 interface{}) *GrantService_GetGrantsTotalCount_Call
- func (_e *GrantService_Expecter) ImportFromProvider(ctx interface{}, criteria interface{}) *GrantService_ImportFromProvider_Call
- func (_e *GrantService_Expecter) List(_a0 interface{}, _a1 interface{}) *GrantService_List_Call
- func (_e *GrantService_Expecter) ListUserRoles(_a0 interface{}, _a1 interface{}) *GrantService_ListUserRoles_Call
- func (_e *GrantService_Expecter) Revoke(ctx interface{}, id interface{}, actor interface{}, reason interface{}, ...) *GrantService_Revoke_Call
- func (_e *GrantService_Expecter) Update(_a0 interface{}, _a1 interface{}) *GrantService_Update_Call
- type GrantService_GetByID_Call
- func (_c *GrantService_GetByID_Call) Return(_a0 *domain.Grant, _a1 error) *GrantService_GetByID_Call
- func (_c *GrantService_GetByID_Call) Run(run func(_a0 context.Context, _a1 string)) *GrantService_GetByID_Call
- func (_c *GrantService_GetByID_Call) RunAndReturn(run func(context.Context, string) (*domain.Grant, error)) *GrantService_GetByID_Call
- type GrantService_GetGrantsTotalCount_Call
- func (_c *GrantService_GetGrantsTotalCount_Call) Return(_a0 int64, _a1 error) *GrantService_GetGrantsTotalCount_Call
- func (_c *GrantService_GetGrantsTotalCount_Call) Run(run func(_a0 context.Context, _a1 domain.ListGrantsFilter)) *GrantService_GetGrantsTotalCount_Call
- func (_c *GrantService_GetGrantsTotalCount_Call) RunAndReturn(run func(context.Context, domain.ListGrantsFilter) (int64, error)) *GrantService_GetGrantsTotalCount_Call
- type GrantService_ImportFromProvider_Call
- func (_c *GrantService_ImportFromProvider_Call) Return(_a0 []*domain.Grant, _a1 error) *GrantService_ImportFromProvider_Call
- func (_c *GrantService_ImportFromProvider_Call) Run(run func(ctx context.Context, criteria grant.ImportFromProviderCriteria)) *GrantService_ImportFromProvider_Call
- func (_c *GrantService_ImportFromProvider_Call) RunAndReturn(...) *GrantService_ImportFromProvider_Call
- type GrantService_ListUserRoles_Call
- func (_c *GrantService_ListUserRoles_Call) Return(_a0 []string, _a1 error) *GrantService_ListUserRoles_Call
- func (_c *GrantService_ListUserRoles_Call) Run(run func(_a0 context.Context, _a1 string)) *GrantService_ListUserRoles_Call
- func (_c *GrantService_ListUserRoles_Call) RunAndReturn(run func(context.Context, string) ([]string, error)) *GrantService_ListUserRoles_Call
- type GrantService_List_Call
- func (_c *GrantService_List_Call) Return(_a0 []domain.Grant, _a1 error) *GrantService_List_Call
- func (_c *GrantService_List_Call) Run(run func(_a0 context.Context, _a1 domain.ListGrantsFilter)) *GrantService_List_Call
- func (_c *GrantService_List_Call) RunAndReturn(run func(context.Context, domain.ListGrantsFilter) ([]domain.Grant, error)) *GrantService_List_Call
- type GrantService_Revoke_Call
- func (_c *GrantService_Revoke_Call) Return(_a0 *domain.Grant, _a1 error) *GrantService_Revoke_Call
- func (_c *GrantService_Revoke_Call) Run(run func(ctx context.Context, id string, actor string, reason string, ...)) *GrantService_Revoke_Call
- func (_c *GrantService_Revoke_Call) RunAndReturn(...) *GrantService_Revoke_Call
- type GrantService_Update_Call
- func (_c *GrantService_Update_Call) Return(_a0 error) *GrantService_Update_Call
- func (_c *GrantService_Update_Call) Run(run func(_a0 context.Context, _a1 *domain.Grant)) *GrantService_Update_Call
- func (_c *GrantService_Update_Call) RunAndReturn(run func(context.Context, *domain.Grant) error) *GrantService_Update_Call
- type PolicyService
- func (_m *PolicyService) Create(_a0 context.Context, _a1 *domain.Policy) error
- func (_m *PolicyService) EXPECT() *PolicyService_Expecter
- func (_m *PolicyService) Find(_a0 context.Context) ([]*domain.Policy, error)
- func (_m *PolicyService) GetOne(ctx context.Context, id string, version uint) (*domain.Policy, error)
- func (_m *PolicyService) Update(_a0 context.Context, _a1 *domain.Policy) error
- type PolicyService_Create_Call
- func (_c *PolicyService_Create_Call) Return(_a0 error) *PolicyService_Create_Call
- func (_c *PolicyService_Create_Call) Run(run func(_a0 context.Context, _a1 *domain.Policy)) *PolicyService_Create_Call
- func (_c *PolicyService_Create_Call) RunAndReturn(run func(context.Context, *domain.Policy) error) *PolicyService_Create_Call
- type PolicyService_Expecter
- func (_e *PolicyService_Expecter) Create(_a0 interface{}, _a1 interface{}) *PolicyService_Create_Call
- func (_e *PolicyService_Expecter) Find(_a0 interface{}) *PolicyService_Find_Call
- func (_e *PolicyService_Expecter) GetOne(ctx interface{}, id interface{}, version interface{}) *PolicyService_GetOne_Call
- func (_e *PolicyService_Expecter) Update(_a0 interface{}, _a1 interface{}) *PolicyService_Update_Call
- type PolicyService_Find_Call
- func (_c *PolicyService_Find_Call) Return(_a0 []*domain.Policy, _a1 error) *PolicyService_Find_Call
- func (_c *PolicyService_Find_Call) Run(run func(_a0 context.Context)) *PolicyService_Find_Call
- func (_c *PolicyService_Find_Call) RunAndReturn(run func(context.Context) ([]*domain.Policy, error)) *PolicyService_Find_Call
- type PolicyService_GetOne_Call
- func (_c *PolicyService_GetOne_Call) Return(_a0 *domain.Policy, _a1 error) *PolicyService_GetOne_Call
- func (_c *PolicyService_GetOne_Call) Run(run func(ctx context.Context, id string, version uint)) *PolicyService_GetOne_Call
- func (_c *PolicyService_GetOne_Call) RunAndReturn(run func(context.Context, string, uint) (*domain.Policy, error)) *PolicyService_GetOne_Call
- type PolicyService_Update_Call
- func (_c *PolicyService_Update_Call) Return(_a0 error) *PolicyService_Update_Call
- func (_c *PolicyService_Update_Call) Run(run func(_a0 context.Context, _a1 *domain.Policy)) *PolicyService_Update_Call
- func (_c *PolicyService_Update_Call) RunAndReturn(run func(context.Context, *domain.Policy) error) *PolicyService_Update_Call
- type ProviderActivityService
- func (_m *ProviderActivityService) EXPECT() *ProviderActivityService_Expecter
- func (_m *ProviderActivityService) Find(_a0 context.Context, _a1 domain.ListProviderActivitiesFilter) ([]*domain.Activity, error)
- func (_m *ProviderActivityService) GetOne(_a0 context.Context, _a1 string) (*domain.Activity, error)
- func (_m *ProviderActivityService) Import(_a0 context.Context, _a1 domain.ListActivitiesFilter) ([]*domain.Activity, error)
- type ProviderActivityService_Expecter
- func (_e *ProviderActivityService_Expecter) Find(_a0 interface{}, _a1 interface{}) *ProviderActivityService_Find_Call
- func (_e *ProviderActivityService_Expecter) GetOne(_a0 interface{}, _a1 interface{}) *ProviderActivityService_GetOne_Call
- func (_e *ProviderActivityService_Expecter) Import(_a0 interface{}, _a1 interface{}) *ProviderActivityService_Import_Call
- type ProviderActivityService_Find_Call
- type ProviderActivityService_GetOne_Call
- type ProviderActivityService_Import_Call
- type ProviderService
- func (_m *ProviderService) Create(_a0 context.Context, _a1 *domain.Provider) error
- func (_m *ProviderService) Delete(_a0 context.Context, _a1 string) error
- func (_m *ProviderService) EXPECT() *ProviderService_Expecter
- func (_m *ProviderService) FetchResources(_a0 context.Context) error
- func (_m *ProviderService) Find(_a0 context.Context) ([]*domain.Provider, error)
- func (_m *ProviderService) GetByID(_a0 context.Context, _a1 string) (*domain.Provider, error)
- func (_m *ProviderService) GetOne(ctx context.Context, pType string, urn string) (*domain.Provider, error)
- func (_m *ProviderService) GetRoles(ctx context.Context, id string, resourceType string) ([]*domain.Role, error)
- func (_m *ProviderService) GetTypes(_a0 context.Context) ([]domain.ProviderType, error)
- func (_m *ProviderService) GrantAccess(_a0 context.Context, _a1 domain.Grant) error
- func (_m *ProviderService) RevokeAccess(_a0 context.Context, _a1 domain.Grant) error
- func (_m *ProviderService) Update(_a0 context.Context, _a1 *domain.Provider) error
- func (_m *ProviderService) ValidateAppeal(_a0 context.Context, _a1 *domain.Appeal, _a2 *domain.Provider, ...) error
- type ProviderService_Create_Call
- func (_c *ProviderService_Create_Call) Return(_a0 error) *ProviderService_Create_Call
- func (_c *ProviderService_Create_Call) Run(run func(_a0 context.Context, _a1 *domain.Provider)) *ProviderService_Create_Call
- func (_c *ProviderService_Create_Call) RunAndReturn(run func(context.Context, *domain.Provider) error) *ProviderService_Create_Call
- type ProviderService_Delete_Call
- func (_c *ProviderService_Delete_Call) Return(_a0 error) *ProviderService_Delete_Call
- func (_c *ProviderService_Delete_Call) Run(run func(_a0 context.Context, _a1 string)) *ProviderService_Delete_Call
- func (_c *ProviderService_Delete_Call) RunAndReturn(run func(context.Context, string) error) *ProviderService_Delete_Call
- type ProviderService_Expecter
- func (_e *ProviderService_Expecter) Create(_a0 interface{}, _a1 interface{}) *ProviderService_Create_Call
- func (_e *ProviderService_Expecter) Delete(_a0 interface{}, _a1 interface{}) *ProviderService_Delete_Call
- func (_e *ProviderService_Expecter) FetchResources(_a0 interface{}) *ProviderService_FetchResources_Call
- func (_e *ProviderService_Expecter) Find(_a0 interface{}) *ProviderService_Find_Call
- func (_e *ProviderService_Expecter) GetByID(_a0 interface{}, _a1 interface{}) *ProviderService_GetByID_Call
- func (_e *ProviderService_Expecter) GetOne(ctx interface{}, pType interface{}, urn interface{}) *ProviderService_GetOne_Call
- func (_e *ProviderService_Expecter) GetRoles(ctx interface{}, id interface{}, resourceType interface{}) *ProviderService_GetRoles_Call
- func (_e *ProviderService_Expecter) GetTypes(_a0 interface{}) *ProviderService_GetTypes_Call
- func (_e *ProviderService_Expecter) GrantAccess(_a0 interface{}, _a1 interface{}) *ProviderService_GrantAccess_Call
- func (_e *ProviderService_Expecter) RevokeAccess(_a0 interface{}, _a1 interface{}) *ProviderService_RevokeAccess_Call
- func (_e *ProviderService_Expecter) Update(_a0 interface{}, _a1 interface{}) *ProviderService_Update_Call
- func (_e *ProviderService_Expecter) ValidateAppeal(_a0 interface{}, _a1 interface{}, _a2 interface{}, _a3 interface{}) *ProviderService_ValidateAppeal_Call
- type ProviderService_FetchResources_Call
- func (_c *ProviderService_FetchResources_Call) Return(_a0 error) *ProviderService_FetchResources_Call
- func (_c *ProviderService_FetchResources_Call) Run(run func(_a0 context.Context)) *ProviderService_FetchResources_Call
- func (_c *ProviderService_FetchResources_Call) RunAndReturn(run func(context.Context) error) *ProviderService_FetchResources_Call
- type ProviderService_Find_Call
- func (_c *ProviderService_Find_Call) Return(_a0 []*domain.Provider, _a1 error) *ProviderService_Find_Call
- func (_c *ProviderService_Find_Call) Run(run func(_a0 context.Context)) *ProviderService_Find_Call
- func (_c *ProviderService_Find_Call) RunAndReturn(run func(context.Context) ([]*domain.Provider, error)) *ProviderService_Find_Call
- type ProviderService_GetByID_Call
- func (_c *ProviderService_GetByID_Call) Return(_a0 *domain.Provider, _a1 error) *ProviderService_GetByID_Call
- func (_c *ProviderService_GetByID_Call) Run(run func(_a0 context.Context, _a1 string)) *ProviderService_GetByID_Call
- func (_c *ProviderService_GetByID_Call) RunAndReturn(run func(context.Context, string) (*domain.Provider, error)) *ProviderService_GetByID_Call
- type ProviderService_GetOne_Call
- func (_c *ProviderService_GetOne_Call) Return(_a0 *domain.Provider, _a1 error) *ProviderService_GetOne_Call
- func (_c *ProviderService_GetOne_Call) Run(run func(ctx context.Context, pType string, urn string)) *ProviderService_GetOne_Call
- func (_c *ProviderService_GetOne_Call) RunAndReturn(run func(context.Context, string, string) (*domain.Provider, error)) *ProviderService_GetOne_Call
- type ProviderService_GetRoles_Call
- func (_c *ProviderService_GetRoles_Call) Return(_a0 []*domain.Role, _a1 error) *ProviderService_GetRoles_Call
- func (_c *ProviderService_GetRoles_Call) Run(run func(ctx context.Context, id string, resourceType string)) *ProviderService_GetRoles_Call
- func (_c *ProviderService_GetRoles_Call) RunAndReturn(run func(context.Context, string, string) ([]*domain.Role, error)) *ProviderService_GetRoles_Call
- type ProviderService_GetTypes_Call
- func (_c *ProviderService_GetTypes_Call) Return(_a0 []domain.ProviderType, _a1 error) *ProviderService_GetTypes_Call
- func (_c *ProviderService_GetTypes_Call) Run(run func(_a0 context.Context)) *ProviderService_GetTypes_Call
- func (_c *ProviderService_GetTypes_Call) RunAndReturn(run func(context.Context) ([]domain.ProviderType, error)) *ProviderService_GetTypes_Call
- type ProviderService_GrantAccess_Call
- func (_c *ProviderService_GrantAccess_Call) Return(_a0 error) *ProviderService_GrantAccess_Call
- func (_c *ProviderService_GrantAccess_Call) Run(run func(_a0 context.Context, _a1 domain.Grant)) *ProviderService_GrantAccess_Call
- func (_c *ProviderService_GrantAccess_Call) RunAndReturn(run func(context.Context, domain.Grant) error) *ProviderService_GrantAccess_Call
- type ProviderService_RevokeAccess_Call
- func (_c *ProviderService_RevokeAccess_Call) Return(_a0 error) *ProviderService_RevokeAccess_Call
- func (_c *ProviderService_RevokeAccess_Call) Run(run func(_a0 context.Context, _a1 domain.Grant)) *ProviderService_RevokeAccess_Call
- func (_c *ProviderService_RevokeAccess_Call) RunAndReturn(run func(context.Context, domain.Grant) error) *ProviderService_RevokeAccess_Call
- type ProviderService_Update_Call
- func (_c *ProviderService_Update_Call) Return(_a0 error) *ProviderService_Update_Call
- func (_c *ProviderService_Update_Call) Run(run func(_a0 context.Context, _a1 *domain.Provider)) *ProviderService_Update_Call
- func (_c *ProviderService_Update_Call) RunAndReturn(run func(context.Context, *domain.Provider) error) *ProviderService_Update_Call
- type ProviderService_ValidateAppeal_Call
- func (_c *ProviderService_ValidateAppeal_Call) Return(_a0 error) *ProviderService_ValidateAppeal_Call
- func (_c *ProviderService_ValidateAppeal_Call) Run(run func(_a0 context.Context, _a1 *domain.Appeal, _a2 *domain.Provider, ...)) *ProviderService_ValidateAppeal_Call
- func (_c *ProviderService_ValidateAppeal_Call) RunAndReturn(...) *ProviderService_ValidateAppeal_Call
- type ResourceService
- func (_m *ResourceService) BatchDelete(_a0 context.Context, _a1 []string) error
- func (_m *ResourceService) BulkUpsert(_a0 context.Context, _a1 []*domain.Resource) error
- func (_m *ResourceService) Delete(_a0 context.Context, _a1 string) error
- func (_m *ResourceService) EXPECT() *ResourceService_Expecter
- func (_m *ResourceService) Find(_a0 context.Context, _a1 domain.ListResourcesFilter) ([]*domain.Resource, error)
- func (_m *ResourceService) Get(_a0 context.Context, _a1 *domain.ResourceIdentifier) (*domain.Resource, error)
- func (_m *ResourceService) GetOne(_a0 context.Context, _a1 string) (*domain.Resource, error)
- func (_m *ResourceService) GetResourcesTotalCount(_a0 context.Context, _a1 domain.ListResourcesFilter) (int64, error)
- func (_m *ResourceService) Update(_a0 context.Context, _a1 *domain.Resource) error
- type ResourceService_BatchDelete_Call
- func (_c *ResourceService_BatchDelete_Call) Return(_a0 error) *ResourceService_BatchDelete_Call
- func (_c *ResourceService_BatchDelete_Call) Run(run func(_a0 context.Context, _a1 []string)) *ResourceService_BatchDelete_Call
- func (_c *ResourceService_BatchDelete_Call) RunAndReturn(run func(context.Context, []string) error) *ResourceService_BatchDelete_Call
- type ResourceService_BulkUpsert_Call
- func (_c *ResourceService_BulkUpsert_Call) Return(_a0 error) *ResourceService_BulkUpsert_Call
- func (_c *ResourceService_BulkUpsert_Call) Run(run func(_a0 context.Context, _a1 []*domain.Resource)) *ResourceService_BulkUpsert_Call
- func (_c *ResourceService_BulkUpsert_Call) RunAndReturn(run func(context.Context, []*domain.Resource) error) *ResourceService_BulkUpsert_Call
- type ResourceService_Delete_Call
- func (_c *ResourceService_Delete_Call) Return(_a0 error) *ResourceService_Delete_Call
- func (_c *ResourceService_Delete_Call) Run(run func(_a0 context.Context, _a1 string)) *ResourceService_Delete_Call
- func (_c *ResourceService_Delete_Call) RunAndReturn(run func(context.Context, string) error) *ResourceService_Delete_Call
- type ResourceService_Expecter
- func (_e *ResourceService_Expecter) BatchDelete(_a0 interface{}, _a1 interface{}) *ResourceService_BatchDelete_Call
- func (_e *ResourceService_Expecter) BulkUpsert(_a0 interface{}, _a1 interface{}) *ResourceService_BulkUpsert_Call
- func (_e *ResourceService_Expecter) Delete(_a0 interface{}, _a1 interface{}) *ResourceService_Delete_Call
- func (_e *ResourceService_Expecter) Find(_a0 interface{}, _a1 interface{}) *ResourceService_Find_Call
- func (_e *ResourceService_Expecter) Get(_a0 interface{}, _a1 interface{}) *ResourceService_Get_Call
- func (_e *ResourceService_Expecter) GetOne(_a0 interface{}, _a1 interface{}) *ResourceService_GetOne_Call
- func (_e *ResourceService_Expecter) GetResourcesTotalCount(_a0 interface{}, _a1 interface{}) *ResourceService_GetResourcesTotalCount_Call
- func (_e *ResourceService_Expecter) Update(_a0 interface{}, _a1 interface{}) *ResourceService_Update_Call
- type ResourceService_Find_Call
- func (_c *ResourceService_Find_Call) Return(_a0 []*domain.Resource, _a1 error) *ResourceService_Find_Call
- func (_c *ResourceService_Find_Call) Run(run func(_a0 context.Context, _a1 domain.ListResourcesFilter)) *ResourceService_Find_Call
- func (_c *ResourceService_Find_Call) RunAndReturn(...) *ResourceService_Find_Call
- type ResourceService_GetOne_Call
- func (_c *ResourceService_GetOne_Call) Return(_a0 *domain.Resource, _a1 error) *ResourceService_GetOne_Call
- func (_c *ResourceService_GetOne_Call) Run(run func(_a0 context.Context, _a1 string)) *ResourceService_GetOne_Call
- func (_c *ResourceService_GetOne_Call) RunAndReturn(run func(context.Context, string) (*domain.Resource, error)) *ResourceService_GetOne_Call
- type ResourceService_GetResourcesTotalCount_Call
- func (_c *ResourceService_GetResourcesTotalCount_Call) Return(_a0 int64, _a1 error) *ResourceService_GetResourcesTotalCount_Call
- func (_c *ResourceService_GetResourcesTotalCount_Call) Run(run func(_a0 context.Context, _a1 domain.ListResourcesFilter)) *ResourceService_GetResourcesTotalCount_Call
- func (_c *ResourceService_GetResourcesTotalCount_Call) RunAndReturn(run func(context.Context, domain.ListResourcesFilter) (int64, error)) *ResourceService_GetResourcesTotalCount_Call
- type ResourceService_Get_Call
- func (_c *ResourceService_Get_Call) Return(_a0 *domain.Resource, _a1 error) *ResourceService_Get_Call
- func (_c *ResourceService_Get_Call) Run(run func(_a0 context.Context, _a1 *domain.ResourceIdentifier)) *ResourceService_Get_Call
- func (_c *ResourceService_Get_Call) RunAndReturn(...) *ResourceService_Get_Call
- type ResourceService_Update_Call
- func (_c *ResourceService_Update_Call) Return(_a0 error) *ResourceService_Update_Call
- func (_c *ResourceService_Update_Call) Run(run func(_a0 context.Context, _a1 *domain.Resource)) *ResourceService_Update_Call
- func (_c *ResourceService_Update_Call) RunAndReturn(run func(context.Context, *domain.Resource) error) *ResourceService_Update_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActivityService ¶
ActivityService is an autogenerated mock type for the activityService type
func NewActivityService ¶ added in v0.7.5
func NewActivityService(t interface { mock.TestingT Cleanup(func()) }) *ActivityService
NewActivityService creates a new instance of ActivityService. 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 (*ActivityService) EXPECT ¶
func (_m *ActivityService) EXPECT() *ActivityService_Expecter
func (*ActivityService) Find ¶
func (_m *ActivityService) Find(_a0 context.Context, _a1 domain.ListProviderActivitiesFilter) ([]*domain.Activity, error)
Find provides a mock function with given fields: _a0, _a1
func (*ActivityService) Import ¶
func (_m *ActivityService) Import(_a0 context.Context, _a1 domain.ListActivitiesFilter) ([]*domain.Activity, error)
Import provides a mock function with given fields: _a0, _a1
type ActivityService_Expecter ¶
type ActivityService_Expecter struct {
// contains filtered or unexported fields
}
func (*ActivityService_Expecter) Find ¶
func (_e *ActivityService_Expecter) Find(_a0 interface{}, _a1 interface{}) *ActivityService_Find_Call
Find is a helper method to define mock.On call
- _a0 context.Context
- _a1 domain.ListProviderActivitiesFilter
func (*ActivityService_Expecter) GetOne ¶
func (_e *ActivityService_Expecter) GetOne(_a0 interface{}, _a1 interface{}) *ActivityService_GetOne_Call
GetOne is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
func (*ActivityService_Expecter) Import ¶
func (_e *ActivityService_Expecter) Import(_a0 interface{}, _a1 interface{}) *ActivityService_Import_Call
Import is a helper method to define mock.On call
- _a0 context.Context
- _a1 domain.ListActivitiesFilter
type ActivityService_Find_Call ¶
ActivityService_Find_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Find'
func (*ActivityService_Find_Call) Return ¶
func (_c *ActivityService_Find_Call) Return(_a0 []*domain.Activity, _a1 error) *ActivityService_Find_Call
func (*ActivityService_Find_Call) Run ¶
func (_c *ActivityService_Find_Call) Run(run func(_a0 context.Context, _a1 domain.ListProviderActivitiesFilter)) *ActivityService_Find_Call
func (*ActivityService_Find_Call) RunAndReturn ¶ added in v0.7.5
func (_c *ActivityService_Find_Call) RunAndReturn(run func(context.Context, domain.ListProviderActivitiesFilter) ([]*domain.Activity, error)) *ActivityService_Find_Call
type ActivityService_GetOne_Call ¶
ActivityService_GetOne_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOne'
func (*ActivityService_GetOne_Call) Return ¶
func (_c *ActivityService_GetOne_Call) Return(_a0 *domain.Activity, _a1 error) *ActivityService_GetOne_Call
func (*ActivityService_GetOne_Call) Run ¶
func (_c *ActivityService_GetOne_Call) Run(run func(_a0 context.Context, _a1 string)) *ActivityService_GetOne_Call
func (*ActivityService_GetOne_Call) RunAndReturn ¶ added in v0.7.5
func (_c *ActivityService_GetOne_Call) RunAndReturn(run func(context.Context, string) (*domain.Activity, error)) *ActivityService_GetOne_Call
type ActivityService_Import_Call ¶
ActivityService_Import_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Import'
func (*ActivityService_Import_Call) Return ¶
func (_c *ActivityService_Import_Call) Return(_a0 []*domain.Activity, _a1 error) *ActivityService_Import_Call
func (*ActivityService_Import_Call) Run ¶
func (_c *ActivityService_Import_Call) Run(run func(_a0 context.Context, _a1 domain.ListActivitiesFilter)) *ActivityService_Import_Call
func (*ActivityService_Import_Call) RunAndReturn ¶ added in v0.7.5
func (_c *ActivityService_Import_Call) RunAndReturn(run func(context.Context, domain.ListActivitiesFilter) ([]*domain.Activity, error)) *ActivityService_Import_Call
type AppealService ¶
AppealService is an autogenerated mock type for the appealService type
func NewAppealService ¶
func NewAppealService(t interface { mock.TestingT Cleanup(func()) }) *AppealService
NewAppealService creates a new instance of AppealService. 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 (*AppealService) AddApprover ¶
func (_m *AppealService) AddApprover(ctx context.Context, appealID string, approvalID string, email string) (*domain.Appeal, error)
AddApprover provides a mock function with given fields: ctx, appealID, approvalID, email
func (*AppealService) Create ¶
func (_m *AppealService) Create(_a0 context.Context, _a1 []*domain.Appeal, _a2 ...appeal.CreateAppealOption) error
Create provides a mock function with given fields: _a0, _a1, _a2
func (*AppealService) DeleteApprover ¶
func (_m *AppealService) DeleteApprover(ctx context.Context, appealID string, approvalID string, email string) (*domain.Appeal, error)
DeleteApprover provides a mock function with given fields: ctx, appealID, approvalID, email
func (*AppealService) EXPECT ¶
func (_m *AppealService) EXPECT() *AppealService_Expecter
func (*AppealService) Find ¶
func (_m *AppealService) Find(_a0 context.Context, _a1 *domain.ListAppealsFilter) ([]*domain.Appeal, error)
Find provides a mock function with given fields: _a0, _a1
func (*AppealService) GetAppealsTotalCount ¶ added in v0.7.5
func (_m *AppealService) GetAppealsTotalCount(_a0 context.Context, _a1 *domain.ListAppealsFilter) (int64, error)
GetAppealsTotalCount provides a mock function with given fields: _a0, _a1
func (*AppealService) UpdateApproval ¶
func (_m *AppealService) UpdateApproval(ctx context.Context, approvalAction domain.ApprovalAction) (*domain.Appeal, error)
UpdateApproval provides a mock function with given fields: ctx, approvalAction
type AppealService_AddApprover_Call ¶
AppealService_AddApprover_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddApprover'
func (*AppealService_AddApprover_Call) Return ¶
func (_c *AppealService_AddApprover_Call) Return(_a0 *domain.Appeal, _a1 error) *AppealService_AddApprover_Call
func (*AppealService_AddApprover_Call) Run ¶
func (_c *AppealService_AddApprover_Call) Run(run func(ctx context.Context, appealID string, approvalID string, email string)) *AppealService_AddApprover_Call
func (*AppealService_AddApprover_Call) RunAndReturn ¶ added in v0.7.5
func (_c *AppealService_AddApprover_Call) RunAndReturn(run func(context.Context, string, string, string) (*domain.Appeal, error)) *AppealService_AddApprover_Call
type AppealService_Cancel_Call ¶
AppealService_Cancel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Cancel'
func (*AppealService_Cancel_Call) Return ¶
func (_c *AppealService_Cancel_Call) Return(_a0 *domain.Appeal, _a1 error) *AppealService_Cancel_Call
func (*AppealService_Cancel_Call) Run ¶
func (_c *AppealService_Cancel_Call) Run(run func(_a0 context.Context, _a1 string)) *AppealService_Cancel_Call
func (*AppealService_Cancel_Call) RunAndReturn ¶ added in v0.7.5
func (_c *AppealService_Cancel_Call) RunAndReturn(run func(context.Context, string) (*domain.Appeal, error)) *AppealService_Cancel_Call
type AppealService_Create_Call ¶
AppealService_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*AppealService_Create_Call) Return ¶
func (_c *AppealService_Create_Call) Return(_a0 error) *AppealService_Create_Call
func (*AppealService_Create_Call) Run ¶
func (_c *AppealService_Create_Call) Run(run func(_a0 context.Context, _a1 []*domain.Appeal, _a2 ...appeal.CreateAppealOption)) *AppealService_Create_Call
func (*AppealService_Create_Call) RunAndReturn ¶ added in v0.7.5
func (_c *AppealService_Create_Call) RunAndReturn(run func(context.Context, []*domain.Appeal, ...appeal.CreateAppealOption) error) *AppealService_Create_Call
type AppealService_DeleteApprover_Call ¶
AppealService_DeleteApprover_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteApprover'
func (*AppealService_DeleteApprover_Call) Return ¶
func (_c *AppealService_DeleteApprover_Call) Return(_a0 *domain.Appeal, _a1 error) *AppealService_DeleteApprover_Call
func (*AppealService_DeleteApprover_Call) Run ¶
func (_c *AppealService_DeleteApprover_Call) Run(run func(ctx context.Context, appealID string, approvalID string, email string)) *AppealService_DeleteApprover_Call
func (*AppealService_DeleteApprover_Call) RunAndReturn ¶ added in v0.7.5
func (_c *AppealService_DeleteApprover_Call) RunAndReturn(run func(context.Context, string, string, string) (*domain.Appeal, error)) *AppealService_DeleteApprover_Call
type AppealService_Expecter ¶
type AppealService_Expecter struct {
// contains filtered or unexported fields
}
func (*AppealService_Expecter) AddApprover ¶
func (_e *AppealService_Expecter) AddApprover(ctx interface{}, appealID interface{}, approvalID interface{}, email interface{}) *AppealService_AddApprover_Call
AddApprover is a helper method to define mock.On call
- ctx context.Context
- appealID string
- approvalID string
- email string
func (*AppealService_Expecter) Cancel ¶
func (_e *AppealService_Expecter) Cancel(_a0 interface{}, _a1 interface{}) *AppealService_Cancel_Call
Cancel is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
func (*AppealService_Expecter) Create ¶
func (_e *AppealService_Expecter) Create(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *AppealService_Create_Call
Create is a helper method to define mock.On call
- _a0 context.Context
- _a1 []*domain.Appeal
- _a2 ...appeal.CreateAppealOption
func (*AppealService_Expecter) DeleteApprover ¶
func (_e *AppealService_Expecter) DeleteApprover(ctx interface{}, appealID interface{}, approvalID interface{}, email interface{}) *AppealService_DeleteApprover_Call
DeleteApprover is a helper method to define mock.On call
- ctx context.Context
- appealID string
- approvalID string
- email string
func (*AppealService_Expecter) Find ¶
func (_e *AppealService_Expecter) Find(_a0 interface{}, _a1 interface{}) *AppealService_Find_Call
Find is a helper method to define mock.On call
- _a0 context.Context
- _a1 *domain.ListAppealsFilter
func (*AppealService_Expecter) GetAppealsTotalCount ¶ added in v0.7.5
func (_e *AppealService_Expecter) GetAppealsTotalCount(_a0 interface{}, _a1 interface{}) *AppealService_GetAppealsTotalCount_Call
GetAppealsTotalCount is a helper method to define mock.On call
- _a0 context.Context
- _a1 *domain.ListAppealsFilter
func (*AppealService_Expecter) GetByID ¶
func (_e *AppealService_Expecter) GetByID(_a0 interface{}, _a1 interface{}) *AppealService_GetByID_Call
GetByID is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
func (*AppealService_Expecter) UpdateApproval ¶
func (_e *AppealService_Expecter) UpdateApproval(ctx interface{}, approvalAction interface{}) *AppealService_UpdateApproval_Call
UpdateApproval is a helper method to define mock.On call
- ctx context.Context
- approvalAction domain.ApprovalAction
type AppealService_Find_Call ¶
AppealService_Find_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Find'
func (*AppealService_Find_Call) Return ¶
func (_c *AppealService_Find_Call) Return(_a0 []*domain.Appeal, _a1 error) *AppealService_Find_Call
func (*AppealService_Find_Call) Run ¶
func (_c *AppealService_Find_Call) Run(run func(_a0 context.Context, _a1 *domain.ListAppealsFilter)) *AppealService_Find_Call
func (*AppealService_Find_Call) RunAndReturn ¶ added in v0.7.5
func (_c *AppealService_Find_Call) RunAndReturn(run func(context.Context, *domain.ListAppealsFilter) ([]*domain.Appeal, error)) *AppealService_Find_Call
type AppealService_GetAppealsTotalCount_Call ¶ added in v0.7.5
AppealService_GetAppealsTotalCount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAppealsTotalCount'
func (*AppealService_GetAppealsTotalCount_Call) Return ¶ added in v0.7.5
func (_c *AppealService_GetAppealsTotalCount_Call) Return(_a0 int64, _a1 error) *AppealService_GetAppealsTotalCount_Call
func (*AppealService_GetAppealsTotalCount_Call) Run ¶ added in v0.7.5
func (_c *AppealService_GetAppealsTotalCount_Call) Run(run func(_a0 context.Context, _a1 *domain.ListAppealsFilter)) *AppealService_GetAppealsTotalCount_Call
func (*AppealService_GetAppealsTotalCount_Call) RunAndReturn ¶ added in v0.7.5
func (_c *AppealService_GetAppealsTotalCount_Call) RunAndReturn(run func(context.Context, *domain.ListAppealsFilter) (int64, error)) *AppealService_GetAppealsTotalCount_Call
type AppealService_GetByID_Call ¶
AppealService_GetByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByID'
func (*AppealService_GetByID_Call) Return ¶
func (_c *AppealService_GetByID_Call) Return(_a0 *domain.Appeal, _a1 error) *AppealService_GetByID_Call
func (*AppealService_GetByID_Call) Run ¶
func (_c *AppealService_GetByID_Call) Run(run func(_a0 context.Context, _a1 string)) *AppealService_GetByID_Call
func (*AppealService_GetByID_Call) RunAndReturn ¶ added in v0.7.5
func (_c *AppealService_GetByID_Call) RunAndReturn(run func(context.Context, string) (*domain.Appeal, error)) *AppealService_GetByID_Call
type AppealService_UpdateApproval_Call ¶
AppealService_UpdateApproval_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateApproval'
func (*AppealService_UpdateApproval_Call) Return ¶
func (_c *AppealService_UpdateApproval_Call) Return(_a0 *domain.Appeal, _a1 error) *AppealService_UpdateApproval_Call
func (*AppealService_UpdateApproval_Call) Run ¶
func (_c *AppealService_UpdateApproval_Call) Run(run func(ctx context.Context, approvalAction domain.ApprovalAction)) *AppealService_UpdateApproval_Call
func (*AppealService_UpdateApproval_Call) RunAndReturn ¶ added in v0.7.5
func (_c *AppealService_UpdateApproval_Call) RunAndReturn(run func(context.Context, domain.ApprovalAction) (*domain.Appeal, error)) *AppealService_UpdateApproval_Call
type ApprovalService ¶
ApprovalService is an autogenerated mock type for the approvalService type
func NewApprovalService ¶
func NewApprovalService(t interface { mock.TestingT Cleanup(func()) }) *ApprovalService
NewApprovalService creates a new instance of ApprovalService. 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 (*ApprovalService) BulkInsert ¶
BulkInsert provides a mock function with given fields: _a0, _a1
func (*ApprovalService) EXPECT ¶
func (_m *ApprovalService) EXPECT() *ApprovalService_Expecter
func (*ApprovalService) GetApprovalsTotalCount ¶ added in v0.7.5
func (_m *ApprovalService) GetApprovalsTotalCount(_a0 context.Context, _a1 *domain.ListApprovalsFilter) (int64, error)
GetApprovalsTotalCount provides a mock function with given fields: _a0, _a1
func (*ApprovalService) ListApprovals ¶
func (_m *ApprovalService) ListApprovals(_a0 context.Context, _a1 *domain.ListApprovalsFilter) ([]*domain.Approval, error)
ListApprovals provides a mock function with given fields: _a0, _a1
type ApprovalService_BulkInsert_Call ¶
ApprovalService_BulkInsert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BulkInsert'
func (*ApprovalService_BulkInsert_Call) Return ¶
func (_c *ApprovalService_BulkInsert_Call) Return(_a0 error) *ApprovalService_BulkInsert_Call
func (*ApprovalService_BulkInsert_Call) Run ¶
func (_c *ApprovalService_BulkInsert_Call) Run(run func(_a0 context.Context, _a1 []*domain.Approval)) *ApprovalService_BulkInsert_Call
func (*ApprovalService_BulkInsert_Call) RunAndReturn ¶ added in v0.7.5
func (_c *ApprovalService_BulkInsert_Call) RunAndReturn(run func(context.Context, []*domain.Approval) error) *ApprovalService_BulkInsert_Call
type ApprovalService_Expecter ¶
type ApprovalService_Expecter struct {
// contains filtered or unexported fields
}
func (*ApprovalService_Expecter) BulkInsert ¶
func (_e *ApprovalService_Expecter) BulkInsert(_a0 interface{}, _a1 interface{}) *ApprovalService_BulkInsert_Call
BulkInsert is a helper method to define mock.On call
- _a0 context.Context
- _a1 []*domain.Approval
func (*ApprovalService_Expecter) GetApprovalsTotalCount ¶ added in v0.7.5
func (_e *ApprovalService_Expecter) GetApprovalsTotalCount(_a0 interface{}, _a1 interface{}) *ApprovalService_GetApprovalsTotalCount_Call
GetApprovalsTotalCount is a helper method to define mock.On call
- _a0 context.Context
- _a1 *domain.ListApprovalsFilter
func (*ApprovalService_Expecter) ListApprovals ¶
func (_e *ApprovalService_Expecter) ListApprovals(_a0 interface{}, _a1 interface{}) *ApprovalService_ListApprovals_Call
ListApprovals is a helper method to define mock.On call
- _a0 context.Context
- _a1 *domain.ListApprovalsFilter
type ApprovalService_GetApprovalsTotalCount_Call ¶ added in v0.7.5
ApprovalService_GetApprovalsTotalCount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetApprovalsTotalCount'
func (*ApprovalService_GetApprovalsTotalCount_Call) Return ¶ added in v0.7.5
func (_c *ApprovalService_GetApprovalsTotalCount_Call) Return(_a0 int64, _a1 error) *ApprovalService_GetApprovalsTotalCount_Call
func (*ApprovalService_GetApprovalsTotalCount_Call) Run ¶ added in v0.7.5
func (_c *ApprovalService_GetApprovalsTotalCount_Call) Run(run func(_a0 context.Context, _a1 *domain.ListApprovalsFilter)) *ApprovalService_GetApprovalsTotalCount_Call
func (*ApprovalService_GetApprovalsTotalCount_Call) RunAndReturn ¶ added in v0.7.5
func (_c *ApprovalService_GetApprovalsTotalCount_Call) RunAndReturn(run func(context.Context, *domain.ListApprovalsFilter) (int64, error)) *ApprovalService_GetApprovalsTotalCount_Call
type ApprovalService_ListApprovals_Call ¶
ApprovalService_ListApprovals_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListApprovals'
func (*ApprovalService_ListApprovals_Call) Return ¶
func (_c *ApprovalService_ListApprovals_Call) Return(_a0 []*domain.Approval, _a1 error) *ApprovalService_ListApprovals_Call
func (*ApprovalService_ListApprovals_Call) Run ¶
func (_c *ApprovalService_ListApprovals_Call) Run(run func(_a0 context.Context, _a1 *domain.ListApprovalsFilter)) *ApprovalService_ListApprovals_Call
func (*ApprovalService_ListApprovals_Call) RunAndReturn ¶ added in v0.7.5
func (_c *ApprovalService_ListApprovals_Call) RunAndReturn(run func(context.Context, *domain.ListApprovalsFilter) ([]*domain.Approval, error)) *ApprovalService_ListApprovals_Call
type GrantService ¶
GrantService is an autogenerated mock type for the grantService type
func NewGrantService ¶
func NewGrantService(t interface { mock.TestingT Cleanup(func()) }) *GrantService
NewGrantService creates a new instance of GrantService. 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 (*GrantService) BulkRevoke ¶
func (_m *GrantService) BulkRevoke(ctx context.Context, filter domain.RevokeGrantsFilter, actor string, reason string) ([]*domain.Grant, error)
BulkRevoke provides a mock function with given fields: ctx, filter, actor, reason
func (*GrantService) EXPECT ¶
func (_m *GrantService) EXPECT() *GrantService_Expecter
func (*GrantService) GetGrantsTotalCount ¶ added in v0.7.5
func (_m *GrantService) GetGrantsTotalCount(_a0 context.Context, _a1 domain.ListGrantsFilter) (int64, error)
GetGrantsTotalCount provides a mock function with given fields: _a0, _a1
func (*GrantService) ImportFromProvider ¶
func (_m *GrantService) ImportFromProvider(ctx context.Context, criteria grant.ImportFromProviderCriteria) ([]*domain.Grant, error)
ImportFromProvider provides a mock function with given fields: ctx, criteria
func (*GrantService) List ¶
func (_m *GrantService) List(_a0 context.Context, _a1 domain.ListGrantsFilter) ([]domain.Grant, error)
List provides a mock function with given fields: _a0, _a1
func (*GrantService) ListUserRoles ¶ added in v0.7.6
ListUserRoles provides a mock function with given fields: _a0, _a1
type GrantService_BulkRevoke_Call ¶
GrantService_BulkRevoke_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BulkRevoke'
func (*GrantService_BulkRevoke_Call) Return ¶
func (_c *GrantService_BulkRevoke_Call) Return(_a0 []*domain.Grant, _a1 error) *GrantService_BulkRevoke_Call
func (*GrantService_BulkRevoke_Call) Run ¶
func (_c *GrantService_BulkRevoke_Call) Run(run func(ctx context.Context, filter domain.RevokeGrantsFilter, actor string, reason string)) *GrantService_BulkRevoke_Call
func (*GrantService_BulkRevoke_Call) RunAndReturn ¶
func (_c *GrantService_BulkRevoke_Call) RunAndReturn(run func(context.Context, domain.RevokeGrantsFilter, string, string) ([]*domain.Grant, error)) *GrantService_BulkRevoke_Call
type GrantService_Expecter ¶
type GrantService_Expecter struct {
// contains filtered or unexported fields
}
func (*GrantService_Expecter) BulkRevoke ¶
func (_e *GrantService_Expecter) BulkRevoke(ctx interface{}, filter interface{}, actor interface{}, reason interface{}) *GrantService_BulkRevoke_Call
BulkRevoke is a helper method to define mock.On call
- ctx context.Context
- filter domain.RevokeGrantsFilter
- actor string
- reason string
func (*GrantService_Expecter) GetByID ¶
func (_e *GrantService_Expecter) GetByID(_a0 interface{}, _a1 interface{}) *GrantService_GetByID_Call
GetByID is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
func (*GrantService_Expecter) GetGrantsTotalCount ¶ added in v0.7.5
func (_e *GrantService_Expecter) GetGrantsTotalCount(_a0 interface{}, _a1 interface{}) *GrantService_GetGrantsTotalCount_Call
GetGrantsTotalCount is a helper method to define mock.On call
- _a0 context.Context
- _a1 domain.ListGrantsFilter
func (*GrantService_Expecter) ImportFromProvider ¶
func (_e *GrantService_Expecter) ImportFromProvider(ctx interface{}, criteria interface{}) *GrantService_ImportFromProvider_Call
ImportFromProvider is a helper method to define mock.On call
- ctx context.Context
- criteria grant.ImportFromProviderCriteria
func (*GrantService_Expecter) List ¶
func (_e *GrantService_Expecter) List(_a0 interface{}, _a1 interface{}) *GrantService_List_Call
List is a helper method to define mock.On call
- _a0 context.Context
- _a1 domain.ListGrantsFilter
func (*GrantService_Expecter) ListUserRoles ¶ added in v0.7.6
func (_e *GrantService_Expecter) ListUserRoles(_a0 interface{}, _a1 interface{}) *GrantService_ListUserRoles_Call
ListUserRoles is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
func (*GrantService_Expecter) Revoke ¶
func (_e *GrantService_Expecter) Revoke(ctx interface{}, id interface{}, actor interface{}, reason interface{}, opts ...interface{}) *GrantService_Revoke_Call
Revoke is a helper method to define mock.On call
- ctx context.Context
- id string
- actor string
- reason string
- opts ...grant.Option
func (*GrantService_Expecter) Update ¶
func (_e *GrantService_Expecter) Update(_a0 interface{}, _a1 interface{}) *GrantService_Update_Call
Update is a helper method to define mock.On call
- _a0 context.Context
- _a1 *domain.Grant
type GrantService_GetByID_Call ¶
GrantService_GetByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByID'
func (*GrantService_GetByID_Call) Return ¶
func (_c *GrantService_GetByID_Call) Return(_a0 *domain.Grant, _a1 error) *GrantService_GetByID_Call
func (*GrantService_GetByID_Call) Run ¶
func (_c *GrantService_GetByID_Call) Run(run func(_a0 context.Context, _a1 string)) *GrantService_GetByID_Call
func (*GrantService_GetByID_Call) RunAndReturn ¶
func (_c *GrantService_GetByID_Call) RunAndReturn(run func(context.Context, string) (*domain.Grant, error)) *GrantService_GetByID_Call
type GrantService_GetGrantsTotalCount_Call ¶ added in v0.7.5
GrantService_GetGrantsTotalCount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetGrantsTotalCount'
func (*GrantService_GetGrantsTotalCount_Call) Return ¶ added in v0.7.5
func (_c *GrantService_GetGrantsTotalCount_Call) Return(_a0 int64, _a1 error) *GrantService_GetGrantsTotalCount_Call
func (*GrantService_GetGrantsTotalCount_Call) Run ¶ added in v0.7.5
func (_c *GrantService_GetGrantsTotalCount_Call) Run(run func(_a0 context.Context, _a1 domain.ListGrantsFilter)) *GrantService_GetGrantsTotalCount_Call
func (*GrantService_GetGrantsTotalCount_Call) RunAndReturn ¶ added in v0.7.5
func (_c *GrantService_GetGrantsTotalCount_Call) RunAndReturn(run func(context.Context, domain.ListGrantsFilter) (int64, error)) *GrantService_GetGrantsTotalCount_Call
type GrantService_ImportFromProvider_Call ¶
GrantService_ImportFromProvider_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ImportFromProvider'
func (*GrantService_ImportFromProvider_Call) Return ¶
func (_c *GrantService_ImportFromProvider_Call) Return(_a0 []*domain.Grant, _a1 error) *GrantService_ImportFromProvider_Call
func (*GrantService_ImportFromProvider_Call) Run ¶
func (_c *GrantService_ImportFromProvider_Call) Run(run func(ctx context.Context, criteria grant.ImportFromProviderCriteria)) *GrantService_ImportFromProvider_Call
func (*GrantService_ImportFromProvider_Call) RunAndReturn ¶
func (_c *GrantService_ImportFromProvider_Call) RunAndReturn(run func(context.Context, grant.ImportFromProviderCriteria) ([]*domain.Grant, error)) *GrantService_ImportFromProvider_Call
type GrantService_ListUserRoles_Call ¶ added in v0.7.6
GrantService_ListUserRoles_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListUserRoles'
func (*GrantService_ListUserRoles_Call) Return ¶ added in v0.7.6
func (_c *GrantService_ListUserRoles_Call) Return(_a0 []string, _a1 error) *GrantService_ListUserRoles_Call
func (*GrantService_ListUserRoles_Call) Run ¶ added in v0.7.6
func (_c *GrantService_ListUserRoles_Call) Run(run func(_a0 context.Context, _a1 string)) *GrantService_ListUserRoles_Call
func (*GrantService_ListUserRoles_Call) RunAndReturn ¶ added in v0.7.6
func (_c *GrantService_ListUserRoles_Call) RunAndReturn(run func(context.Context, string) ([]string, error)) *GrantService_ListUserRoles_Call
type GrantService_List_Call ¶
GrantService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*GrantService_List_Call) Return ¶
func (_c *GrantService_List_Call) Return(_a0 []domain.Grant, _a1 error) *GrantService_List_Call
func (*GrantService_List_Call) Run ¶
func (_c *GrantService_List_Call) Run(run func(_a0 context.Context, _a1 domain.ListGrantsFilter)) *GrantService_List_Call
func (*GrantService_List_Call) RunAndReturn ¶
func (_c *GrantService_List_Call) RunAndReturn(run func(context.Context, domain.ListGrantsFilter) ([]domain.Grant, error)) *GrantService_List_Call
type GrantService_Revoke_Call ¶
GrantService_Revoke_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Revoke'
func (*GrantService_Revoke_Call) Return ¶
func (_c *GrantService_Revoke_Call) Return(_a0 *domain.Grant, _a1 error) *GrantService_Revoke_Call
func (*GrantService_Revoke_Call) Run ¶
func (_c *GrantService_Revoke_Call) Run(run func(ctx context.Context, id string, actor string, reason string, opts ...grant.Option)) *GrantService_Revoke_Call
func (*GrantService_Revoke_Call) RunAndReturn ¶
type GrantService_Update_Call ¶
GrantService_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*GrantService_Update_Call) Return ¶
func (_c *GrantService_Update_Call) Return(_a0 error) *GrantService_Update_Call
func (*GrantService_Update_Call) Run ¶
func (_c *GrantService_Update_Call) Run(run func(_a0 context.Context, _a1 *domain.Grant)) *GrantService_Update_Call
func (*GrantService_Update_Call) RunAndReturn ¶
func (_c *GrantService_Update_Call) RunAndReturn(run func(context.Context, *domain.Grant) error) *GrantService_Update_Call
type PolicyService ¶
PolicyService is an autogenerated mock type for the policyService type
func NewPolicyService ¶ added in v0.7.5
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 error) *PolicyService_Create_Call
func (*PolicyService_Create_Call) Run ¶
func (_c *PolicyService_Create_Call) Run(run func(_a0 context.Context, _a1 *domain.Policy)) *PolicyService_Create_Call
func (*PolicyService_Create_Call) RunAndReturn ¶ added in v0.7.5
func (_c *PolicyService_Create_Call) RunAndReturn(run func(context.Context, *domain.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(_a0 interface{}, _a1 interface{}) *PolicyService_Create_Call
Create is a helper method to define mock.On call
- _a0 context.Context
- _a1 *domain.Policy
func (*PolicyService_Expecter) Find ¶
func (_e *PolicyService_Expecter) Find(_a0 interface{}) *PolicyService_Find_Call
Find is a helper method to define mock.On call
- _a0 context.Context
func (*PolicyService_Expecter) GetOne ¶
func (_e *PolicyService_Expecter) GetOne(ctx interface{}, id interface{}, version interface{}) *PolicyService_GetOne_Call
GetOne is a helper method to define mock.On call
- ctx context.Context
- id string
- version uint
func (*PolicyService_Expecter) Update ¶
func (_e *PolicyService_Expecter) Update(_a0 interface{}, _a1 interface{}) *PolicyService_Update_Call
Update is a helper method to define mock.On call
- _a0 context.Context
- _a1 *domain.Policy
type PolicyService_Find_Call ¶
PolicyService_Find_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Find'
func (*PolicyService_Find_Call) Return ¶
func (_c *PolicyService_Find_Call) Return(_a0 []*domain.Policy, _a1 error) *PolicyService_Find_Call
func (*PolicyService_Find_Call) Run ¶
func (_c *PolicyService_Find_Call) Run(run func(_a0 context.Context)) *PolicyService_Find_Call
func (*PolicyService_Find_Call) RunAndReturn ¶ added in v0.7.5
func (_c *PolicyService_Find_Call) RunAndReturn(run func(context.Context) ([]*domain.Policy, error)) *PolicyService_Find_Call
type PolicyService_GetOne_Call ¶
PolicyService_GetOne_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOne'
func (*PolicyService_GetOne_Call) Return ¶
func (_c *PolicyService_GetOne_Call) Return(_a0 *domain.Policy, _a1 error) *PolicyService_GetOne_Call
func (*PolicyService_GetOne_Call) Run ¶
func (_c *PolicyService_GetOne_Call) Run(run func(ctx context.Context, id string, version uint)) *PolicyService_GetOne_Call
func (*PolicyService_GetOne_Call) RunAndReturn ¶ added in v0.7.5
func (_c *PolicyService_GetOne_Call) RunAndReturn(run func(context.Context, string, uint) (*domain.Policy, error)) *PolicyService_GetOne_Call
type PolicyService_Update_Call ¶
PolicyService_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*PolicyService_Update_Call) Return ¶
func (_c *PolicyService_Update_Call) Return(_a0 error) *PolicyService_Update_Call
func (*PolicyService_Update_Call) Run ¶
func (_c *PolicyService_Update_Call) Run(run func(_a0 context.Context, _a1 *domain.Policy)) *PolicyService_Update_Call
func (*PolicyService_Update_Call) RunAndReturn ¶ added in v0.7.5
func (_c *PolicyService_Update_Call) RunAndReturn(run func(context.Context, *domain.Policy) error) *PolicyService_Update_Call
type ProviderActivityService ¶
ProviderActivityService is an autogenerated mock type for the providerActivityService type
func (*ProviderActivityService) EXPECT ¶
func (_m *ProviderActivityService) EXPECT() *ProviderActivityService_Expecter
func (*ProviderActivityService) Find ¶
func (_m *ProviderActivityService) Find(_a0 context.Context, _a1 domain.ListProviderActivitiesFilter) ([]*domain.Activity, error)
Find provides a mock function with given fields: _a0, _a1
func (*ProviderActivityService) GetOne ¶
func (_m *ProviderActivityService) GetOne(_a0 context.Context, _a1 string) (*domain.Activity, error)
GetOne provides a mock function with given fields: _a0, _a1
func (*ProviderActivityService) Import ¶
func (_m *ProviderActivityService) Import(_a0 context.Context, _a1 domain.ListActivitiesFilter) ([]*domain.Activity, error)
Import provides a mock function with given fields: _a0, _a1
type ProviderActivityService_Expecter ¶
type ProviderActivityService_Expecter struct {
// contains filtered or unexported fields
}
func (*ProviderActivityService_Expecter) Find ¶
func (_e *ProviderActivityService_Expecter) Find(_a0 interface{}, _a1 interface{}) *ProviderActivityService_Find_Call
Find is a helper method to define mock.On call
- _a0 context.Context
- _a1 domain.ListProviderActivitiesFilter
func (*ProviderActivityService_Expecter) GetOne ¶
func (_e *ProviderActivityService_Expecter) GetOne(_a0 interface{}, _a1 interface{}) *ProviderActivityService_GetOne_Call
GetOne is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
func (*ProviderActivityService_Expecter) Import ¶
func (_e *ProviderActivityService_Expecter) Import(_a0 interface{}, _a1 interface{}) *ProviderActivityService_Import_Call
Import is a helper method to define mock.On call
- _a0 context.Context
- _a1 domain.ImportActivitiesFilter
type ProviderActivityService_Find_Call ¶
ProviderActivityService_Find_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Find'
func (*ProviderActivityService_Find_Call) Return ¶
func (_c *ProviderActivityService_Find_Call) Return(_a0 []*domain.Activity, _a1 error) *ProviderActivityService_Find_Call
func (*ProviderActivityService_Find_Call) Run ¶
func (_c *ProviderActivityService_Find_Call) Run(run func(_a0 context.Context, _a1 domain.ListProviderActivitiesFilter)) *ProviderActivityService_Find_Call
type ProviderActivityService_GetOne_Call ¶
ProviderActivityService_GetOne_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOne'
func (*ProviderActivityService_GetOne_Call) Return ¶
func (_c *ProviderActivityService_GetOne_Call) Return(_a0 *domain.Activity, _a1 error) *ProviderActivityService_GetOne_Call
func (*ProviderActivityService_GetOne_Call) Run ¶
func (_c *ProviderActivityService_GetOne_Call) Run(run func(_a0 context.Context, _a1 string)) *ProviderActivityService_GetOne_Call
type ProviderActivityService_Import_Call ¶
ProviderActivityService_Import_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Import'
func (*ProviderActivityService_Import_Call) Return ¶
func (_c *ProviderActivityService_Import_Call) Return(_a0 []*domain.Activity, _a1 error) *ProviderActivityService_Import_Call
func (*ProviderActivityService_Import_Call) Run ¶
func (_c *ProviderActivityService_Import_Call) Run(run func(_a0 context.Context, _a1 domain.ListActivitiesFilter)) *ProviderActivityService_Import_Call
type ProviderService ¶
ProviderService is an autogenerated mock type for the providerService type
func NewProviderService ¶ added in v0.7.5
func NewProviderService(t interface { mock.TestingT Cleanup(func()) }) *ProviderService
NewProviderService creates a new instance of ProviderService. 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 (*ProviderService) Delete ¶
func (_m *ProviderService) Delete(_a0 context.Context, _a1 string) error
Delete provides a mock function with given fields: _a0, _a1
func (*ProviderService) EXPECT ¶
func (_m *ProviderService) EXPECT() *ProviderService_Expecter
func (*ProviderService) FetchResources ¶
func (_m *ProviderService) FetchResources(_a0 context.Context) error
FetchResources provides a mock function with given fields: _a0
func (*ProviderService) GetOne ¶
func (_m *ProviderService) GetOne(ctx context.Context, pType string, urn string) (*domain.Provider, error)
GetOne provides a mock function with given fields: ctx, pType, urn
func (*ProviderService) GetRoles ¶
func (_m *ProviderService) GetRoles(ctx context.Context, id string, resourceType string) ([]*domain.Role, error)
GetRoles provides a mock function with given fields: ctx, id, resourceType
func (*ProviderService) GetTypes ¶
func (_m *ProviderService) GetTypes(_a0 context.Context) ([]domain.ProviderType, error)
GetTypes provides a mock function with given fields: _a0
func (*ProviderService) GrantAccess ¶
GrantAccess provides a mock function with given fields: _a0, _a1
func (*ProviderService) RevokeAccess ¶
RevokeAccess provides a mock function with given fields: _a0, _a1
type ProviderService_Create_Call ¶
ProviderService_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*ProviderService_Create_Call) Return ¶
func (_c *ProviderService_Create_Call) Return(_a0 error) *ProviderService_Create_Call
func (*ProviderService_Create_Call) Run ¶
func (_c *ProviderService_Create_Call) Run(run func(_a0 context.Context, _a1 *domain.Provider)) *ProviderService_Create_Call
func (*ProviderService_Create_Call) RunAndReturn ¶ added in v0.7.5
func (_c *ProviderService_Create_Call) RunAndReturn(run func(context.Context, *domain.Provider) error) *ProviderService_Create_Call
type ProviderService_Delete_Call ¶
ProviderService_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*ProviderService_Delete_Call) Return ¶
func (_c *ProviderService_Delete_Call) Return(_a0 error) *ProviderService_Delete_Call
func (*ProviderService_Delete_Call) Run ¶
func (_c *ProviderService_Delete_Call) Run(run func(_a0 context.Context, _a1 string)) *ProviderService_Delete_Call
func (*ProviderService_Delete_Call) RunAndReturn ¶ added in v0.7.5
func (_c *ProviderService_Delete_Call) RunAndReturn(run func(context.Context, string) error) *ProviderService_Delete_Call
type ProviderService_Expecter ¶
type ProviderService_Expecter struct {
// contains filtered or unexported fields
}
func (*ProviderService_Expecter) Create ¶
func (_e *ProviderService_Expecter) Create(_a0 interface{}, _a1 interface{}) *ProviderService_Create_Call
Create is a helper method to define mock.On call
- _a0 context.Context
- _a1 *domain.Provider
func (*ProviderService_Expecter) Delete ¶
func (_e *ProviderService_Expecter) Delete(_a0 interface{}, _a1 interface{}) *ProviderService_Delete_Call
Delete is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
func (*ProviderService_Expecter) FetchResources ¶
func (_e *ProviderService_Expecter) FetchResources(_a0 interface{}) *ProviderService_FetchResources_Call
FetchResources is a helper method to define mock.On call
- _a0 context.Context
func (*ProviderService_Expecter) Find ¶
func (_e *ProviderService_Expecter) Find(_a0 interface{}) *ProviderService_Find_Call
Find is a helper method to define mock.On call
- _a0 context.Context
func (*ProviderService_Expecter) GetByID ¶
func (_e *ProviderService_Expecter) GetByID(_a0 interface{}, _a1 interface{}) *ProviderService_GetByID_Call
GetByID is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
func (*ProviderService_Expecter) GetOne ¶
func (_e *ProviderService_Expecter) GetOne(ctx interface{}, pType interface{}, urn interface{}) *ProviderService_GetOne_Call
GetOne is a helper method to define mock.On call
- ctx context.Context
- pType string
- urn string
func (*ProviderService_Expecter) GetRoles ¶
func (_e *ProviderService_Expecter) GetRoles(ctx interface{}, id interface{}, resourceType interface{}) *ProviderService_GetRoles_Call
GetRoles is a helper method to define mock.On call
- ctx context.Context
- id string
- resourceType string
func (*ProviderService_Expecter) GetTypes ¶
func (_e *ProviderService_Expecter) GetTypes(_a0 interface{}) *ProviderService_GetTypes_Call
GetTypes is a helper method to define mock.On call
- _a0 context.Context
func (*ProviderService_Expecter) GrantAccess ¶
func (_e *ProviderService_Expecter) GrantAccess(_a0 interface{}, _a1 interface{}) *ProviderService_GrantAccess_Call
GrantAccess is a helper method to define mock.On call
- _a0 context.Context
- _a1 domain.Grant
func (*ProviderService_Expecter) RevokeAccess ¶
func (_e *ProviderService_Expecter) RevokeAccess(_a0 interface{}, _a1 interface{}) *ProviderService_RevokeAccess_Call
RevokeAccess is a helper method to define mock.On call
- _a0 context.Context
- _a1 domain.Grant
func (*ProviderService_Expecter) Update ¶
func (_e *ProviderService_Expecter) Update(_a0 interface{}, _a1 interface{}) *ProviderService_Update_Call
Update is a helper method to define mock.On call
- _a0 context.Context
- _a1 *domain.Provider
func (*ProviderService_Expecter) ValidateAppeal ¶
func (_e *ProviderService_Expecter) ValidateAppeal(_a0 interface{}, _a1 interface{}, _a2 interface{}, _a3 interface{}) *ProviderService_ValidateAppeal_Call
ValidateAppeal is a helper method to define mock.On call
- _a0 context.Context
- _a1 *domain.Appeal
- _a2 *domain.Provider
- _a3 *domain.Policy
type ProviderService_FetchResources_Call ¶
ProviderService_FetchResources_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FetchResources'
func (*ProviderService_FetchResources_Call) Return ¶
func (_c *ProviderService_FetchResources_Call) Return(_a0 error) *ProviderService_FetchResources_Call
func (*ProviderService_FetchResources_Call) Run ¶
func (_c *ProviderService_FetchResources_Call) Run(run func(_a0 context.Context)) *ProviderService_FetchResources_Call
func (*ProviderService_FetchResources_Call) RunAndReturn ¶ added in v0.7.5
func (_c *ProviderService_FetchResources_Call) RunAndReturn(run func(context.Context) error) *ProviderService_FetchResources_Call
type ProviderService_Find_Call ¶
ProviderService_Find_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Find'
func (*ProviderService_Find_Call) Return ¶
func (_c *ProviderService_Find_Call) Return(_a0 []*domain.Provider, _a1 error) *ProviderService_Find_Call
func (*ProviderService_Find_Call) Run ¶
func (_c *ProviderService_Find_Call) Run(run func(_a0 context.Context)) *ProviderService_Find_Call
func (*ProviderService_Find_Call) RunAndReturn ¶ added in v0.7.5
func (_c *ProviderService_Find_Call) RunAndReturn(run func(context.Context) ([]*domain.Provider, error)) *ProviderService_Find_Call
type ProviderService_GetByID_Call ¶
ProviderService_GetByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByID'
func (*ProviderService_GetByID_Call) Return ¶
func (_c *ProviderService_GetByID_Call) Return(_a0 *domain.Provider, _a1 error) *ProviderService_GetByID_Call
func (*ProviderService_GetByID_Call) Run ¶
func (_c *ProviderService_GetByID_Call) Run(run func(_a0 context.Context, _a1 string)) *ProviderService_GetByID_Call
func (*ProviderService_GetByID_Call) RunAndReturn ¶ added in v0.7.5
func (_c *ProviderService_GetByID_Call) RunAndReturn(run func(context.Context, string) (*domain.Provider, error)) *ProviderService_GetByID_Call
type ProviderService_GetOne_Call ¶
ProviderService_GetOne_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOne'
func (*ProviderService_GetOne_Call) Return ¶
func (_c *ProviderService_GetOne_Call) Return(_a0 *domain.Provider, _a1 error) *ProviderService_GetOne_Call
func (*ProviderService_GetOne_Call) Run ¶
func (_c *ProviderService_GetOne_Call) Run(run func(ctx context.Context, pType string, urn string)) *ProviderService_GetOne_Call
func (*ProviderService_GetOne_Call) RunAndReturn ¶ added in v0.7.5
func (_c *ProviderService_GetOne_Call) RunAndReturn(run func(context.Context, string, string) (*domain.Provider, error)) *ProviderService_GetOne_Call
type ProviderService_GetRoles_Call ¶
ProviderService_GetRoles_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRoles'
func (*ProviderService_GetRoles_Call) Return ¶
func (_c *ProviderService_GetRoles_Call) Return(_a0 []*domain.Role, _a1 error) *ProviderService_GetRoles_Call
func (*ProviderService_GetRoles_Call) Run ¶
func (_c *ProviderService_GetRoles_Call) Run(run func(ctx context.Context, id string, resourceType string)) *ProviderService_GetRoles_Call
func (*ProviderService_GetRoles_Call) RunAndReturn ¶ added in v0.7.5
func (_c *ProviderService_GetRoles_Call) RunAndReturn(run func(context.Context, string, string) ([]*domain.Role, error)) *ProviderService_GetRoles_Call
type ProviderService_GetTypes_Call ¶
ProviderService_GetTypes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTypes'
func (*ProviderService_GetTypes_Call) Return ¶
func (_c *ProviderService_GetTypes_Call) Return(_a0 []domain.ProviderType, _a1 error) *ProviderService_GetTypes_Call
func (*ProviderService_GetTypes_Call) Run ¶
func (_c *ProviderService_GetTypes_Call) Run(run func(_a0 context.Context)) *ProviderService_GetTypes_Call
func (*ProviderService_GetTypes_Call) RunAndReturn ¶ added in v0.7.5
func (_c *ProviderService_GetTypes_Call) RunAndReturn(run func(context.Context) ([]domain.ProviderType, error)) *ProviderService_GetTypes_Call
type ProviderService_GrantAccess_Call ¶
ProviderService_GrantAccess_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GrantAccess'
func (*ProviderService_GrantAccess_Call) Return ¶
func (_c *ProviderService_GrantAccess_Call) Return(_a0 error) *ProviderService_GrantAccess_Call
func (*ProviderService_GrantAccess_Call) Run ¶
func (_c *ProviderService_GrantAccess_Call) Run(run func(_a0 context.Context, _a1 domain.Grant)) *ProviderService_GrantAccess_Call
func (*ProviderService_GrantAccess_Call) RunAndReturn ¶ added in v0.7.5
func (_c *ProviderService_GrantAccess_Call) RunAndReturn(run func(context.Context, domain.Grant) error) *ProviderService_GrantAccess_Call
type ProviderService_RevokeAccess_Call ¶
ProviderService_RevokeAccess_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RevokeAccess'
func (*ProviderService_RevokeAccess_Call) Return ¶
func (_c *ProviderService_RevokeAccess_Call) Return(_a0 error) *ProviderService_RevokeAccess_Call
func (*ProviderService_RevokeAccess_Call) Run ¶
func (_c *ProviderService_RevokeAccess_Call) Run(run func(_a0 context.Context, _a1 domain.Grant)) *ProviderService_RevokeAccess_Call
func (*ProviderService_RevokeAccess_Call) RunAndReturn ¶ added in v0.7.5
func (_c *ProviderService_RevokeAccess_Call) RunAndReturn(run func(context.Context, domain.Grant) error) *ProviderService_RevokeAccess_Call
type ProviderService_Update_Call ¶
ProviderService_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*ProviderService_Update_Call) Return ¶
func (_c *ProviderService_Update_Call) Return(_a0 error) *ProviderService_Update_Call
func (*ProviderService_Update_Call) Run ¶
func (_c *ProviderService_Update_Call) Run(run func(_a0 context.Context, _a1 *domain.Provider)) *ProviderService_Update_Call
func (*ProviderService_Update_Call) RunAndReturn ¶ added in v0.7.5
func (_c *ProviderService_Update_Call) RunAndReturn(run func(context.Context, *domain.Provider) error) *ProviderService_Update_Call
type ProviderService_ValidateAppeal_Call ¶
ProviderService_ValidateAppeal_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ValidateAppeal'
func (*ProviderService_ValidateAppeal_Call) Return ¶
func (_c *ProviderService_ValidateAppeal_Call) Return(_a0 error) *ProviderService_ValidateAppeal_Call
func (*ProviderService_ValidateAppeal_Call) Run ¶
func (_c *ProviderService_ValidateAppeal_Call) Run(run func(_a0 context.Context, _a1 *domain.Appeal, _a2 *domain.Provider, _a3 *domain.Policy)) *ProviderService_ValidateAppeal_Call
func (*ProviderService_ValidateAppeal_Call) RunAndReturn ¶ added in v0.7.5
type ResourceService ¶
ResourceService is an autogenerated mock type for the resourceService type
func NewResourceService ¶ added in v0.7.5
func NewResourceService(t interface { mock.TestingT Cleanup(func()) }) *ResourceService
NewResourceService creates a new instance of ResourceService. 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 (*ResourceService) BatchDelete ¶
func (_m *ResourceService) BatchDelete(_a0 context.Context, _a1 []string) error
BatchDelete provides a mock function with given fields: _a0, _a1
func (*ResourceService) BulkUpsert ¶
BulkUpsert provides a mock function with given fields: _a0, _a1
func (*ResourceService) Delete ¶
func (_m *ResourceService) Delete(_a0 context.Context, _a1 string) error
Delete provides a mock function with given fields: _a0, _a1
func (*ResourceService) EXPECT ¶
func (_m *ResourceService) EXPECT() *ResourceService_Expecter
func (*ResourceService) Find ¶
func (_m *ResourceService) Find(_a0 context.Context, _a1 domain.ListResourcesFilter) ([]*domain.Resource, error)
Find provides a mock function with given fields: _a0, _a1
func (*ResourceService) Get ¶
func (_m *ResourceService) Get(_a0 context.Context, _a1 *domain.ResourceIdentifier) (*domain.Resource, error)
Get provides a mock function with given fields: _a0, _a1
func (*ResourceService) GetResourcesTotalCount ¶ added in v0.7.7
func (_m *ResourceService) GetResourcesTotalCount(_a0 context.Context, _a1 domain.ListResourcesFilter) (int64, error)
GetResourcesTotalCount provides a mock function with given fields: _a0, _a1
type ResourceService_BatchDelete_Call ¶
ResourceService_BatchDelete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BatchDelete'
func (*ResourceService_BatchDelete_Call) Return ¶
func (_c *ResourceService_BatchDelete_Call) Return(_a0 error) *ResourceService_BatchDelete_Call
func (*ResourceService_BatchDelete_Call) Run ¶
func (_c *ResourceService_BatchDelete_Call) Run(run func(_a0 context.Context, _a1 []string)) *ResourceService_BatchDelete_Call
func (*ResourceService_BatchDelete_Call) RunAndReturn ¶ added in v0.7.5
func (_c *ResourceService_BatchDelete_Call) RunAndReturn(run func(context.Context, []string) error) *ResourceService_BatchDelete_Call
type ResourceService_BulkUpsert_Call ¶
ResourceService_BulkUpsert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BulkUpsert'
func (*ResourceService_BulkUpsert_Call) Return ¶
func (_c *ResourceService_BulkUpsert_Call) Return(_a0 error) *ResourceService_BulkUpsert_Call
func (*ResourceService_BulkUpsert_Call) Run ¶
func (_c *ResourceService_BulkUpsert_Call) Run(run func(_a0 context.Context, _a1 []*domain.Resource)) *ResourceService_BulkUpsert_Call
func (*ResourceService_BulkUpsert_Call) RunAndReturn ¶ added in v0.7.5
func (_c *ResourceService_BulkUpsert_Call) RunAndReturn(run func(context.Context, []*domain.Resource) error) *ResourceService_BulkUpsert_Call
type ResourceService_Delete_Call ¶
ResourceService_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*ResourceService_Delete_Call) Return ¶
func (_c *ResourceService_Delete_Call) Return(_a0 error) *ResourceService_Delete_Call
func (*ResourceService_Delete_Call) Run ¶
func (_c *ResourceService_Delete_Call) Run(run func(_a0 context.Context, _a1 string)) *ResourceService_Delete_Call
func (*ResourceService_Delete_Call) RunAndReturn ¶ added in v0.7.5
func (_c *ResourceService_Delete_Call) RunAndReturn(run func(context.Context, string) error) *ResourceService_Delete_Call
type ResourceService_Expecter ¶
type ResourceService_Expecter struct {
// contains filtered or unexported fields
}
func (*ResourceService_Expecter) BatchDelete ¶
func (_e *ResourceService_Expecter) BatchDelete(_a0 interface{}, _a1 interface{}) *ResourceService_BatchDelete_Call
BatchDelete is a helper method to define mock.On call
- _a0 context.Context
- _a1 []string
func (*ResourceService_Expecter) BulkUpsert ¶
func (_e *ResourceService_Expecter) BulkUpsert(_a0 interface{}, _a1 interface{}) *ResourceService_BulkUpsert_Call
BulkUpsert is a helper method to define mock.On call
- _a0 context.Context
- _a1 []*domain.Resource
func (*ResourceService_Expecter) Delete ¶
func (_e *ResourceService_Expecter) Delete(_a0 interface{}, _a1 interface{}) *ResourceService_Delete_Call
Delete is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
func (*ResourceService_Expecter) Find ¶
func (_e *ResourceService_Expecter) Find(_a0 interface{}, _a1 interface{}) *ResourceService_Find_Call
Find is a helper method to define mock.On call
- _a0 context.Context
- _a1 domain.ListResourcesFilter
func (*ResourceService_Expecter) Get ¶
func (_e *ResourceService_Expecter) Get(_a0 interface{}, _a1 interface{}) *ResourceService_Get_Call
Get is a helper method to define mock.On call
- _a0 context.Context
- _a1 *domain.ResourceIdentifier
func (*ResourceService_Expecter) GetOne ¶
func (_e *ResourceService_Expecter) GetOne(_a0 interface{}, _a1 interface{}) *ResourceService_GetOne_Call
GetOne is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
func (*ResourceService_Expecter) GetResourcesTotalCount ¶ added in v0.7.7
func (_e *ResourceService_Expecter) GetResourcesTotalCount(_a0 interface{}, _a1 interface{}) *ResourceService_GetResourcesTotalCount_Call
GetResourcesTotalCount is a helper method to define mock.On call
- _a0 context.Context
- _a1 domain.ListResourcesFilter
func (*ResourceService_Expecter) Update ¶
func (_e *ResourceService_Expecter) Update(_a0 interface{}, _a1 interface{}) *ResourceService_Update_Call
Update is a helper method to define mock.On call
- _a0 context.Context
- _a1 *domain.Resource
type ResourceService_Find_Call ¶
ResourceService_Find_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Find'
func (*ResourceService_Find_Call) Return ¶
func (_c *ResourceService_Find_Call) Return(_a0 []*domain.Resource, _a1 error) *ResourceService_Find_Call
func (*ResourceService_Find_Call) Run ¶
func (_c *ResourceService_Find_Call) Run(run func(_a0 context.Context, _a1 domain.ListResourcesFilter)) *ResourceService_Find_Call
func (*ResourceService_Find_Call) RunAndReturn ¶ added in v0.7.5
func (_c *ResourceService_Find_Call) RunAndReturn(run func(context.Context, domain.ListResourcesFilter) ([]*domain.Resource, error)) *ResourceService_Find_Call
type ResourceService_GetOne_Call ¶
ResourceService_GetOne_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOne'
func (*ResourceService_GetOne_Call) Return ¶
func (_c *ResourceService_GetOne_Call) Return(_a0 *domain.Resource, _a1 error) *ResourceService_GetOne_Call
func (*ResourceService_GetOne_Call) Run ¶
func (_c *ResourceService_GetOne_Call) Run(run func(_a0 context.Context, _a1 string)) *ResourceService_GetOne_Call
func (*ResourceService_GetOne_Call) RunAndReturn ¶ added in v0.7.5
func (_c *ResourceService_GetOne_Call) RunAndReturn(run func(context.Context, string) (*domain.Resource, error)) *ResourceService_GetOne_Call
type ResourceService_GetResourcesTotalCount_Call ¶ added in v0.7.7
ResourceService_GetResourcesTotalCount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetResourcesTotalCount'
func (*ResourceService_GetResourcesTotalCount_Call) Return ¶ added in v0.7.7
func (_c *ResourceService_GetResourcesTotalCount_Call) Return(_a0 int64, _a1 error) *ResourceService_GetResourcesTotalCount_Call
func (*ResourceService_GetResourcesTotalCount_Call) Run ¶ added in v0.7.7
func (_c *ResourceService_GetResourcesTotalCount_Call) Run(run func(_a0 context.Context, _a1 domain.ListResourcesFilter)) *ResourceService_GetResourcesTotalCount_Call
func (*ResourceService_GetResourcesTotalCount_Call) RunAndReturn ¶ added in v0.7.7
func (_c *ResourceService_GetResourcesTotalCount_Call) RunAndReturn(run func(context.Context, domain.ListResourcesFilter) (int64, error)) *ResourceService_GetResourcesTotalCount_Call
type ResourceService_Get_Call ¶
ResourceService_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*ResourceService_Get_Call) Return ¶
func (_c *ResourceService_Get_Call) Return(_a0 *domain.Resource, _a1 error) *ResourceService_Get_Call
func (*ResourceService_Get_Call) Run ¶
func (_c *ResourceService_Get_Call) Run(run func(_a0 context.Context, _a1 *domain.ResourceIdentifier)) *ResourceService_Get_Call
func (*ResourceService_Get_Call) RunAndReturn ¶ added in v0.7.5
func (_c *ResourceService_Get_Call) RunAndReturn(run func(context.Context, *domain.ResourceIdentifier) (*domain.Resource, error)) *ResourceService_Get_Call
type ResourceService_Update_Call ¶
ResourceService_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*ResourceService_Update_Call) Return ¶
func (_c *ResourceService_Update_Call) Return(_a0 error) *ResourceService_Update_Call
func (*ResourceService_Update_Call) Run ¶
func (_c *ResourceService_Update_Call) Run(run func(_a0 context.Context, _a1 *domain.Resource)) *ResourceService_Update_Call
func (*ResourceService_Update_Call) RunAndReturn ¶ added in v0.7.5
func (_c *ResourceService_Update_Call) RunAndReturn(run func(context.Context, *domain.Resource) error) *ResourceService_Update_Call