Documentation
¶
Index ¶
- type Repository
- func (_m *Repository) Create(ctx context.Context, auditRecord auditrecord.AuditRecord) (auditrecord.AuditRecord, error)
- func (_m *Repository) EXPECT() *Repository_Expecter
- func (_m *Repository) Export(ctx context.Context, query *rql.Query) (io.Reader, string, error)
- func (_m *Repository) GetByIdempotencyKey(ctx context.Context, idempotencyKey string) (auditrecord.AuditRecord, error)
- func (_m *Repository) List(ctx context.Context, query *rql.Query) (auditrecord.AuditRecordsList, error)
- type Repository_Create_Call
- func (_c *Repository_Create_Call) Return(_a0 auditrecord.AuditRecord, _a1 error) *Repository_Create_Call
- func (_c *Repository_Create_Call) Run(run func(ctx context.Context, auditRecord auditrecord.AuditRecord)) *Repository_Create_Call
- func (_c *Repository_Create_Call) RunAndReturn(...) *Repository_Create_Call
- type Repository_Expecter
- func (_e *Repository_Expecter) Create(ctx interface{}, auditRecord interface{}) *Repository_Create_Call
- func (_e *Repository_Expecter) Export(ctx interface{}, query interface{}) *Repository_Export_Call
- func (_e *Repository_Expecter) GetByIdempotencyKey(ctx interface{}, idempotencyKey interface{}) *Repository_GetByIdempotencyKey_Call
- func (_e *Repository_Expecter) List(ctx interface{}, query interface{}) *Repository_List_Call
- type Repository_Export_Call
- func (_c *Repository_Export_Call) Return(_a0 io.Reader, _a1 string, _a2 error) *Repository_Export_Call
- func (_c *Repository_Export_Call) Run(run func(ctx context.Context, query *rql.Query)) *Repository_Export_Call
- func (_c *Repository_Export_Call) RunAndReturn(run func(context.Context, *rql.Query) (io.Reader, string, error)) *Repository_Export_Call
- type Repository_GetByIdempotencyKey_Call
- func (_c *Repository_GetByIdempotencyKey_Call) Return(_a0 auditrecord.AuditRecord, _a1 error) *Repository_GetByIdempotencyKey_Call
- func (_c *Repository_GetByIdempotencyKey_Call) Run(run func(ctx context.Context, idempotencyKey string)) *Repository_GetByIdempotencyKey_Call
- func (_c *Repository_GetByIdempotencyKey_Call) RunAndReturn(run func(context.Context, string) (auditrecord.AuditRecord, error)) *Repository_GetByIdempotencyKey_Call
- type Repository_List_Call
- func (_c *Repository_List_Call) Return(_a0 auditrecord.AuditRecordsList, _a1 error) *Repository_List_Call
- func (_c *Repository_List_Call) Run(run func(ctx context.Context, query *rql.Query)) *Repository_List_Call
- func (_c *Repository_List_Call) RunAndReturn(run func(context.Context, *rql.Query) (auditrecord.AuditRecordsList, error)) *Repository_List_Call
- type ServiceUserService
- type ServiceUserService_Expecter
- type ServiceUserService_Get_Call
- func (_c *ServiceUserService_Get_Call) Return(_a0 serviceuser.ServiceUser, _a1 error) *ServiceUserService_Get_Call
- func (_c *ServiceUserService_Get_Call) Run(run func(ctx context.Context, id string)) *ServiceUserService_Get_Call
- func (_c *ServiceUserService_Get_Call) RunAndReturn(run func(context.Context, string) (serviceuser.ServiceUser, error)) *ServiceUserService_Get_Call
- type SessionService
- type SessionService_Expecter
- type SessionService_Get_Call
- func (_c *SessionService_Get_Call) Return(_a0 *session.Session, _a1 error) *SessionService_Get_Call
- func (_c *SessionService_Get_Call) Run(run func(ctx context.Context, id uuid.UUID)) *SessionService_Get_Call
- func (_c *SessionService_Get_Call) RunAndReturn(run func(context.Context, uuid.UUID) (*session.Session, error)) *SessionService_Get_Call
- type UserService
- type UserService_Expecter
- type UserService_GetByID_Call
- func (_c *UserService_GetByID_Call) Return(_a0 user.User, _a1 error) *UserService_GetByID_Call
- func (_c *UserService_GetByID_Call) Run(run func(ctx context.Context, id string)) *UserService_GetByID_Call
- func (_c *UserService_GetByID_Call) RunAndReturn(run func(context.Context, string) (user.User, error)) *UserService_GetByID_Call
- type UserService_IsSudo_Call
- func (_c *UserService_IsSudo_Call) Return(_a0 bool, _a1 error) *UserService_IsSudo_Call
- func (_c *UserService_IsSudo_Call) Run(run func(ctx context.Context, id string, permissionName string)) *UserService_IsSudo_Call
- func (_c *UserService_IsSudo_Call) RunAndReturn(run func(context.Context, string, string) (bool, error)) *UserService_IsSudo_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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) Create ¶
func (_m *Repository) Create(ctx context.Context, auditRecord auditrecord.AuditRecord) (auditrecord.AuditRecord, error)
Create provides a mock function with given fields: ctx, auditRecord
func (*Repository) EXPECT ¶
func (_m *Repository) EXPECT() *Repository_Expecter
func (*Repository) Export ¶ added in v0.75.0
Export provides a mock function with given fields: ctx, query
func (*Repository) GetByIdempotencyKey ¶
func (_m *Repository) GetByIdempotencyKey(ctx context.Context, idempotencyKey string) (auditrecord.AuditRecord, error)
GetByIdempotencyKey provides a mock function with given fields: ctx, idempotencyKey
func (*Repository) List ¶ added in v0.75.0
func (_m *Repository) List(ctx context.Context, query *rql.Query) (auditrecord.AuditRecordsList, error)
List provides a mock function with given fields: ctx, query
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 auditrecord.AuditRecord, _a1 error) *Repository_Create_Call
func (*Repository_Create_Call) Run ¶
func (_c *Repository_Create_Call) Run(run func(ctx context.Context, auditRecord auditrecord.AuditRecord)) *Repository_Create_Call
func (*Repository_Create_Call) RunAndReturn ¶
func (_c *Repository_Create_Call) RunAndReturn(run func(context.Context, auditrecord.AuditRecord) (auditrecord.AuditRecord, error)) *Repository_Create_Call
type Repository_Expecter ¶
type Repository_Expecter struct {
// contains filtered or unexported fields
}
func (*Repository_Expecter) Create ¶
func (_e *Repository_Expecter) Create(ctx interface{}, auditRecord interface{}) *Repository_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- auditRecord auditrecord.AuditRecord
func (*Repository_Expecter) Export ¶ added in v0.75.0
func (_e *Repository_Expecter) Export(ctx interface{}, query interface{}) *Repository_Export_Call
Export is a helper method to define mock.On call
- ctx context.Context
- query *rql.Query
func (*Repository_Expecter) GetByIdempotencyKey ¶
func (_e *Repository_Expecter) GetByIdempotencyKey(ctx interface{}, idempotencyKey interface{}) *Repository_GetByIdempotencyKey_Call
GetByIdempotencyKey is a helper method to define mock.On call
- ctx context.Context
- idempotencyKey string
func (*Repository_Expecter) List ¶ added in v0.75.0
func (_e *Repository_Expecter) List(ctx interface{}, query interface{}) *Repository_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- query *rql.Query
type Repository_Export_Call ¶ added in v0.75.0
Repository_Export_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Export'
func (*Repository_Export_Call) Return ¶ added in v0.75.0
func (_c *Repository_Export_Call) Return(_a0 io.Reader, _a1 string, _a2 error) *Repository_Export_Call
func (*Repository_Export_Call) Run ¶ added in v0.75.0
func (_c *Repository_Export_Call) Run(run func(ctx context.Context, query *rql.Query)) *Repository_Export_Call
func (*Repository_Export_Call) RunAndReturn ¶ added in v0.75.0
func (_c *Repository_Export_Call) RunAndReturn(run func(context.Context, *rql.Query) (io.Reader, string, error)) *Repository_Export_Call
type Repository_GetByIdempotencyKey_Call ¶
Repository_GetByIdempotencyKey_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByIdempotencyKey'
func (*Repository_GetByIdempotencyKey_Call) Return ¶
func (_c *Repository_GetByIdempotencyKey_Call) Return(_a0 auditrecord.AuditRecord, _a1 error) *Repository_GetByIdempotencyKey_Call
func (*Repository_GetByIdempotencyKey_Call) Run ¶
func (_c *Repository_GetByIdempotencyKey_Call) Run(run func(ctx context.Context, idempotencyKey string)) *Repository_GetByIdempotencyKey_Call
func (*Repository_GetByIdempotencyKey_Call) RunAndReturn ¶
func (_c *Repository_GetByIdempotencyKey_Call) RunAndReturn(run func(context.Context, string) (auditrecord.AuditRecord, error)) *Repository_GetByIdempotencyKey_Call
type Repository_List_Call ¶ added in v0.75.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.75.0
func (_c *Repository_List_Call) Return(_a0 auditrecord.AuditRecordsList, _a1 error) *Repository_List_Call
func (*Repository_List_Call) Run ¶ added in v0.75.0
func (_c *Repository_List_Call) Run(run func(ctx context.Context, query *rql.Query)) *Repository_List_Call
func (*Repository_List_Call) RunAndReturn ¶ added in v0.75.0
func (_c *Repository_List_Call) RunAndReturn(run func(context.Context, *rql.Query) (auditrecord.AuditRecordsList, error)) *Repository_List_Call
type ServiceUserService ¶
ServiceUserService is an autogenerated mock type for the ServiceUserService type
func NewServiceUserService ¶
func NewServiceUserService(t interface {
mock.TestingT
Cleanup(func())
}) *ServiceUserService
NewServiceUserService creates a new instance of ServiceUserService. 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 (*ServiceUserService) EXPECT ¶
func (_m *ServiceUserService) EXPECT() *ServiceUserService_Expecter
func (*ServiceUserService) Get ¶
func (_m *ServiceUserService) Get(ctx context.Context, id string) (serviceuser.ServiceUser, error)
Get provides a mock function with given fields: ctx, id
type ServiceUserService_Expecter ¶
type ServiceUserService_Expecter struct {
// contains filtered or unexported fields
}
func (*ServiceUserService_Expecter) Get ¶
func (_e *ServiceUserService_Expecter) Get(ctx interface{}, id interface{}) *ServiceUserService_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- id string
type ServiceUserService_Get_Call ¶
ServiceUserService_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*ServiceUserService_Get_Call) Return ¶
func (_c *ServiceUserService_Get_Call) Return(_a0 serviceuser.ServiceUser, _a1 error) *ServiceUserService_Get_Call
func (*ServiceUserService_Get_Call) Run ¶
func (_c *ServiceUserService_Get_Call) Run(run func(ctx context.Context, id string)) *ServiceUserService_Get_Call
func (*ServiceUserService_Get_Call) RunAndReturn ¶
func (_c *ServiceUserService_Get_Call) RunAndReturn(run func(context.Context, string) (serviceuser.ServiceUser, error)) *ServiceUserService_Get_Call
type SessionService ¶ added in v0.75.0
SessionService is an autogenerated mock type for the SessionService type
func NewSessionService ¶ added in v0.75.0
func NewSessionService(t interface {
mock.TestingT
Cleanup(func())
}) *SessionService
NewSessionService creates a new instance of SessionService. 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 (*SessionService) EXPECT ¶ added in v0.75.0
func (_m *SessionService) EXPECT() *SessionService_Expecter
type SessionService_Expecter ¶ added in v0.75.0
type SessionService_Expecter struct {
// contains filtered or unexported fields
}
func (*SessionService_Expecter) Get ¶ added in v0.75.0
func (_e *SessionService_Expecter) Get(ctx interface{}, id interface{}) *SessionService_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- id uuid.UUID
type SessionService_Get_Call ¶ added in v0.75.0
SessionService_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*SessionService_Get_Call) Return ¶ added in v0.75.0
func (_c *SessionService_Get_Call) Return(_a0 *session.Session, _a1 error) *SessionService_Get_Call
func (*SessionService_Get_Call) Run ¶ added in v0.75.0
func (_c *SessionService_Get_Call) Run(run func(ctx context.Context, id uuid.UUID)) *SessionService_Get_Call
func (*SessionService_Get_Call) RunAndReturn ¶ added in v0.75.0
func (_c *SessionService_Get_Call) RunAndReturn(run func(context.Context, uuid.UUID) (*session.Session, error)) *SessionService_Get_Call
type UserService ¶
UserService is an autogenerated mock type for the UserService type
func NewUserService ¶
func NewUserService(t interface {
mock.TestingT
Cleanup(func())
}) *UserService
NewUserService creates a new instance of UserService. 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 (*UserService) EXPECT ¶
func (_m *UserService) EXPECT() *UserService_Expecter
type UserService_Expecter ¶
type UserService_Expecter struct {
// contains filtered or unexported fields
}
func (*UserService_Expecter) GetByID ¶
func (_e *UserService_Expecter) GetByID(ctx interface{}, id interface{}) *UserService_GetByID_Call
GetByID is a helper method to define mock.On call
- ctx context.Context
- id string
func (*UserService_Expecter) IsSudo ¶
func (_e *UserService_Expecter) IsSudo(ctx interface{}, id interface{}, permissionName interface{}) *UserService_IsSudo_Call
IsSudo is a helper method to define mock.On call
- ctx context.Context
- id string
- permissionName string
type UserService_GetByID_Call ¶
UserService_GetByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByID'
func (*UserService_GetByID_Call) Return ¶
func (_c *UserService_GetByID_Call) Return(_a0 user.User, _a1 error) *UserService_GetByID_Call
func (*UserService_GetByID_Call) Run ¶
func (_c *UserService_GetByID_Call) Run(run func(ctx context.Context, id string)) *UserService_GetByID_Call
func (*UserService_GetByID_Call) RunAndReturn ¶
func (_c *UserService_GetByID_Call) RunAndReturn(run func(context.Context, string) (user.User, error)) *UserService_GetByID_Call
type UserService_IsSudo_Call ¶
UserService_IsSudo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsSudo'
func (*UserService_IsSudo_Call) Return ¶
func (_c *UserService_IsSudo_Call) Return(_a0 bool, _a1 error) *UserService_IsSudo_Call
func (*UserService_IsSudo_Call) Run ¶
func (_c *UserService_IsSudo_Call) Run(run func(ctx context.Context, id string, permissionName string)) *UserService_IsSudo_Call
func (*UserService_IsSudo_Call) RunAndReturn ¶
func (_c *UserService_IsSudo_Call) RunAndReturn(run func(context.Context, string, string) (bool, error)) *UserService_IsSudo_Call