Documentation ¶
Index ¶
- type ChartTemplateService
- func (_m *ChartTemplateService) BuildChart(ctx context.Context, chartMetaData *chart.Metadata, ...) (string, error)
- func (_m *ChartTemplateService) BuildChartProxyForHelmApps(chartCreateRequest *util.ChartCreateRequest) (*util.ChartCreateResponse, error)
- func (_m *ChartTemplateService) CleanDir(dir string)
- func (_m *ChartTemplateService) CreateAndPushToGitChartProxy(appStoreName string, tmpChartLocation string, envName string, ...) (*util.ChartGitAttribute, error)
- func (_m *ChartTemplateService) CreateChartProxy(chartMetaData *chart.Metadata, refChartLocation string, envName string, ...) (string, *util.ChartGitAttribute, error)
- func (_m *ChartTemplateService) CreateGitRepositoryForApp(gitOpsRepoName string, baseTemplateName string, version string, userId int32) (*util.ChartGitAttribute, error)
- func (_m *ChartTemplateService) CreateReadmeInGitRepo(gitOpsRepoName string, userId int32) error
- func (_m *ChartTemplateService) FetchValuesFromReferenceChart(chartMetaData *chart.Metadata, refChartLocation string, templateName string, ...) (*util.ChartValues, *util.ChartGitAttribute, error)
- func (_m *ChartTemplateService) GetByteArrayRefChart(chartMetaData *chart.Metadata, referenceTemplatePath string) ([]byte, error)
- func (_m *ChartTemplateService) GetChartVersion(location string) (string, error)
- func (_m *ChartTemplateService) GetDir() string
- func (_m *ChartTemplateService) GetGitOpsRepoName(appName string) string
- func (_m *ChartTemplateService) GetGitOpsRepoNameFromUrl(gitRepoUrl string) string
- func (_m *ChartTemplateService) GetUserEmailIdAndNameForGitOpsCommit(userId int32) (string, string)
- func (_m *ChartTemplateService) GitPull(clonedDir string, repoUrl string, appStoreName string) error
- func (_m *ChartTemplateService) LoadChartInBytes(ChartPath string, deleteChart bool, chartName string, chartVersion string) ([]byte, string, error)
- func (_m *ChartTemplateService) PushChartToGitRepo(gitOpsRepoName string, referenceTemplate string, version string, ...) error
- func (_m *ChartTemplateService) UpdateGitRepoUrlInCharts(appId int, chartGitAttribute *util.ChartGitAttribute, userId int32) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChartTemplateService ¶
ChartTemplateService is an autogenerated mock type for the ChartTemplateService type
func NewChartTemplateService ¶
func NewChartTemplateService(t interface { mock.TestingT Cleanup(func()) }) *ChartTemplateService
NewChartTemplateService creates a new instance of ChartTemplateService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*ChartTemplateService) BuildChart ¶
func (_m *ChartTemplateService) BuildChart(ctx context.Context, chartMetaData *chart.Metadata, referenceTemplatePath string) (string, error)
BuildChart provides a mock function with given fields: ctx, chartMetaData, referenceTemplatePath
func (*ChartTemplateService) BuildChartProxyForHelmApps ¶
func (_m *ChartTemplateService) BuildChartProxyForHelmApps(chartCreateRequest *util.ChartCreateRequest) (*util.ChartCreateResponse, error)
BuildChartProxyForHelmApps provides a mock function with given fields: chartCreateRequest
func (*ChartTemplateService) CleanDir ¶
func (_m *ChartTemplateService) CleanDir(dir string)
CleanDir provides a mock function with given fields: dir
func (*ChartTemplateService) CreateAndPushToGitChartProxy ¶
func (_m *ChartTemplateService) CreateAndPushToGitChartProxy(appStoreName string, tmpChartLocation string, envName string, installAppVersionRequest *appStoreBean.InstallAppVersionDTO) (*util.ChartGitAttribute, error)
CreateAndPushToGitChartProxy provides a mock function with given fields: appStoreName, tmpChartLocation, envName, installAppVersionRequest
func (*ChartTemplateService) CreateChartProxy ¶
func (_m *ChartTemplateService) CreateChartProxy(chartMetaData *chart.Metadata, refChartLocation string, envName string, installAppVersionRequest *appStoreBean.InstallAppVersionDTO) (string, *util.ChartGitAttribute, error)
CreateChartProxy provides a mock function with given fields: chartMetaData, refChartLocation, envName, installAppVersionRequest
func (*ChartTemplateService) CreateGitRepositoryForApp ¶
func (_m *ChartTemplateService) CreateGitRepositoryForApp(gitOpsRepoName string, baseTemplateName string, version string, userId int32) (*util.ChartGitAttribute, error)
CreateGitRepositoryForApp provides a mock function with given fields: gitOpsRepoName, baseTemplateName, version, userId
func (*ChartTemplateService) CreateReadmeInGitRepo ¶
func (_m *ChartTemplateService) CreateReadmeInGitRepo(gitOpsRepoName string, userId int32) error
CreateReadmeInGitRepo provides a mock function with given fields: gitOpsRepoName, userId
func (*ChartTemplateService) FetchValuesFromReferenceChart ¶
func (_m *ChartTemplateService) FetchValuesFromReferenceChart(chartMetaData *chart.Metadata, refChartLocation string, templateName string, userId int32, pipelineStrategyPath string) (*util.ChartValues, *util.ChartGitAttribute, error)
FetchValuesFromReferenceChart provides a mock function with given fields: chartMetaData, refChartLocation, templateName, userId, pipelineStrategyPath
func (*ChartTemplateService) GetByteArrayRefChart ¶
func (_m *ChartTemplateService) GetByteArrayRefChart(chartMetaData *chart.Metadata, referenceTemplatePath string) ([]byte, error)
GetByteArrayRefChart provides a mock function with given fields: chartMetaData, referenceTemplatePath
func (*ChartTemplateService) GetChartVersion ¶
func (_m *ChartTemplateService) GetChartVersion(location string) (string, error)
GetChartVersion provides a mock function with given fields: location
func (*ChartTemplateService) GetDir ¶
func (_m *ChartTemplateService) GetDir() string
GetDir provides a mock function with given fields:
func (*ChartTemplateService) GetGitOpsRepoName ¶
func (_m *ChartTemplateService) GetGitOpsRepoName(appName string) string
GetGitOpsRepoName provides a mock function with given fields: appName
func (*ChartTemplateService) GetGitOpsRepoNameFromUrl ¶
func (_m *ChartTemplateService) GetGitOpsRepoNameFromUrl(gitRepoUrl string) string
GetGitOpsRepoNameFromUrl provides a mock function with given fields: gitRepoUrl
func (*ChartTemplateService) GetUserEmailIdAndNameForGitOpsCommit ¶
func (_m *ChartTemplateService) GetUserEmailIdAndNameForGitOpsCommit(userId int32) (string, string)
GetUserEmailIdAndNameForGitOpsCommit provides a mock function with given fields: userId
func (*ChartTemplateService) GitPull ¶
func (_m *ChartTemplateService) GitPull(clonedDir string, repoUrl string, appStoreName string) error
GitPull provides a mock function with given fields: clonedDir, repoUrl, appStoreName
func (*ChartTemplateService) LoadChartInBytes ¶
func (_m *ChartTemplateService) LoadChartInBytes(ChartPath string, deleteChart bool, chartName string, chartVersion string) ([]byte, string, error)
LoadChartInBytes provides a mock function with given fields: ChartPath, deleteChart, chartName, chartVersion
func (*ChartTemplateService) PushChartToGitRepo ¶
func (_m *ChartTemplateService) PushChartToGitRepo(gitOpsRepoName string, referenceTemplate string, version string, tempReferenceTemplateDir string, repoUrl string, userId int32) error
PushChartToGitRepo provides a mock function with given fields: gitOpsRepoName, referenceTemplate, version, tempReferenceTemplateDir, repoUrl, userId
func (*ChartTemplateService) UpdateGitRepoUrlInCharts ¶
func (_m *ChartTemplateService) UpdateGitRepoUrlInCharts(appId int, chartGitAttribute *util.ChartGitAttribute, userId int32) error
UpdateGitRepoUrlInCharts provides a mock function with given fields: appId, chartGitAttribute, userId