Documentation ¶
Index ¶
- type AppealService
- type GrantService
- func (_m *GrantService) BulkRevoke(ctx context.Context, filter domain.RevokeGrantsFilter, actor string, ...) ([]*domain.Grant, error)
- func (_m *GrantService) DormancyCheck(_a0 context.Context, _a1 domain.DormancyCheckCriteria) error
- func (_m *GrantService) EXPECT() *GrantService_Expecter
- func (_m *GrantService) List(_a0 context.Context, _a1 domain.ListGrantsFilter) ([]domain.Grant, 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.GrantUpdate) (*domain.Grant, error)
- type GrantService_BulkRevoke_Call
- type GrantService_DormancyCheck_Call
- func (_c *GrantService_DormancyCheck_Call) Return(_a0 error) *GrantService_DormancyCheck_Call
- func (_c *GrantService_DormancyCheck_Call) Run(run func(_a0 context.Context, _a1 domain.DormancyCheckCriteria)) *GrantService_DormancyCheck_Call
- func (_c *GrantService_DormancyCheck_Call) RunAndReturn(run func(context.Context, domain.DormancyCheckCriteria) error) *GrantService_DormancyCheck_Call
- type GrantService_Expecter
- func (_e *GrantService_Expecter) BulkRevoke(ctx interface{}, filter interface{}, actor interface{}, reason interface{}) *GrantService_BulkRevoke_Call
- func (_e *GrantService_Expecter) DormancyCheck(_a0 interface{}, _a1 interface{}) *GrantService_DormancyCheck_Call
- func (_e *GrantService_Expecter) List(_a0 interface{}, _a1 interface{}) *GrantService_List_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_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 *domain.Grant, _a1 error) *GrantService_Update_Call
- func (_c *GrantService_Update_Call) Run(run func(_a0 context.Context, _a1 *domain.GrantUpdate)) *GrantService_Update_Call
- func (_c *GrantService_Update_Call) RunAndReturn(run func(context.Context, *domain.GrantUpdate) (*domain.Grant, error)) *GrantService_Update_Call
- type ProviderService
- type ReportService
- type ReportService_Expecter
- type ReportService_GetPendingApprovalsList_Call
- func (_c *ReportService_GetPendingApprovalsList_Call) Return(_a0 []*report.PendingApproval, _a1 error) *ReportService_GetPendingApprovalsList_Call
- func (_c *ReportService_GetPendingApprovalsList_Call) Run(run func(ctx context.Context, cfg *report.GetPendingApprovalsListConfig)) *ReportService_GetPendingApprovalsList_Call
- func (_c *ReportService_GetPendingApprovalsList_Call) RunAndReturn(...) *ReportService_GetPendingApprovalsList_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppealService ¶
AppealService is an autogenerated mock type for the appealService type
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
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) BulkRevoke ¶ added in v0.7.5
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) DormancyCheck ¶ added in v0.7.5
func (_m *GrantService) DormancyCheck(_a0 context.Context, _a1 domain.DormancyCheckCriteria) error
DormancyCheck provides a mock function with given fields: _a0, _a1
func (*GrantService) EXPECT ¶ added in v0.7.5
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
func (*GrantService) Revoke ¶
func (_m *GrantService) Revoke(ctx context.Context, id string, actor string, reason string, opts ...grant.Option) (*domain.Grant, error)
Revoke provides a mock function with given fields: ctx, id, actor, reason, opts
func (*GrantService) Update ¶ added in v0.7.5
func (_m *GrantService) Update(_a0 context.Context, _a1 *domain.GrantUpdate) (*domain.Grant, error)
Update provides a mock function with given fields: _a0, _a1
type GrantService_BulkRevoke_Call ¶ added in v0.7.5
GrantService_BulkRevoke_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BulkRevoke'
func (*GrantService_BulkRevoke_Call) Return ¶ added in v0.7.5
func (_c *GrantService_BulkRevoke_Call) Return(_a0 []*domain.Grant, _a1 error) *GrantService_BulkRevoke_Call
func (*GrantService_BulkRevoke_Call) Run ¶ added in v0.7.5
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 ¶ added in v0.7.5
func (_c *GrantService_BulkRevoke_Call) RunAndReturn(run func(context.Context, domain.RevokeGrantsFilter, string, string) ([]*domain.Grant, error)) *GrantService_BulkRevoke_Call
type GrantService_DormancyCheck_Call ¶ added in v0.7.5
GrantService_DormancyCheck_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DormancyCheck'
func (*GrantService_DormancyCheck_Call) Return ¶ added in v0.7.5
func (_c *GrantService_DormancyCheck_Call) Return(_a0 error) *GrantService_DormancyCheck_Call
func (*GrantService_DormancyCheck_Call) Run ¶ added in v0.7.5
func (_c *GrantService_DormancyCheck_Call) Run(run func(_a0 context.Context, _a1 domain.DormancyCheckCriteria)) *GrantService_DormancyCheck_Call
func (*GrantService_DormancyCheck_Call) RunAndReturn ¶ added in v0.7.5
func (_c *GrantService_DormancyCheck_Call) RunAndReturn(run func(context.Context, domain.DormancyCheckCriteria) error) *GrantService_DormancyCheck_Call
type GrantService_Expecter ¶ added in v0.7.5
type GrantService_Expecter struct {
// contains filtered or unexported fields
}
func (*GrantService_Expecter) BulkRevoke ¶ added in v0.7.5
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) DormancyCheck ¶ added in v0.7.5
func (_e *GrantService_Expecter) DormancyCheck(_a0 interface{}, _a1 interface{}) *GrantService_DormancyCheck_Call
DormancyCheck is a helper method to define mock.On call
- _a0 context.Context
- _a1 domain.DormancyCheckCriteria
func (*GrantService_Expecter) List ¶ added in v0.7.5
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) Revoke ¶ added in v0.7.5
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 ¶ added in v0.7.5
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.GrantUpdate
type GrantService_List_Call ¶ added in v0.7.5
GrantService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*GrantService_List_Call) Return ¶ added in v0.7.5
func (_c *GrantService_List_Call) Return(_a0 []domain.Grant, _a1 error) *GrantService_List_Call
func (*GrantService_List_Call) Run ¶ added in v0.7.5
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_Revoke_Call ¶ added in v0.7.5
GrantService_Revoke_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Revoke'
func (*GrantService_Revoke_Call) Return ¶ added in v0.7.5
func (_c *GrantService_Revoke_Call) Return(_a0 *domain.Grant, _a1 error) *GrantService_Revoke_Call
func (*GrantService_Revoke_Call) Run ¶ added in v0.7.5
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 GrantService_Update_Call ¶ added in v0.7.5
GrantService_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*GrantService_Update_Call) Return ¶ added in v0.7.5
func (_c *GrantService_Update_Call) Return(_a0 *domain.Grant, _a1 error) *GrantService_Update_Call
func (*GrantService_Update_Call) Run ¶ added in v0.7.5
func (_c *GrantService_Update_Call) Run(run func(_a0 context.Context, _a1 *domain.GrantUpdate)) *GrantService_Update_Call
func (*GrantService_Update_Call) RunAndReturn ¶ added in v0.7.5
func (_c *GrantService_Update_Call) RunAndReturn(run func(context.Context, *domain.GrantUpdate) (*domain.Grant, error)) *GrantService_Update_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) FetchResources ¶
func (_m *ProviderService) FetchResources(_a0 context.Context) error
FetchResources provides a mock function with given fields: _a0
type ReportService ¶ added in v0.11.2
ReportService is an autogenerated mock type for the reportService type
func NewReportService ¶ added in v0.11.2
func NewReportService(t interface { mock.TestingT Cleanup(func()) }) *ReportService
NewReportService creates a new instance of ReportService. 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 (*ReportService) EXPECT ¶ added in v0.11.2
func (_m *ReportService) EXPECT() *ReportService_Expecter
func (*ReportService) GetPendingApprovalsList ¶ added in v0.11.2
func (_m *ReportService) GetPendingApprovalsList(ctx context.Context, cfg *report.GetPendingApprovalsListConfig) ([]*report.PendingApproval, error)
GetPendingApprovalsList provides a mock function with given fields: ctx, cfg
type ReportService_Expecter ¶ added in v0.11.2
type ReportService_Expecter struct {
// contains filtered or unexported fields
}
func (*ReportService_Expecter) GetPendingApprovalsList ¶ added in v0.11.2
func (_e *ReportService_Expecter) GetPendingApprovalsList(ctx interface{}, cfg interface{}) *ReportService_GetPendingApprovalsList_Call
GetPendingApprovalsList is a helper method to define mock.On call
- ctx context.Context
- cfg *report.GetPendingApprovalsListConfig
type ReportService_GetPendingApprovalsList_Call ¶ added in v0.11.2
ReportService_GetPendingApprovalsList_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPendingApprovalsList'
func (*ReportService_GetPendingApprovalsList_Call) Return ¶ added in v0.11.2
func (_c *ReportService_GetPendingApprovalsList_Call) Return(_a0 []*report.PendingApproval, _a1 error) *ReportService_GetPendingApprovalsList_Call
func (*ReportService_GetPendingApprovalsList_Call) Run ¶ added in v0.11.2
func (_c *ReportService_GetPendingApprovalsList_Call) Run(run func(ctx context.Context, cfg *report.GetPendingApprovalsListConfig)) *ReportService_GetPendingApprovalsList_Call
func (*ReportService_GetPendingApprovalsList_Call) RunAndReturn ¶ added in v0.11.2
func (_c *ReportService_GetPendingApprovalsList_Call) RunAndReturn(run func(context.Context, *report.GetPendingApprovalsListConfig) ([]*report.PendingApproval, error)) *ReportService_GetPendingApprovalsList_Call