mock

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2022 License: MIT Imports: 6 Imported by: 0

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

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

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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockGitCommand) ForceClone

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) CreateJob

func (m *MockKubernetesRepository) CreateJob(ctx context.Context, job *v1.Job) error

CreateJob mocks base method.

func (*MockKubernetesRepository) DeleteReviewApp

func (m *MockKubernetesRepository) DeleteReviewApp(ctx context.Context, namespace, name string) error

DeleteReviewApp mocks base method.

func (*MockKubernetesRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockKubernetesRepository) GetApplicationTemplate

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

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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockPullRequestServiceIface) Get

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL