Documentation ¶
Index ¶
- 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 Notifier
- type Notifier_Expecter
- type Notifier_Notify_Call
- type ProviderService
- func (_m *ProviderService) CorrelateGrantActivities(_a0 context.Context, _a1 domain.Provider, _a2 []*domain.Grant, ...) error
- func (_m *ProviderService) EXPECT() *ProviderService_Expecter
- func (_m *ProviderService) GetByID(_a0 context.Context, _a1 string) (*domain.Provider, error)
- func (_m *ProviderService) ListAccess(_a0 context.Context, _a1 domain.Provider, _a2 []*domain.Resource) (domain.MapResourceAccess, error)
- func (_m *ProviderService) ListActivities(_a0 context.Context, _a1 domain.Provider, _a2 domain.ListActivitiesFilter) ([]*domain.Activity, error)
- func (_m *ProviderService) RevokeAccess(_a0 context.Context, _a1 domain.Grant) error
- type ProviderService_CorrelateGrantActivities_Call
- func (_c *ProviderService_CorrelateGrantActivities_Call) Return(_a0 error) *ProviderService_CorrelateGrantActivities_Call
- func (_c *ProviderService_CorrelateGrantActivities_Call) Run(run func(_a0 context.Context, _a1 domain.Provider, _a2 []*domain.Grant, ...)) *ProviderService_CorrelateGrantActivities_Call
- func (_c *ProviderService_CorrelateGrantActivities_Call) RunAndReturn(...) *ProviderService_CorrelateGrantActivities_Call
- type ProviderService_Expecter
- func (_e *ProviderService_Expecter) CorrelateGrantActivities(_a0 interface{}, _a1 interface{}, _a2 interface{}, _a3 interface{}) *ProviderService_CorrelateGrantActivities_Call
- func (_e *ProviderService_Expecter) GetByID(_a0 interface{}, _a1 interface{}) *ProviderService_GetByID_Call
- func (_e *ProviderService_Expecter) ListAccess(_a0 interface{}, _a1 interface{}, _a2 interface{}) *ProviderService_ListAccess_Call
- func (_e *ProviderService_Expecter) ListActivities(_a0 interface{}, _a1 interface{}, _a2 interface{}) *ProviderService_ListActivities_Call
- func (_e *ProviderService_Expecter) RevokeAccess(_a0 interface{}, _a1 interface{}) *ProviderService_RevokeAccess_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_ListAccess_Call
- func (_c *ProviderService_ListAccess_Call) Return(_a0 domain.MapResourceAccess, _a1 error) *ProviderService_ListAccess_Call
- func (_c *ProviderService_ListAccess_Call) Run(run func(_a0 context.Context, _a1 domain.Provider, _a2 []*domain.Resource)) *ProviderService_ListAccess_Call
- func (_c *ProviderService_ListAccess_Call) RunAndReturn(...) *ProviderService_ListAccess_Call
- type ProviderService_ListActivities_Call
- func (_c *ProviderService_ListActivities_Call) Return(_a0 []*domain.Activity, _a1 error) *ProviderService_ListActivities_Call
- func (_c *ProviderService_ListActivities_Call) Run(...) *ProviderService_ListActivities_Call
- func (_c *ProviderService_ListActivities_Call) RunAndReturn(...) *ProviderService_ListActivities_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 Repository
- func (_m *Repository) BulkUpsert(_a0 context.Context, _a1 []*domain.Grant) error
- func (_m *Repository) EXPECT() *Repository_Expecter
- func (_m *Repository) GetByID(_a0 context.Context, _a1 string) (*domain.Grant, error)
- func (_m *Repository) GetGrantsTotalCount(_a0 context.Context, _a1 domain.ListGrantsFilter) (int64, error)
- func (_m *Repository) List(_a0 context.Context, _a1 domain.ListGrantsFilter) ([]domain.Grant, error)
- func (_m *Repository) Update(_a0 context.Context, _a1 *domain.Grant) 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.Grant)) *Repository_BulkUpsert_Call
- func (_c *Repository_BulkUpsert_Call) RunAndReturn(run func(context.Context, []*domain.Grant) error) *Repository_BulkUpsert_Call
- type Repository_Expecter
- func (_e *Repository_Expecter) BulkUpsert(_a0 interface{}, _a1 interface{}) *Repository_BulkUpsert_Call
- func (_e *Repository_Expecter) GetByID(_a0 interface{}, _a1 interface{}) *Repository_GetByID_Call
- func (_e *Repository_Expecter) GetGrantsTotalCount(_a0 interface{}, _a1 interface{}) *Repository_GetGrantsTotalCount_Call
- func (_e *Repository_Expecter) List(_a0 interface{}, _a1 interface{}) *Repository_List_Call
- func (_e *Repository_Expecter) Update(_a0 interface{}, _a1 interface{}) *Repository_Update_Call
- type Repository_GetByID_Call
- func (_c *Repository_GetByID_Call) Return(_a0 *domain.Grant, _a1 error) *Repository_GetByID_Call
- func (_c *Repository_GetByID_Call) Run(run func(_a0 context.Context, _a1 string)) *Repository_GetByID_Call
- func (_c *Repository_GetByID_Call) RunAndReturn(run func(context.Context, string) (*domain.Grant, error)) *Repository_GetByID_Call
- type Repository_GetGrantsTotalCount_Call
- func (_c *Repository_GetGrantsTotalCount_Call) Return(_a0 int64, _a1 error) *Repository_GetGrantsTotalCount_Call
- func (_c *Repository_GetGrantsTotalCount_Call) Run(run func(_a0 context.Context, _a1 domain.ListGrantsFilter)) *Repository_GetGrantsTotalCount_Call
- func (_c *Repository_GetGrantsTotalCount_Call) RunAndReturn(run func(context.Context, domain.ListGrantsFilter) (int64, error)) *Repository_GetGrantsTotalCount_Call
- type Repository_List_Call
- func (_c *Repository_List_Call) Return(_a0 []domain.Grant, _a1 error) *Repository_List_Call
- func (_c *Repository_List_Call) Run(run func(_a0 context.Context, _a1 domain.ListGrantsFilter)) *Repository_List_Call
- func (_c *Repository_List_Call) RunAndReturn(run func(context.Context, domain.ListGrantsFilter) ([]domain.Grant, error)) *Repository_List_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.Grant)) *Repository_Update_Call
- func (_c *Repository_Update_Call) RunAndReturn(run func(context.Context, *domain.Grant) 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 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{}) *Notifier_Notify_Call
Notify is a helper method to define mock.On call
- _a0 []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 []domain.Notification)) *Notifier_Notify_Call
func (*Notifier_Notify_Call) RunAndReturn ¶ added in v0.7.5
func (_c *Notifier_Notify_Call) RunAndReturn(run func([]domain.Notification) []error) *Notifier_Notify_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) CorrelateGrantActivities ¶ added in v0.7.5
func (_m *ProviderService) CorrelateGrantActivities(_a0 context.Context, _a1 domain.Provider, _a2 []*domain.Grant, _a3 []*domain.Activity) error
CorrelateGrantActivities provides a mock function with given fields: _a0, _a1, _a2, _a3
func (*ProviderService) EXPECT ¶
func (_m *ProviderService) EXPECT() *ProviderService_Expecter
func (*ProviderService) ListAccess ¶
func (_m *ProviderService) ListAccess(_a0 context.Context, _a1 domain.Provider, _a2 []*domain.Resource) (domain.MapResourceAccess, error)
ListAccess provides a mock function with given fields: _a0, _a1, _a2
func (*ProviderService) ListActivities ¶ added in v0.7.5
func (_m *ProviderService) ListActivities(_a0 context.Context, _a1 domain.Provider, _a2 domain.ListActivitiesFilter) ([]*domain.Activity, error)
ListActivities 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_CorrelateGrantActivities_Call ¶ added in v0.7.5
ProviderService_CorrelateGrantActivities_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CorrelateGrantActivities'
func (*ProviderService_CorrelateGrantActivities_Call) Return ¶ added in v0.7.5
func (_c *ProviderService_CorrelateGrantActivities_Call) Return(_a0 error) *ProviderService_CorrelateGrantActivities_Call
func (*ProviderService_CorrelateGrantActivities_Call) Run ¶ added in v0.7.5
func (_c *ProviderService_CorrelateGrantActivities_Call) Run(run func(_a0 context.Context, _a1 domain.Provider, _a2 []*domain.Grant, _a3 []*domain.Activity)) *ProviderService_CorrelateGrantActivities_Call
func (*ProviderService_CorrelateGrantActivities_Call) RunAndReturn ¶ added in v0.7.5
type ProviderService_Expecter ¶
type ProviderService_Expecter struct {
// contains filtered or unexported fields
}
func (*ProviderService_Expecter) CorrelateGrantActivities ¶ added in v0.7.5
func (_e *ProviderService_Expecter) CorrelateGrantActivities(_a0 interface{}, _a1 interface{}, _a2 interface{}, _a3 interface{}) *ProviderService_CorrelateGrantActivities_Call
CorrelateGrantActivities is a helper method to define mock.On call
- _a0 context.Context
- _a1 domain.Provider
- _a2 []*domain.Grant
- _a3 []*domain.Activity
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) ListAccess ¶
func (_e *ProviderService_Expecter) ListAccess(_a0 interface{}, _a1 interface{}, _a2 interface{}) *ProviderService_ListAccess_Call
ListAccess is a helper method to define mock.On call
- _a0 context.Context
- _a1 domain.Provider
- _a2 []*domain.Resource
func (*ProviderService_Expecter) ListActivities ¶ added in v0.7.5
func (_e *ProviderService_Expecter) ListActivities(_a0 interface{}, _a1 interface{}, _a2 interface{}) *ProviderService_ListActivities_Call
ListActivities is a helper method to define mock.On call
- _a0 context.Context
- _a1 domain.Provider
- _a2 domain.ListActivitiesFilter
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
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_ListAccess_Call ¶
ProviderService_ListAccess_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListAccess'
func (*ProviderService_ListAccess_Call) Return ¶
func (_c *ProviderService_ListAccess_Call) Return(_a0 domain.MapResourceAccess, _a1 error) *ProviderService_ListAccess_Call
func (*ProviderService_ListAccess_Call) Run ¶
func (_c *ProviderService_ListAccess_Call) Run(run func(_a0 context.Context, _a1 domain.Provider, _a2 []*domain.Resource)) *ProviderService_ListAccess_Call
func (*ProviderService_ListAccess_Call) RunAndReturn ¶ added in v0.7.5
func (_c *ProviderService_ListAccess_Call) RunAndReturn(run func(context.Context, domain.Provider, []*domain.Resource) (domain.MapResourceAccess, error)) *ProviderService_ListAccess_Call
type ProviderService_ListActivities_Call ¶ added in v0.7.5
ProviderService_ListActivities_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListActivities'
func (*ProviderService_ListActivities_Call) Return ¶ added in v0.7.5
func (_c *ProviderService_ListActivities_Call) Return(_a0 []*domain.Activity, _a1 error) *ProviderService_ListActivities_Call
func (*ProviderService_ListActivities_Call) Run ¶ added in v0.7.5
func (_c *ProviderService_ListActivities_Call) Run(run func(_a0 context.Context, _a1 domain.Provider, _a2 domain.ListActivitiesFilter)) *ProviderService_ListActivities_Call
func (*ProviderService_ListActivities_Call) RunAndReturn ¶ added in v0.7.5
func (_c *ProviderService_ListActivities_Call) RunAndReturn(run func(context.Context, domain.Provider, domain.ListActivitiesFilter) ([]*domain.Activity, error)) *ProviderService_ListActivities_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 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) GetGrantsTotalCount ¶ added in v0.7.5
func (_m *Repository) GetGrantsTotalCount(_a0 context.Context, _a1 domain.ListGrantsFilter) (int64, error)
GetGrantsTotalCount provides a mock function with given fields: _a0, _a1
func (*Repository) List ¶
func (_m *Repository) List(_a0 context.Context, _a1 domain.ListGrantsFilter) ([]domain.Grant, error)
List 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.Grant)) *Repository_BulkUpsert_Call
func (*Repository_BulkUpsert_Call) RunAndReturn ¶ added in v0.7.5
func (_c *Repository_BulkUpsert_Call) RunAndReturn(run func(context.Context, []*domain.Grant) 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.Grant
func (*Repository_Expecter) GetByID ¶
func (_e *Repository_Expecter) GetByID(_a0 interface{}, _a1 interface{}) *Repository_GetByID_Call
GetByID is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
func (*Repository_Expecter) GetGrantsTotalCount ¶ added in v0.7.5
func (_e *Repository_Expecter) GetGrantsTotalCount(_a0 interface{}, _a1 interface{}) *Repository_GetGrantsTotalCount_Call
GetGrantsTotalCount is a helper method to define mock.On call
- _a0 context.Context
- _a1 domain.ListGrantsFilter
func (*Repository_Expecter) List ¶
func (_e *Repository_Expecter) List(_a0 interface{}, _a1 interface{}) *Repository_List_Call
List is a helper method to define mock.On call
- _a0 context.Context
- _a1 domain.ListGrantsFilter
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.Grant
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.Grant, _a1 error) *Repository_GetByID_Call
func (*Repository_GetByID_Call) Run ¶
func (_c *Repository_GetByID_Call) Run(run func(_a0 context.Context, _a1 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.Grant, error)) *Repository_GetByID_Call
type Repository_GetGrantsTotalCount_Call ¶ added in v0.7.5
Repository_GetGrantsTotalCount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetGrantsTotalCount'
func (*Repository_GetGrantsTotalCount_Call) Return ¶ added in v0.7.5
func (_c *Repository_GetGrantsTotalCount_Call) Return(_a0 int64, _a1 error) *Repository_GetGrantsTotalCount_Call
func (*Repository_GetGrantsTotalCount_Call) Run ¶ added in v0.7.5
func (_c *Repository_GetGrantsTotalCount_Call) Run(run func(_a0 context.Context, _a1 domain.ListGrantsFilter)) *Repository_GetGrantsTotalCount_Call
func (*Repository_GetGrantsTotalCount_Call) RunAndReturn ¶ added in v0.7.5
func (_c *Repository_GetGrantsTotalCount_Call) RunAndReturn(run func(context.Context, domain.ListGrantsFilter) (int64, error)) *Repository_GetGrantsTotalCount_Call
type Repository_List_Call ¶
Repository_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*Repository_List_Call) Return ¶
func (_c *Repository_List_Call) Return(_a0 []domain.Grant, _a1 error) *Repository_List_Call
func (*Repository_List_Call) Run ¶
func (_c *Repository_List_Call) Run(run func(_a0 context.Context, _a1 domain.ListGrantsFilter)) *Repository_List_Call
func (*Repository_List_Call) RunAndReturn ¶ added in v0.7.5
func (_c *Repository_List_Call) RunAndReturn(run func(context.Context, domain.ListGrantsFilter) ([]domain.Grant, error)) *Repository_List_Call
type Repository_Update_Call ¶
Repository_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*Repository_Update_Call) Return ¶
func (_c *Repository_Update_Call) Return(_a0 error) *Repository_Update_Call
func (*Repository_Update_Call) Run ¶
func (_c *Repository_Update_Call) Run(run func(_a0 context.Context, _a1 *domain.Grant)) *Repository_Update_Call
func (*Repository_Update_Call) RunAndReturn ¶ added in v0.7.5
func (_c *Repository_Update_Call) RunAndReturn(run func(context.Context, *domain.Grant) 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
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
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