Documentation
¶
Index ¶
- type ChartService
- func (_m *ChartService) AppMetricsEnableDisable(appMetricRequest chart.AppMetricEnableDisableRequest) (*chart.AppMetricEnableDisableRequest, error)
- func (_m *ChartService) ChartRefAutocomplete() ([]chart.ChartRef, error)
- func (_m *ChartService) ChartRefAutocompleteForAppOrEnv(appId int, envId int) (*chart.ChartRefResponse, error)
- func (_m *ChartService) ChartRefIdsCompatible(oldChartRefId int, newChartRefId int) (bool, string, string)
- func (_m *ChartService) CheckChartExists(chartRefId int) error
- func (_m *ChartService) CheckCustomChartByAppId(id int) (bool, error)
- func (_m *ChartService) CheckCustomChartByChartId(id int) (bool, error)
- func (_m *ChartService) CheckIsAppMetricsSupported(chartRefId int) (bool, 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) DeploymentTemplateValidate(ctx context.Context, templatejson interface{}, chartRefId int) (bool, error)
- func (_m *ChartService) ExtractChartIfMissing(chartData []byte, refChartDir string, location string) (*chart.ChartDataInfo, error)
- func (_m *ChartService) FetchChartInfoByFlag(userUploaded bool) ([]*chart.ChartDto, error)
- func (_m *ChartService) FindLatestChartForAppByAppId(appId int) (*chart.TemplateRequest, error)
- func (_m *ChartService) FindPreviousChartByAppId(appId int) (*chart.TemplateRequest, error)
- func (_m *ChartService) FlaggerCanaryEnabled(values json.RawMessage) (bool, error)
- func (_m *ChartService) GetAppOverrideForDefaultTemplate(chartRefId int) (map[string]interface{}, string, error)
- func (_m *ChartService) GetByAppIdAndChartRefId(appId int, chartRefId int) (*chart.TemplateRequest, error)
- func (_m *ChartService) GetLocationFromChartNameAndVersion(chartName string, chartVersion string) string
- func (_m *ChartService) GetRefChart(templateRequest chart.TemplateRequest) (string, string, error, string, string)
- func (_m *ChartService) GetSchemaAndReadmeForTemplateByChartRefId(chartRefId int) ([]byte, []byte, error)
- func (_m *ChartService) IsReadyToTrigger(appId int, envId int, pipelineId int) (chart.IsReady, error)
- func (_m *ChartService) JsonSchemaExtractFromFile(chartRefId int) (map[string]interface{}, string, error)
- func (_m *ChartService) PatchEnvOverrides(values json.RawMessage, oldChartType string, newChartType string) (json.RawMessage, error)
- func (_m *ChartService) ReadChartMetaDataForLocation(chartDir string, fileName string) (*chart.ChartYamlStruct, error)
- func (_m *ChartService) RegisterInArgo(chartGitAttribute *util.ChartGitAttribute, ctx context.Context) 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)
- func (_m *ChartService) ValidateUploadedFileFormat(fileName string) 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) AppMetricsEnableDisable ¶
func (_m *ChartService) AppMetricsEnableDisable(appMetricRequest chart.AppMetricEnableDisableRequest) (*chart.AppMetricEnableDisableRequest, error)
AppMetricsEnableDisable provides a mock function with given fields: appMetricRequest
func (*ChartService) ChartRefAutocomplete ¶
func (_m *ChartService) ChartRefAutocomplete() ([]chart.ChartRef, error)
ChartRefAutocomplete provides a mock function with given fields:
func (*ChartService) ChartRefAutocompleteForAppOrEnv ¶
func (_m *ChartService) ChartRefAutocompleteForAppOrEnv(appId int, envId int) (*chart.ChartRefResponse, error)
ChartRefAutocompleteForAppOrEnv provides a mock function with given fields: appId, envId
func (*ChartService) ChartRefIdsCompatible ¶
func (_m *ChartService) ChartRefIdsCompatible(oldChartRefId int, newChartRefId int) (bool, string, string)
ChartRefIdsCompatible provides a mock function with given fields: oldChartRefId, newChartRefId
func (*ChartService) CheckChartExists ¶
func (_m *ChartService) CheckChartExists(chartRefId int) error
CheckChartExists provides a mock function with given fields: chartRefId
func (*ChartService) CheckCustomChartByAppId ¶
func (_m *ChartService) CheckCustomChartByAppId(id int) (bool, error)
CheckCustomChartByAppId provides a mock function with given fields: id
func (*ChartService) CheckCustomChartByChartId ¶
func (_m *ChartService) CheckCustomChartByChartId(id int) (bool, error)
CheckCustomChartByChartId provides a mock function with given fields: id
func (*ChartService) CheckIsAppMetricsSupported ¶
func (_m *ChartService) CheckIsAppMetricsSupported(chartRefId int) (bool, error)
CheckIsAppMetricsSupported provides a mock function with given fields: chartRefId
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) DeploymentTemplateValidate ¶
func (_m *ChartService) DeploymentTemplateValidate(ctx context.Context, templatejson interface{}, chartRefId int) (bool, error)
DeploymentTemplateValidate provides a mock function with given fields: ctx, templatejson, chartRefId
func (*ChartService) ExtractChartIfMissing ¶
func (_m *ChartService) ExtractChartIfMissing(chartData []byte, refChartDir string, location string) (*chart.ChartDataInfo, error)
ExtractChartIfMissing provides a mock function with given fields: chartData, refChartDir, location
func (*ChartService) FetchChartInfoByFlag ¶
func (_m *ChartService) FetchChartInfoByFlag(userUploaded bool) ([]*chart.ChartDto, error)
FetchChartInfoByFlag provides a mock function with given fields: userUploaded
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) FlaggerCanaryEnabled ¶
func (_m *ChartService) FlaggerCanaryEnabled(values json.RawMessage) (bool, error)
FlaggerCanaryEnabled provides a mock function with given fields: values
func (*ChartService) GetAppOverrideForDefaultTemplate ¶
func (_m *ChartService) GetAppOverrideForDefaultTemplate(chartRefId int) (map[string]interface{}, string, error)
GetAppOverrideForDefaultTemplate provides a mock function with given fields: chartRefId
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) GetLocationFromChartNameAndVersion ¶
func (_m *ChartService) GetLocationFromChartNameAndVersion(chartName string, chartVersion string) string
GetLocationFromChartNameAndVersion provides a mock function with given fields: chartName, chartVersion
func (*ChartService) GetRefChart ¶
func (_m *ChartService) GetRefChart(templateRequest chart.TemplateRequest) (string, string, error, string, string)
GetRefChart provides a mock function with given fields: templateRequest
func (*ChartService) GetSchemaAndReadmeForTemplateByChartRefId ¶
func (_m *ChartService) GetSchemaAndReadmeForTemplateByChartRefId(chartRefId int) ([]byte, []byte, error)
GetSchemaAndReadmeForTemplateByChartRefId provides a mock function with given fields: chartRefId
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) JsonSchemaExtractFromFile ¶
func (_m *ChartService) JsonSchemaExtractFromFile(chartRefId int) (map[string]interface{}, string, error)
JsonSchemaExtractFromFile provides a mock function with given fields: chartRefId
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) ReadChartMetaDataForLocation ¶
func (_m *ChartService) ReadChartMetaDataForLocation(chartDir string, fileName string) (*chart.ChartYamlStruct, error)
ReadChartMetaDataForLocation provides a mock function with given fields: chartDir, fileName
func (*ChartService) RegisterInArgo ¶
func (_m *ChartService) RegisterInArgo(chartGitAttribute *util.ChartGitAttribute, ctx context.Context) error
RegisterInArgo provides a mock function with given fields: chartGitAttribute, ctx
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
func (*ChartService) UpgradeForApp ¶
func (_m *ChartService) UpgradeForApp(appId int, chartRefId int, newAppOverride map[string]interface{}, userId int32, ctx context.Context) (bool, error)
UpgradeForApp provides a mock function with given fields: appId, chartRefId, newAppOverride, userId, ctx
func (*ChartService) ValidateUploadedFileFormat ¶
func (_m *ChartService) ValidateUploadedFileFormat(fileName string) error
ValidateUploadedFileFormat provides a mock function with given fields: fileName