Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Index ¶
- type MockGithubOrgRepo
- func (m *MockGithubOrgRepo) EXPECT() *MockGithubOrgRepoMockRecorder
- func (m *MockGithubOrgRepo) GetGitHubOrganization(ctx context.Context, githubOrganizationName string) (*models.GithubOrganization, error)
- func (m *MockGithubOrgRepo) GetGitHubOrganizationByName(ctx context.Context, githubOrganizationName string) (*models.GithubOrganizations, error)
- func (m *MockGithubOrgRepo) GetGitHubOrganizations(ctx context.Context, projectSFID string) (*models.GithubOrganizations, error)
- type MockGithubOrgRepoMockRecorder
- func (mr *MockGithubOrgRepoMockRecorder) GetGitHubOrganization(ctx, githubOrganizationName interface{}) *gomock.Call
- func (mr *MockGithubOrgRepoMockRecorder) GetGitHubOrganizationByName(ctx, githubOrganizationName interface{}) *gomock.Call
- func (mr *MockGithubOrgRepoMockRecorder) GetGitHubOrganizations(ctx, projectSFID interface{}) *gomock.Call
- type MockRepositoryInterface
- func (m *MockRepositoryInterface) EXPECT() *MockRepositoryInterfaceMockRecorder
- func (m *MockRepositoryInterface) GitHubAddRepository(ctx context.Context, externalProjectID, projectSFID string, ...) (*models.GithubRepository, error)
- func (m *MockRepositoryInterface) GitHubDisableRepositoriesByProjectID(ctx context.Context, projectID string) error
- func (m *MockRepositoryInterface) GitHubDisableRepositoriesOfOrganization(ctx context.Context, externalProjectID, githubOrgName string) error
- func (*MockRepositoryInterface) GitHubDisableRepositoriesOfOrganizationParent(ctx context.Context, parentProjectSFID string, githubOrgName string) error
- func (m *MockRepositoryInterface) GitHubDisableRepository(ctx context.Context, repositoryID string) error
- func (m *MockRepositoryInterface) GitHubEnableRepository(ctx context.Context, repositoryID string) error
- func (m *MockRepositoryInterface) GitHubEnableRepositoryWithCLAGroupID(ctx context.Context, repositoryID, claGroupID string) error
- func (m *MockRepositoryInterface) GitHubGetCLAGroupRepositoriesGroupByOrgs(ctx context.Context, projectID string, enabled bool) ([]*models.GithubRepositoriesGroupByOrgs, error)
- func (m *MockRepositoryInterface) GitHubGetRepositoriesByCLAGroup(ctx context.Context, claGroup string, enabled bool) ([]*models.GithubRepository, error)
- func (m *MockRepositoryInterface) GitHubGetRepositoriesByOrganizationName(ctx context.Context, gitHubOrgName string) ([]*models.GithubRepository, error)
- func (m *MockRepositoryInterface) GitHubGetRepository(ctx context.Context, repositoryID string) (*models.GithubRepository, error)
- func (m *MockRepositoryInterface) GitHubGetRepositoryByExternalID(ctx context.Context, repositoryExternalID string) (*models.GithubRepository, error)
- func (m *MockRepositoryInterface) GitHubGetRepositoryByGithubID(ctx context.Context, externalID string, enabled bool) (*models.GithubRepository, error)
- func (m *MockRepositoryInterface) GitHubGetRepositoryByName(ctx context.Context, repositoryName string) (*models.GithubRepository, error)
- func (m *MockRepositoryInterface) GitHubListProjectRepositories(ctx context.Context, projectSFID string, enabled *bool) (*models.GithubListRepositories, error)
- func (m *MockRepositoryInterface) GitHubSetRemoteDeletedRepository(ctx context.Context, repositoryID string, isDeleted, wasCLAEnforced bool) error
- func (m *MockRepositoryInterface) GitHubUpdateClaGroupID(ctx context.Context, repositoryID, claGroupID string) error
- func (m *MockRepositoryInterface) GitHubUpdateRepository(ctx context.Context, repositoryID, projectSFID, parentProjectSFID string, ...) (*models.GithubRepository, error)
- type MockRepositoryInterfaceMockRecorder
- func (mr *MockRepositoryInterfaceMockRecorder) GitHubAddRepository(ctx, externalProjectID, projectSFID, input interface{}) *gomock.Call
- func (mr *MockRepositoryInterfaceMockRecorder) GitHubDisableRepositoriesByProjectID(ctx, projectID interface{}) *gomock.Call
- func (mr *MockRepositoryInterfaceMockRecorder) GitHubDisableRepositoriesOfOrganization(ctx, externalProjectID, githubOrgName interface{}) *gomock.Call
- func (mr *MockRepositoryInterfaceMockRecorder) GitHubDisableRepository(ctx, repositoryID interface{}) *gomock.Call
- func (mr *MockRepositoryInterfaceMockRecorder) GitHubEnableRepository(ctx, repositoryID interface{}) *gomock.Call
- func (mr *MockRepositoryInterfaceMockRecorder) GitHubEnableRepositoryWithCLAGroupID(ctx, repositoryID, claGroupID interface{}) *gomock.Call
- func (mr *MockRepositoryInterfaceMockRecorder) GitHubGetCLAGroupRepositoriesGroupByOrgs(ctx, projectID, enabled interface{}) *gomock.Call
- func (mr *MockRepositoryInterfaceMockRecorder) GitHubGetRepositoriesByCLAGroup(ctx, claGroup, enabled interface{}) *gomock.Call
- func (mr *MockRepositoryInterfaceMockRecorder) GitHubGetRepositoriesByOrganizationName(ctx, gitHubOrgName interface{}) *gomock.Call
- func (mr *MockRepositoryInterfaceMockRecorder) GitHubGetRepository(ctx, repositoryID interface{}) *gomock.Call
- func (mr *MockRepositoryInterfaceMockRecorder) GitHubGetRepositoryByExternalID(ctx, repositoryExternalID interface{}) *gomock.Call
- func (mr *MockRepositoryInterfaceMockRecorder) GitHubGetRepositoryByGithubID(ctx, externalID, enabled interface{}) *gomock.Call
- func (mr *MockRepositoryInterfaceMockRecorder) GitHubGetRepositoryByName(ctx, repositoryName interface{}) *gomock.Call
- func (mr *MockRepositoryInterfaceMockRecorder) GitHubListProjectRepositories(ctx, projectSFID, enabled interface{}) *gomock.Call
- func (mr *MockRepositoryInterfaceMockRecorder) GitHubSetRemoteDeletedRepository(ctx, repositoryID, isDeleted, wasCLAEnforced interface{}) *gomock.Call
- func (mr *MockRepositoryInterfaceMockRecorder) GitHubUpdateClaGroupID(ctx, repositoryID, claGroupID interface{}) *gomock.Call
- func (mr *MockRepositoryInterfaceMockRecorder) GitHubUpdateRepository(ctx, repositoryID, projectSFID, parentProjectSFID, input interface{}) *gomock.Call
- type MockService
- func (m *MockService) AddGithubRepository(ctx context.Context, externalProjectID string, ...) (*models.GithubRepository, error)
- func (m *MockService) DisableRepositoriesByProjectID(ctx context.Context, projectID string) (int, error)
- func (m *MockService) DisableRepository(ctx context.Context, repositoryID string) error
- func (m *MockService) EXPECT() *MockServiceMockRecorder
- func (m *MockService) EnableRepository(ctx context.Context, repositoryID string) error
- func (m *MockService) EnableRepositoryWithCLAGroupID(ctx context.Context, repositoryID, claGroupID string) error
- func (m *MockService) GetRepositoriesByCLAGroup(ctx context.Context, claGroupID string) ([]*models.GithubRepository, error)
- func (m *MockService) GetRepositoriesByOrganizationName(ctx context.Context, gitHubOrgName string) ([]*models.GithubRepository, error)
- func (m *MockService) GetRepository(ctx context.Context, repositoryID string) (*models.GithubRepository, error)
- func (m *MockService) GetRepositoryByExternalID(ctx context.Context, repositoryExternalID string) (*models.GithubRepository, error)
- func (m *MockService) GetRepositoryByName(ctx context.Context, repositoryName string) (*models.GithubRepository, error)
- func (m *MockService) GetRepositoryByProjectSFID(ctx context.Context, projectSFID string, enabled *bool) (*models.GithubListRepositories, error)
- func (m *MockService) ListProjectRepositories(ctx context.Context, externalProjectID string, enabled *bool) (*models.GithubListRepositories, error)
- func (m *MockService) UpdateClaGroupID(ctx context.Context, repositoryID, claGroupID string) error
- type MockServiceMockRecorder
- func (mr *MockServiceMockRecorder) AddGithubRepository(ctx, externalProjectID, input interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) DisableRepositoriesByProjectID(ctx, projectID interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) DisableRepository(ctx, repositoryID interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) EnableRepository(ctx, repositoryID interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) EnableRepositoryWithCLAGroupID(ctx, repositoryID, claGroupID interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) GetRepositoriesByCLAGroup(ctx, claGroupID interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) GetRepositoriesByOrganizationName(ctx, gitHubOrgName interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) GetRepository(ctx, repositoryID interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) GetRepositoryByExternalID(ctx, repositoryExternalID interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) GetRepositoryByName(ctx, repositoryName interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) GetRepositoryByProjectSFID(ctx, projectSFID, enabled interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) ListProjectRepositories(ctx, externalProjectID, enabled interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) UpdateClaGroupID(ctx, repositoryID, claGroupID interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockGithubOrgRepo ¶
type MockGithubOrgRepo struct {
// contains filtered or unexported fields
}
MockGithubOrgRepo is a mock of GithubOrgRepo interface.
func NewMockGithubOrgRepo ¶
func NewMockGithubOrgRepo(ctrl *gomock.Controller) *MockGithubOrgRepo
NewMockGithubOrgRepo creates a new mock instance.
func (*MockGithubOrgRepo) EXPECT ¶
func (m *MockGithubOrgRepo) EXPECT() *MockGithubOrgRepoMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockGithubOrgRepo) GetGitHubOrganization ¶
func (m *MockGithubOrgRepo) GetGitHubOrganization(ctx context.Context, githubOrganizationName string) (*models.GithubOrganization, error)
GetGitHubOrganization mocks base method.
func (*MockGithubOrgRepo) GetGitHubOrganizationByName ¶
func (m *MockGithubOrgRepo) GetGitHubOrganizationByName(ctx context.Context, githubOrganizationName string) (*models.GithubOrganizations, error)
GetGitHubOrganizationByName mocks base method.
func (*MockGithubOrgRepo) GetGitHubOrganizations ¶
func (m *MockGithubOrgRepo) GetGitHubOrganizations(ctx context.Context, projectSFID string) (*models.GithubOrganizations, error)
GetGitHubOrganizations mocks base method.
type MockGithubOrgRepoMockRecorder ¶
type MockGithubOrgRepoMockRecorder struct {
// contains filtered or unexported fields
}
MockGithubOrgRepoMockRecorder is the mock recorder for MockGithubOrgRepo.
func (*MockGithubOrgRepoMockRecorder) GetGitHubOrganization ¶
func (mr *MockGithubOrgRepoMockRecorder) GetGitHubOrganization(ctx, githubOrganizationName interface{}) *gomock.Call
GetGitHubOrganization indicates an expected call of GetGitHubOrganization.
func (*MockGithubOrgRepoMockRecorder) GetGitHubOrganizationByName ¶
func (mr *MockGithubOrgRepoMockRecorder) GetGitHubOrganizationByName(ctx, githubOrganizationName interface{}) *gomock.Call
GetGitHubOrganizationByName indicates an expected call of GetGitHubOrganizationByName.
func (*MockGithubOrgRepoMockRecorder) GetGitHubOrganizations ¶
func (mr *MockGithubOrgRepoMockRecorder) GetGitHubOrganizations(ctx, projectSFID interface{}) *gomock.Call
GetGitHubOrganizations indicates an expected call of GetGitHubOrganizations.
type MockRepositoryInterface ¶
type MockRepositoryInterface struct {
// contains filtered or unexported fields
}
MockRepositoryInterface is a mock of RepositoryInterface interface.
func NewMockRepositoryInterface ¶
func NewMockRepositoryInterface(ctrl *gomock.Controller) *MockRepositoryInterface
NewMockRepositoryInterface creates a new mock instance.
func (*MockRepositoryInterface) EXPECT ¶
func (m *MockRepositoryInterface) EXPECT() *MockRepositoryInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRepositoryInterface) GitHubAddRepository ¶
func (m *MockRepositoryInterface) GitHubAddRepository(ctx context.Context, externalProjectID, projectSFID string, input *models.GithubRepositoryInput) (*models.GithubRepository, error)
GitHubAddRepository mocks base method.
func (*MockRepositoryInterface) GitHubDisableRepositoriesByProjectID ¶
func (m *MockRepositoryInterface) GitHubDisableRepositoriesByProjectID(ctx context.Context, projectID string) error
GitHubDisableRepositoriesByProjectID mocks base method.
func (*MockRepositoryInterface) GitHubDisableRepositoriesOfOrganization ¶
func (m *MockRepositoryInterface) GitHubDisableRepositoriesOfOrganization(ctx context.Context, externalProjectID, githubOrgName string) error
GitHubDisableRepositoriesOfOrganization mocks base method.
func (*MockRepositoryInterface) GitHubDisableRepositoriesOfOrganizationParent ¶
func (*MockRepositoryInterface) GitHubDisableRepositoriesOfOrganizationParent(ctx context.Context, parentProjectSFID string, githubOrgName string) error
GitHubDisableRepositoriesOfOrganizationParent implements repositories.RepositoryInterface.
func (*MockRepositoryInterface) GitHubDisableRepository ¶
func (m *MockRepositoryInterface) GitHubDisableRepository(ctx context.Context, repositoryID string) error
GitHubDisableRepository mocks base method.
func (*MockRepositoryInterface) GitHubEnableRepository ¶
func (m *MockRepositoryInterface) GitHubEnableRepository(ctx context.Context, repositoryID string) error
GitHubEnableRepository mocks base method.
func (*MockRepositoryInterface) GitHubEnableRepositoryWithCLAGroupID ¶
func (m *MockRepositoryInterface) GitHubEnableRepositoryWithCLAGroupID(ctx context.Context, repositoryID, claGroupID string) error
GitHubEnableRepositoryWithCLAGroupID mocks base method.
func (*MockRepositoryInterface) GitHubGetCLAGroupRepositoriesGroupByOrgs ¶
func (m *MockRepositoryInterface) GitHubGetCLAGroupRepositoriesGroupByOrgs(ctx context.Context, projectID string, enabled bool) ([]*models.GithubRepositoriesGroupByOrgs, error)
GitHubGetCLAGroupRepositoriesGroupByOrgs mocks base method.
func (*MockRepositoryInterface) GitHubGetRepositoriesByCLAGroup ¶
func (m *MockRepositoryInterface) GitHubGetRepositoriesByCLAGroup(ctx context.Context, claGroup string, enabled bool) ([]*models.GithubRepository, error)
GitHubGetRepositoriesByCLAGroup mocks base method.
func (*MockRepositoryInterface) GitHubGetRepositoriesByOrganizationName ¶
func (m *MockRepositoryInterface) GitHubGetRepositoriesByOrganizationName(ctx context.Context, gitHubOrgName string) ([]*models.GithubRepository, error)
GitHubGetRepositoriesByOrganizationName mocks base method.
func (*MockRepositoryInterface) GitHubGetRepository ¶
func (m *MockRepositoryInterface) GitHubGetRepository(ctx context.Context, repositoryID string) (*models.GithubRepository, error)
GitHubGetRepository mocks base method.
func (*MockRepositoryInterface) GitHubGetRepositoryByExternalID ¶
func (m *MockRepositoryInterface) GitHubGetRepositoryByExternalID(ctx context.Context, repositoryExternalID string) (*models.GithubRepository, error)
GitHubGetRepositoryByExternalID mocks base method.
func (*MockRepositoryInterface) GitHubGetRepositoryByGithubID ¶
func (m *MockRepositoryInterface) GitHubGetRepositoryByGithubID(ctx context.Context, externalID string, enabled bool) (*models.GithubRepository, error)
GitHubGetRepositoryByGithubID mocks base method.
func (*MockRepositoryInterface) GitHubGetRepositoryByName ¶
func (m *MockRepositoryInterface) GitHubGetRepositoryByName(ctx context.Context, repositoryName string) (*models.GithubRepository, error)
GitHubGetRepositoryByName mocks base method.
func (*MockRepositoryInterface) GitHubListProjectRepositories ¶
func (m *MockRepositoryInterface) GitHubListProjectRepositories(ctx context.Context, projectSFID string, enabled *bool) (*models.GithubListRepositories, error)
GitHubListProjectRepositories mocks base method.
func (*MockRepositoryInterface) GitHubSetRemoteDeletedRepository ¶
func (m *MockRepositoryInterface) GitHubSetRemoteDeletedRepository(ctx context.Context, repositoryID string, isDeleted, wasCLAEnforced bool) error
GitHubSetRemoteDeletedRepository mocks base method.
func (*MockRepositoryInterface) GitHubUpdateClaGroupID ¶
func (m *MockRepositoryInterface) GitHubUpdateClaGroupID(ctx context.Context, repositoryID, claGroupID string) error
GitHubUpdateClaGroupID mocks base method.
func (*MockRepositoryInterface) GitHubUpdateRepository ¶
func (m *MockRepositoryInterface) GitHubUpdateRepository(ctx context.Context, repositoryID, projectSFID, parentProjectSFID string, input *models.GithubRepositoryInput) (*models.GithubRepository, error)
GitHubUpdateRepository mocks base method.
type MockRepositoryInterfaceMockRecorder ¶
type MockRepositoryInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockRepositoryInterfaceMockRecorder is the mock recorder for MockRepositoryInterface.
func (*MockRepositoryInterfaceMockRecorder) GitHubAddRepository ¶
func (mr *MockRepositoryInterfaceMockRecorder) GitHubAddRepository(ctx, externalProjectID, projectSFID, input interface{}) *gomock.Call
GitHubAddRepository indicates an expected call of GitHubAddRepository.
func (*MockRepositoryInterfaceMockRecorder) GitHubDisableRepositoriesByProjectID ¶
func (mr *MockRepositoryInterfaceMockRecorder) GitHubDisableRepositoriesByProjectID(ctx, projectID interface{}) *gomock.Call
GitHubDisableRepositoriesByProjectID indicates an expected call of GitHubDisableRepositoriesByProjectID.
func (*MockRepositoryInterfaceMockRecorder) GitHubDisableRepositoriesOfOrganization ¶
func (mr *MockRepositoryInterfaceMockRecorder) GitHubDisableRepositoriesOfOrganization(ctx, externalProjectID, githubOrgName interface{}) *gomock.Call
GitHubDisableRepositoriesOfOrganization indicates an expected call of GitHubDisableRepositoriesOfOrganization.
func (*MockRepositoryInterfaceMockRecorder) GitHubDisableRepository ¶
func (mr *MockRepositoryInterfaceMockRecorder) GitHubDisableRepository(ctx, repositoryID interface{}) *gomock.Call
GitHubDisableRepository indicates an expected call of GitHubDisableRepository.
func (*MockRepositoryInterfaceMockRecorder) GitHubEnableRepository ¶
func (mr *MockRepositoryInterfaceMockRecorder) GitHubEnableRepository(ctx, repositoryID interface{}) *gomock.Call
GitHubEnableRepository indicates an expected call of GitHubEnableRepository.
func (*MockRepositoryInterfaceMockRecorder) GitHubEnableRepositoryWithCLAGroupID ¶
func (mr *MockRepositoryInterfaceMockRecorder) GitHubEnableRepositoryWithCLAGroupID(ctx, repositoryID, claGroupID interface{}) *gomock.Call
GitHubEnableRepositoryWithCLAGroupID indicates an expected call of GitHubEnableRepositoryWithCLAGroupID.
func (*MockRepositoryInterfaceMockRecorder) GitHubGetCLAGroupRepositoriesGroupByOrgs ¶
func (mr *MockRepositoryInterfaceMockRecorder) GitHubGetCLAGroupRepositoriesGroupByOrgs(ctx, projectID, enabled interface{}) *gomock.Call
GitHubGetCLAGroupRepositoriesGroupByOrgs indicates an expected call of GitHubGetCLAGroupRepositoriesGroupByOrgs.
func (*MockRepositoryInterfaceMockRecorder) GitHubGetRepositoriesByCLAGroup ¶
func (mr *MockRepositoryInterfaceMockRecorder) GitHubGetRepositoriesByCLAGroup(ctx, claGroup, enabled interface{}) *gomock.Call
GitHubGetRepositoriesByCLAGroup indicates an expected call of GitHubGetRepositoriesByCLAGroup.
func (*MockRepositoryInterfaceMockRecorder) GitHubGetRepositoriesByOrganizationName ¶
func (mr *MockRepositoryInterfaceMockRecorder) GitHubGetRepositoriesByOrganizationName(ctx, gitHubOrgName interface{}) *gomock.Call
GitHubGetRepositoriesByOrganizationName indicates an expected call of GitHubGetRepositoriesByOrganizationName.
func (*MockRepositoryInterfaceMockRecorder) GitHubGetRepository ¶
func (mr *MockRepositoryInterfaceMockRecorder) GitHubGetRepository(ctx, repositoryID interface{}) *gomock.Call
GitHubGetRepository indicates an expected call of GitHubGetRepository.
func (*MockRepositoryInterfaceMockRecorder) GitHubGetRepositoryByExternalID ¶
func (mr *MockRepositoryInterfaceMockRecorder) GitHubGetRepositoryByExternalID(ctx, repositoryExternalID interface{}) *gomock.Call
GitHubGetRepositoryByExternalID indicates an expected call of GitHubGetRepositoryByExternalID.
func (*MockRepositoryInterfaceMockRecorder) GitHubGetRepositoryByGithubID ¶
func (mr *MockRepositoryInterfaceMockRecorder) GitHubGetRepositoryByGithubID(ctx, externalID, enabled interface{}) *gomock.Call
GitHubGetRepositoryByGithubID indicates an expected call of GitHubGetRepositoryByGithubID.
func (*MockRepositoryInterfaceMockRecorder) GitHubGetRepositoryByName ¶
func (mr *MockRepositoryInterfaceMockRecorder) GitHubGetRepositoryByName(ctx, repositoryName interface{}) *gomock.Call
GitHubGetRepositoryByName indicates an expected call of GitHubGetRepositoryByName.
func (*MockRepositoryInterfaceMockRecorder) GitHubListProjectRepositories ¶
func (mr *MockRepositoryInterfaceMockRecorder) GitHubListProjectRepositories(ctx, projectSFID, enabled interface{}) *gomock.Call
GitHubListProjectRepositories indicates an expected call of GitHubListProjectRepositories.
func (*MockRepositoryInterfaceMockRecorder) GitHubSetRemoteDeletedRepository ¶
func (mr *MockRepositoryInterfaceMockRecorder) GitHubSetRemoteDeletedRepository(ctx, repositoryID, isDeleted, wasCLAEnforced interface{}) *gomock.Call
GitHubSetRemoteDeletedRepository indicates an expected call of GitHubSetRemoteDeletedRepository.
func (*MockRepositoryInterfaceMockRecorder) GitHubUpdateClaGroupID ¶
func (mr *MockRepositoryInterfaceMockRecorder) GitHubUpdateClaGroupID(ctx, repositoryID, claGroupID interface{}) *gomock.Call
GitHubUpdateClaGroupID indicates an expected call of GitHubUpdateClaGroupID.
func (*MockRepositoryInterfaceMockRecorder) GitHubUpdateRepository ¶
func (mr *MockRepositoryInterfaceMockRecorder) GitHubUpdateRepository(ctx, repositoryID, projectSFID, parentProjectSFID, input interface{}) *gomock.Call
GitHubUpdateRepository indicates an expected call of GitHubUpdateRepository.
type MockService ¶
type MockService struct {
// contains filtered or unexported fields
}
MockService is a mock of Service interface.
func NewMockService ¶
func NewMockService(ctrl *gomock.Controller) *MockService
NewMockService creates a new mock instance.
func (*MockService) AddGithubRepository ¶
func (m *MockService) AddGithubRepository(ctx context.Context, externalProjectID string, input *models.GithubRepositoryInput) (*models.GithubRepository, error)
AddGithubRepository mocks base method.
func (*MockService) DisableRepositoriesByProjectID ¶
func (m *MockService) DisableRepositoriesByProjectID(ctx context.Context, projectID string) (int, error)
DisableRepositoriesByProjectID mocks base method.
func (*MockService) DisableRepository ¶
func (m *MockService) DisableRepository(ctx context.Context, repositoryID string) error
DisableRepository mocks base method.
func (*MockService) EXPECT ¶
func (m *MockService) EXPECT() *MockServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockService) EnableRepository ¶
func (m *MockService) EnableRepository(ctx context.Context, repositoryID string) error
EnableRepository mocks base method.
func (*MockService) EnableRepositoryWithCLAGroupID ¶
func (m *MockService) EnableRepositoryWithCLAGroupID(ctx context.Context, repositoryID, claGroupID string) error
EnableRepositoryWithCLAGroupID mocks base method.
func (*MockService) GetRepositoriesByCLAGroup ¶
func (m *MockService) GetRepositoriesByCLAGroup(ctx context.Context, claGroupID string) ([]*models.GithubRepository, error)
GetRepositoriesByCLAGroup mocks base method.
func (*MockService) GetRepositoriesByOrganizationName ¶
func (m *MockService) GetRepositoriesByOrganizationName(ctx context.Context, gitHubOrgName string) ([]*models.GithubRepository, error)
GetRepositoriesByOrganizationName mocks base method.
func (*MockService) GetRepository ¶
func (m *MockService) GetRepository(ctx context.Context, repositoryID string) (*models.GithubRepository, error)
GetRepository mocks base method.
func (*MockService) GetRepositoryByExternalID ¶
func (m *MockService) GetRepositoryByExternalID(ctx context.Context, repositoryExternalID string) (*models.GithubRepository, error)
GetRepositoryByExternalID mocks base method.
func (*MockService) GetRepositoryByName ¶
func (m *MockService) GetRepositoryByName(ctx context.Context, repositoryName string) (*models.GithubRepository, error)
GetRepositoryByName mocks base method.
func (*MockService) GetRepositoryByProjectSFID ¶
func (m *MockService) GetRepositoryByProjectSFID(ctx context.Context, projectSFID string, enabled *bool) (*models.GithubListRepositories, error)
GetRepositoryByProjectSFID mocks base method.
func (*MockService) ListProjectRepositories ¶
func (m *MockService) ListProjectRepositories(ctx context.Context, externalProjectID string, enabled *bool) (*models.GithubListRepositories, error)
ListProjectRepositories mocks base method.
func (*MockService) UpdateClaGroupID ¶
func (m *MockService) UpdateClaGroupID(ctx context.Context, repositoryID, claGroupID string) error
UpdateClaGroupID mocks base method.
type MockServiceMockRecorder ¶
type MockServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockServiceMockRecorder is the mock recorder for MockService.
func (*MockServiceMockRecorder) AddGithubRepository ¶
func (mr *MockServiceMockRecorder) AddGithubRepository(ctx, externalProjectID, input interface{}) *gomock.Call
AddGithubRepository indicates an expected call of AddGithubRepository.
func (*MockServiceMockRecorder) DisableRepositoriesByProjectID ¶
func (mr *MockServiceMockRecorder) DisableRepositoriesByProjectID(ctx, projectID interface{}) *gomock.Call
DisableRepositoriesByProjectID indicates an expected call of DisableRepositoriesByProjectID.
func (*MockServiceMockRecorder) DisableRepository ¶
func (mr *MockServiceMockRecorder) DisableRepository(ctx, repositoryID interface{}) *gomock.Call
DisableRepository indicates an expected call of DisableRepository.
func (*MockServiceMockRecorder) EnableRepository ¶
func (mr *MockServiceMockRecorder) EnableRepository(ctx, repositoryID interface{}) *gomock.Call
EnableRepository indicates an expected call of EnableRepository.
func (*MockServiceMockRecorder) EnableRepositoryWithCLAGroupID ¶
func (mr *MockServiceMockRecorder) EnableRepositoryWithCLAGroupID(ctx, repositoryID, claGroupID interface{}) *gomock.Call
EnableRepositoryWithCLAGroupID indicates an expected call of EnableRepositoryWithCLAGroupID.
func (*MockServiceMockRecorder) GetRepositoriesByCLAGroup ¶
func (mr *MockServiceMockRecorder) GetRepositoriesByCLAGroup(ctx, claGroupID interface{}) *gomock.Call
GetRepositoriesByCLAGroup indicates an expected call of GetRepositoriesByCLAGroup.
func (*MockServiceMockRecorder) GetRepositoriesByOrganizationName ¶
func (mr *MockServiceMockRecorder) GetRepositoriesByOrganizationName(ctx, gitHubOrgName interface{}) *gomock.Call
GetRepositoriesByOrganizationName indicates an expected call of GetRepositoriesByOrganizationName.
func (*MockServiceMockRecorder) GetRepository ¶
func (mr *MockServiceMockRecorder) GetRepository(ctx, repositoryID interface{}) *gomock.Call
GetRepository indicates an expected call of GetRepository.
func (*MockServiceMockRecorder) GetRepositoryByExternalID ¶
func (mr *MockServiceMockRecorder) GetRepositoryByExternalID(ctx, repositoryExternalID interface{}) *gomock.Call
GetRepositoryByExternalID indicates an expected call of GetRepositoryByExternalID.
func (*MockServiceMockRecorder) GetRepositoryByName ¶
func (mr *MockServiceMockRecorder) GetRepositoryByName(ctx, repositoryName interface{}) *gomock.Call
GetRepositoryByName indicates an expected call of GetRepositoryByName.
func (*MockServiceMockRecorder) GetRepositoryByProjectSFID ¶
func (mr *MockServiceMockRecorder) GetRepositoryByProjectSFID(ctx, projectSFID, enabled interface{}) *gomock.Call
GetRepositoryByProjectSFID indicates an expected call of GetRepositoryByProjectSFID.
func (*MockServiceMockRecorder) ListProjectRepositories ¶
func (mr *MockServiceMockRecorder) ListProjectRepositories(ctx, externalProjectID, enabled interface{}) *gomock.Call
ListProjectRepositories indicates an expected call of ListProjectRepositories.
func (*MockServiceMockRecorder) UpdateClaGroupID ¶
func (mr *MockServiceMockRecorder) UpdateClaGroupID(ctx, repositoryID, claGroupID interface{}) *gomock.Call
UpdateClaGroupID indicates an expected call of UpdateClaGroupID.