Documentation ¶
Index ¶
- type AuditLogger
- type AuditLogger_Expecter
- type AuditLogger_Log_Call
- type Notifier
- type Notifier_Expecter
- type Notifier_Notify_Call
- type ProviderService
- 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) RevokeAccess(_a0 context.Context, _a1 domain.Grant) error
- type ProviderService_Expecter
- 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) RevokeAccess(_a0 interface{}, _a1 interface{}) *ProviderService_RevokeAccess_Call
- type ProviderService_GetByID_Call
- type ProviderService_ListAccess_Call
- type 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) 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
- 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) List(_a0 interface{}, _a1 interface{}) *Repository_List_Call
- func (_e *Repository_Expecter) Update(_a0 interface{}, _a1 interface{}) *Repository_Update_Call
- type Repository_GetByID_Call
- type Repository_List_Call
- type Repository_Update_Call
- type ResourceService
- type ResourceService_Expecter
- type 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 (*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
type Notifier ¶
Notifier is an autogenerated mock type for the notifier type
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
type ProviderService ¶
ProviderService is an autogenerated mock type for the providerService type
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) 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) 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) 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
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
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
type Repository ¶
Repository is an autogenerated mock type for the repository type
func (*Repository) BulkUpsert ¶
BulkUpsert provides a mock function with given fields: _a0, _a1
func (*Repository) EXPECT ¶
func (_m *Repository) EXPECT() *Repository_Expecter
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
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) 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
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
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
type ResourceService ¶
ResourceService is an autogenerated mock type for the resourceService type
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