Documentation
¶
Index ¶
- type AuthnService
- type AuthnService_Expecter
- type AuthnService_GetPrincipal_Call
- func (_c *AuthnService_GetPrincipal_Call) Return(_a0 authenticate.Principal, _a1 error) *AuthnService_GetPrincipal_Call
- func (_c *AuthnService_GetPrincipal_Call) Run(run func(ctx context.Context, via ...authenticate.ClientAssertion)) *AuthnService_GetPrincipal_Call
- func (_c *AuthnService_GetPrincipal_Call) RunAndReturn(...) *AuthnService_GetPrincipal_Call
- type MembershipService
- func (_m *MembershipService) EXPECT() *MembershipService_Expecter
- func (_m *MembershipService) ListProjectsByPrincipal(ctx context.Context, principal authenticate.Principal, orgID string, ...) ([]string, error)
- func (_m *MembershipService) OnProjectCreated(ctx context.Context, projectID string, orgID string, creatorID string, ...) error
- type MembershipService_Expecter
- func (_e *MembershipService_Expecter) ListProjectsByPrincipal(ctx interface{}, principal interface{}, orgID interface{}, ...) *MembershipService_ListProjectsByPrincipal_Call
- func (_e *MembershipService_Expecter) OnProjectCreated(ctx interface{}, projectID interface{}, orgID interface{}, ...) *MembershipService_OnProjectCreated_Call
- type MembershipService_ListProjectsByPrincipal_Call
- func (_c *MembershipService_ListProjectsByPrincipal_Call) Return(_a0 []string, _a1 error) *MembershipService_ListProjectsByPrincipal_Call
- func (_c *MembershipService_ListProjectsByPrincipal_Call) Run(...) *MembershipService_ListProjectsByPrincipal_Call
- func (_c *MembershipService_ListProjectsByPrincipal_Call) RunAndReturn(...) *MembershipService_ListProjectsByPrincipal_Call
- type MembershipService_OnProjectCreated_Call
- func (_c *MembershipService_OnProjectCreated_Call) Return(_a0 error) *MembershipService_OnProjectCreated_Call
- func (_c *MembershipService_OnProjectCreated_Call) Run(...) *MembershipService_OnProjectCreated_Call
- func (_c *MembershipService_OnProjectCreated_Call) RunAndReturn(run func(context.Context, string, string, string, string) error) *MembershipService_OnProjectCreated_Call
- type PolicyService
- type PolicyService_Expecter
- type PolicyService_ProjectMemberCount_Call
- func (_c *PolicyService_ProjectMemberCount_Call) Return(_a0 []policy.MemberCount, _a1 error) *PolicyService_ProjectMemberCount_Call
- func (_c *PolicyService_ProjectMemberCount_Call) Run(run func(ctx context.Context, ids []string)) *PolicyService_ProjectMemberCount_Call
- func (_c *PolicyService_ProjectMemberCount_Call) RunAndReturn(run func(context.Context, []string) ([]policy.MemberCount, error)) *PolicyService_ProjectMemberCount_Call
- type RelationService
- type RelationService_Delete_Call
- func (_c *RelationService_Delete_Call) Return(_a0 error) *RelationService_Delete_Call
- func (_c *RelationService_Delete_Call) Run(run func(ctx context.Context, rel relation.Relation)) *RelationService_Delete_Call
- func (_c *RelationService_Delete_Call) RunAndReturn(run func(context.Context, relation.Relation) error) *RelationService_Delete_Call
- type RelationService_Expecter
- type Repository
- func (_m *Repository) Create(ctx context.Context, org project.Project) (project.Project, 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) (project.Project, error)
- func (_m *Repository) GetByName(ctx context.Context, slug string) (project.Project, error)
- func (_m *Repository) List(ctx context.Context, f project.Filter) ([]project.Project, error)
- func (_m *Repository) SetState(ctx context.Context, id string, state project.State) error
- func (_m *Repository) UpdateByID(ctx context.Context, toUpdate project.Project) (project.Project, error)
- func (_m *Repository) UpdateByName(ctx context.Context, toUpdate project.Project) (project.Project, error)
- type Repository_Create_Call
- func (_c *Repository_Create_Call) Return(_a0 project.Project, _a1 error) *Repository_Create_Call
- func (_c *Repository_Create_Call) Run(run func(ctx context.Context, org project.Project)) *Repository_Create_Call
- func (_c *Repository_Create_Call) RunAndReturn(run func(context.Context, project.Project) (project.Project, error)) *Repository_Create_Call
- type Repository_Delete_Call
- type Repository_Expecter
- func (_e *Repository_Expecter) Create(ctx interface{}, org 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) GetByName(ctx interface{}, slug interface{}) *Repository_GetByName_Call
- func (_e *Repository_Expecter) List(ctx interface{}, f interface{}) *Repository_List_Call
- func (_e *Repository_Expecter) SetState(ctx interface{}, id interface{}, state interface{}) *Repository_SetState_Call
- func (_e *Repository_Expecter) UpdateByID(ctx interface{}, toUpdate interface{}) *Repository_UpdateByID_Call
- func (_e *Repository_Expecter) UpdateByName(ctx interface{}, toUpdate interface{}) *Repository_UpdateByName_Call
- type Repository_GetByID_Call
- func (_c *Repository_GetByID_Call) Return(_a0 project.Project, _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) (project.Project, error)) *Repository_GetByID_Call
- type Repository_GetByName_Call
- func (_c *Repository_GetByName_Call) Return(_a0 project.Project, _a1 error) *Repository_GetByName_Call
- func (_c *Repository_GetByName_Call) Run(run func(ctx context.Context, slug string)) *Repository_GetByName_Call
- func (_c *Repository_GetByName_Call) RunAndReturn(run func(context.Context, string) (project.Project, error)) *Repository_GetByName_Call
- type Repository_List_Call
- func (_c *Repository_List_Call) Return(_a0 []project.Project, _a1 error) *Repository_List_Call
- func (_c *Repository_List_Call) Run(run func(ctx context.Context, f project.Filter)) *Repository_List_Call
- func (_c *Repository_List_Call) RunAndReturn(run func(context.Context, project.Filter) ([]project.Project, error)) *Repository_List_Call
- type Repository_SetState_Call
- func (_c *Repository_SetState_Call) Return(_a0 error) *Repository_SetState_Call
- func (_c *Repository_SetState_Call) Run(run func(ctx context.Context, id string, state project.State)) *Repository_SetState_Call
- func (_c *Repository_SetState_Call) RunAndReturn(run func(context.Context, string, project.State) error) *Repository_SetState_Call
- type Repository_UpdateByID_Call
- func (_c *Repository_UpdateByID_Call) Return(_a0 project.Project, _a1 error) *Repository_UpdateByID_Call
- func (_c *Repository_UpdateByID_Call) Run(run func(ctx context.Context, toUpdate project.Project)) *Repository_UpdateByID_Call
- func (_c *Repository_UpdateByID_Call) RunAndReturn(run func(context.Context, project.Project) (project.Project, error)) *Repository_UpdateByID_Call
- type Repository_UpdateByName_Call
- func (_c *Repository_UpdateByName_Call) Return(_a0 project.Project, _a1 error) *Repository_UpdateByName_Call
- func (_c *Repository_UpdateByName_Call) Run(run func(ctx context.Context, toUpdate project.Project)) *Repository_UpdateByName_Call
- func (_c *Repository_UpdateByName_Call) RunAndReturn(run func(context.Context, project.Project) (project.Project, error)) *Repository_UpdateByName_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthnService ¶
AuthnService is an autogenerated mock type for the AuthnService type
func NewAuthnService ¶
func NewAuthnService(t interface {
mock.TestingT
Cleanup(func())
}) *AuthnService
NewAuthnService creates a new instance of AuthnService. 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 (*AuthnService) EXPECT ¶
func (_m *AuthnService) EXPECT() *AuthnService_Expecter
func (*AuthnService) GetPrincipal ¶
func (_m *AuthnService) GetPrincipal(ctx context.Context, via ...authenticate.ClientAssertion) (authenticate.Principal, error)
GetPrincipal provides a mock function with given fields: ctx, via
type AuthnService_Expecter ¶
type AuthnService_Expecter struct {
// contains filtered or unexported fields
}
func (*AuthnService_Expecter) GetPrincipal ¶
func (_e *AuthnService_Expecter) GetPrincipal(ctx interface{}, via ...interface{}) *AuthnService_GetPrincipal_Call
GetPrincipal is a helper method to define mock.On call
- ctx context.Context
- via ...authenticate.ClientAssertion
type AuthnService_GetPrincipal_Call ¶
AuthnService_GetPrincipal_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPrincipal'
func (*AuthnService_GetPrincipal_Call) Return ¶
func (_c *AuthnService_GetPrincipal_Call) Return(_a0 authenticate.Principal, _a1 error) *AuthnService_GetPrincipal_Call
func (*AuthnService_GetPrincipal_Call) Run ¶
func (_c *AuthnService_GetPrincipal_Call) Run(run func(ctx context.Context, via ...authenticate.ClientAssertion)) *AuthnService_GetPrincipal_Call
func (*AuthnService_GetPrincipal_Call) RunAndReturn ¶
func (_c *AuthnService_GetPrincipal_Call) RunAndReturn(run func(context.Context, ...authenticate.ClientAssertion) (authenticate.Principal, error)) *AuthnService_GetPrincipal_Call
type MembershipService ¶ added in v0.104.0
MembershipService is an autogenerated mock type for the MembershipService type
func NewMembershipService ¶ added in v0.104.0
func NewMembershipService(t interface {
mock.TestingT
Cleanup(func())
}) *MembershipService
NewMembershipService creates a new instance of MembershipService. 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 (*MembershipService) EXPECT ¶ added in v0.104.0
func (_m *MembershipService) EXPECT() *MembershipService_Expecter
func (*MembershipService) ListProjectsByPrincipal ¶ added in v0.104.0
func (_m *MembershipService) ListProjectsByPrincipal(ctx context.Context, principal authenticate.Principal, orgID string, nonInherited bool) ([]string, error)
ListProjectsByPrincipal provides a mock function with given fields: ctx, principal, orgID, nonInherited
func (*MembershipService) OnProjectCreated ¶ added in v0.114.0
func (_m *MembershipService) OnProjectCreated(ctx context.Context, projectID string, orgID string, creatorID string, creatorType string) error
OnProjectCreated provides a mock function with given fields: ctx, projectID, orgID, creatorID, creatorType
type MembershipService_Expecter ¶ added in v0.104.0
type MembershipService_Expecter struct {
// contains filtered or unexported fields
}
func (*MembershipService_Expecter) ListProjectsByPrincipal ¶ added in v0.104.0
func (_e *MembershipService_Expecter) ListProjectsByPrincipal(ctx interface{}, principal interface{}, orgID interface{}, nonInherited interface{}) *MembershipService_ListProjectsByPrincipal_Call
ListProjectsByPrincipal is a helper method to define mock.On call
- ctx context.Context
- principal authenticate.Principal
- orgID string
- nonInherited bool
func (*MembershipService_Expecter) OnProjectCreated ¶ added in v0.114.0
func (_e *MembershipService_Expecter) OnProjectCreated(ctx interface{}, projectID interface{}, orgID interface{}, creatorID interface{}, creatorType interface{}) *MembershipService_OnProjectCreated_Call
OnProjectCreated is a helper method to define mock.On call
- ctx context.Context
- projectID string
- orgID string
- creatorID string
- creatorType string
type MembershipService_ListProjectsByPrincipal_Call ¶ added in v0.104.0
MembershipService_ListProjectsByPrincipal_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListProjectsByPrincipal'
func (*MembershipService_ListProjectsByPrincipal_Call) Return ¶ added in v0.104.0
func (_c *MembershipService_ListProjectsByPrincipal_Call) Return(_a0 []string, _a1 error) *MembershipService_ListProjectsByPrincipal_Call
func (*MembershipService_ListProjectsByPrincipal_Call) Run ¶ added in v0.104.0
func (_c *MembershipService_ListProjectsByPrincipal_Call) Run(run func(ctx context.Context, principal authenticate.Principal, orgID string, nonInherited bool)) *MembershipService_ListProjectsByPrincipal_Call
func (*MembershipService_ListProjectsByPrincipal_Call) RunAndReturn ¶ added in v0.104.0
func (_c *MembershipService_ListProjectsByPrincipal_Call) RunAndReturn(run func(context.Context, authenticate.Principal, string, bool) ([]string, error)) *MembershipService_ListProjectsByPrincipal_Call
type MembershipService_OnProjectCreated_Call ¶ added in v0.114.0
MembershipService_OnProjectCreated_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnProjectCreated'
func (*MembershipService_OnProjectCreated_Call) Return ¶ added in v0.114.0
func (_c *MembershipService_OnProjectCreated_Call) Return(_a0 error) *MembershipService_OnProjectCreated_Call
func (*MembershipService_OnProjectCreated_Call) Run ¶ added in v0.114.0
func (_c *MembershipService_OnProjectCreated_Call) Run(run func(ctx context.Context, projectID string, orgID string, creatorID string, creatorType string)) *MembershipService_OnProjectCreated_Call
func (*MembershipService_OnProjectCreated_Call) RunAndReturn ¶ added in v0.114.0
func (_c *MembershipService_OnProjectCreated_Call) RunAndReturn(run func(context.Context, string, string, string, string) error) *MembershipService_OnProjectCreated_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) EXPECT ¶
func (_m *PolicyService) EXPECT() *PolicyService_Expecter
func (*PolicyService) ProjectMemberCount ¶
func (_m *PolicyService) ProjectMemberCount(ctx context.Context, ids []string) ([]policy.MemberCount, error)
ProjectMemberCount provides a mock function with given fields: ctx, ids
type PolicyService_Expecter ¶
type PolicyService_Expecter struct {
// contains filtered or unexported fields
}
func (*PolicyService_Expecter) ProjectMemberCount ¶
func (_e *PolicyService_Expecter) ProjectMemberCount(ctx interface{}, ids interface{}) *PolicyService_ProjectMemberCount_Call
ProjectMemberCount is a helper method to define mock.On call
- ctx context.Context
- ids []string
type PolicyService_ProjectMemberCount_Call ¶
PolicyService_ProjectMemberCount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ProjectMemberCount'
func (*PolicyService_ProjectMemberCount_Call) Return ¶
func (_c *PolicyService_ProjectMemberCount_Call) Return(_a0 []policy.MemberCount, _a1 error) *PolicyService_ProjectMemberCount_Call
func (*PolicyService_ProjectMemberCount_Call) Run ¶
func (_c *PolicyService_ProjectMemberCount_Call) Run(run func(ctx context.Context, ids []string)) *PolicyService_ProjectMemberCount_Call
func (*PolicyService_ProjectMemberCount_Call) RunAndReturn ¶
func (_c *PolicyService_ProjectMemberCount_Call) RunAndReturn(run func(context.Context, []string) ([]policy.MemberCount, error)) *PolicyService_ProjectMemberCount_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) EXPECT ¶
func (_m *RelationService) EXPECT() *RelationService_Expecter
type RelationService_Delete_Call ¶
RelationService_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*RelationService_Delete_Call) Return ¶
func (_c *RelationService_Delete_Call) Return(_a0 error) *RelationService_Delete_Call
func (*RelationService_Delete_Call) Run ¶
func (_c *RelationService_Delete_Call) Run(run func(ctx context.Context, rel relation.Relation)) *RelationService_Delete_Call
func (*RelationService_Delete_Call) RunAndReturn ¶
func (_c *RelationService_Delete_Call) RunAndReturn(run func(context.Context, relation.Relation) error) *RelationService_Delete_Call
type RelationService_Expecter ¶
type RelationService_Expecter struct {
// contains filtered or unexported fields
}
func (*RelationService_Expecter) Delete ¶
func (_e *RelationService_Expecter) Delete(ctx interface{}, rel interface{}) *RelationService_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- rel relation.Relation
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) Delete ¶
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) UpdateByID ¶
func (_m *Repository) UpdateByID(ctx context.Context, toUpdate project.Project) (project.Project, error)
UpdateByID provides a mock function with given fields: ctx, toUpdate
func (*Repository) UpdateByName ¶
func (_m *Repository) UpdateByName(ctx context.Context, toUpdate project.Project) (project.Project, error)
UpdateByName provides a mock function with given fields: ctx, toUpdate
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 project.Project, _a1 error) *Repository_Create_Call
func (*Repository_Create_Call) Run ¶
func (_c *Repository_Create_Call) Run(run func(ctx context.Context, org project.Project)) *Repository_Create_Call
func (*Repository_Create_Call) RunAndReturn ¶
func (_c *Repository_Create_Call) RunAndReturn(run func(context.Context, project.Project) (project.Project, error)) *Repository_Create_Call
type Repository_Delete_Call ¶
Repository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*Repository_Delete_Call) Return ¶
func (_c *Repository_Delete_Call) Return(_a0 error) *Repository_Delete_Call
func (*Repository_Delete_Call) Run ¶
func (_c *Repository_Delete_Call) Run(run func(ctx context.Context, id string)) *Repository_Delete_Call
func (*Repository_Delete_Call) RunAndReturn ¶
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) Create ¶
func (_e *Repository_Expecter) Create(ctx interface{}, org interface{}) *Repository_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- org project.Project
func (*Repository_Expecter) Delete ¶
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 ¶
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) GetByName ¶
func (_e *Repository_Expecter) GetByName(ctx interface{}, slug interface{}) *Repository_GetByName_Call
GetByName is a helper method to define mock.On call
- ctx context.Context
- slug string
func (*Repository_Expecter) List ¶
func (_e *Repository_Expecter) List(ctx interface{}, f interface{}) *Repository_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- f project.Filter
func (*Repository_Expecter) SetState ¶
func (_e *Repository_Expecter) SetState(ctx interface{}, id interface{}, state interface{}) *Repository_SetState_Call
SetState is a helper method to define mock.On call
- ctx context.Context
- id string
- state project.State
func (*Repository_Expecter) UpdateByID ¶
func (_e *Repository_Expecter) UpdateByID(ctx interface{}, toUpdate interface{}) *Repository_UpdateByID_Call
UpdateByID is a helper method to define mock.On call
- ctx context.Context
- toUpdate project.Project
func (*Repository_Expecter) UpdateByName ¶
func (_e *Repository_Expecter) UpdateByName(ctx interface{}, toUpdate interface{}) *Repository_UpdateByName_Call
UpdateByName is a helper method to define mock.On call
- ctx context.Context
- toUpdate project.Project
type Repository_GetByID_Call ¶
Repository_GetByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByID'
func (*Repository_GetByID_Call) Return ¶
func (_c *Repository_GetByID_Call) Return(_a0 project.Project, _a1 error) *Repository_GetByID_Call
func (*Repository_GetByID_Call) Run ¶
func (_c *Repository_GetByID_Call) Run(run func(ctx context.Context, id string)) *Repository_GetByID_Call
func (*Repository_GetByID_Call) RunAndReturn ¶
func (_c *Repository_GetByID_Call) RunAndReturn(run func(context.Context, string) (project.Project, error)) *Repository_GetByID_Call
type Repository_GetByName_Call ¶
Repository_GetByName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByName'
func (*Repository_GetByName_Call) Return ¶
func (_c *Repository_GetByName_Call) Return(_a0 project.Project, _a1 error) *Repository_GetByName_Call
func (*Repository_GetByName_Call) Run ¶
func (_c *Repository_GetByName_Call) Run(run func(ctx context.Context, slug string)) *Repository_GetByName_Call
func (*Repository_GetByName_Call) RunAndReturn ¶
func (_c *Repository_GetByName_Call) RunAndReturn(run func(context.Context, string) (project.Project, error)) *Repository_GetByName_Call
type Repository_List_Call ¶
Repository_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*Repository_List_Call) Return ¶
func (_c *Repository_List_Call) Return(_a0 []project.Project, _a1 error) *Repository_List_Call
func (*Repository_List_Call) Run ¶
func (_c *Repository_List_Call) Run(run func(ctx context.Context, f project.Filter)) *Repository_List_Call
func (*Repository_List_Call) RunAndReturn ¶
func (_c *Repository_List_Call) RunAndReturn(run func(context.Context, project.Filter) ([]project.Project, error)) *Repository_List_Call
type Repository_SetState_Call ¶
Repository_SetState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetState'
func (*Repository_SetState_Call) Return ¶
func (_c *Repository_SetState_Call) Return(_a0 error) *Repository_SetState_Call
func (*Repository_SetState_Call) Run ¶
func (_c *Repository_SetState_Call) Run(run func(ctx context.Context, id string, state project.State)) *Repository_SetState_Call
func (*Repository_SetState_Call) RunAndReturn ¶
func (_c *Repository_SetState_Call) RunAndReturn(run func(context.Context, string, project.State) error) *Repository_SetState_Call
type Repository_UpdateByID_Call ¶
Repository_UpdateByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateByID'
func (*Repository_UpdateByID_Call) Return ¶
func (_c *Repository_UpdateByID_Call) Return(_a0 project.Project, _a1 error) *Repository_UpdateByID_Call
func (*Repository_UpdateByID_Call) Run ¶
func (_c *Repository_UpdateByID_Call) Run(run func(ctx context.Context, toUpdate project.Project)) *Repository_UpdateByID_Call
func (*Repository_UpdateByID_Call) RunAndReturn ¶
func (_c *Repository_UpdateByID_Call) RunAndReturn(run func(context.Context, project.Project) (project.Project, error)) *Repository_UpdateByID_Call
type Repository_UpdateByName_Call ¶
Repository_UpdateByName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateByName'
func (*Repository_UpdateByName_Call) Return ¶
func (_c *Repository_UpdateByName_Call) Return(_a0 project.Project, _a1 error) *Repository_UpdateByName_Call
func (*Repository_UpdateByName_Call) Run ¶
func (_c *Repository_UpdateByName_Call) Run(run func(ctx context.Context, toUpdate project.Project)) *Repository_UpdateByName_Call
func (*Repository_UpdateByName_Call) RunAndReturn ¶
func (_c *Repository_UpdateByName_Call) RunAndReturn(run func(context.Context, project.Project) (project.Project, error)) *Repository_UpdateByName_Call