Documentation ¶
Index ¶
- type ChartService
- func (_m *ChartService) ChartRefAutocompleteForAppOrEnv(appId int, envId int) (*bean.ChartRefAutocompleteResponse, error)
- func (_m *ChartService) CheckIfChartRefUserUploadedByAppId(id int) (bool, error)
- func (_m *ChartService) ConfigureGitOpsRepoUrl(appId int, repoUrl string, chartLocation string, userId int32) error
- func (_m *ChartService) Create(templateRequest chart.TemplateRequest, ctx context.Context) (*chart.TemplateRequest, error)
- func (_m *ChartService) CreateChartFromEnvOverride(templateRequest chart.TemplateRequest, ctx context.Context) (*chart.TemplateRequest, error)
- func (_m *ChartService) FindLatestChartForAppByAppId(appId int) (*chart.TemplateRequest, error)
- func (_m *ChartService) FindPreviousChartByAppId(appId int) (*chart.TemplateRequest, error)
- func (_m *ChartService) GetByAppIdAndChartRefId(appId int, chartRefId int) (*chart.TemplateRequest, error)
- func (_m *ChartService) IsGitOpsRepoAlreadyRegistered(gitOpsRepoUrl string) (bool, error)
- func (_m *ChartService) IsGitOpsRepoConfiguredForDevtronApps(appId int) (bool, error)
- func (_m *ChartService) IsReadyToTrigger(appId int, envId int, pipelineId int) (chart.IsReady, error)
- func (_m *ChartService) PatchEnvOverrides(values json.RawMessage, oldChartType string, newChartType string) (json.RawMessage, error)
- func (_m *ChartService) UpdateAppOverride(ctx context.Context, templateRequest *chart.TemplateRequest) (*chart.TemplateRequest, error)
- func (_m *ChartService) UpgradeForApp(appId int, chartRefId int, newAppOverride map[string]interface{}, userId int32, ...) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChartService ¶
ChartService is an autogenerated mock type for the ChartService type
func NewChartService ¶
func NewChartService(t interface { mock.TestingT Cleanup(func()) }) *ChartService
NewChartService creates a new instance of ChartService. 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 (*ChartService) ChartRefAutocompleteForAppOrEnv ¶
func (_m *ChartService) ChartRefAutocompleteForAppOrEnv(appId int, envId int) (*bean.ChartRefAutocompleteResponse, error)
ChartRefAutocompleteForAppOrEnv provides a mock function with given fields: appId, envId
func (*ChartService) CheckIfChartRefUserUploadedByAppId ¶ added in v0.6.29
func (_m *ChartService) CheckIfChartRefUserUploadedByAppId(id int) (bool, error)
CheckIfChartRefUserUploadedByAppId provides a mock function with given fields: id
func (*ChartService) ConfigureGitOpsRepoUrl ¶ added in v0.6.29
func (_m *ChartService) ConfigureGitOpsRepoUrl(appId int, repoUrl string, chartLocation string, userId int32) error
ConfigureGitOpsRepoUrl provides a mock function with given fields: appId, repoUrl, chartLocation, userId
func (*ChartService) Create ¶
func (_m *ChartService) Create(templateRequest chart.TemplateRequest, ctx context.Context) (*chart.TemplateRequest, error)
Create provides a mock function with given fields: templateRequest, ctx
func (*ChartService) CreateChartFromEnvOverride ¶
func (_m *ChartService) CreateChartFromEnvOverride(templateRequest chart.TemplateRequest, ctx context.Context) (*chart.TemplateRequest, error)
CreateChartFromEnvOverride provides a mock function with given fields: templateRequest, ctx
func (*ChartService) FindLatestChartForAppByAppId ¶
func (_m *ChartService) FindLatestChartForAppByAppId(appId int) (*chart.TemplateRequest, error)
FindLatestChartForAppByAppId provides a mock function with given fields: appId
func (*ChartService) FindPreviousChartByAppId ¶
func (_m *ChartService) FindPreviousChartByAppId(appId int) (*chart.TemplateRequest, error)
FindPreviousChartByAppId provides a mock function with given fields: appId
func (*ChartService) GetByAppIdAndChartRefId ¶
func (_m *ChartService) GetByAppIdAndChartRefId(appId int, chartRefId int) (*chart.TemplateRequest, error)
GetByAppIdAndChartRefId provides a mock function with given fields: appId, chartRefId
func (*ChartService) IsGitOpsRepoAlreadyRegistered ¶ added in v0.6.29
func (_m *ChartService) IsGitOpsRepoAlreadyRegistered(gitOpsRepoUrl string) (bool, error)
IsGitOpsRepoAlreadyRegistered provides a mock function with given fields: gitOpsRepoUrl
func (*ChartService) IsGitOpsRepoConfiguredForDevtronApps ¶ added in v0.6.29
func (_m *ChartService) IsGitOpsRepoConfiguredForDevtronApps(appId int) (bool, error)
IsGitOpsRepoConfiguredForDevtronApps provides a mock function with given fields: appId
func (*ChartService) IsReadyToTrigger ¶
func (_m *ChartService) IsReadyToTrigger(appId int, envId int, pipelineId int) (chart.IsReady, error)
IsReadyToTrigger provides a mock function with given fields: appId, envId, pipelineId
func (*ChartService) PatchEnvOverrides ¶
func (_m *ChartService) PatchEnvOverrides(values json.RawMessage, oldChartType string, newChartType string) (json.RawMessage, error)
PatchEnvOverrides provides a mock function with given fields: values, oldChartType, newChartType
func (*ChartService) UpdateAppOverride ¶
func (_m *ChartService) UpdateAppOverride(ctx context.Context, templateRequest *chart.TemplateRequest) (*chart.TemplateRequest, error)
UpdateAppOverride provides a mock function with given fields: ctx, templateRequest