Documentation ¶
Overview ¶
Package mock_repositories is a generated GoMock package.
Index ¶
- type MockRepositoryService
- func (m *MockRepositoryService) CreateRepository(ctx context.Context, provider *db.Provider, projectID uuid.UUID, ...) (*v1.Repository, error)
- func (m *MockRepositoryService) DeleteByID(ctx context.Context, repoID, projectID uuid.UUID) error
- func (m *MockRepositoryService) DeleteByName(ctx context.Context, repoOwner, repoName string, projectID uuid.UUID, ...) error
- func (m *MockRepositoryService) EXPECT() *MockRepositoryServiceMockRecorder
- func (m *MockRepositoryService) GetRepositoryById(ctx context.Context, repositoryID, projectID uuid.UUID) (db.Repository, error)
- func (m *MockRepositoryService) GetRepositoryByName(ctx context.Context, repoOwner, repoName string, projectID uuid.UUID, ...) (db.Repository, error)
- func (m *MockRepositoryService) ListRepositories(ctx context.Context, projectID, providerID uuid.UUID) ([]*models.EntityWithProperties, error)
- type MockRepositoryServiceMockRecorder
- func (mr *MockRepositoryServiceMockRecorder) CreateRepository(ctx, provider, projectID, fetchByProps any) *gomock.Call
- func (mr *MockRepositoryServiceMockRecorder) DeleteByID(ctx, repoID, projectID any) *gomock.Call
- func (mr *MockRepositoryServiceMockRecorder) DeleteByName(ctx, repoOwner, repoName, projectID, providerName any) *gomock.Call
- func (mr *MockRepositoryServiceMockRecorder) GetRepositoryById(ctx, repositoryID, projectID any) *gomock.Call
- func (mr *MockRepositoryServiceMockRecorder) GetRepositoryByName(ctx, repoOwner, repoName, projectID, providerName any) *gomock.Call
- func (mr *MockRepositoryServiceMockRecorder) ListRepositories(ctx, projectID, providerID any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockRepositoryService ¶
type MockRepositoryService struct {
// contains filtered or unexported fields
}
MockRepositoryService is a mock of RepositoryService interface.
func NewMockRepositoryService ¶
func NewMockRepositoryService(ctrl *gomock.Controller) *MockRepositoryService
NewMockRepositoryService creates a new mock instance.
func (*MockRepositoryService) CreateRepository ¶
func (m *MockRepositoryService) CreateRepository(ctx context.Context, provider *db.Provider, projectID uuid.UUID, fetchByProps *properties.Properties) (*v1.Repository, error)
CreateRepository mocks base method.
func (*MockRepositoryService) DeleteByID ¶
DeleteByID mocks base method.
func (*MockRepositoryService) DeleteByName ¶
func (m *MockRepositoryService) DeleteByName(ctx context.Context, repoOwner, repoName string, projectID uuid.UUID, providerName string) error
DeleteByName mocks base method.
func (*MockRepositoryService) EXPECT ¶
func (m *MockRepositoryService) EXPECT() *MockRepositoryServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRepositoryService) GetRepositoryById ¶
func (m *MockRepositoryService) GetRepositoryById(ctx context.Context, repositoryID, projectID uuid.UUID) (db.Repository, error)
GetRepositoryById mocks base method.
func (*MockRepositoryService) GetRepositoryByName ¶
func (m *MockRepositoryService) GetRepositoryByName(ctx context.Context, repoOwner, repoName string, projectID uuid.UUID, providerName string) (db.Repository, error)
GetRepositoryByName mocks base method.
func (*MockRepositoryService) ListRepositories ¶
func (m *MockRepositoryService) ListRepositories(ctx context.Context, projectID, providerID uuid.UUID) ([]*models.EntityWithProperties, error)
ListRepositories mocks base method.
type MockRepositoryServiceMockRecorder ¶
type MockRepositoryServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockRepositoryServiceMockRecorder is the mock recorder for MockRepositoryService.
func (*MockRepositoryServiceMockRecorder) CreateRepository ¶
func (mr *MockRepositoryServiceMockRecorder) CreateRepository(ctx, provider, projectID, fetchByProps any) *gomock.Call
CreateRepository indicates an expected call of CreateRepository.
func (*MockRepositoryServiceMockRecorder) DeleteByID ¶
func (mr *MockRepositoryServiceMockRecorder) DeleteByID(ctx, repoID, projectID any) *gomock.Call
DeleteByID indicates an expected call of DeleteByID.
func (*MockRepositoryServiceMockRecorder) DeleteByName ¶
func (mr *MockRepositoryServiceMockRecorder) DeleteByName(ctx, repoOwner, repoName, projectID, providerName any) *gomock.Call
DeleteByName indicates an expected call of DeleteByName.
func (*MockRepositoryServiceMockRecorder) GetRepositoryById ¶
func (mr *MockRepositoryServiceMockRecorder) GetRepositoryById(ctx, repositoryID, projectID any) *gomock.Call
GetRepositoryById indicates an expected call of GetRepositoryById.
func (*MockRepositoryServiceMockRecorder) GetRepositoryByName ¶
func (mr *MockRepositoryServiceMockRecorder) GetRepositoryByName(ctx, repoOwner, repoName, projectID, providerName any) *gomock.Call
GetRepositoryByName indicates an expected call of GetRepositoryByName.
func (*MockRepositoryServiceMockRecorder) ListRepositories ¶
func (mr *MockRepositoryServiceMockRecorder) ListRepositories(ctx, projectID, providerID any) *gomock.Call
ListRepositories indicates an expected call of ListRepositories.