Documentation ¶
Index ¶
- type ApprovalService
- type ApprovalService_AddApprover_Call
- func (_c *ApprovalService_AddApprover_Call) Return(_a0 error) *ApprovalService_AddApprover_Call
- func (_c *ApprovalService_AddApprover_Call) Run(run func(ctx context.Context, approvalID string, email string)) *ApprovalService_AddApprover_Call
- func (_c *ApprovalService_AddApprover_Call) RunAndReturn(run func(context.Context, string, string) error) *ApprovalService_AddApprover_Call
- type ApprovalService_DeleteApprover_Call
- func (_c *ApprovalService_DeleteApprover_Call) Return(_a0 error) *ApprovalService_DeleteApprover_Call
- func (_c *ApprovalService_DeleteApprover_Call) Run(run func(ctx context.Context, approvalID string, email string)) *ApprovalService_DeleteApprover_Call
- func (_c *ApprovalService_DeleteApprover_Call) RunAndReturn(run func(context.Context, string, string) error) *ApprovalService_DeleteApprover_Call
- type ApprovalService_Expecter
- type AuditLogger
- type AuditLogger_Expecter
- type AuditLogger_Log_Call
- func (_c *AuditLogger_Log_Call) Return(_a0 error) *AuditLogger_Log_Call
- func (_c *AuditLogger_Log_Call) Run(run func(ctx context.Context, action string, data interface{})) *AuditLogger_Log_Call
- func (_c *AuditLogger_Log_Call) RunAndReturn(run func(context.Context, string, interface{}) error) *AuditLogger_Log_Call
- type GrantService
- func (_m *GrantService) EXPECT() *GrantService_Expecter
- func (_m *GrantService) List(_a0 context.Context, _a1 domain.ListGrantsFilter) ([]domain.Grant, error)
- func (_m *GrantService) Prepare(_a0 context.Context, _a1 domain.Appeal) (*domain.Grant, error)
- func (_m *GrantService) Revoke(ctx context.Context, id string, actor string, reason string, ...) (*domain.Grant, error)
- type GrantService_Expecter
- func (_e *GrantService_Expecter) List(_a0 interface{}, _a1 interface{}) *GrantService_List_Call
- func (_e *GrantService_Expecter) Prepare(_a0 interface{}, _a1 interface{}) *GrantService_Prepare_Call
- func (_e *GrantService_Expecter) Revoke(ctx interface{}, id interface{}, actor interface{}, reason interface{}, ...) *GrantService_Revoke_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_Prepare_Call
- func (_c *GrantService_Prepare_Call) Return(_a0 *domain.Grant, _a1 error) *GrantService_Prepare_Call
- func (_c *GrantService_Prepare_Call) Run(run func(_a0 context.Context, _a1 domain.Appeal)) *GrantService_Prepare_Call
- func (_c *GrantService_Prepare_Call) RunAndReturn(run func(context.Context, domain.Appeal) (*domain.Grant, error)) *GrantService_Prepare_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 IamManager
- type IamManager_Expecter
- type IamManager_GetClient_Call
- func (_c *IamManager_GetClient_Call) Return(_a0 domain.IAMClient, _a1 error) *IamManager_GetClient_Call
- func (_c *IamManager_GetClient_Call) Run(run func(_a0 domain.SensitiveConfig)) *IamManager_GetClient_Call
- func (_c *IamManager_GetClient_Call) RunAndReturn(run func(domain.SensitiveConfig) (domain.IAMClient, error)) *IamManager_GetClient_Call
- type IamManager_ParseConfig_Call
- func (_c *IamManager_ParseConfig_Call) Return(_a0 domain.SensitiveConfig, _a1 error) *IamManager_ParseConfig_Call
- func (_c *IamManager_ParseConfig_Call) Run(run func(_a0 *domain.IAMConfig)) *IamManager_ParseConfig_Call
- func (_c *IamManager_ParseConfig_Call) RunAndReturn(run func(*domain.IAMConfig) (domain.SensitiveConfig, error)) *IamManager_ParseConfig_Call
- type Notifier
- type Notifier_Expecter
- type Notifier_Notify_Call
- func (_c *Notifier_Notify_Call) Return(_a0 []error) *Notifier_Notify_Call
- func (_c *Notifier_Notify_Call) Run(run func(_a0 context.Context, _a1 []domain.Notification)) *Notifier_Notify_Call
- func (_c *Notifier_Notify_Call) RunAndReturn(run func(context.Context, []domain.Notification) []error) *Notifier_Notify_Call
- type PolicyService
- type PolicyService_Expecter
- 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(_a0 context.Context, _a1 string, _a2 uint)) *PolicyService_GetOne_Call
- func (_c *PolicyService_GetOne_Call) RunAndReturn(run func(context.Context, string, uint) (*domain.Policy, error)) *PolicyService_GetOne_Call
- type ProviderService
- func (_m *ProviderService) EXPECT() *ProviderService_Expecter
- func (_m *ProviderService) Find(_a0 context.Context) ([]*domain.Provider, error)
- func (_m *ProviderService) GetPermissions(_a0 context.Context, _a1 *domain.ProviderConfig, _a2 string, _a3 string) ([]interface{}, error)
- func (_m *ProviderService) GrantAccess(_a0 context.Context, _a1 domain.Grant) error
- func (_m *ProviderService) IsExclusiveRoleAssignment(_a0 context.Context, _a1 string, _a2 string) bool
- func (_m *ProviderService) RevokeAccess(_a0 context.Context, _a1 domain.Grant) error
- func (_m *ProviderService) ValidateAppeal(_a0 context.Context, _a1 *domain.Appeal, _a2 *domain.Provider, ...) error
- type ProviderService_Expecter
- func (_e *ProviderService_Expecter) Find(_a0 interface{}) *ProviderService_Find_Call
- func (_e *ProviderService_Expecter) GetPermissions(_a0 interface{}, _a1 interface{}, _a2 interface{}, _a3 interface{}) *ProviderService_GetPermissions_Call
- func (_e *ProviderService_Expecter) GrantAccess(_a0 interface{}, _a1 interface{}) *ProviderService_GrantAccess_Call
- func (_e *ProviderService_Expecter) IsExclusiveRoleAssignment(_a0 interface{}, _a1 interface{}, _a2 interface{}) *ProviderService_IsExclusiveRoleAssignment_Call
- func (_e *ProviderService_Expecter) RevokeAccess(_a0 interface{}, _a1 interface{}) *ProviderService_RevokeAccess_Call
- func (_e *ProviderService_Expecter) ValidateAppeal(_a0 interface{}, _a1 interface{}, _a2 interface{}, _a3 interface{}) *ProviderService_ValidateAppeal_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_GetPermissions_Call
- func (_c *ProviderService_GetPermissions_Call) Return(_a0 []interface{}, _a1 error) *ProviderService_GetPermissions_Call
- func (_c *ProviderService_GetPermissions_Call) Run(...) *ProviderService_GetPermissions_Call
- func (_c *ProviderService_GetPermissions_Call) RunAndReturn(...) *ProviderService_GetPermissions_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_IsExclusiveRoleAssignment_Call
- func (_c *ProviderService_IsExclusiveRoleAssignment_Call) Return(_a0 bool) *ProviderService_IsExclusiveRoleAssignment_Call
- func (_c *ProviderService_IsExclusiveRoleAssignment_Call) Run(run func(_a0 context.Context, _a1 string, _a2 string)) *ProviderService_IsExclusiveRoleAssignment_Call
- func (_c *ProviderService_IsExclusiveRoleAssignment_Call) RunAndReturn(run func(context.Context, string, string) bool) *ProviderService_IsExclusiveRoleAssignment_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_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 Repository
- func (_m *Repository) BulkUpsert(_a0 context.Context, _a1 []*domain.Appeal) error
- func (_m *Repository) EXPECT() *Repository_Expecter
- func (_m *Repository) Find(_a0 context.Context, _a1 *domain.ListAppealsFilter) ([]*domain.Appeal, error)
- func (_m *Repository) GetAppealsTotalCount(_a0 context.Context, _a1 *domain.ListAppealsFilter) (int64, error)
- func (_m *Repository) GetByID(ctx context.Context, id string) (*domain.Appeal, error)
- func (_m *Repository) Update(_a0 context.Context, _a1 *domain.Appeal) error
- type Repository_BulkUpsert_Call
- func (_c *Repository_BulkUpsert_Call) Return(_a0 error) *Repository_BulkUpsert_Call
- func (_c *Repository_BulkUpsert_Call) Run(run func(_a0 context.Context, _a1 []*domain.Appeal)) *Repository_BulkUpsert_Call
- func (_c *Repository_BulkUpsert_Call) RunAndReturn(run func(context.Context, []*domain.Appeal) error) *Repository_BulkUpsert_Call
- type Repository_Expecter
- func (_e *Repository_Expecter) BulkUpsert(_a0 interface{}, _a1 interface{}) *Repository_BulkUpsert_Call
- func (_e *Repository_Expecter) Find(_a0 interface{}, _a1 interface{}) *Repository_Find_Call
- func (_e *Repository_Expecter) GetAppealsTotalCount(_a0 interface{}, _a1 interface{}) *Repository_GetAppealsTotalCount_Call
- func (_e *Repository_Expecter) GetByID(ctx interface{}, id interface{}) *Repository_GetByID_Call
- func (_e *Repository_Expecter) Update(_a0 interface{}, _a1 interface{}) *Repository_Update_Call
- type Repository_Find_Call
- func (_c *Repository_Find_Call) Return(_a0 []*domain.Appeal, _a1 error) *Repository_Find_Call
- func (_c *Repository_Find_Call) Run(run func(_a0 context.Context, _a1 *domain.ListAppealsFilter)) *Repository_Find_Call
- func (_c *Repository_Find_Call) RunAndReturn(run func(context.Context, *domain.ListAppealsFilter) ([]*domain.Appeal, error)) *Repository_Find_Call
- type Repository_GetAppealsTotalCount_Call
- func (_c *Repository_GetAppealsTotalCount_Call) Return(_a0 int64, _a1 error) *Repository_GetAppealsTotalCount_Call
- func (_c *Repository_GetAppealsTotalCount_Call) Run(run func(_a0 context.Context, _a1 *domain.ListAppealsFilter)) *Repository_GetAppealsTotalCount_Call
- func (_c *Repository_GetAppealsTotalCount_Call) RunAndReturn(run func(context.Context, *domain.ListAppealsFilter) (int64, error)) *Repository_GetAppealsTotalCount_Call
- type Repository_GetByID_Call
- func (_c *Repository_GetByID_Call) Return(_a0 *domain.Appeal, _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) (*domain.Appeal, error)) *Repository_GetByID_Call
- type Repository_Update_Call
- func (_c *Repository_Update_Call) Return(_a0 error) *Repository_Update_Call
- func (_c *Repository_Update_Call) Run(run func(_a0 context.Context, _a1 *domain.Appeal)) *Repository_Update_Call
- func (_c *Repository_Update_Call) RunAndReturn(run func(context.Context, *domain.Appeal) error) *Repository_Update_Call
- type ResourceService
- type ResourceService_Expecter
- 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_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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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) AddApprover ¶
AddApprover provides a mock function with given fields: ctx, approvalID, email
func (*ApprovalService) DeleteApprover ¶
func (_m *ApprovalService) DeleteApprover(ctx context.Context, approvalID string, email string) error
DeleteApprover provides a mock function with given fields: ctx, approvalID, email
func (*ApprovalService) EXPECT ¶
func (_m *ApprovalService) EXPECT() *ApprovalService_Expecter
type ApprovalService_AddApprover_Call ¶
ApprovalService_AddApprover_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddApprover'
func (*ApprovalService_AddApprover_Call) Return ¶
func (_c *ApprovalService_AddApprover_Call) Return(_a0 error) *ApprovalService_AddApprover_Call
func (*ApprovalService_AddApprover_Call) Run ¶
func (_c *ApprovalService_AddApprover_Call) Run(run func(ctx context.Context, approvalID string, email string)) *ApprovalService_AddApprover_Call
func (*ApprovalService_AddApprover_Call) RunAndReturn ¶ added in v0.7.5
func (_c *ApprovalService_AddApprover_Call) RunAndReturn(run func(context.Context, string, string) error) *ApprovalService_AddApprover_Call
type ApprovalService_DeleteApprover_Call ¶
ApprovalService_DeleteApprover_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteApprover'
func (*ApprovalService_DeleteApprover_Call) Return ¶
func (_c *ApprovalService_DeleteApprover_Call) Return(_a0 error) *ApprovalService_DeleteApprover_Call
func (*ApprovalService_DeleteApprover_Call) Run ¶
func (_c *ApprovalService_DeleteApprover_Call) Run(run func(ctx context.Context, approvalID string, email string)) *ApprovalService_DeleteApprover_Call
func (*ApprovalService_DeleteApprover_Call) RunAndReturn ¶ added in v0.7.5
func (_c *ApprovalService_DeleteApprover_Call) RunAndReturn(run func(context.Context, string, string) error) *ApprovalService_DeleteApprover_Call
type ApprovalService_Expecter ¶
type ApprovalService_Expecter struct {
// contains filtered or unexported fields
}
func (*ApprovalService_Expecter) AddApprover ¶
func (_e *ApprovalService_Expecter) AddApprover(ctx interface{}, approvalID interface{}, email interface{}) *ApprovalService_AddApprover_Call
AddApprover is a helper method to define mock.On call
- ctx context.Context
- approvalID string
- email string
func (*ApprovalService_Expecter) DeleteApprover ¶
func (_e *ApprovalService_Expecter) DeleteApprover(ctx interface{}, approvalID interface{}, email interface{}) *ApprovalService_DeleteApprover_Call
DeleteApprover is a helper method to define mock.On call
- ctx context.Context
- approvalID string
- email string
type AuditLogger ¶
AuditLogger is an autogenerated mock type for the auditLogger type
func NewAuditLogger ¶ added in v0.7.5
func NewAuditLogger(t interface { mock.TestingT Cleanup(func()) }) *AuditLogger
NewAuditLogger creates a new instance of AuditLogger. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*AuditLogger) EXPECT ¶
func (_m *AuditLogger) EXPECT() *AuditLogger_Expecter
type AuditLogger_Expecter ¶
type AuditLogger_Expecter struct {
// contains filtered or unexported fields
}
func (*AuditLogger_Expecter) Log ¶
func (_e *AuditLogger_Expecter) Log(ctx interface{}, action interface{}, data interface{}) *AuditLogger_Log_Call
Log is a helper method to define mock.On call
- ctx context.Context
- action string
- data interface{}
type AuditLogger_Log_Call ¶
AuditLogger_Log_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Log'
func (*AuditLogger_Log_Call) Return ¶
func (_c *AuditLogger_Log_Call) Return(_a0 error) *AuditLogger_Log_Call
func (*AuditLogger_Log_Call) Run ¶
func (_c *AuditLogger_Log_Call) Run(run func(ctx context.Context, action string, data interface{})) *AuditLogger_Log_Call
func (*AuditLogger_Log_Call) RunAndReturn ¶ added in v0.7.5
func (_c *AuditLogger_Log_Call) RunAndReturn(run func(context.Context, string, interface{}) error) *AuditLogger_Log_Call
type GrantService ¶
GrantService is an autogenerated mock type for the grantService type
func NewGrantService ¶ added in v0.7.5
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) EXPECT ¶
func (_m *GrantService) EXPECT() *GrantService_Expecter
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
type GrantService_Expecter ¶
type GrantService_Expecter struct {
// contains filtered or unexported fields
}
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) Prepare ¶
func (_e *GrantService_Expecter) Prepare(_a0 interface{}, _a1 interface{}) *GrantService_Prepare_Call
Prepare is a helper method to define mock.On call
- _a0 context.Context
- _a1 domain.Appeal
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
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 ¶ added in v0.7.5
func (_c *GrantService_List_Call) RunAndReturn(run func(context.Context, domain.ListGrantsFilter) ([]domain.Grant, error)) *GrantService_List_Call
type GrantService_Prepare_Call ¶
GrantService_Prepare_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Prepare'
func (*GrantService_Prepare_Call) Return ¶
func (_c *GrantService_Prepare_Call) Return(_a0 *domain.Grant, _a1 error) *GrantService_Prepare_Call
func (*GrantService_Prepare_Call) Run ¶
func (_c *GrantService_Prepare_Call) Run(run func(_a0 context.Context, _a1 domain.Appeal)) *GrantService_Prepare_Call
func (*GrantService_Prepare_Call) RunAndReturn ¶ added in v0.7.5
func (_c *GrantService_Prepare_Call) RunAndReturn(run func(context.Context, domain.Appeal) (*domain.Grant, error)) *GrantService_Prepare_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 ¶ added in v0.7.5
type IamManager ¶
IamManager is an autogenerated mock type for the iamManager type
func NewIamManager ¶ added in v0.7.5
func NewIamManager(t interface { mock.TestingT Cleanup(func()) }) *IamManager
NewIamManager creates a new instance of IamManager. 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 (*IamManager) EXPECT ¶
func (_m *IamManager) EXPECT() *IamManager_Expecter
func (*IamManager) GetClient ¶
func (_m *IamManager) GetClient(_a0 domain.SensitiveConfig) (domain.IAMClient, error)
GetClient provides a mock function with given fields: _a0
func (*IamManager) ParseConfig ¶
func (_m *IamManager) ParseConfig(_a0 *domain.IAMConfig) (domain.SensitiveConfig, error)
ParseConfig provides a mock function with given fields: _a0
type IamManager_Expecter ¶
type IamManager_Expecter struct {
// contains filtered or unexported fields
}
func (*IamManager_Expecter) GetClient ¶
func (_e *IamManager_Expecter) GetClient(_a0 interface{}) *IamManager_GetClient_Call
GetClient is a helper method to define mock.On call
- _a0 domain.SensitiveConfig
func (*IamManager_Expecter) ParseConfig ¶
func (_e *IamManager_Expecter) ParseConfig(_a0 interface{}) *IamManager_ParseConfig_Call
ParseConfig is a helper method to define mock.On call
- _a0 *domain.IAMConfig
type IamManager_GetClient_Call ¶
IamManager_GetClient_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetClient'
func (*IamManager_GetClient_Call) Return ¶
func (_c *IamManager_GetClient_Call) Return(_a0 domain.IAMClient, _a1 error) *IamManager_GetClient_Call
func (*IamManager_GetClient_Call) Run ¶
func (_c *IamManager_GetClient_Call) Run(run func(_a0 domain.SensitiveConfig)) *IamManager_GetClient_Call
func (*IamManager_GetClient_Call) RunAndReturn ¶ added in v0.7.5
func (_c *IamManager_GetClient_Call) RunAndReturn(run func(domain.SensitiveConfig) (domain.IAMClient, error)) *IamManager_GetClient_Call
type IamManager_ParseConfig_Call ¶
IamManager_ParseConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ParseConfig'
func (*IamManager_ParseConfig_Call) Return ¶
func (_c *IamManager_ParseConfig_Call) Return(_a0 domain.SensitiveConfig, _a1 error) *IamManager_ParseConfig_Call
func (*IamManager_ParseConfig_Call) Run ¶
func (_c *IamManager_ParseConfig_Call) Run(run func(_a0 *domain.IAMConfig)) *IamManager_ParseConfig_Call
func (*IamManager_ParseConfig_Call) RunAndReturn ¶ added in v0.7.5
func (_c *IamManager_ParseConfig_Call) RunAndReturn(run func(*domain.IAMConfig) (domain.SensitiveConfig, error)) *IamManager_ParseConfig_Call
type Notifier ¶
Notifier is an autogenerated mock type for the notifier type
func NewNotifier ¶ added in v0.7.5
NewNotifier creates a new instance of Notifier. 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 (*Notifier) EXPECT ¶
func (_m *Notifier) EXPECT() *Notifier_Expecter
type Notifier_Expecter ¶
type Notifier_Expecter struct {
// contains filtered or unexported fields
}
func (*Notifier_Expecter) Notify ¶
func (_e *Notifier_Expecter) Notify(_a0 interface{}, _a1 interface{}) *Notifier_Notify_Call
Notify is a helper method to define mock.On call
- _a0 context.Context
- _a1 []domain.Notification
type Notifier_Notify_Call ¶
Notifier_Notify_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Notify'
func (*Notifier_Notify_Call) Return ¶
func (_c *Notifier_Notify_Call) Return(_a0 []error) *Notifier_Notify_Call
func (*Notifier_Notify_Call) Run ¶
func (_c *Notifier_Notify_Call) Run(run func(_a0 context.Context, _a1 []domain.Notification)) *Notifier_Notify_Call
func (*Notifier_Notify_Call) RunAndReturn ¶ added in v0.7.5
func (_c *Notifier_Notify_Call) RunAndReturn(run func(context.Context, []domain.Notification) []error) *Notifier_Notify_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_Expecter ¶
type PolicyService_Expecter struct {
// contains filtered or unexported fields
}
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(_a0 interface{}, _a1 interface{}, _a2 interface{}) *PolicyService_GetOne_Call
GetOne is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
- _a2 uint
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(_a0 context.Context, _a1 string, _a2 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 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) EXPECT ¶
func (_m *ProviderService) EXPECT() *ProviderService_Expecter
func (*ProviderService) GetPermissions ¶
func (_m *ProviderService) GetPermissions(_a0 context.Context, _a1 *domain.ProviderConfig, _a2 string, _a3 string) ([]interface{}, error)
GetPermissions provides a mock function with given fields: _a0, _a1, _a2, _a3
func (*ProviderService) GrantAccess ¶
GrantAccess provides a mock function with given fields: _a0, _a1
func (*ProviderService) IsExclusiveRoleAssignment ¶ added in v0.9.0
func (_m *ProviderService) IsExclusiveRoleAssignment(_a0 context.Context, _a1 string, _a2 string) bool
IsExclusiveRoleAssignment provides a mock function with given fields: _a0, _a1, _a2
func (*ProviderService) RevokeAccess ¶
RevokeAccess provides a mock function with given fields: _a0, _a1
type ProviderService_Expecter ¶
type ProviderService_Expecter struct {
// contains filtered or unexported fields
}
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) GetPermissions ¶
func (_e *ProviderService_Expecter) GetPermissions(_a0 interface{}, _a1 interface{}, _a2 interface{}, _a3 interface{}) *ProviderService_GetPermissions_Call
GetPermissions is a helper method to define mock.On call
- _a0 context.Context
- _a1 *domain.ProviderConfig
- _a2 string
- _a3 string
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) IsExclusiveRoleAssignment ¶ added in v0.9.0
func (_e *ProviderService_Expecter) IsExclusiveRoleAssignment(_a0 interface{}, _a1 interface{}, _a2 interface{}) *ProviderService_IsExclusiveRoleAssignment_Call
IsExclusiveRoleAssignment is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
- _a2 string
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) 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_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_GetPermissions_Call ¶
ProviderService_GetPermissions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPermissions'
func (*ProviderService_GetPermissions_Call) Return ¶
func (_c *ProviderService_GetPermissions_Call) Return(_a0 []interface{}, _a1 error) *ProviderService_GetPermissions_Call
func (*ProviderService_GetPermissions_Call) Run ¶
func (_c *ProviderService_GetPermissions_Call) Run(run func(_a0 context.Context, _a1 *domain.ProviderConfig, _a2 string, _a3 string)) *ProviderService_GetPermissions_Call
func (*ProviderService_GetPermissions_Call) RunAndReturn ¶ added in v0.7.5
func (_c *ProviderService_GetPermissions_Call) RunAndReturn(run func(context.Context, *domain.ProviderConfig, string, string) ([]interface{}, error)) *ProviderService_GetPermissions_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_IsExclusiveRoleAssignment_Call ¶ added in v0.9.0
ProviderService_IsExclusiveRoleAssignment_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsExclusiveRoleAssignment'
func (*ProviderService_IsExclusiveRoleAssignment_Call) Return ¶ added in v0.9.0
func (_c *ProviderService_IsExclusiveRoleAssignment_Call) Return(_a0 bool) *ProviderService_IsExclusiveRoleAssignment_Call
func (*ProviderService_IsExclusiveRoleAssignment_Call) Run ¶ added in v0.9.0
func (_c *ProviderService_IsExclusiveRoleAssignment_Call) Run(run func(_a0 context.Context, _a1 string, _a2 string)) *ProviderService_IsExclusiveRoleAssignment_Call
func (*ProviderService_IsExclusiveRoleAssignment_Call) RunAndReturn ¶ added in v0.9.0
func (_c *ProviderService_IsExclusiveRoleAssignment_Call) RunAndReturn(run func(context.Context, string, string) bool) *ProviderService_IsExclusiveRoleAssignment_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_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 Repository ¶
Repository is an autogenerated mock type for the repository type
func NewRepository ¶ added in v0.7.5
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) BulkUpsert ¶
BulkUpsert provides a mock function with given fields: _a0, _a1
func (*Repository) EXPECT ¶
func (_m *Repository) EXPECT() *Repository_Expecter
func (*Repository) Find ¶
func (_m *Repository) Find(_a0 context.Context, _a1 *domain.ListAppealsFilter) ([]*domain.Appeal, error)
Find provides a mock function with given fields: _a0, _a1
func (*Repository) GetAppealsTotalCount ¶ added in v0.7.5
func (_m *Repository) GetAppealsTotalCount(_a0 context.Context, _a1 *domain.ListAppealsFilter) (int64, error)
GetAppealsTotalCount provides a mock function with given fields: _a0, _a1
type Repository_BulkUpsert_Call ¶
Repository_BulkUpsert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BulkUpsert'
func (*Repository_BulkUpsert_Call) Return ¶
func (_c *Repository_BulkUpsert_Call) Return(_a0 error) *Repository_BulkUpsert_Call
func (*Repository_BulkUpsert_Call) Run ¶
func (_c *Repository_BulkUpsert_Call) Run(run func(_a0 context.Context, _a1 []*domain.Appeal)) *Repository_BulkUpsert_Call
func (*Repository_BulkUpsert_Call) RunAndReturn ¶ added in v0.7.5
func (_c *Repository_BulkUpsert_Call) RunAndReturn(run func(context.Context, []*domain.Appeal) error) *Repository_BulkUpsert_Call
type Repository_Expecter ¶
type Repository_Expecter struct {
// contains filtered or unexported fields
}
func (*Repository_Expecter) BulkUpsert ¶
func (_e *Repository_Expecter) BulkUpsert(_a0 interface{}, _a1 interface{}) *Repository_BulkUpsert_Call
BulkUpsert is a helper method to define mock.On call
- _a0 context.Context
- _a1 []*domain.Appeal
func (*Repository_Expecter) Find ¶
func (_e *Repository_Expecter) Find(_a0 interface{}, _a1 interface{}) *Repository_Find_Call
Find is a helper method to define mock.On call
- _a0 context.Context
- _a1 *domain.ListAppealsFilter
func (*Repository_Expecter) GetAppealsTotalCount ¶ added in v0.7.5
func (_e *Repository_Expecter) GetAppealsTotalCount(_a0 interface{}, _a1 interface{}) *Repository_GetAppealsTotalCount_Call
GetAppealsTotalCount is a helper method to define mock.On call
- _a0 context.Context
- _a1 *domain.ListAppealsFilter
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) Update ¶
func (_e *Repository_Expecter) Update(_a0 interface{}, _a1 interface{}) *Repository_Update_Call
Update is a helper method to define mock.On call
- _a0 context.Context
- _a1 *domain.Appeal
type Repository_Find_Call ¶
Repository_Find_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Find'
func (*Repository_Find_Call) Return ¶
func (_c *Repository_Find_Call) Return(_a0 []*domain.Appeal, _a1 error) *Repository_Find_Call
func (*Repository_Find_Call) Run ¶
func (_c *Repository_Find_Call) Run(run func(_a0 context.Context, _a1 *domain.ListAppealsFilter)) *Repository_Find_Call
func (*Repository_Find_Call) RunAndReturn ¶ added in v0.7.5
func (_c *Repository_Find_Call) RunAndReturn(run func(context.Context, *domain.ListAppealsFilter) ([]*domain.Appeal, error)) *Repository_Find_Call
type Repository_GetAppealsTotalCount_Call ¶ added in v0.7.5
Repository_GetAppealsTotalCount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAppealsTotalCount'
func (*Repository_GetAppealsTotalCount_Call) Return ¶ added in v0.7.5
func (_c *Repository_GetAppealsTotalCount_Call) Return(_a0 int64, _a1 error) *Repository_GetAppealsTotalCount_Call
func (*Repository_GetAppealsTotalCount_Call) Run ¶ added in v0.7.5
func (_c *Repository_GetAppealsTotalCount_Call) Run(run func(_a0 context.Context, _a1 *domain.ListAppealsFilter)) *Repository_GetAppealsTotalCount_Call
func (*Repository_GetAppealsTotalCount_Call) RunAndReturn ¶ added in v0.7.5
func (_c *Repository_GetAppealsTotalCount_Call) RunAndReturn(run func(context.Context, *domain.ListAppealsFilter) (int64, error)) *Repository_GetAppealsTotalCount_Call
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 *domain.Appeal, _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 ¶ added in v0.7.5
func (_c *Repository_GetByID_Call) RunAndReturn(run func(context.Context, string) (*domain.Appeal, error)) *Repository_GetByID_Call
type Repository_Update_Call ¶
Repository_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*Repository_Update_Call) Return ¶
func (_c *Repository_Update_Call) Return(_a0 error) *Repository_Update_Call
func (*Repository_Update_Call) Run ¶
func (_c *Repository_Update_Call) Run(run func(_a0 context.Context, _a1 *domain.Appeal)) *Repository_Update_Call
func (*Repository_Update_Call) RunAndReturn ¶ added in v0.7.5
func (_c *Repository_Update_Call) RunAndReturn(run func(context.Context, *domain.Appeal) error) *Repository_Update_Call
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) 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
type ResourceService_Expecter ¶
type ResourceService_Expecter struct {
// contains filtered or unexported fields
}
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
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_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