Documentation ¶
Overview ¶
Package mock_gitrepo is a generated GoMock package.
Index ¶
- type MockClusterGitRepo
- func (m *MockClusterGitRepo) CheckAndSyncGitOpsBranch(ctx context.Context, application, cluster, commit string) error
- func (m *MockClusterGitRepo) CompareConfig(ctx context.Context, application, cluster string, from, to *string) (string, error)
- func (m *MockClusterGitRepo) CreateCluster(ctx context.Context, params *gitrepo.CreateClusterParams) error
- func (m *MockClusterGitRepo) DefaultBranch() string
- func (m *MockClusterGitRepo) DeleteCluster(ctx context.Context, application, cluster string, clusterID uint) error
- func (m *MockClusterGitRepo) EXPECT() *MockClusterGitRepoMockRecorder
- func (m *MockClusterGitRepo) GetCluster(ctx context.Context, application, cluster, templateName string) (*gitrepo.ClusterFiles, error)
- func (m *MockClusterGitRepo) GetClusterTemplate(ctx context.Context, application, cluster string) (*gitrepo.ClusterTemplate, error)
- func (m *MockClusterGitRepo) GetClusterValueFiles(ctx context.Context, application, cluster string) ([]gitrepo.ClusterValueFile, error)
- func (m *MockClusterGitRepo) GetConfigCommit(ctx context.Context, application, cluster string) (*gitrepo.ClusterCommit, error)
- func (m *MockClusterGitRepo) GetEnvValue(ctx context.Context, application, cluster, templateName string) (*gitrepo.EnvValue, error)
- func (m *MockClusterGitRepo) GetManifest(ctx context.Context, application, cluster string, commit *string) (*common.Manifest, error)
- func (m *MockClusterGitRepo) GetPipelineOutput(ctx context.Context, application, cluster, template string) (interface{}, error)
- func (m *MockClusterGitRepo) GetRepoInfo(ctx context.Context, application, cluster string) *gitrepo.RepoInfo
- func (m *MockClusterGitRepo) GetRestartTime(ctx context.Context, application, cluster, template string) (string, error)
- func (m *MockClusterGitRepo) HardDeleteCluster(ctx context.Context, application, cluster string) error
- func (m *MockClusterGitRepo) MergeBranch(ctx context.Context, application, cluster, sourceBranch, targetBranch string, ...) (string, error)
- func (m *MockClusterGitRepo) Rollback(ctx context.Context, application, cluster, commit string) (string, error)
- func (m *MockClusterGitRepo) SyncGitOpsBranch(ctx context.Context, application, cluster string) error
- func (m *MockClusterGitRepo) UpdateCluster(ctx context.Context, params *gitrepo.UpdateClusterParams) error
- func (m *MockClusterGitRepo) UpdatePipelineOutput(ctx context.Context, application, cluster, template string, ...) (string, error)
- func (m *MockClusterGitRepo) UpdateRestartTime(ctx context.Context, application, cluster, template string) (string, error)
- func (m *MockClusterGitRepo) UpdateTags(ctx context.Context, application, cluster, templateName string, ...) error
- func (m *MockClusterGitRepo) UpgradeCluster(ctx context.Context, param *gitrepo.UpgradeValuesParam) (string, error)
- type MockClusterGitRepoMockRecorder
- func (mr *MockClusterGitRepoMockRecorder) CheckAndSyncGitOpsBranch(ctx, application, cluster, commit interface{}) *gomock.Call
- func (mr *MockClusterGitRepoMockRecorder) CompareConfig(ctx, application, cluster, from, to interface{}) *gomock.Call
- func (mr *MockClusterGitRepoMockRecorder) CreateCluster(ctx, params interface{}) *gomock.Call
- func (mr *MockClusterGitRepoMockRecorder) DefaultBranch() *gomock.Call
- func (mr *MockClusterGitRepoMockRecorder) DeleteCluster(ctx, application, cluster, clusterID interface{}) *gomock.Call
- func (mr *MockClusterGitRepoMockRecorder) GetCluster(ctx, application, cluster, templateName interface{}) *gomock.Call
- func (mr *MockClusterGitRepoMockRecorder) GetClusterTemplate(ctx, application, cluster interface{}) *gomock.Call
- func (mr *MockClusterGitRepoMockRecorder) GetClusterValueFiles(ctx, application, cluster interface{}) *gomock.Call
- func (mr *MockClusterGitRepoMockRecorder) GetConfigCommit(ctx, application, cluster interface{}) *gomock.Call
- func (mr *MockClusterGitRepoMockRecorder) GetEnvValue(ctx, application, cluster, templateName interface{}) *gomock.Call
- func (mr *MockClusterGitRepoMockRecorder) GetManifest(ctx, application, cluster, commit interface{}) *gomock.Call
- func (mr *MockClusterGitRepoMockRecorder) GetPipelineOutput(ctx, application, cluster, template interface{}) *gomock.Call
- func (mr *MockClusterGitRepoMockRecorder) GetRepoInfo(ctx, application, cluster interface{}) *gomock.Call
- func (mr *MockClusterGitRepoMockRecorder) GetRestartTime(ctx, application, cluster, template interface{}) *gomock.Call
- func (mr *MockClusterGitRepoMockRecorder) HardDeleteCluster(ctx, application, cluster interface{}) *gomock.Call
- func (mr *MockClusterGitRepoMockRecorder) MergeBranch(...) *gomock.Call
- func (mr *MockClusterGitRepoMockRecorder) Rollback(ctx, application, cluster, commit interface{}) *gomock.Call
- func (mr *MockClusterGitRepoMockRecorder) SyncGitOpsBranch(ctx, application, cluster interface{}) *gomock.Call
- func (mr *MockClusterGitRepoMockRecorder) UpdateCluster(ctx, params interface{}) *gomock.Call
- func (mr *MockClusterGitRepoMockRecorder) UpdatePipelineOutput(ctx, application, cluster, template, pipelineOutput interface{}) *gomock.Call
- func (mr *MockClusterGitRepoMockRecorder) UpdateRestartTime(ctx, application, cluster, template interface{}) *gomock.Call
- func (mr *MockClusterGitRepoMockRecorder) UpdateTags(ctx, application, cluster, templateName, tags interface{}) *gomock.Call
- func (mr *MockClusterGitRepoMockRecorder) UpgradeCluster(ctx, param interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClusterGitRepo ¶
type MockClusterGitRepo struct {
// contains filtered or unexported fields
}
MockClusterGitRepo is a mock of ClusterGitRepo interface.
func NewMockClusterGitRepo ¶
func NewMockClusterGitRepo(ctrl *gomock.Controller) *MockClusterGitRepo
NewMockClusterGitRepo creates a new mock instance.
func (*MockClusterGitRepo) CheckAndSyncGitOpsBranch ¶
func (m *MockClusterGitRepo) CheckAndSyncGitOpsBranch(ctx context.Context, application, cluster, commit string) error
CheckAndSyncGitOpsBranch mocks base method.
func (*MockClusterGitRepo) CompareConfig ¶
func (m *MockClusterGitRepo) CompareConfig(ctx context.Context, application, cluster string, from, to *string) (string, error)
CompareConfig mocks base method.
func (*MockClusterGitRepo) CreateCluster ¶
func (m *MockClusterGitRepo) CreateCluster(ctx context.Context, params *gitrepo.CreateClusterParams) error
CreateCluster mocks base method.
func (*MockClusterGitRepo) DefaultBranch ¶
func (m *MockClusterGitRepo) DefaultBranch() string
DefaultBranch mocks base method.
func (*MockClusterGitRepo) DeleteCluster ¶
func (m *MockClusterGitRepo) DeleteCluster(ctx context.Context, application, cluster string, clusterID uint) error
DeleteCluster mocks base method.
func (*MockClusterGitRepo) EXPECT ¶
func (m *MockClusterGitRepo) EXPECT() *MockClusterGitRepoMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockClusterGitRepo) GetCluster ¶
func (m *MockClusterGitRepo) GetCluster(ctx context.Context, application, cluster, templateName string) (*gitrepo.ClusterFiles, error)
GetCluster mocks base method.
func (*MockClusterGitRepo) GetClusterTemplate ¶
func (m *MockClusterGitRepo) GetClusterTemplate(ctx context.Context, application, cluster string) (*gitrepo.ClusterTemplate, error)
GetClusterTemplate mocks base method.
func (*MockClusterGitRepo) GetClusterValueFiles ¶
func (m *MockClusterGitRepo) GetClusterValueFiles(ctx context.Context, application, cluster string) ([]gitrepo.ClusterValueFile, error)
GetClusterValueFiles mocks base method.
func (*MockClusterGitRepo) GetConfigCommit ¶
func (m *MockClusterGitRepo) GetConfigCommit(ctx context.Context, application, cluster string) (*gitrepo.ClusterCommit, error)
GetConfigCommit mocks base method.
func (*MockClusterGitRepo) GetEnvValue ¶
func (m *MockClusterGitRepo) GetEnvValue(ctx context.Context, application, cluster, templateName string) (*gitrepo.EnvValue, error)
GetEnvValue mocks base method.
func (*MockClusterGitRepo) GetManifest ¶
func (m *MockClusterGitRepo) GetManifest(ctx context.Context, application, cluster string, commit *string) (*common.Manifest, error)
GetManifest mocks base method.
func (*MockClusterGitRepo) GetPipelineOutput ¶
func (m *MockClusterGitRepo) GetPipelineOutput(ctx context.Context, application, cluster, template string) (interface{}, error)
GetPipelineOutput mocks base method.
func (*MockClusterGitRepo) GetRepoInfo ¶
func (m *MockClusterGitRepo) GetRepoInfo(ctx context.Context, application, cluster string) *gitrepo.RepoInfo
GetRepoInfo mocks base method.
func (*MockClusterGitRepo) GetRestartTime ¶
func (m *MockClusterGitRepo) GetRestartTime(ctx context.Context, application, cluster, template string) (string, error)
GetRestartTime mocks base method.
func (*MockClusterGitRepo) HardDeleteCluster ¶
func (m *MockClusterGitRepo) HardDeleteCluster(ctx context.Context, application, cluster string) error
HardDeleteCluster mocks base method.
func (*MockClusterGitRepo) MergeBranch ¶
func (m *MockClusterGitRepo) MergeBranch(ctx context.Context, application, cluster, sourceBranch, targetBranch string, pipelineRunID *uint) (string, error)
MergeBranch mocks base method.
func (*MockClusterGitRepo) Rollback ¶
func (m *MockClusterGitRepo) Rollback(ctx context.Context, application, cluster, commit string) (string, error)
Rollback mocks base method.
func (*MockClusterGitRepo) SyncGitOpsBranch ¶
func (m *MockClusterGitRepo) SyncGitOpsBranch(ctx context.Context, application, cluster string) error
SyncGitOpsBranch mocks base method.
func (*MockClusterGitRepo) UpdateCluster ¶
func (m *MockClusterGitRepo) UpdateCluster(ctx context.Context, params *gitrepo.UpdateClusterParams) error
UpdateCluster mocks base method.
func (*MockClusterGitRepo) UpdatePipelineOutput ¶
func (m *MockClusterGitRepo) UpdatePipelineOutput(ctx context.Context, application, cluster, template string, pipelineOutput interface{}) (string, error)
UpdatePipelineOutput mocks base method.
func (*MockClusterGitRepo) UpdateRestartTime ¶
func (m *MockClusterGitRepo) UpdateRestartTime(ctx context.Context, application, cluster, template string) (string, error)
UpdateRestartTime mocks base method.
func (*MockClusterGitRepo) UpdateTags ¶
func (m *MockClusterGitRepo) UpdateTags(ctx context.Context, application, cluster, templateName string, tags []*models.Tag) error
UpdateTags mocks base method.
func (*MockClusterGitRepo) UpgradeCluster ¶
func (m *MockClusterGitRepo) UpgradeCluster(ctx context.Context, param *gitrepo.UpgradeValuesParam) (string, error)
UpgradeCluster mocks base method.
type MockClusterGitRepoMockRecorder ¶
type MockClusterGitRepoMockRecorder struct {
// contains filtered or unexported fields
}
MockClusterGitRepoMockRecorder is the mock recorder for MockClusterGitRepo.
func (*MockClusterGitRepoMockRecorder) CheckAndSyncGitOpsBranch ¶
func (mr *MockClusterGitRepoMockRecorder) CheckAndSyncGitOpsBranch(ctx, application, cluster, commit interface{}) *gomock.Call
CheckAndSyncGitOpsBranch indicates an expected call of CheckAndSyncGitOpsBranch.
func (*MockClusterGitRepoMockRecorder) CompareConfig ¶
func (mr *MockClusterGitRepoMockRecorder) CompareConfig(ctx, application, cluster, from, to interface{}) *gomock.Call
CompareConfig indicates an expected call of CompareConfig.
func (*MockClusterGitRepoMockRecorder) CreateCluster ¶
func (mr *MockClusterGitRepoMockRecorder) CreateCluster(ctx, params interface{}) *gomock.Call
CreateCluster indicates an expected call of CreateCluster.
func (*MockClusterGitRepoMockRecorder) DefaultBranch ¶
func (mr *MockClusterGitRepoMockRecorder) DefaultBranch() *gomock.Call
DefaultBranch indicates an expected call of DefaultBranch.
func (*MockClusterGitRepoMockRecorder) DeleteCluster ¶
func (mr *MockClusterGitRepoMockRecorder) DeleteCluster(ctx, application, cluster, clusterID interface{}) *gomock.Call
DeleteCluster indicates an expected call of DeleteCluster.
func (*MockClusterGitRepoMockRecorder) GetCluster ¶
func (mr *MockClusterGitRepoMockRecorder) GetCluster(ctx, application, cluster, templateName interface{}) *gomock.Call
GetCluster indicates an expected call of GetCluster.
func (*MockClusterGitRepoMockRecorder) GetClusterTemplate ¶
func (mr *MockClusterGitRepoMockRecorder) GetClusterTemplate(ctx, application, cluster interface{}) *gomock.Call
GetClusterTemplate indicates an expected call of GetClusterTemplate.
func (*MockClusterGitRepoMockRecorder) GetClusterValueFiles ¶
func (mr *MockClusterGitRepoMockRecorder) GetClusterValueFiles(ctx, application, cluster interface{}) *gomock.Call
GetClusterValueFiles indicates an expected call of GetClusterValueFiles.
func (*MockClusterGitRepoMockRecorder) GetConfigCommit ¶
func (mr *MockClusterGitRepoMockRecorder) GetConfigCommit(ctx, application, cluster interface{}) *gomock.Call
GetConfigCommit indicates an expected call of GetConfigCommit.
func (*MockClusterGitRepoMockRecorder) GetEnvValue ¶
func (mr *MockClusterGitRepoMockRecorder) GetEnvValue(ctx, application, cluster, templateName interface{}) *gomock.Call
GetEnvValue indicates an expected call of GetEnvValue.
func (*MockClusterGitRepoMockRecorder) GetManifest ¶
func (mr *MockClusterGitRepoMockRecorder) GetManifest(ctx, application, cluster, commit interface{}) *gomock.Call
GetManifest indicates an expected call of GetManifest.
func (*MockClusterGitRepoMockRecorder) GetPipelineOutput ¶
func (mr *MockClusterGitRepoMockRecorder) GetPipelineOutput(ctx, application, cluster, template interface{}) *gomock.Call
GetPipelineOutput indicates an expected call of GetPipelineOutput.
func (*MockClusterGitRepoMockRecorder) GetRepoInfo ¶
func (mr *MockClusterGitRepoMockRecorder) GetRepoInfo(ctx, application, cluster interface{}) *gomock.Call
GetRepoInfo indicates an expected call of GetRepoInfo.
func (*MockClusterGitRepoMockRecorder) GetRestartTime ¶
func (mr *MockClusterGitRepoMockRecorder) GetRestartTime(ctx, application, cluster, template interface{}) *gomock.Call
GetRestartTime indicates an expected call of GetRestartTime.
func (*MockClusterGitRepoMockRecorder) HardDeleteCluster ¶
func (mr *MockClusterGitRepoMockRecorder) HardDeleteCluster(ctx, application, cluster interface{}) *gomock.Call
HardDeleteCluster indicates an expected call of HardDeleteCluster.
func (*MockClusterGitRepoMockRecorder) MergeBranch ¶
func (mr *MockClusterGitRepoMockRecorder) MergeBranch(ctx, application, cluster, sourceBranch, targetBranch, pipelineRunID interface{}) *gomock.Call
MergeBranch indicates an expected call of MergeBranch.
func (*MockClusterGitRepoMockRecorder) Rollback ¶
func (mr *MockClusterGitRepoMockRecorder) Rollback(ctx, application, cluster, commit interface{}) *gomock.Call
Rollback indicates an expected call of Rollback.
func (*MockClusterGitRepoMockRecorder) SyncGitOpsBranch ¶
func (mr *MockClusterGitRepoMockRecorder) SyncGitOpsBranch(ctx, application, cluster interface{}) *gomock.Call
SyncGitOpsBranch indicates an expected call of SyncGitOpsBranch.
func (*MockClusterGitRepoMockRecorder) UpdateCluster ¶
func (mr *MockClusterGitRepoMockRecorder) UpdateCluster(ctx, params interface{}) *gomock.Call
UpdateCluster indicates an expected call of UpdateCluster.
func (*MockClusterGitRepoMockRecorder) UpdatePipelineOutput ¶
func (mr *MockClusterGitRepoMockRecorder) UpdatePipelineOutput(ctx, application, cluster, template, pipelineOutput interface{}) *gomock.Call
UpdatePipelineOutput indicates an expected call of UpdatePipelineOutput.
func (*MockClusterGitRepoMockRecorder) UpdateRestartTime ¶
func (mr *MockClusterGitRepoMockRecorder) UpdateRestartTime(ctx, application, cluster, template interface{}) *gomock.Call
UpdateRestartTime indicates an expected call of UpdateRestartTime.
func (*MockClusterGitRepoMockRecorder) UpdateTags ¶
func (mr *MockClusterGitRepoMockRecorder) UpdateTags(ctx, application, cluster, templateName, tags interface{}) *gomock.Call
UpdateTags indicates an expected call of UpdateTags.
func (*MockClusterGitRepoMockRecorder) UpgradeCluster ¶
func (mr *MockClusterGitRepoMockRecorder) UpgradeCluster(ctx, param interface{}) *gomock.Call
UpgradeCluster indicates an expected call of UpgradeCluster.