Documentation
¶
Index ¶
- type AlertAuditRepository
- type AlertAuditRepository_Create_Call
- func (_c *AlertAuditRepository_Create_Call) Return(_a0 models.AuditRecord, _a1 error) *AlertAuditRepository_Create_Call
- func (_c *AlertAuditRepository_Create_Call) Run(run func(ctx context.Context, auditRecord models.AuditRecord)) *AlertAuditRepository_Create_Call
- func (_c *AlertAuditRepository_Create_Call) RunAndReturn(run func(context.Context, models.AuditRecord) (models.AuditRecord, error)) *AlertAuditRepository_Create_Call
- type AlertAuditRepository_Expecter
- type AlertOrgService
- type AlertOrgService_Expecter
- type AlertOrgService_Get_Call
- func (_c *AlertOrgService_Get_Call) Return(_a0 organization.Organization, _a1 error) *AlertOrgService_Get_Call
- func (_c *AlertOrgService_Get_Call) Run(run func(ctx context.Context, id string)) *AlertOrgService_Get_Call
- func (_c *AlertOrgService_Get_Call) RunAndReturn(run func(context.Context, string) (organization.Organization, error)) *AlertOrgService_Get_Call
- type AlertRepository
- func (_m *AlertRepository) EXPECT() *AlertRepository_Expecter
- func (_m *AlertRepository) ListExpiredNoticePending(ctx context.Context) ([]models.PAT, error)
- func (_m *AlertRepository) ListExpiryReminderPending(ctx context.Context, days int) ([]models.PAT, error)
- func (_m *AlertRepository) SetAlertSentMetadata(ctx context.Context, id string, key string) error
- type AlertRepository_Expecter
- func (_e *AlertRepository_Expecter) ListExpiredNoticePending(ctx interface{}) *AlertRepository_ListExpiredNoticePending_Call
- func (_e *AlertRepository_Expecter) ListExpiryReminderPending(ctx interface{}, days interface{}) *AlertRepository_ListExpiryReminderPending_Call
- func (_e *AlertRepository_Expecter) SetAlertSentMetadata(ctx interface{}, id interface{}, key interface{}) *AlertRepository_SetAlertSentMetadata_Call
- type AlertRepository_ListExpiredNoticePending_Call
- func (_c *AlertRepository_ListExpiredNoticePending_Call) Return(_a0 []models.PAT, _a1 error) *AlertRepository_ListExpiredNoticePending_Call
- func (_c *AlertRepository_ListExpiredNoticePending_Call) Run(run func(ctx context.Context)) *AlertRepository_ListExpiredNoticePending_Call
- func (_c *AlertRepository_ListExpiredNoticePending_Call) RunAndReturn(run func(context.Context) ([]models.PAT, error)) *AlertRepository_ListExpiredNoticePending_Call
- type AlertRepository_ListExpiryReminderPending_Call
- func (_c *AlertRepository_ListExpiryReminderPending_Call) Return(_a0 []models.PAT, _a1 error) *AlertRepository_ListExpiryReminderPending_Call
- func (_c *AlertRepository_ListExpiryReminderPending_Call) Run(run func(ctx context.Context, days int)) *AlertRepository_ListExpiryReminderPending_Call
- func (_c *AlertRepository_ListExpiryReminderPending_Call) RunAndReturn(run func(context.Context, int) ([]models.PAT, error)) *AlertRepository_ListExpiryReminderPending_Call
- type AlertRepository_SetAlertSentMetadata_Call
- func (_c *AlertRepository_SetAlertSentMetadata_Call) Return(_a0 error) *AlertRepository_SetAlertSentMetadata_Call
- func (_c *AlertRepository_SetAlertSentMetadata_Call) Run(run func(ctx context.Context, id string, key string)) *AlertRepository_SetAlertSentMetadata_Call
- func (_c *AlertRepository_SetAlertSentMetadata_Call) RunAndReturn(run func(context.Context, string, string) error) *AlertRepository_SetAlertSentMetadata_Call
- type AlertUserService
- type AlertUserService_Expecter
- type AlertUserService_GetByID_Call
- func (_c *AlertUserService_GetByID_Call) Return(_a0 user.User, _a1 error) *AlertUserService_GetByID_Call
- func (_c *AlertUserService_GetByID_Call) Run(run func(ctx context.Context, id string)) *AlertUserService_GetByID_Call
- func (_c *AlertUserService_GetByID_Call) RunAndReturn(run func(context.Context, string) (user.User, error)) *AlertUserService_GetByID_Call
- type AuditRecordRepository
- type AuditRecordRepository_Create_Call
- func (_c *AuditRecordRepository_Create_Call) Return(_a0 models.AuditRecord, _a1 error) *AuditRecordRepository_Create_Call
- func (_c *AuditRecordRepository_Create_Call) Run(run func(ctx context.Context, auditRecord models.AuditRecord)) *AuditRecordRepository_Create_Call
- func (_c *AuditRecordRepository_Create_Call) RunAndReturn(run func(context.Context, models.AuditRecord) (models.AuditRecord, error)) *AuditRecordRepository_Create_Call
- type AuditRecordRepository_Expecter
- type Locker
- type Locker_Expecter
- type Locker_TryLock_Call
- type OrganizationService
- type OrganizationService_Expecter
- type OrganizationService_GetRaw_Call
- func (_c *OrganizationService_GetRaw_Call) Return(_a0 organization.Organization, _a1 error) *OrganizationService_GetRaw_Call
- func (_c *OrganizationService_GetRaw_Call) Run(run func(ctx context.Context, id string)) *OrganizationService_GetRaw_Call
- func (_c *OrganizationService_GetRaw_Call) RunAndReturn(run func(context.Context, string) (organization.Organization, error)) *OrganizationService_GetRaw_Call
- type PolicyService
- func (_m *PolicyService) Create(ctx context.Context, pol policy.Policy) (policy.Policy, error)
- func (_m *PolicyService) Delete(ctx context.Context, id string) error
- func (_m *PolicyService) EXPECT() *PolicyService_Expecter
- func (_m *PolicyService) List(ctx context.Context, flt policy.Filter) ([]policy.Policy, error)
- type PolicyService_Create_Call
- func (_c *PolicyService_Create_Call) Return(_a0 policy.Policy, _a1 error) *PolicyService_Create_Call
- func (_c *PolicyService_Create_Call) Run(run func(ctx context.Context, pol policy.Policy)) *PolicyService_Create_Call
- func (_c *PolicyService_Create_Call) RunAndReturn(run func(context.Context, policy.Policy) (policy.Policy, error)) *PolicyService_Create_Call
- type PolicyService_Delete_Call
- func (_c *PolicyService_Delete_Call) Return(_a0 error) *PolicyService_Delete_Call
- func (_c *PolicyService_Delete_Call) Run(run func(ctx context.Context, id string)) *PolicyService_Delete_Call
- func (_c *PolicyService_Delete_Call) RunAndReturn(run func(context.Context, string) error) *PolicyService_Delete_Call
- type PolicyService_Expecter
- func (_e *PolicyService_Expecter) Create(ctx interface{}, pol interface{}) *PolicyService_Create_Call
- func (_e *PolicyService_Expecter) Delete(ctx interface{}, id interface{}) *PolicyService_Delete_Call
- func (_e *PolicyService_Expecter) List(ctx interface{}, flt interface{}) *PolicyService_List_Call
- type PolicyService_List_Call
- func (_c *PolicyService_List_Call) Return(_a0 []policy.Policy, _a1 error) *PolicyService_List_Call
- func (_c *PolicyService_List_Call) Run(run func(ctx context.Context, flt policy.Filter)) *PolicyService_List_Call
- func (_c *PolicyService_List_Call) RunAndReturn(run func(context.Context, policy.Filter) ([]policy.Policy, error)) *PolicyService_List_Call
- type ProjectService
- type ProjectService_Expecter
- type ProjectService_ListByUser_Call
- type Repository
- func (_m *Repository) CountActive(ctx context.Context, userID string, orgID string) (int64, error)
- func (_m *Repository) Create(ctx context.Context, pat models.PAT) (models.PAT, error)
- func (_m *Repository) Delete(ctx context.Context, id string) error
- func (_m *Repository) EXPECT() *Repository_Expecter
- func (_m *Repository) GetByID(ctx context.Context, id string) (models.PAT, error)
- func (_m *Repository) GetBySecretHash(ctx context.Context, secretHash string) (models.PAT, error)
- func (_m *Repository) IsTitleAvailable(ctx context.Context, userID string, orgID string, title string) (bool, error)
- func (_m *Repository) List(ctx context.Context, userID string, orgID string, query *rql.Query) (models.PATList, error)
- func (_m *Repository) ListExpiredNoticePending(ctx context.Context) ([]models.PAT, error)
- func (_m *Repository) ListExpiryReminderPending(ctx context.Context, days int) ([]models.PAT, error)
- func (_m *Repository) Regenerate(ctx context.Context, id string, secretHash string, expiresAt time.Time) (models.PAT, error)
- func (_m *Repository) SetAlertSentMetadata(ctx context.Context, id string, key string) error
- func (_m *Repository) Update(ctx context.Context, pat models.PAT) (models.PAT, error)
- func (_m *Repository) UpdateUsedAt(ctx context.Context, id string, at time.Time) error
- type Repository_CountActive_Call
- func (_c *Repository_CountActive_Call) Return(_a0 int64, _a1 error) *Repository_CountActive_Call
- func (_c *Repository_CountActive_Call) Run(run func(ctx context.Context, userID string, orgID string)) *Repository_CountActive_Call
- func (_c *Repository_CountActive_Call) RunAndReturn(run func(context.Context, string, string) (int64, error)) *Repository_CountActive_Call
- type Repository_Create_Call
- func (_c *Repository_Create_Call) Return(_a0 models.PAT, _a1 error) *Repository_Create_Call
- func (_c *Repository_Create_Call) Run(run func(ctx context.Context, pat models.PAT)) *Repository_Create_Call
- func (_c *Repository_Create_Call) RunAndReturn(run func(context.Context, models.PAT) (models.PAT, error)) *Repository_Create_Call
- type Repository_Delete_Call
- type Repository_Expecter
- func (_e *Repository_Expecter) CountActive(ctx interface{}, userID interface{}, orgID interface{}) *Repository_CountActive_Call
- func (_e *Repository_Expecter) Create(ctx interface{}, pat interface{}) *Repository_Create_Call
- func (_e *Repository_Expecter) Delete(ctx interface{}, id interface{}) *Repository_Delete_Call
- func (_e *Repository_Expecter) GetByID(ctx interface{}, id interface{}) *Repository_GetByID_Call
- func (_e *Repository_Expecter) GetBySecretHash(ctx interface{}, secretHash interface{}) *Repository_GetBySecretHash_Call
- func (_e *Repository_Expecter) IsTitleAvailable(ctx interface{}, userID interface{}, orgID interface{}, title interface{}) *Repository_IsTitleAvailable_Call
- func (_e *Repository_Expecter) List(ctx interface{}, userID interface{}, orgID interface{}, query interface{}) *Repository_List_Call
- func (_e *Repository_Expecter) ListExpiredNoticePending(ctx interface{}) *Repository_ListExpiredNoticePending_Call
- func (_e *Repository_Expecter) ListExpiryReminderPending(ctx interface{}, days interface{}) *Repository_ListExpiryReminderPending_Call
- func (_e *Repository_Expecter) Regenerate(ctx interface{}, id interface{}, secretHash interface{}, expiresAt interface{}) *Repository_Regenerate_Call
- func (_e *Repository_Expecter) SetAlertSentMetadata(ctx interface{}, id interface{}, key interface{}) *Repository_SetAlertSentMetadata_Call
- func (_e *Repository_Expecter) Update(ctx interface{}, pat interface{}) *Repository_Update_Call
- func (_e *Repository_Expecter) UpdateUsedAt(ctx interface{}, id interface{}, at interface{}) *Repository_UpdateUsedAt_Call
- type Repository_GetByID_Call
- func (_c *Repository_GetByID_Call) Return(_a0 models.PAT, _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) (models.PAT, error)) *Repository_GetByID_Call
- type Repository_GetBySecretHash_Call
- func (_c *Repository_GetBySecretHash_Call) Return(_a0 models.PAT, _a1 error) *Repository_GetBySecretHash_Call
- func (_c *Repository_GetBySecretHash_Call) Run(run func(ctx context.Context, secretHash string)) *Repository_GetBySecretHash_Call
- func (_c *Repository_GetBySecretHash_Call) RunAndReturn(run func(context.Context, string) (models.PAT, error)) *Repository_GetBySecretHash_Call
- type Repository_IsTitleAvailable_Call
- func (_c *Repository_IsTitleAvailable_Call) Return(_a0 bool, _a1 error) *Repository_IsTitleAvailable_Call
- func (_c *Repository_IsTitleAvailable_Call) Run(run func(ctx context.Context, userID string, orgID string, title string)) *Repository_IsTitleAvailable_Call
- func (_c *Repository_IsTitleAvailable_Call) RunAndReturn(run func(context.Context, string, string, string) (bool, error)) *Repository_IsTitleAvailable_Call
- type Repository_ListExpiredNoticePending_Call
- func (_c *Repository_ListExpiredNoticePending_Call) Return(_a0 []models.PAT, _a1 error) *Repository_ListExpiredNoticePending_Call
- func (_c *Repository_ListExpiredNoticePending_Call) Run(run func(ctx context.Context)) *Repository_ListExpiredNoticePending_Call
- func (_c *Repository_ListExpiredNoticePending_Call) RunAndReturn(run func(context.Context) ([]models.PAT, error)) *Repository_ListExpiredNoticePending_Call
- type Repository_ListExpiryReminderPending_Call
- func (_c *Repository_ListExpiryReminderPending_Call) Return(_a0 []models.PAT, _a1 error) *Repository_ListExpiryReminderPending_Call
- func (_c *Repository_ListExpiryReminderPending_Call) Run(run func(ctx context.Context, days int)) *Repository_ListExpiryReminderPending_Call
- func (_c *Repository_ListExpiryReminderPending_Call) RunAndReturn(run func(context.Context, int) ([]models.PAT, error)) *Repository_ListExpiryReminderPending_Call
- type Repository_List_Call
- func (_c *Repository_List_Call) Return(_a0 models.PATList, _a1 error) *Repository_List_Call
- func (_c *Repository_List_Call) Run(run func(ctx context.Context, userID string, orgID string, query *rql.Query)) *Repository_List_Call
- func (_c *Repository_List_Call) RunAndReturn(run func(context.Context, string, string, *rql.Query) (models.PATList, error)) *Repository_List_Call
- type Repository_Regenerate_Call
- func (_c *Repository_Regenerate_Call) Return(_a0 models.PAT, _a1 error) *Repository_Regenerate_Call
- func (_c *Repository_Regenerate_Call) Run(...) *Repository_Regenerate_Call
- func (_c *Repository_Regenerate_Call) RunAndReturn(run func(context.Context, string, string, time.Time) (models.PAT, error)) *Repository_Regenerate_Call
- type Repository_SetAlertSentMetadata_Call
- func (_c *Repository_SetAlertSentMetadata_Call) Return(_a0 error) *Repository_SetAlertSentMetadata_Call
- func (_c *Repository_SetAlertSentMetadata_Call) Run(run func(ctx context.Context, id string, key string)) *Repository_SetAlertSentMetadata_Call
- func (_c *Repository_SetAlertSentMetadata_Call) RunAndReturn(run func(context.Context, string, string) error) *Repository_SetAlertSentMetadata_Call
- type Repository_UpdateUsedAt_Call
- func (_c *Repository_UpdateUsedAt_Call) Return(_a0 error) *Repository_UpdateUsedAt_Call
- func (_c *Repository_UpdateUsedAt_Call) Run(run func(ctx context.Context, id string, at time.Time)) *Repository_UpdateUsedAt_Call
- func (_c *Repository_UpdateUsedAt_Call) RunAndReturn(run func(context.Context, string, time.Time) error) *Repository_UpdateUsedAt_Call
- type Repository_Update_Call
- func (_c *Repository_Update_Call) Return(_a0 models.PAT, _a1 error) *Repository_Update_Call
- func (_c *Repository_Update_Call) Run(run func(ctx context.Context, pat models.PAT)) *Repository_Update_Call
- func (_c *Repository_Update_Call) RunAndReturn(run func(context.Context, models.PAT) (models.PAT, error)) *Repository_Update_Call
- type RoleService
- type RoleService_Expecter
- type RoleService_Get_Call
- func (_c *RoleService_Get_Call) Return(_a0 role.Role, _a1 error) *RoleService_Get_Call
- func (_c *RoleService_Get_Call) Run(run func(ctx context.Context, id string)) *RoleService_Get_Call
- func (_c *RoleService_Get_Call) RunAndReturn(run func(context.Context, string) (role.Role, error)) *RoleService_Get_Call
- type RoleService_List_Call
- func (_c *RoleService_List_Call) Return(_a0 []role.Role, _a1 error) *RoleService_List_Call
- func (_c *RoleService_List_Call) Run(run func(ctx context.Context, f role.Filter)) *RoleService_List_Call
- func (_c *RoleService_List_Call) RunAndReturn(run func(context.Context, role.Filter) ([]role.Role, error)) *RoleService_List_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlertAuditRepository ¶ added in v0.98.0
AlertAuditRepository is an autogenerated mock type for the AlertAuditRepository type
func NewAlertAuditRepository ¶ added in v0.98.0
func NewAlertAuditRepository(t interface {
mock.TestingT
Cleanup(func())
}) *AlertAuditRepository
NewAlertAuditRepository creates a new instance of AlertAuditRepository. 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 (*AlertAuditRepository) Create ¶ added in v0.98.0
func (_m *AlertAuditRepository) Create(ctx context.Context, auditRecord models.AuditRecord) (models.AuditRecord, error)
Create provides a mock function with given fields: ctx, auditRecord
func (*AlertAuditRepository) EXPECT ¶ added in v0.98.0
func (_m *AlertAuditRepository) EXPECT() *AlertAuditRepository_Expecter
type AlertAuditRepository_Create_Call ¶ added in v0.98.0
AlertAuditRepository_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*AlertAuditRepository_Create_Call) Return ¶ added in v0.98.0
func (_c *AlertAuditRepository_Create_Call) Return(_a0 models.AuditRecord, _a1 error) *AlertAuditRepository_Create_Call
func (*AlertAuditRepository_Create_Call) Run ¶ added in v0.98.0
func (_c *AlertAuditRepository_Create_Call) Run(run func(ctx context.Context, auditRecord models.AuditRecord)) *AlertAuditRepository_Create_Call
func (*AlertAuditRepository_Create_Call) RunAndReturn ¶ added in v0.98.0
func (_c *AlertAuditRepository_Create_Call) RunAndReturn(run func(context.Context, models.AuditRecord) (models.AuditRecord, error)) *AlertAuditRepository_Create_Call
type AlertAuditRepository_Expecter ¶ added in v0.98.0
type AlertAuditRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*AlertAuditRepository_Expecter) Create ¶ added in v0.98.0
func (_e *AlertAuditRepository_Expecter) Create(ctx interface{}, auditRecord interface{}) *AlertAuditRepository_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- auditRecord models.AuditRecord
type AlertOrgService ¶ added in v0.98.0
AlertOrgService is an autogenerated mock type for the AlertOrgService type
func NewAlertOrgService ¶ added in v0.98.0
func NewAlertOrgService(t interface {
mock.TestingT
Cleanup(func())
}) *AlertOrgService
NewAlertOrgService creates a new instance of AlertOrgService. 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 (*AlertOrgService) EXPECT ¶ added in v0.98.0
func (_m *AlertOrgService) EXPECT() *AlertOrgService_Expecter
func (*AlertOrgService) Get ¶ added in v0.98.0
func (_m *AlertOrgService) Get(ctx context.Context, id string) (organization.Organization, error)
Get provides a mock function with given fields: ctx, id
type AlertOrgService_Expecter ¶ added in v0.98.0
type AlertOrgService_Expecter struct {
// contains filtered or unexported fields
}
func (*AlertOrgService_Expecter) Get ¶ added in v0.98.0
func (_e *AlertOrgService_Expecter) Get(ctx interface{}, id interface{}) *AlertOrgService_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- id string
type AlertOrgService_Get_Call ¶ added in v0.98.0
AlertOrgService_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*AlertOrgService_Get_Call) Return ¶ added in v0.98.0
func (_c *AlertOrgService_Get_Call) Return(_a0 organization.Organization, _a1 error) *AlertOrgService_Get_Call
func (*AlertOrgService_Get_Call) Run ¶ added in v0.98.0
func (_c *AlertOrgService_Get_Call) Run(run func(ctx context.Context, id string)) *AlertOrgService_Get_Call
func (*AlertOrgService_Get_Call) RunAndReturn ¶ added in v0.98.0
func (_c *AlertOrgService_Get_Call) RunAndReturn(run func(context.Context, string) (organization.Organization, error)) *AlertOrgService_Get_Call
type AlertRepository ¶ added in v0.98.0
AlertRepository is an autogenerated mock type for the AlertRepository type
func NewAlertRepository ¶ added in v0.98.0
func NewAlertRepository(t interface {
mock.TestingT
Cleanup(func())
}) *AlertRepository
NewAlertRepository creates a new instance of AlertRepository. 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 (*AlertRepository) EXPECT ¶ added in v0.98.0
func (_m *AlertRepository) EXPECT() *AlertRepository_Expecter
func (*AlertRepository) ListExpiredNoticePending ¶ added in v0.98.0
ListExpiredNoticePending provides a mock function with given fields: ctx
func (*AlertRepository) ListExpiryReminderPending ¶ added in v0.98.0
func (_m *AlertRepository) ListExpiryReminderPending(ctx context.Context, days int) ([]models.PAT, error)
ListExpiryReminderPending provides a mock function with given fields: ctx, days
func (*AlertRepository) SetAlertSentMetadata ¶ added in v0.98.0
SetAlertSentMetadata provides a mock function with given fields: ctx, id, key
type AlertRepository_Expecter ¶ added in v0.98.0
type AlertRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*AlertRepository_Expecter) ListExpiredNoticePending ¶ added in v0.98.0
func (_e *AlertRepository_Expecter) ListExpiredNoticePending(ctx interface{}) *AlertRepository_ListExpiredNoticePending_Call
ListExpiredNoticePending is a helper method to define mock.On call
- ctx context.Context
func (*AlertRepository_Expecter) ListExpiryReminderPending ¶ added in v0.98.0
func (_e *AlertRepository_Expecter) ListExpiryReminderPending(ctx interface{}, days interface{}) *AlertRepository_ListExpiryReminderPending_Call
ListExpiryReminderPending is a helper method to define mock.On call
- ctx context.Context
- days int
func (*AlertRepository_Expecter) SetAlertSentMetadata ¶ added in v0.98.0
func (_e *AlertRepository_Expecter) SetAlertSentMetadata(ctx interface{}, id interface{}, key interface{}) *AlertRepository_SetAlertSentMetadata_Call
SetAlertSentMetadata is a helper method to define mock.On call
- ctx context.Context
- id string
- key string
type AlertRepository_ListExpiredNoticePending_Call ¶ added in v0.98.0
AlertRepository_ListExpiredNoticePending_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListExpiredNoticePending'
func (*AlertRepository_ListExpiredNoticePending_Call) Return ¶ added in v0.98.0
func (_c *AlertRepository_ListExpiredNoticePending_Call) Return(_a0 []models.PAT, _a1 error) *AlertRepository_ListExpiredNoticePending_Call
func (*AlertRepository_ListExpiredNoticePending_Call) Run ¶ added in v0.98.0
func (_c *AlertRepository_ListExpiredNoticePending_Call) Run(run func(ctx context.Context)) *AlertRepository_ListExpiredNoticePending_Call
func (*AlertRepository_ListExpiredNoticePending_Call) RunAndReturn ¶ added in v0.98.0
func (_c *AlertRepository_ListExpiredNoticePending_Call) RunAndReturn(run func(context.Context) ([]models.PAT, error)) *AlertRepository_ListExpiredNoticePending_Call
type AlertRepository_ListExpiryReminderPending_Call ¶ added in v0.98.0
AlertRepository_ListExpiryReminderPending_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListExpiryReminderPending'
func (*AlertRepository_ListExpiryReminderPending_Call) Return ¶ added in v0.98.0
func (_c *AlertRepository_ListExpiryReminderPending_Call) Return(_a0 []models.PAT, _a1 error) *AlertRepository_ListExpiryReminderPending_Call
func (*AlertRepository_ListExpiryReminderPending_Call) Run ¶ added in v0.98.0
func (_c *AlertRepository_ListExpiryReminderPending_Call) Run(run func(ctx context.Context, days int)) *AlertRepository_ListExpiryReminderPending_Call
func (*AlertRepository_ListExpiryReminderPending_Call) RunAndReturn ¶ added in v0.98.0
func (_c *AlertRepository_ListExpiryReminderPending_Call) RunAndReturn(run func(context.Context, int) ([]models.PAT, error)) *AlertRepository_ListExpiryReminderPending_Call
type AlertRepository_SetAlertSentMetadata_Call ¶ added in v0.98.0
AlertRepository_SetAlertSentMetadata_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetAlertSentMetadata'
func (*AlertRepository_SetAlertSentMetadata_Call) Return ¶ added in v0.98.0
func (_c *AlertRepository_SetAlertSentMetadata_Call) Return(_a0 error) *AlertRepository_SetAlertSentMetadata_Call
func (*AlertRepository_SetAlertSentMetadata_Call) Run ¶ added in v0.98.0
func (_c *AlertRepository_SetAlertSentMetadata_Call) Run(run func(ctx context.Context, id string, key string)) *AlertRepository_SetAlertSentMetadata_Call
func (*AlertRepository_SetAlertSentMetadata_Call) RunAndReturn ¶ added in v0.98.0
func (_c *AlertRepository_SetAlertSentMetadata_Call) RunAndReturn(run func(context.Context, string, string) error) *AlertRepository_SetAlertSentMetadata_Call
type AlertUserService ¶ added in v0.98.0
AlertUserService is an autogenerated mock type for the AlertUserService type
func NewAlertUserService ¶ added in v0.98.0
func NewAlertUserService(t interface {
mock.TestingT
Cleanup(func())
}) *AlertUserService
NewAlertUserService creates a new instance of AlertUserService. 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 (*AlertUserService) EXPECT ¶ added in v0.98.0
func (_m *AlertUserService) EXPECT() *AlertUserService_Expecter
type AlertUserService_Expecter ¶ added in v0.98.0
type AlertUserService_Expecter struct {
// contains filtered or unexported fields
}
func (*AlertUserService_Expecter) GetByID ¶ added in v0.98.0
func (_e *AlertUserService_Expecter) GetByID(ctx interface{}, id interface{}) *AlertUserService_GetByID_Call
GetByID is a helper method to define mock.On call
- ctx context.Context
- id string
type AlertUserService_GetByID_Call ¶ added in v0.98.0
AlertUserService_GetByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByID'
func (*AlertUserService_GetByID_Call) Return ¶ added in v0.98.0
func (_c *AlertUserService_GetByID_Call) Return(_a0 user.User, _a1 error) *AlertUserService_GetByID_Call
func (*AlertUserService_GetByID_Call) Run ¶ added in v0.98.0
func (_c *AlertUserService_GetByID_Call) Run(run func(ctx context.Context, id string)) *AlertUserService_GetByID_Call
func (*AlertUserService_GetByID_Call) RunAndReturn ¶ added in v0.98.0
func (_c *AlertUserService_GetByID_Call) RunAndReturn(run func(context.Context, string) (user.User, error)) *AlertUserService_GetByID_Call
type AuditRecordRepository ¶
AuditRecordRepository is an autogenerated mock type for the AuditRecordRepository type
func NewAuditRecordRepository ¶
func NewAuditRecordRepository(t interface {
mock.TestingT
Cleanup(func())
}) *AuditRecordRepository
NewAuditRecordRepository creates a new instance of AuditRecordRepository. 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 (*AuditRecordRepository) Create ¶
func (_m *AuditRecordRepository) Create(ctx context.Context, auditRecord models.AuditRecord) (models.AuditRecord, error)
Create provides a mock function with given fields: ctx, auditRecord
func (*AuditRecordRepository) EXPECT ¶
func (_m *AuditRecordRepository) EXPECT() *AuditRecordRepository_Expecter
type AuditRecordRepository_Create_Call ¶
AuditRecordRepository_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*AuditRecordRepository_Create_Call) Return ¶
func (_c *AuditRecordRepository_Create_Call) Return(_a0 models.AuditRecord, _a1 error) *AuditRecordRepository_Create_Call
func (*AuditRecordRepository_Create_Call) Run ¶
func (_c *AuditRecordRepository_Create_Call) Run(run func(ctx context.Context, auditRecord models.AuditRecord)) *AuditRecordRepository_Create_Call
func (*AuditRecordRepository_Create_Call) RunAndReturn ¶
func (_c *AuditRecordRepository_Create_Call) RunAndReturn(run func(context.Context, models.AuditRecord) (models.AuditRecord, error)) *AuditRecordRepository_Create_Call
type AuditRecordRepository_Expecter ¶
type AuditRecordRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*AuditRecordRepository_Expecter) Create ¶
func (_e *AuditRecordRepository_Expecter) Create(ctx interface{}, auditRecord interface{}) *AuditRecordRepository_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- auditRecord models.AuditRecord
type Locker ¶ added in v0.98.0
Locker is an autogenerated mock type for the Locker type
func NewLocker ¶ added in v0.98.0
NewLocker creates a new instance of Locker. 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 (*Locker) EXPECT ¶ added in v0.98.0
func (_m *Locker) EXPECT() *Locker_Expecter
type Locker_Expecter ¶ added in v0.98.0
type Locker_Expecter struct {
// contains filtered or unexported fields
}
func (*Locker_Expecter) TryLock ¶ added in v0.98.0
func (_e *Locker_Expecter) TryLock(ctx interface{}, id interface{}) *Locker_TryLock_Call
TryLock is a helper method to define mock.On call
- ctx context.Context
- id string
type Locker_TryLock_Call ¶ added in v0.98.0
Locker_TryLock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TryLock'
func (*Locker_TryLock_Call) Return ¶ added in v0.98.0
func (_c *Locker_TryLock_Call) Return(_a0 *db.Lock, _a1 error) *Locker_TryLock_Call
func (*Locker_TryLock_Call) Run ¶ added in v0.98.0
func (_c *Locker_TryLock_Call) Run(run func(ctx context.Context, id string)) *Locker_TryLock_Call
func (*Locker_TryLock_Call) RunAndReturn ¶ added in v0.98.0
func (_c *Locker_TryLock_Call) RunAndReturn(run func(context.Context, string) (*db.Lock, error)) *Locker_TryLock_Call
type OrganizationService ¶
OrganizationService is an autogenerated mock type for the OrganizationService type
func NewOrganizationService ¶
func NewOrganizationService(t interface {
mock.TestingT
Cleanup(func())
}) *OrganizationService
NewOrganizationService creates a new instance of OrganizationService. 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 (*OrganizationService) EXPECT ¶
func (_m *OrganizationService) EXPECT() *OrganizationService_Expecter
func (*OrganizationService) GetRaw ¶
func (_m *OrganizationService) GetRaw(ctx context.Context, id string) (organization.Organization, error)
GetRaw provides a mock function with given fields: ctx, id
type OrganizationService_Expecter ¶
type OrganizationService_Expecter struct {
// contains filtered or unexported fields
}
func (*OrganizationService_Expecter) GetRaw ¶
func (_e *OrganizationService_Expecter) GetRaw(ctx interface{}, id interface{}) *OrganizationService_GetRaw_Call
GetRaw is a helper method to define mock.On call
- ctx context.Context
- id string
type OrganizationService_GetRaw_Call ¶
OrganizationService_GetRaw_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRaw'
func (*OrganizationService_GetRaw_Call) Return ¶
func (_c *OrganizationService_GetRaw_Call) Return(_a0 organization.Organization, _a1 error) *OrganizationService_GetRaw_Call
func (*OrganizationService_GetRaw_Call) Run ¶
func (_c *OrganizationService_GetRaw_Call) Run(run func(ctx context.Context, id string)) *OrganizationService_GetRaw_Call
func (*OrganizationService_GetRaw_Call) RunAndReturn ¶
func (_c *OrganizationService_GetRaw_Call) RunAndReturn(run func(context.Context, string) (organization.Organization, error)) *OrganizationService_GetRaw_Call
type PolicyService ¶
PolicyService is an autogenerated mock type for the PolicyService type
func NewPolicyService ¶
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) Delete ¶ added in v0.94.0
func (_m *PolicyService) Delete(ctx context.Context, id string) error
Delete provides a mock function with given fields: ctx, id
func (*PolicyService) EXPECT ¶
func (_m *PolicyService) EXPECT() *PolicyService_Expecter
type PolicyService_Create_Call ¶
PolicyService_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*PolicyService_Create_Call) Return ¶
func (_c *PolicyService_Create_Call) Return(_a0 policy.Policy, _a1 error) *PolicyService_Create_Call
func (*PolicyService_Create_Call) Run ¶
func (_c *PolicyService_Create_Call) Run(run func(ctx context.Context, pol policy.Policy)) *PolicyService_Create_Call
func (*PolicyService_Create_Call) RunAndReturn ¶
func (_c *PolicyService_Create_Call) RunAndReturn(run func(context.Context, policy.Policy) (policy.Policy, error)) *PolicyService_Create_Call
type PolicyService_Delete_Call ¶ added in v0.94.0
PolicyService_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*PolicyService_Delete_Call) Return ¶ added in v0.94.0
func (_c *PolicyService_Delete_Call) Return(_a0 error) *PolicyService_Delete_Call
func (*PolicyService_Delete_Call) Run ¶ added in v0.94.0
func (_c *PolicyService_Delete_Call) Run(run func(ctx context.Context, id string)) *PolicyService_Delete_Call
func (*PolicyService_Delete_Call) RunAndReturn ¶ added in v0.94.0
func (_c *PolicyService_Delete_Call) RunAndReturn(run func(context.Context, string) error) *PolicyService_Delete_Call
type PolicyService_Expecter ¶
type PolicyService_Expecter struct {
// contains filtered or unexported fields
}
func (*PolicyService_Expecter) Create ¶
func (_e *PolicyService_Expecter) Create(ctx interface{}, pol interface{}) *PolicyService_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- pol policy.Policy
func (*PolicyService_Expecter) Delete ¶ added in v0.94.0
func (_e *PolicyService_Expecter) Delete(ctx interface{}, id interface{}) *PolicyService_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- id string
func (*PolicyService_Expecter) List ¶ added in v0.94.0
func (_e *PolicyService_Expecter) List(ctx interface{}, flt interface{}) *PolicyService_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- flt policy.Filter
type PolicyService_List_Call ¶ added in v0.94.0
PolicyService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*PolicyService_List_Call) Return ¶ added in v0.94.0
func (_c *PolicyService_List_Call) Return(_a0 []policy.Policy, _a1 error) *PolicyService_List_Call
func (*PolicyService_List_Call) Run ¶ added in v0.94.0
func (_c *PolicyService_List_Call) Run(run func(ctx context.Context, flt policy.Filter)) *PolicyService_List_Call
func (*PolicyService_List_Call) RunAndReturn ¶ added in v0.94.0
func (_c *PolicyService_List_Call) RunAndReturn(run func(context.Context, policy.Filter) ([]policy.Policy, error)) *PolicyService_List_Call
type ProjectService ¶ added in v0.95.1
ProjectService is an autogenerated mock type for the ProjectService type
func NewProjectService ¶ added in v0.95.1
func NewProjectService(t interface {
mock.TestingT
Cleanup(func())
}) *ProjectService
NewProjectService creates a new instance of ProjectService. 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 (*ProjectService) EXPECT ¶ added in v0.95.1
func (_m *ProjectService) EXPECT() *ProjectService_Expecter
func (*ProjectService) ListByUser ¶ added in v0.95.1
func (_m *ProjectService) ListByUser(ctx context.Context, principal authenticate.Principal, flt project.Filter) ([]project.Project, error)
ListByUser provides a mock function with given fields: ctx, principal, flt
type ProjectService_Expecter ¶ added in v0.95.1
type ProjectService_Expecter struct {
// contains filtered or unexported fields
}
func (*ProjectService_Expecter) ListByUser ¶ added in v0.95.1
func (_e *ProjectService_Expecter) ListByUser(ctx interface{}, principal interface{}, flt interface{}) *ProjectService_ListByUser_Call
ListByUser is a helper method to define mock.On call
- ctx context.Context
- principal authenticate.Principal
- flt project.Filter
type ProjectService_ListByUser_Call ¶ added in v0.95.1
ProjectService_ListByUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListByUser'
func (*ProjectService_ListByUser_Call) Return ¶ added in v0.95.1
func (_c *ProjectService_ListByUser_Call) Return(_a0 []project.Project, _a1 error) *ProjectService_ListByUser_Call
func (*ProjectService_ListByUser_Call) Run ¶ added in v0.95.1
func (_c *ProjectService_ListByUser_Call) Run(run func(ctx context.Context, principal authenticate.Principal, flt project.Filter)) *ProjectService_ListByUser_Call
func (*ProjectService_ListByUser_Call) RunAndReturn ¶ added in v0.95.1
func (_c *ProjectService_ListByUser_Call) RunAndReturn(run func(context.Context, authenticate.Principal, project.Filter) ([]project.Project, error)) *ProjectService_ListByUser_Call
type Repository ¶
Repository is an autogenerated mock type for the Repository type
func NewRepository ¶
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) CountActive ¶
CountActive provides a mock function with given fields: ctx, userID, orgID
func (*Repository) Delete ¶ added in v0.94.0
func (_m *Repository) Delete(ctx context.Context, id string) error
Delete provides a mock function with given fields: ctx, id
func (*Repository) EXPECT ¶
func (_m *Repository) EXPECT() *Repository_Expecter
func (*Repository) GetByID ¶ added in v0.93.2
GetByID provides a mock function with given fields: ctx, id
func (*Repository) GetBySecretHash ¶ added in v0.93.2
GetBySecretHash provides a mock function with given fields: ctx, secretHash
func (*Repository) IsTitleAvailable ¶ added in v0.94.0
func (_m *Repository) IsTitleAvailable(ctx context.Context, userID string, orgID string, title string) (bool, error)
IsTitleAvailable provides a mock function with given fields: ctx, userID, orgID, title
func (*Repository) List ¶ added in v0.94.0
func (_m *Repository) List(ctx context.Context, userID string, orgID string, query *rql.Query) (models.PATList, error)
List provides a mock function with given fields: ctx, userID, orgID, query
func (*Repository) ListExpiredNoticePending ¶ added in v0.98.0
ListExpiredNoticePending provides a mock function with given fields: ctx
func (*Repository) ListExpiryReminderPending ¶ added in v0.98.0
func (_m *Repository) ListExpiryReminderPending(ctx context.Context, days int) ([]models.PAT, error)
ListExpiryReminderPending provides a mock function with given fields: ctx, days
func (*Repository) Regenerate ¶ added in v0.94.0
func (_m *Repository) Regenerate(ctx context.Context, id string, secretHash string, expiresAt time.Time) (models.PAT, error)
Regenerate provides a mock function with given fields: ctx, id, secretHash, expiresAt
func (*Repository) SetAlertSentMetadata ¶ added in v0.98.0
SetAlertSentMetadata provides a mock function with given fields: ctx, id, key
func (*Repository) Update ¶ added in v0.94.0
Update provides a mock function with given fields: ctx, pat
func (*Repository) UpdateUsedAt ¶ added in v0.98.0
UpdateUsedAt provides a mock function with given fields: ctx, id, at
type Repository_CountActive_Call ¶
Repository_CountActive_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CountActive'
func (*Repository_CountActive_Call) Return ¶
func (_c *Repository_CountActive_Call) Return(_a0 int64, _a1 error) *Repository_CountActive_Call
func (*Repository_CountActive_Call) Run ¶
func (_c *Repository_CountActive_Call) Run(run func(ctx context.Context, userID string, orgID string)) *Repository_CountActive_Call
func (*Repository_CountActive_Call) RunAndReturn ¶
func (_c *Repository_CountActive_Call) RunAndReturn(run func(context.Context, string, string) (int64, error)) *Repository_CountActive_Call
type Repository_Create_Call ¶
Repository_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*Repository_Create_Call) Return ¶
func (_c *Repository_Create_Call) Return(_a0 models.PAT, _a1 error) *Repository_Create_Call
func (*Repository_Create_Call) Run ¶
func (_c *Repository_Create_Call) Run(run func(ctx context.Context, pat models.PAT)) *Repository_Create_Call
func (*Repository_Create_Call) RunAndReturn ¶
func (_c *Repository_Create_Call) RunAndReturn(run func(context.Context, models.PAT) (models.PAT, error)) *Repository_Create_Call
type Repository_Delete_Call ¶ added in v0.94.0
Repository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*Repository_Delete_Call) Return ¶ added in v0.94.0
func (_c *Repository_Delete_Call) Return(_a0 error) *Repository_Delete_Call
func (*Repository_Delete_Call) Run ¶ added in v0.94.0
func (_c *Repository_Delete_Call) Run(run func(ctx context.Context, id string)) *Repository_Delete_Call
func (*Repository_Delete_Call) RunAndReturn ¶ added in v0.94.0
func (_c *Repository_Delete_Call) RunAndReturn(run func(context.Context, string) error) *Repository_Delete_Call
type Repository_Expecter ¶
type Repository_Expecter struct {
// contains filtered or unexported fields
}
func (*Repository_Expecter) CountActive ¶
func (_e *Repository_Expecter) CountActive(ctx interface{}, userID interface{}, orgID interface{}) *Repository_CountActive_Call
CountActive is a helper method to define mock.On call
- ctx context.Context
- userID string
- orgID string
func (*Repository_Expecter) Create ¶
func (_e *Repository_Expecter) Create(ctx interface{}, pat interface{}) *Repository_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- pat models.PAT
func (*Repository_Expecter) Delete ¶ added in v0.94.0
func (_e *Repository_Expecter) Delete(ctx interface{}, id interface{}) *Repository_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- id string
func (*Repository_Expecter) GetByID ¶ added in v0.93.2
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) GetBySecretHash ¶ added in v0.93.2
func (_e *Repository_Expecter) GetBySecretHash(ctx interface{}, secretHash interface{}) *Repository_GetBySecretHash_Call
GetBySecretHash is a helper method to define mock.On call
- ctx context.Context
- secretHash string
func (*Repository_Expecter) IsTitleAvailable ¶ added in v0.94.0
func (_e *Repository_Expecter) IsTitleAvailable(ctx interface{}, userID interface{}, orgID interface{}, title interface{}) *Repository_IsTitleAvailable_Call
IsTitleAvailable is a helper method to define mock.On call
- ctx context.Context
- userID string
- orgID string
- title string
func (*Repository_Expecter) List ¶ added in v0.94.0
func (_e *Repository_Expecter) List(ctx interface{}, userID interface{}, orgID interface{}, query interface{}) *Repository_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- userID string
- orgID string
- query *rql.Query
func (*Repository_Expecter) ListExpiredNoticePending ¶ added in v0.98.0
func (_e *Repository_Expecter) ListExpiredNoticePending(ctx interface{}) *Repository_ListExpiredNoticePending_Call
ListExpiredNoticePending is a helper method to define mock.On call
- ctx context.Context
func (*Repository_Expecter) ListExpiryReminderPending ¶ added in v0.98.0
func (_e *Repository_Expecter) ListExpiryReminderPending(ctx interface{}, days interface{}) *Repository_ListExpiryReminderPending_Call
ListExpiryReminderPending is a helper method to define mock.On call
- ctx context.Context
- days int
func (*Repository_Expecter) Regenerate ¶ added in v0.94.0
func (_e *Repository_Expecter) Regenerate(ctx interface{}, id interface{}, secretHash interface{}, expiresAt interface{}) *Repository_Regenerate_Call
Regenerate is a helper method to define mock.On call
- ctx context.Context
- id string
- secretHash string
- expiresAt time.Time
func (*Repository_Expecter) SetAlertSentMetadata ¶ added in v0.98.0
func (_e *Repository_Expecter) SetAlertSentMetadata(ctx interface{}, id interface{}, key interface{}) *Repository_SetAlertSentMetadata_Call
SetAlertSentMetadata is a helper method to define mock.On call
- ctx context.Context
- id string
- key string
func (*Repository_Expecter) Update ¶ added in v0.94.0
func (_e *Repository_Expecter) Update(ctx interface{}, pat interface{}) *Repository_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- pat models.PAT
func (*Repository_Expecter) UpdateUsedAt ¶ added in v0.98.0
func (_e *Repository_Expecter) UpdateUsedAt(ctx interface{}, id interface{}, at interface{}) *Repository_UpdateUsedAt_Call
UpdateUsedAt is a helper method to define mock.On call
- ctx context.Context
- id string
- at time.Time
type Repository_GetByID_Call ¶ added in v0.93.2
Repository_GetByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByID'
func (*Repository_GetByID_Call) Return ¶ added in v0.93.2
func (_c *Repository_GetByID_Call) Return(_a0 models.PAT, _a1 error) *Repository_GetByID_Call
func (*Repository_GetByID_Call) Run ¶ added in v0.93.2
func (_c *Repository_GetByID_Call) Run(run func(ctx context.Context, id string)) *Repository_GetByID_Call
func (*Repository_GetByID_Call) RunAndReturn ¶ added in v0.93.2
func (_c *Repository_GetByID_Call) RunAndReturn(run func(context.Context, string) (models.PAT, error)) *Repository_GetByID_Call
type Repository_GetBySecretHash_Call ¶ added in v0.93.2
Repository_GetBySecretHash_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBySecretHash'
func (*Repository_GetBySecretHash_Call) Return ¶ added in v0.93.2
func (_c *Repository_GetBySecretHash_Call) Return(_a0 models.PAT, _a1 error) *Repository_GetBySecretHash_Call
func (*Repository_GetBySecretHash_Call) Run ¶ added in v0.93.2
func (_c *Repository_GetBySecretHash_Call) Run(run func(ctx context.Context, secretHash string)) *Repository_GetBySecretHash_Call
func (*Repository_GetBySecretHash_Call) RunAndReturn ¶ added in v0.93.2
func (_c *Repository_GetBySecretHash_Call) RunAndReturn(run func(context.Context, string) (models.PAT, error)) *Repository_GetBySecretHash_Call
type Repository_IsTitleAvailable_Call ¶ added in v0.94.0
Repository_IsTitleAvailable_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsTitleAvailable'
func (*Repository_IsTitleAvailable_Call) Return ¶ added in v0.94.0
func (_c *Repository_IsTitleAvailable_Call) Return(_a0 bool, _a1 error) *Repository_IsTitleAvailable_Call
func (*Repository_IsTitleAvailable_Call) Run ¶ added in v0.94.0
func (_c *Repository_IsTitleAvailable_Call) Run(run func(ctx context.Context, userID string, orgID string, title string)) *Repository_IsTitleAvailable_Call
func (*Repository_IsTitleAvailable_Call) RunAndReturn ¶ added in v0.94.0
func (_c *Repository_IsTitleAvailable_Call) RunAndReturn(run func(context.Context, string, string, string) (bool, error)) *Repository_IsTitleAvailable_Call
type Repository_ListExpiredNoticePending_Call ¶ added in v0.98.0
Repository_ListExpiredNoticePending_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListExpiredNoticePending'
func (*Repository_ListExpiredNoticePending_Call) Return ¶ added in v0.98.0
func (_c *Repository_ListExpiredNoticePending_Call) Return(_a0 []models.PAT, _a1 error) *Repository_ListExpiredNoticePending_Call
func (*Repository_ListExpiredNoticePending_Call) Run ¶ added in v0.98.0
func (_c *Repository_ListExpiredNoticePending_Call) Run(run func(ctx context.Context)) *Repository_ListExpiredNoticePending_Call
func (*Repository_ListExpiredNoticePending_Call) RunAndReturn ¶ added in v0.98.0
func (_c *Repository_ListExpiredNoticePending_Call) RunAndReturn(run func(context.Context) ([]models.PAT, error)) *Repository_ListExpiredNoticePending_Call
type Repository_ListExpiryReminderPending_Call ¶ added in v0.98.0
Repository_ListExpiryReminderPending_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListExpiryReminderPending'
func (*Repository_ListExpiryReminderPending_Call) Return ¶ added in v0.98.0
func (_c *Repository_ListExpiryReminderPending_Call) Return(_a0 []models.PAT, _a1 error) *Repository_ListExpiryReminderPending_Call
func (*Repository_ListExpiryReminderPending_Call) Run ¶ added in v0.98.0
func (_c *Repository_ListExpiryReminderPending_Call) Run(run func(ctx context.Context, days int)) *Repository_ListExpiryReminderPending_Call
func (*Repository_ListExpiryReminderPending_Call) RunAndReturn ¶ added in v0.98.0
func (_c *Repository_ListExpiryReminderPending_Call) RunAndReturn(run func(context.Context, int) ([]models.PAT, error)) *Repository_ListExpiryReminderPending_Call
type Repository_List_Call ¶ added in v0.94.0
Repository_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*Repository_List_Call) Return ¶ added in v0.94.0
func (_c *Repository_List_Call) Return(_a0 models.PATList, _a1 error) *Repository_List_Call
func (*Repository_List_Call) Run ¶ added in v0.94.0
func (_c *Repository_List_Call) Run(run func(ctx context.Context, userID string, orgID string, query *rql.Query)) *Repository_List_Call
func (*Repository_List_Call) RunAndReturn ¶ added in v0.94.0
type Repository_Regenerate_Call ¶ added in v0.94.0
Repository_Regenerate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Regenerate'
func (*Repository_Regenerate_Call) Return ¶ added in v0.94.0
func (_c *Repository_Regenerate_Call) Return(_a0 models.PAT, _a1 error) *Repository_Regenerate_Call
func (*Repository_Regenerate_Call) Run ¶ added in v0.94.0
func (_c *Repository_Regenerate_Call) Run(run func(ctx context.Context, id string, secretHash string, expiresAt time.Time)) *Repository_Regenerate_Call
func (*Repository_Regenerate_Call) RunAndReturn ¶ added in v0.94.0
type Repository_SetAlertSentMetadata_Call ¶ added in v0.98.0
Repository_SetAlertSentMetadata_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetAlertSentMetadata'
func (*Repository_SetAlertSentMetadata_Call) Return ¶ added in v0.98.0
func (_c *Repository_SetAlertSentMetadata_Call) Return(_a0 error) *Repository_SetAlertSentMetadata_Call
func (*Repository_SetAlertSentMetadata_Call) Run ¶ added in v0.98.0
func (_c *Repository_SetAlertSentMetadata_Call) Run(run func(ctx context.Context, id string, key string)) *Repository_SetAlertSentMetadata_Call
func (*Repository_SetAlertSentMetadata_Call) RunAndReturn ¶ added in v0.98.0
func (_c *Repository_SetAlertSentMetadata_Call) RunAndReturn(run func(context.Context, string, string) error) *Repository_SetAlertSentMetadata_Call
type Repository_UpdateUsedAt_Call ¶ added in v0.98.0
Repository_UpdateUsedAt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateUsedAt'
func (*Repository_UpdateUsedAt_Call) Return ¶ added in v0.98.0
func (_c *Repository_UpdateUsedAt_Call) Return(_a0 error) *Repository_UpdateUsedAt_Call
func (*Repository_UpdateUsedAt_Call) Run ¶ added in v0.98.0
func (_c *Repository_UpdateUsedAt_Call) Run(run func(ctx context.Context, id string, at time.Time)) *Repository_UpdateUsedAt_Call
func (*Repository_UpdateUsedAt_Call) RunAndReturn ¶ added in v0.98.0
func (_c *Repository_UpdateUsedAt_Call) RunAndReturn(run func(context.Context, string, time.Time) error) *Repository_UpdateUsedAt_Call
type Repository_Update_Call ¶ added in v0.94.0
Repository_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*Repository_Update_Call) Return ¶ added in v0.94.0
func (_c *Repository_Update_Call) Return(_a0 models.PAT, _a1 error) *Repository_Update_Call
func (*Repository_Update_Call) Run ¶ added in v0.94.0
func (_c *Repository_Update_Call) Run(run func(ctx context.Context, pat models.PAT)) *Repository_Update_Call
func (*Repository_Update_Call) RunAndReturn ¶ added in v0.94.0
func (_c *Repository_Update_Call) RunAndReturn(run func(context.Context, models.PAT) (models.PAT, error)) *Repository_Update_Call
type RoleService ¶
RoleService is an autogenerated mock type for the RoleService type
func NewRoleService ¶
func NewRoleService(t interface {
mock.TestingT
Cleanup(func())
}) *RoleService
NewRoleService creates a new instance of RoleService. 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 (*RoleService) EXPECT ¶
func (_m *RoleService) EXPECT() *RoleService_Expecter
type RoleService_Expecter ¶
type RoleService_Expecter struct {
// contains filtered or unexported fields
}
func (*RoleService_Expecter) Get ¶
func (_e *RoleService_Expecter) Get(ctx interface{}, id interface{}) *RoleService_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- id string
func (*RoleService_Expecter) List ¶
func (_e *RoleService_Expecter) List(ctx interface{}, f interface{}) *RoleService_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- f role.Filter
type RoleService_Get_Call ¶
RoleService_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*RoleService_Get_Call) Return ¶
func (_c *RoleService_Get_Call) Return(_a0 role.Role, _a1 error) *RoleService_Get_Call
func (*RoleService_Get_Call) Run ¶
func (_c *RoleService_Get_Call) Run(run func(ctx context.Context, id string)) *RoleService_Get_Call
func (*RoleService_Get_Call) RunAndReturn ¶
func (_c *RoleService_Get_Call) RunAndReturn(run func(context.Context, string) (role.Role, error)) *RoleService_Get_Call
type RoleService_List_Call ¶
RoleService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*RoleService_List_Call) Return ¶
func (_c *RoleService_List_Call) Return(_a0 []role.Role, _a1 error) *RoleService_List_Call
func (*RoleService_List_Call) Run ¶
func (_c *RoleService_List_Call) Run(run func(ctx context.Context, f role.Filter)) *RoleService_List_Call
func (*RoleService_List_Call) RunAndReturn ¶
func (_c *RoleService_List_Call) RunAndReturn(run func(context.Context, role.Filter) ([]role.Role, error)) *RoleService_List_Call