Documentation ¶
Overview ¶
Package mock_repositories is a generated GoMock package.
Package mock_repositories is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Index ¶
- type MockGitAPI
- func (m *MockGitAPI) CommentToPullRequest(ctx context.Context, pr models.PullRequest, comment string) error
- func (m *MockGitAPI) EXPECT() *MockGitAPIMockRecorder
- func (m *MockGitAPI) GetCommitHashes(ctx context.Context, pr models.PullRequest) ([]string, error)
- func (m *MockGitAPI) GetPullRequest(ctx context.Context, appRepoTarget models.AppRepoTarget, prNum int) (models.PullRequest, error)
- func (m *MockGitAPI) ListOpenPullRequests(ctx context.Context, appRepoTarget models.AppRepoTarget) (models.PullRequests, error)
- func (m *MockGitAPI) WithCredential(credential models.GitCredential) error
- type MockGitAPIMockRecorder
- func (mr *MockGitAPIMockRecorder) CommentToPullRequest(ctx, pr, comment interface{}) *gomock.Call
- func (mr *MockGitAPIMockRecorder) GetCommitHashes(ctx, pr interface{}) *gomock.Call
- func (mr *MockGitAPIMockRecorder) GetPullRequest(ctx, appRepoTarget, prNum interface{}) *gomock.Call
- func (mr *MockGitAPIMockRecorder) ListOpenPullRequests(ctx, appRepoTarget interface{}) *gomock.Call
- func (mr *MockGitAPIMockRecorder) WithCredential(credential interface{}) *gomock.Call
- type MockGitCommand
- func (m *MockGitCommand) CommitAndPush(ctx context.Context, gp models.InfraRepoLocalDir, message string) (*models.InfraRepoLocalDir, error)
- func (m *MockGitCommand) CreateFiles(arg0 context.Context, arg1 models.InfraRepoLocalDir, arg2 ...models.File) error
- func (m *MockGitCommand) DeleteFiles(arg0 context.Context, arg1 models.InfraRepoLocalDir, arg2 ...models.File) error
- func (m *MockGitCommand) EXPECT() *MockGitCommandMockRecorder
- func (m *MockGitCommand) ForceClone(arg0 context.Context, arg1 models.InfraRepoTarget) (models.InfraRepoLocalDir, error)
- func (m *MockGitCommand) WithCredential(credential models.GitCredential) error
- type MockGitCommandMockRecorder
- func (mr *MockGitCommandMockRecorder) CommitAndPush(ctx, gp, message interface{}) *gomock.Call
- func (mr *MockGitCommandMockRecorder) CreateFiles(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockGitCommandMockRecorder) DeleteFiles(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockGitCommandMockRecorder) ForceClone(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockGitCommandMockRecorder) WithCredential(credential interface{}) *gomock.Call
- type MockKubernetesRepository
- func (m *MockKubernetesRepository) AddFinalizersToReviewApp(ctx context.Context, ra models.ReviewApp, finalizers ...string) error
- func (m *MockKubernetesRepository) ApplyReviewAppWithOwnerRef(ctx context.Context, ra models.ReviewApp, owner models.ReviewAppManager) error
- func (m *MockKubernetesRepository) CreateJob(ctx context.Context, job *v1.Job) error
- func (m *MockKubernetesRepository) DeleteReviewApp(ctx context.Context, namespace, name string) error
- func (m *MockKubernetesRepository) EXPECT() *MockKubernetesRepositoryMockRecorder
- func (m_2 *MockKubernetesRepository) GetApplicationTemplate(ctx context.Context, m models.ReviewAppOrReviewAppManager) (models.ApplicationTemplate, error)
- func (m *MockKubernetesRepository) GetArgoCDAppFromReviewAppStatus(ctx context.Context, raStatus models.ReviewAppStatus) (models.Application, error)
- func (m *MockKubernetesRepository) GetLatestJobFromLabel(ctx context.Context, namespace, labelKey, labelValue string) (*v1.Job, error)
- func (m_2 *MockKubernetesRepository) GetManifestsTemplate(ctx context.Context, m models.ReviewAppOrReviewAppManager) ([]models.ManifestsTemplate, error)
- func (m *MockKubernetesRepository) GetPreStopJobTemplate(ctx context.Context, ra models.ReviewApp) (models.JobTemplate, error)
- func (m *MockKubernetesRepository) GetReviewApp(ctx context.Context, namespace, name string) (models.ReviewApp, error)
- func (m *MockKubernetesRepository) GetReviewAppManager(ctx context.Context, namespace, name string) (models.ReviewAppManager, error)
- func (m_2 *MockKubernetesRepository) GetSecretValue(ctx context.Context, namespace string, m models.AppOrInfraRepoTarget) (string, error)
- func (m *MockKubernetesRepository) PatchReviewAppStatus(ctx context.Context, ra models.ReviewApp) error
- func (m *MockKubernetesRepository) RemoveFinalizersFromReviewApp(ctx context.Context, ra models.ReviewApp, finalizers ...string) error
- func (m *MockKubernetesRepository) UpdateReviewAppManagerStatus(ctx context.Context, ram models.ReviewAppManager) error
- type MockKubernetesRepositoryMockRecorder
- func (mr *MockKubernetesRepositoryMockRecorder) AddFinalizersToReviewApp(ctx, ra interface{}, finalizers ...interface{}) *gomock.Call
- func (mr *MockKubernetesRepositoryMockRecorder) ApplyReviewAppWithOwnerRef(ctx, ra, owner interface{}) *gomock.Call
- func (mr *MockKubernetesRepositoryMockRecorder) CreateJob(ctx, job interface{}) *gomock.Call
- func (mr *MockKubernetesRepositoryMockRecorder) DeleteReviewApp(ctx, namespace, name interface{}) *gomock.Call
- func (mr *MockKubernetesRepositoryMockRecorder) GetApplicationTemplate(ctx, m interface{}) *gomock.Call
- func (mr *MockKubernetesRepositoryMockRecorder) GetArgoCDAppFromReviewAppStatus(ctx, raStatus interface{}) *gomock.Call
- func (mr *MockKubernetesRepositoryMockRecorder) GetLatestJobFromLabel(ctx, namespace, labelKey, labelValue interface{}) *gomock.Call
- func (mr *MockKubernetesRepositoryMockRecorder) GetManifestsTemplate(ctx, m interface{}) *gomock.Call
- func (mr *MockKubernetesRepositoryMockRecorder) GetPreStopJobTemplate(ctx, ra interface{}) *gomock.Call
- func (mr *MockKubernetesRepositoryMockRecorder) GetReviewApp(ctx, namespace, name interface{}) *gomock.Call
- func (mr *MockKubernetesRepositoryMockRecorder) GetReviewAppManager(ctx, namespace, name interface{}) *gomock.Call
- func (mr *MockKubernetesRepositoryMockRecorder) GetSecretValue(ctx, namespace, m interface{}) *gomock.Call
- func (mr *MockKubernetesRepositoryMockRecorder) PatchReviewAppStatus(ctx, ra interface{}) *gomock.Call
- func (mr *MockKubernetesRepositoryMockRecorder) RemoveFinalizersFromReviewApp(ctx, ra interface{}, finalizers ...interface{}) *gomock.Call
- func (mr *MockKubernetesRepositoryMockRecorder) UpdateReviewAppManagerStatus(ctx, ram interface{}) *gomock.Call
- type MockPullRequestServiceIface
- type MockPullRequestServiceIfaceMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockGitAPI ¶
type MockGitAPI struct {
// contains filtered or unexported fields
}
MockGitAPI is a mock of GitAPI interface.
func NewMockGitAPI ¶
func NewMockGitAPI(ctrl *gomock.Controller) *MockGitAPI
NewMockGitAPI creates a new mock instance.
func (*MockGitAPI) CommentToPullRequest ¶
func (m *MockGitAPI) CommentToPullRequest(ctx context.Context, pr models.PullRequest, comment string) error
CommentToPullRequest mocks base method.
func (*MockGitAPI) EXPECT ¶
func (m *MockGitAPI) EXPECT() *MockGitAPIMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockGitAPI) GetCommitHashes ¶
func (m *MockGitAPI) GetCommitHashes(ctx context.Context, pr models.PullRequest) ([]string, error)
GetCommitHashes mocks base method.
func (*MockGitAPI) GetPullRequest ¶
func (m *MockGitAPI) GetPullRequest(ctx context.Context, appRepoTarget models.AppRepoTarget, prNum int) (models.PullRequest, error)
GetPullRequest mocks base method.
func (*MockGitAPI) ListOpenPullRequests ¶
func (m *MockGitAPI) ListOpenPullRequests(ctx context.Context, appRepoTarget models.AppRepoTarget) (models.PullRequests, error)
ListOpenPullRequests mocks base method.
func (*MockGitAPI) WithCredential ¶
func (m *MockGitAPI) WithCredential(credential models.GitCredential) error
WithCredential mocks base method.
type MockGitAPIMockRecorder ¶
type MockGitAPIMockRecorder struct {
// contains filtered or unexported fields
}
MockGitAPIMockRecorder is the mock recorder for MockGitAPI.
func (*MockGitAPIMockRecorder) CommentToPullRequest ¶
func (mr *MockGitAPIMockRecorder) CommentToPullRequest(ctx, pr, comment interface{}) *gomock.Call
CommentToPullRequest indicates an expected call of CommentToPullRequest.
func (*MockGitAPIMockRecorder) GetCommitHashes ¶
func (mr *MockGitAPIMockRecorder) GetCommitHashes(ctx, pr interface{}) *gomock.Call
GetCommitHashes indicates an expected call of GetCommitHashes.
func (*MockGitAPIMockRecorder) GetPullRequest ¶
func (mr *MockGitAPIMockRecorder) GetPullRequest(ctx, appRepoTarget, prNum interface{}) *gomock.Call
GetPullRequest indicates an expected call of GetPullRequest.
func (*MockGitAPIMockRecorder) ListOpenPullRequests ¶
func (mr *MockGitAPIMockRecorder) ListOpenPullRequests(ctx, appRepoTarget interface{}) *gomock.Call
ListOpenPullRequests indicates an expected call of ListOpenPullRequests.
func (*MockGitAPIMockRecorder) WithCredential ¶
func (mr *MockGitAPIMockRecorder) WithCredential(credential interface{}) *gomock.Call
WithCredential indicates an expected call of WithCredential.
type MockGitCommand ¶
type MockGitCommand struct {
// contains filtered or unexported fields
}
MockGitCommand is a mock of GitCommand interface.
func NewMockGitCommand ¶
func NewMockGitCommand(ctrl *gomock.Controller) *MockGitCommand
NewMockGitCommand creates a new mock instance.
func (*MockGitCommand) CommitAndPush ¶
func (m *MockGitCommand) CommitAndPush(ctx context.Context, gp models.InfraRepoLocalDir, message string) (*models.InfraRepoLocalDir, error)
CommitAndPush mocks base method.
func (*MockGitCommand) CreateFiles ¶
func (m *MockGitCommand) CreateFiles(arg0 context.Context, arg1 models.InfraRepoLocalDir, arg2 ...models.File) error
CreateFiles mocks base method.
func (*MockGitCommand) DeleteFiles ¶
func (m *MockGitCommand) DeleteFiles(arg0 context.Context, arg1 models.InfraRepoLocalDir, arg2 ...models.File) error
DeleteFiles mocks base method.
func (*MockGitCommand) EXPECT ¶
func (m *MockGitCommand) EXPECT() *MockGitCommandMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockGitCommand) ForceClone ¶
func (m *MockGitCommand) ForceClone(arg0 context.Context, arg1 models.InfraRepoTarget) (models.InfraRepoLocalDir, error)
ForceClone mocks base method.
func (*MockGitCommand) WithCredential ¶
func (m *MockGitCommand) WithCredential(credential models.GitCredential) error
WithCredential mocks base method.
type MockGitCommandMockRecorder ¶
type MockGitCommandMockRecorder struct {
// contains filtered or unexported fields
}
MockGitCommandMockRecorder is the mock recorder for MockGitCommand.
func (*MockGitCommandMockRecorder) CommitAndPush ¶
func (mr *MockGitCommandMockRecorder) CommitAndPush(ctx, gp, message interface{}) *gomock.Call
CommitAndPush indicates an expected call of CommitAndPush.
func (*MockGitCommandMockRecorder) CreateFiles ¶
func (mr *MockGitCommandMockRecorder) CreateFiles(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
CreateFiles indicates an expected call of CreateFiles.
func (*MockGitCommandMockRecorder) DeleteFiles ¶
func (mr *MockGitCommandMockRecorder) DeleteFiles(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
DeleteFiles indicates an expected call of DeleteFiles.
func (*MockGitCommandMockRecorder) ForceClone ¶
func (mr *MockGitCommandMockRecorder) ForceClone(arg0, arg1 interface{}) *gomock.Call
ForceClone indicates an expected call of ForceClone.
func (*MockGitCommandMockRecorder) WithCredential ¶
func (mr *MockGitCommandMockRecorder) WithCredential(credential interface{}) *gomock.Call
WithCredential indicates an expected call of WithCredential.
type MockKubernetesRepository ¶
type MockKubernetesRepository struct {
// contains filtered or unexported fields
}
MockKubernetesRepository is a mock of KubernetesRepository interface.
func NewMockKubernetesRepository ¶
func NewMockKubernetesRepository(ctrl *gomock.Controller) *MockKubernetesRepository
NewMockKubernetesRepository creates a new mock instance.
func (*MockKubernetesRepository) AddFinalizersToReviewApp ¶
func (m *MockKubernetesRepository) AddFinalizersToReviewApp(ctx context.Context, ra models.ReviewApp, finalizers ...string) error
AddFinalizersToReviewApp mocks base method.
func (*MockKubernetesRepository) ApplyReviewAppWithOwnerRef ¶
func (m *MockKubernetesRepository) ApplyReviewAppWithOwnerRef(ctx context.Context, ra models.ReviewApp, owner models.ReviewAppManager) error
ApplyReviewAppWithOwnerRef mocks base method.
func (*MockKubernetesRepository) DeleteReviewApp ¶
func (m *MockKubernetesRepository) DeleteReviewApp(ctx context.Context, namespace, name string) error
DeleteReviewApp mocks base method.
func (*MockKubernetesRepository) EXPECT ¶
func (m *MockKubernetesRepository) EXPECT() *MockKubernetesRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockKubernetesRepository) GetApplicationTemplate ¶
func (m_2 *MockKubernetesRepository) GetApplicationTemplate(ctx context.Context, m models.ReviewAppOrReviewAppManager) (models.ApplicationTemplate, error)
GetApplicationTemplate mocks base method.
func (*MockKubernetesRepository) GetArgoCDAppFromReviewAppStatus ¶
func (m *MockKubernetesRepository) GetArgoCDAppFromReviewAppStatus(ctx context.Context, raStatus models.ReviewAppStatus) (models.Application, error)
GetArgoCDAppFromReviewAppStatus mocks base method.
func (*MockKubernetesRepository) GetLatestJobFromLabel ¶
func (m *MockKubernetesRepository) GetLatestJobFromLabel(ctx context.Context, namespace, labelKey, labelValue string) (*v1.Job, error)
GetLatestJobFromLabel mocks base method.
func (*MockKubernetesRepository) GetManifestsTemplate ¶
func (m_2 *MockKubernetesRepository) GetManifestsTemplate(ctx context.Context, m models.ReviewAppOrReviewAppManager) ([]models.ManifestsTemplate, error)
GetManifestsTemplate mocks base method.
func (*MockKubernetesRepository) GetPreStopJobTemplate ¶
func (m *MockKubernetesRepository) GetPreStopJobTemplate(ctx context.Context, ra models.ReviewApp) (models.JobTemplate, error)
GetPreStopJobTemplate mocks base method.
func (*MockKubernetesRepository) GetReviewApp ¶
func (m *MockKubernetesRepository) GetReviewApp(ctx context.Context, namespace, name string) (models.ReviewApp, error)
GetReviewApp mocks base method.
func (*MockKubernetesRepository) GetReviewAppManager ¶
func (m *MockKubernetesRepository) GetReviewAppManager(ctx context.Context, namespace, name string) (models.ReviewAppManager, error)
GetReviewAppManager mocks base method.
func (*MockKubernetesRepository) GetSecretValue ¶
func (m_2 *MockKubernetesRepository) GetSecretValue(ctx context.Context, namespace string, m models.AppOrInfraRepoTarget) (string, error)
GetSecretValue mocks base method.
func (*MockKubernetesRepository) PatchReviewAppStatus ¶ added in v0.1.2
func (m *MockKubernetesRepository) PatchReviewAppStatus(ctx context.Context, ra models.ReviewApp) error
PatchReviewAppStatus mocks base method.
func (*MockKubernetesRepository) RemoveFinalizersFromReviewApp ¶
func (m *MockKubernetesRepository) RemoveFinalizersFromReviewApp(ctx context.Context, ra models.ReviewApp, finalizers ...string) error
RemoveFinalizersFromReviewApp mocks base method.
func (*MockKubernetesRepository) UpdateReviewAppManagerStatus ¶
func (m *MockKubernetesRepository) UpdateReviewAppManagerStatus(ctx context.Context, ram models.ReviewAppManager) error
UpdateReviewAppManagerStatus mocks base method.
type MockKubernetesRepositoryMockRecorder ¶
type MockKubernetesRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockKubernetesRepositoryMockRecorder is the mock recorder for MockKubernetesRepository.
func (*MockKubernetesRepositoryMockRecorder) AddFinalizersToReviewApp ¶
func (mr *MockKubernetesRepositoryMockRecorder) AddFinalizersToReviewApp(ctx, ra interface{}, finalizers ...interface{}) *gomock.Call
AddFinalizersToReviewApp indicates an expected call of AddFinalizersToReviewApp.
func (*MockKubernetesRepositoryMockRecorder) ApplyReviewAppWithOwnerRef ¶
func (mr *MockKubernetesRepositoryMockRecorder) ApplyReviewAppWithOwnerRef(ctx, ra, owner interface{}) *gomock.Call
ApplyReviewAppWithOwnerRef indicates an expected call of ApplyReviewAppWithOwnerRef.
func (*MockKubernetesRepositoryMockRecorder) CreateJob ¶
func (mr *MockKubernetesRepositoryMockRecorder) CreateJob(ctx, job interface{}) *gomock.Call
CreateJob indicates an expected call of CreateJob.
func (*MockKubernetesRepositoryMockRecorder) DeleteReviewApp ¶
func (mr *MockKubernetesRepositoryMockRecorder) DeleteReviewApp(ctx, namespace, name interface{}) *gomock.Call
DeleteReviewApp indicates an expected call of DeleteReviewApp.
func (*MockKubernetesRepositoryMockRecorder) GetApplicationTemplate ¶
func (mr *MockKubernetesRepositoryMockRecorder) GetApplicationTemplate(ctx, m interface{}) *gomock.Call
GetApplicationTemplate indicates an expected call of GetApplicationTemplate.
func (*MockKubernetesRepositoryMockRecorder) GetArgoCDAppFromReviewAppStatus ¶
func (mr *MockKubernetesRepositoryMockRecorder) GetArgoCDAppFromReviewAppStatus(ctx, raStatus interface{}) *gomock.Call
GetArgoCDAppFromReviewAppStatus indicates an expected call of GetArgoCDAppFromReviewAppStatus.
func (*MockKubernetesRepositoryMockRecorder) GetLatestJobFromLabel ¶
func (mr *MockKubernetesRepositoryMockRecorder) GetLatestJobFromLabel(ctx, namespace, labelKey, labelValue interface{}) *gomock.Call
GetLatestJobFromLabel indicates an expected call of GetLatestJobFromLabel.
func (*MockKubernetesRepositoryMockRecorder) GetManifestsTemplate ¶
func (mr *MockKubernetesRepositoryMockRecorder) GetManifestsTemplate(ctx, m interface{}) *gomock.Call
GetManifestsTemplate indicates an expected call of GetManifestsTemplate.
func (*MockKubernetesRepositoryMockRecorder) GetPreStopJobTemplate ¶
func (mr *MockKubernetesRepositoryMockRecorder) GetPreStopJobTemplate(ctx, ra interface{}) *gomock.Call
GetPreStopJobTemplate indicates an expected call of GetPreStopJobTemplate.
func (*MockKubernetesRepositoryMockRecorder) GetReviewApp ¶
func (mr *MockKubernetesRepositoryMockRecorder) GetReviewApp(ctx, namespace, name interface{}) *gomock.Call
GetReviewApp indicates an expected call of GetReviewApp.
func (*MockKubernetesRepositoryMockRecorder) GetReviewAppManager ¶
func (mr *MockKubernetesRepositoryMockRecorder) GetReviewAppManager(ctx, namespace, name interface{}) *gomock.Call
GetReviewAppManager indicates an expected call of GetReviewAppManager.
func (*MockKubernetesRepositoryMockRecorder) GetSecretValue ¶
func (mr *MockKubernetesRepositoryMockRecorder) GetSecretValue(ctx, namespace, m interface{}) *gomock.Call
GetSecretValue indicates an expected call of GetSecretValue.
func (*MockKubernetesRepositoryMockRecorder) PatchReviewAppStatus ¶ added in v0.1.2
func (mr *MockKubernetesRepositoryMockRecorder) PatchReviewAppStatus(ctx, ra interface{}) *gomock.Call
PatchReviewAppStatus indicates an expected call of PatchReviewAppStatus.
func (*MockKubernetesRepositoryMockRecorder) RemoveFinalizersFromReviewApp ¶
func (mr *MockKubernetesRepositoryMockRecorder) RemoveFinalizersFromReviewApp(ctx, ra interface{}, finalizers ...interface{}) *gomock.Call
RemoveFinalizersFromReviewApp indicates an expected call of RemoveFinalizersFromReviewApp.
func (*MockKubernetesRepositoryMockRecorder) UpdateReviewAppManagerStatus ¶
func (mr *MockKubernetesRepositoryMockRecorder) UpdateReviewAppManagerStatus(ctx, ram interface{}) *gomock.Call
UpdateReviewAppManagerStatus indicates an expected call of UpdateReviewAppManagerStatus.
type MockPullRequestServiceIface ¶
type MockPullRequestServiceIface struct {
// contains filtered or unexported fields
}
MockPullRequestServiceIface is a mock of PullRequestServiceIface interface.
func NewMockPullRequestServiceIface ¶
func NewMockPullRequestServiceIface(ctrl *gomock.Controller) *MockPullRequestServiceIface
NewMockPullRequestServiceIface creates a new mock instance.
func (*MockPullRequestServiceIface) EXPECT ¶
func (m *MockPullRequestServiceIface) EXPECT() *MockPullRequestServiceIfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPullRequestServiceIface) Get ¶
func (m *MockPullRequestServiceIface) Get(arg0 context.Context, arg1 models.ReviewApp, arg2 models.GitCredential, arg3 *utils.DatetimeFactory) (models.PullRequest, error)
Get mocks base method.
type MockPullRequestServiceIfaceMockRecorder ¶
type MockPullRequestServiceIfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockPullRequestServiceIfaceMockRecorder is the mock recorder for MockPullRequestServiceIface.
func (*MockPullRequestServiceIfaceMockRecorder) Get ¶
func (mr *MockPullRequestServiceIfaceMockRecorder) Get(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
Get indicates an expected call of Get.