 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- type ProjectService
- type ProjectService_Expecter
- type ProjectService_Get_Call
- func (_c *ProjectService_Get_Call) Return(_a0 project.Project, _a1 error) *ProjectService_Get_Call
- func (_c *ProjectService_Get_Call) Run(run func(ctx context.Context, idOrSlug string)) *ProjectService_Get_Call
- func (_c *ProjectService_Get_Call) RunAndReturn(run func(context.Context, string) (project.Project, error)) *ProjectService_Get_Call
 
- type RelationService
- type RelationService_Create_Call
- func (_c *RelationService_Create_Call) Return(_a0 relation.RelationV2, _a1 error) *RelationService_Create_Call
- func (_c *RelationService_Create_Call) Run(run func(ctx context.Context, rel relation.RelationV2)) *RelationService_Create_Call
- func (_c *RelationService_Create_Call) RunAndReturn(run func(context.Context, relation.RelationV2) (relation.RelationV2, error)) *RelationService_Create_Call
 
- type RelationService_Expecter
- type Repository
- func (_m *Repository) Commit(ctx context.Context) error
- func (_m *Repository) CreateKey(ctx context.Context, key servicedata.Key) (servicedata.Key, error)
- func (_m *Repository) EXPECT() *Repository_Expecter
- func (_m *Repository) Rollback(ctx context.Context, err error) error
- func (_m *Repository) WithTransaction(ctx context.Context) context.Context
 
- type Repository_Commit_Call
- type Repository_CreateKey_Call
- func (_c *Repository_CreateKey_Call) Return(_a0 servicedata.Key, _a1 error) *Repository_CreateKey_Call
- func (_c *Repository_CreateKey_Call) Run(run func(ctx context.Context, key servicedata.Key)) *Repository_CreateKey_Call
- func (_c *Repository_CreateKey_Call) RunAndReturn(run func(context.Context, servicedata.Key) (servicedata.Key, error)) *Repository_CreateKey_Call
 
- type Repository_Expecter
- func (_e *Repository_Expecter) Commit(ctx interface{}) *Repository_Commit_Call
- func (_e *Repository_Expecter) CreateKey(ctx interface{}, key interface{}) *Repository_CreateKey_Call
- func (_e *Repository_Expecter) Rollback(ctx interface{}, err interface{}) *Repository_Rollback_Call
- func (_e *Repository_Expecter) WithTransaction(ctx interface{}) *Repository_WithTransaction_Call
 
- type Repository_Rollback_Call
- func (_c *Repository_Rollback_Call) Return(_a0 error) *Repository_Rollback_Call
- func (_c *Repository_Rollback_Call) Run(run func(ctx context.Context, err error)) *Repository_Rollback_Call
- func (_c *Repository_Rollback_Call) RunAndReturn(run func(context.Context, error) error) *Repository_Rollback_Call
 
- type Repository_WithTransaction_Call
- func (_c *Repository_WithTransaction_Call) Return(_a0 context.Context) *Repository_WithTransaction_Call
- func (_c *Repository_WithTransaction_Call) Run(run func(ctx context.Context)) *Repository_WithTransaction_Call
- func (_c *Repository_WithTransaction_Call) RunAndReturn(run func(context.Context) context.Context) *Repository_WithTransaction_Call
 
- type ResourceService
- type ResourceService_Create_Call
- func (_c *ResourceService_Create_Call) Return(_a0 resource.Resource, _a1 error) *ResourceService_Create_Call
- func (_c *ResourceService_Create_Call) Run(run func(ctx context.Context, res resource.Resource)) *ResourceService_Create_Call
- func (_c *ResourceService_Create_Call) RunAndReturn(run func(context.Context, resource.Resource) (resource.Resource, error)) *ResourceService_Create_Call
 
- type ResourceService_Expecter
- type UserService
- type UserService_Expecter
- type UserService_FetchCurrentUser_Call
- func (_c *UserService_FetchCurrentUser_Call) Return(_a0 user.User, _a1 error) *UserService_FetchCurrentUser_Call
- func (_c *UserService_FetchCurrentUser_Call) Run(run func(ctx context.Context)) *UserService_FetchCurrentUser_Call
- func (_c *UserService_FetchCurrentUser_Call) RunAndReturn(run func(context.Context) (user.User, error)) *UserService_FetchCurrentUser_Call
 
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProjectService ¶
ProjectService is an autogenerated mock type for the ProjectService type
func NewProjectService ¶
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 ¶
func (_m *ProjectService) EXPECT() *ProjectService_Expecter
type ProjectService_Expecter ¶
type ProjectService_Expecter struct {
	// contains filtered or unexported fields
}
    func (*ProjectService_Expecter) Get ¶
func (_e *ProjectService_Expecter) Get(ctx interface{}, idOrSlug interface{}) *ProjectService_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- idOrSlug string
type ProjectService_Get_Call ¶
ProjectService_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*ProjectService_Get_Call) Return ¶
func (_c *ProjectService_Get_Call) Return(_a0 project.Project, _a1 error) *ProjectService_Get_Call
func (*ProjectService_Get_Call) Run ¶
func (_c *ProjectService_Get_Call) Run(run func(ctx context.Context, idOrSlug string)) *ProjectService_Get_Call
func (*ProjectService_Get_Call) RunAndReturn ¶
func (_c *ProjectService_Get_Call) RunAndReturn(run func(context.Context, string) (project.Project, error)) *ProjectService_Get_Call
type RelationService ¶
RelationService is an autogenerated mock type for the RelationService type
func NewRelationService ¶
func NewRelationService(t interface {
	mock.TestingT
	Cleanup(func())
}) *RelationService
    NewRelationService creates a new instance of RelationService. 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 (*RelationService) Create ¶
func (_m *RelationService) Create(ctx context.Context, rel relation.RelationV2) (relation.RelationV2, error)
Create provides a mock function with given fields: ctx, rel
func (*RelationService) EXPECT ¶
func (_m *RelationService) EXPECT() *RelationService_Expecter
type RelationService_Create_Call ¶
RelationService_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*RelationService_Create_Call) Return ¶
func (_c *RelationService_Create_Call) Return(_a0 relation.RelationV2, _a1 error) *RelationService_Create_Call
func (*RelationService_Create_Call) Run ¶
func (_c *RelationService_Create_Call) Run(run func(ctx context.Context, rel relation.RelationV2)) *RelationService_Create_Call
func (*RelationService_Create_Call) RunAndReturn ¶
func (_c *RelationService_Create_Call) RunAndReturn(run func(context.Context, relation.RelationV2) (relation.RelationV2, error)) *RelationService_Create_Call
type RelationService_Expecter ¶
type RelationService_Expecter struct {
	// contains filtered or unexported fields
}
    func (*RelationService_Expecter) Create ¶
func (_e *RelationService_Expecter) Create(ctx interface{}, rel interface{}) *RelationService_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- rel relation.RelationV2
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) Commit ¶
func (_m *Repository) Commit(ctx context.Context) error
Commit provides a mock function with given fields: ctx
func (*Repository) CreateKey ¶
func (_m *Repository) CreateKey(ctx context.Context, key servicedata.Key) (servicedata.Key, error)
CreateKey provides a mock function with given fields: ctx, key
func (*Repository) EXPECT ¶
func (_m *Repository) EXPECT() *Repository_Expecter
func (*Repository) Rollback ¶
func (_m *Repository) Rollback(ctx context.Context, err error) error
Rollback provides a mock function with given fields: ctx, err
func (*Repository) WithTransaction ¶
func (_m *Repository) WithTransaction(ctx context.Context) context.Context
WithTransaction provides a mock function with given fields: ctx
type Repository_Commit_Call ¶
Repository_Commit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Commit'
func (*Repository_Commit_Call) Return ¶
func (_c *Repository_Commit_Call) Return(_a0 error) *Repository_Commit_Call
func (*Repository_Commit_Call) Run ¶
func (_c *Repository_Commit_Call) Run(run func(ctx context.Context)) *Repository_Commit_Call
func (*Repository_Commit_Call) RunAndReturn ¶
func (_c *Repository_Commit_Call) RunAndReturn(run func(context.Context) error) *Repository_Commit_Call
type Repository_CreateKey_Call ¶
Repository_CreateKey_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateKey'
func (*Repository_CreateKey_Call) Return ¶
func (_c *Repository_CreateKey_Call) Return(_a0 servicedata.Key, _a1 error) *Repository_CreateKey_Call
func (*Repository_CreateKey_Call) Run ¶
func (_c *Repository_CreateKey_Call) Run(run func(ctx context.Context, key servicedata.Key)) *Repository_CreateKey_Call
func (*Repository_CreateKey_Call) RunAndReturn ¶
func (_c *Repository_CreateKey_Call) RunAndReturn(run func(context.Context, servicedata.Key) (servicedata.Key, error)) *Repository_CreateKey_Call
type Repository_Expecter ¶
type Repository_Expecter struct {
	// contains filtered or unexported fields
}
    func (*Repository_Expecter) Commit ¶
func (_e *Repository_Expecter) Commit(ctx interface{}) *Repository_Commit_Call
Commit is a helper method to define mock.On call
- ctx context.Context
func (*Repository_Expecter) CreateKey ¶
func (_e *Repository_Expecter) CreateKey(ctx interface{}, key interface{}) *Repository_CreateKey_Call
CreateKey is a helper method to define mock.On call
- ctx context.Context
- key servicedata.Key
func (*Repository_Expecter) Rollback ¶
func (_e *Repository_Expecter) Rollback(ctx interface{}, err interface{}) *Repository_Rollback_Call
Rollback is a helper method to define mock.On call
- ctx context.Context
- err error
func (*Repository_Expecter) WithTransaction ¶
func (_e *Repository_Expecter) WithTransaction(ctx interface{}) *Repository_WithTransaction_Call
WithTransaction is a helper method to define mock.On call
- ctx context.Context
type Repository_Rollback_Call ¶
Repository_Rollback_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Rollback'
func (*Repository_Rollback_Call) Return ¶
func (_c *Repository_Rollback_Call) Return(_a0 error) *Repository_Rollback_Call
func (*Repository_Rollback_Call) Run ¶
func (_c *Repository_Rollback_Call) Run(run func(ctx context.Context, err error)) *Repository_Rollback_Call
func (*Repository_Rollback_Call) RunAndReturn ¶
func (_c *Repository_Rollback_Call) RunAndReturn(run func(context.Context, error) error) *Repository_Rollback_Call
type Repository_WithTransaction_Call ¶
Repository_WithTransaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithTransaction'
func (*Repository_WithTransaction_Call) Return ¶
func (_c *Repository_WithTransaction_Call) Return(_a0 context.Context) *Repository_WithTransaction_Call
func (*Repository_WithTransaction_Call) Run ¶
func (_c *Repository_WithTransaction_Call) Run(run func(ctx context.Context)) *Repository_WithTransaction_Call
func (*Repository_WithTransaction_Call) RunAndReturn ¶
func (_c *Repository_WithTransaction_Call) RunAndReturn(run func(context.Context) context.Context) *Repository_WithTransaction_Call
type ResourceService ¶
ResourceService is an autogenerated mock type for the ResourceService type
func NewResourceService ¶
func NewResourceService(t interface {
	mock.TestingT
	Cleanup(func())
}) *ResourceService
    NewResourceService creates a new instance of ResourceService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*ResourceService) Create ¶
func (_m *ResourceService) Create(ctx context.Context, res resource.Resource) (resource.Resource, error)
Create provides a mock function with given fields: ctx, res
func (*ResourceService) EXPECT ¶
func (_m *ResourceService) EXPECT() *ResourceService_Expecter
type ResourceService_Create_Call ¶
ResourceService_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*ResourceService_Create_Call) Return ¶
func (_c *ResourceService_Create_Call) Return(_a0 resource.Resource, _a1 error) *ResourceService_Create_Call
func (*ResourceService_Create_Call) Run ¶
func (_c *ResourceService_Create_Call) Run(run func(ctx context.Context, res resource.Resource)) *ResourceService_Create_Call
func (*ResourceService_Create_Call) RunAndReturn ¶
func (_c *ResourceService_Create_Call) RunAndReturn(run func(context.Context, resource.Resource) (resource.Resource, error)) *ResourceService_Create_Call
type ResourceService_Expecter ¶
type ResourceService_Expecter struct {
	// contains filtered or unexported fields
}
    func (*ResourceService_Expecter) Create ¶
func (_e *ResourceService_Expecter) Create(ctx interface{}, res interface{}) *ResourceService_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- res resource.Resource
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
func (*UserService) FetchCurrentUser ¶
FetchCurrentUser provides a mock function with given fields: ctx
type UserService_Expecter ¶
type UserService_Expecter struct {
	// contains filtered or unexported fields
}
    func (*UserService_Expecter) FetchCurrentUser ¶
func (_e *UserService_Expecter) FetchCurrentUser(ctx interface{}) *UserService_FetchCurrentUser_Call
FetchCurrentUser is a helper method to define mock.On call
- ctx context.Context
type UserService_FetchCurrentUser_Call ¶
UserService_FetchCurrentUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FetchCurrentUser'
func (*UserService_FetchCurrentUser_Call) Return ¶
func (_c *UserService_FetchCurrentUser_Call) Return(_a0 user.User, _a1 error) *UserService_FetchCurrentUser_Call
func (*UserService_FetchCurrentUser_Call) Run ¶
func (_c *UserService_FetchCurrentUser_Call) Run(run func(ctx context.Context)) *UserService_FetchCurrentUser_Call
func (*UserService_FetchCurrentUser_Call) RunAndReturn ¶
func (_c *UserService_FetchCurrentUser_Call) RunAndReturn(run func(context.Context) (user.User, error)) *UserService_FetchCurrentUser_Call