handler

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AffectedServices added in v1.9.9

func AffectedServices(c *gin.Context)

func BatchPreviewServices added in v1.9.9

func BatchPreviewServices(c *gin.Context)

func CheckShareEnvReady added in v1.9.9

func CheckShareEnvReady(c *gin.Context)

func CheckWorkloadsK8sServices added in v1.9.9

func CheckWorkloadsK8sServices(c *gin.Context)

func CleanProductCronJob

func CleanProductCronJob(c *gin.Context)

CleanProductCronJob is called from cron

func ConnectSshPmExec added in v1.9.9

func ConnectSshPmExec(c *gin.Context)

func CreateCommonEnvCfg added in v1.9.9

func CreateCommonEnvCfg(c *gin.Context)

func CreateProduct

func CreateProduct(c *gin.Context)

@Summary Create Product(environment) @Description Create Product(environment) @Tags environment @Accept json @Produce json @Param projectName query string true "project name" @Param type query string true "type" @Param envType query string false "env type" @Param scene query string false "scene" @Param auto query bool false "is auto" @Param body body []service.CreateSingleProductArg true "body" @Success 200 @Router /api/aslan/environment/environments [post]

CreateProduct creates new product Query param `type` determines the type of product Query param `scene` determines if the product is copied from some project

func CreateProductionCommonEnvCfg added in v1.9.9

func CreateProductionCommonEnvCfg(c *gin.Context)

func CreateProductionProduct added in v1.9.9

func CreateProductionProduct(c *gin.Context)

func DeleteCommonEnvCfg added in v1.9.9

func DeleteCommonEnvCfg(c *gin.Context)

func DeletePod

func DeletePod(c *gin.Context)

func DeleteProduct

func DeleteProduct(c *gin.Context)

func DeleteProductServices added in v1.9.9

func DeleteProductServices(c *gin.Context)

@Summary Delete services @Description Delete services from envrionment @Tags environment @Accept json @Produce json @Param projectName query string true "project name" @Param name path string true "env name" @Param body body DeleteProductServicesRequest true "body" @Success 200 @Router /api/aslan/environment/environments/{name}/services [put]

func DeleteProductionCommonEnvCfg added in v1.9.9

func DeleteProductionCommonEnvCfg(c *gin.Context)

func DeleteProductionHelmReleases added in v1.9.9

func DeleteProductionHelmReleases(c *gin.Context)

@Summary Delete production helm release from envrionment @Description Delete production helm release from envrionment @Tags environment @Accept json @Produce json @Param projectName query string true "project name" @Param name path string true "env name" @Param releaseNames query string true "release names" @Success 200 @Router /api/aslan/environment/production/environments/:name/helm/releases [delete]

func DeleteProductionProduct added in v1.9.9

func DeleteProductionProduct(c *gin.Context)

func DeleteProductionProductServices added in v1.9.9

func DeleteProductionProductServices(c *gin.Context)

func DisableBaseEnv added in v1.9.9

func DisableBaseEnv(c *gin.Context)

func DownloadFileFromPod added in v1.9.9

func DownloadFileFromPod(c *gin.Context)

func EnableBaseEnv added in v1.9.9

func EnableBaseEnv(c *gin.Context)

func EstimatedValues added in v1.6.0

func EstimatedValues(c *gin.Context)

func ExportProductionServiceYaml added in v1.9.9

func ExportProductionServiceYaml(c *gin.Context)

func ExportYaml

func ExportYaml(c *gin.Context)

func GetBundleResources added in v1.7.1

func GetBundleResources(c *gin.Context)

func GetChartInfos added in v1.8.0

func GetChartInfos(c *gin.Context)

func GetChartValues added in v1.9.9

func GetChartValues(c *gin.Context)

func GetEnvAnalysisCron added in v1.9.9

func GetEnvAnalysisCron(c *gin.Context)

@Summary Get Env Analysis Cron @Description Get Env Analysis Cron @Tags environment @Accept json @Produce json @Param name path string true "env name" @Param projectName query string true "project name" @Success 200 @Router /api/aslan/environment/environments/{name}/analysis/cron [get]

func GetEnvAnalysisHistory added in v1.9.9

func GetEnvAnalysisHistory(c *gin.Context)

func GetEnvConfigs added in v1.9.9

func GetEnvConfigs(c *gin.Context)

@Summary Get enviroment configs @Description Get environment configs @Tags environment @Accept json @Produce json @Param projectName query string true "project name" @Param name path string true "env name" @Success 200 {object} service.EnvConfigsArgs @Router /api/aslan/environment/environments/{name}/configs [get]

func GetEnvironment added in v1.9.9

func GetEnvironment(c *gin.Context)

@Summary Get Product @Description Get Product @Tags environment @Accept json @Produce json @Param projectName query string true "project name" @Param name path string true "env name" @Success 200 {object} service.ProductResp @Router /api/aslan/environment/production/environments/{name} [get]

func GetEstimatedRenderCharts added in v1.5.0

func GetEstimatedRenderCharts(c *gin.Context)

func GetGlobalVariableCandidates added in v1.9.9

func GetGlobalVariableCandidates(c *gin.Context)

@Summary Get global variable candidates @Description Get global variable candidates @Tags environment @Accept json @Produce json @Param projectName query string true "project name" @Param name path string true "env name" @Success 200 {array} commontypes.ServiceVariableKV @Router /api/aslan/environment/environments/{name}/globalVariableCandidates [get]

func GetGlobalVariables added in v1.9.9

func GetGlobalVariables(c *gin.Context)

@Summary Get global variable @Description Get global variable from environment, current only used for k8s project @Tags environment @Accept json @Produce json @Param projectName query string true "project name" @Param envName query string true "env name" @Success 200 {object} getGlobalVariablesRespone @Router /api/aslan/environment/rendersets/globalVariables [get]

func GetHelmChartVersions added in v1.2.0

func GetHelmChartVersions(c *gin.Context)

func GetImageInfos added in v1.9.9

func GetImageInfos(c *gin.Context)

func GetInitProduct

func GetInitProduct(c *gin.Context)

@Summary Get init product @Description Get init product @Tags environment @Accept json @Produce json @Param name path string true "project template name" @Param envType query string true "env type" @Param isBaseEnv query string true "is base env" @Param baseEnv query string true "base env" @Success 200 {object} getInitProductRespone @Router /api/aslan/environment/init_info/{name} [get]

func GetK8sResourceYaml added in v1.9.9

func GetK8sResourceYaml(c *gin.Context)

func GetK8sWorkflowDetail added in v1.9.9

func GetK8sWorkflowDetail(c *gin.Context)

func GetOperationLogs added in v1.9.9

func GetOperationLogs(c *gin.Context)

func GetProductDefaultValues added in v1.6.0

func GetProductDefaultValues(c *gin.Context)

func GetProductInfo

func GetProductInfo(c *gin.Context)

func GetProductionChartValues added in v1.9.9

func GetProductionChartValues(c *gin.Context)

@Summary Get Production Chart Values @Description Get Production Chart Values @Tags environment @Accept json @Produce json @Param name path string true "env name" @Param projectName query string true "project name" @Param serviceName query string false "service name" @Param releaseName query string false "release name" @Param isHelmChartDeploy query string true "isHelmChartDeploy" @Param body body service.SyncCollaborationInstanceArgs true "body" @Success 200 {object} commonservice.ValuesResp @Router /api/aslan/environment/production/environments/{name}/helm/values [get]

func GetProductionEnv added in v1.9.9

func GetProductionEnv(c *gin.Context)

func GetProductionEnvAnalysisCron added in v1.9.9

func GetProductionEnvAnalysisCron(c *gin.Context)

@Summary Get Production Env Analysis Cron @Description Get Production Env Analysis Cron @Tags environment @Accept json @Produce json @Param name path string true "env name" @Param projectName query string true "project name" @Success 200 @Router /api/aslan/environment/production/environments/{name}/analysis/cron [get]

func GetProductionEnvConfigs added in v1.9.9

func GetProductionEnvConfigs(c *gin.Context)

@Summary Get production enviroment configs @Description Get production environment configs @Tags environment @Accept json @Produce json @Param projectName query string true "project name" @Param name path string true "env name" @Success 200 {object} service.EnvConfigsArgs @Router /api/aslan/environment/production/environments/{name}/configs [get]

func GetProductionEstimatedRenderCharts added in v1.9.9

func GetProductionEstimatedRenderCharts(c *gin.Context)

func GetProductionService added in v1.9.9

func GetProductionService(c *gin.Context)

@Summary Get Production Service @Description Get Production Service @Tags environment @Accept json @Produce json @Param name path string true "env name" @Param serviceName path string true "service name or release name" @Param projectName query string true "project name" @Param isHelmChartDeploy query bool true "is helm chart deploy" @Param workLoadType query string true "workload type" @Success 200 {object} service.SvcResp @Router /api/aslan/environment/environments/{name}/services/{serviceName} [get]

func GetProductionServiceVariables added in v1.9.9

func GetProductionServiceVariables(c *gin.Context)

func GetProductionVariables added in v1.9.9

func GetProductionVariables(c *gin.Context)

@Summary Get production service variables @Description Get production service variables @Tags environment @Accept json @Produce json @Param projectName query string true "project name" @Param name path string true "env name" @Param serviceName path string true "service name" @Success 200 {array} commonservice.K8sSvcRenderArg @Router /api/aslan/environments/{name}/services/{serviceName}/variables [get]

func GetReleaseDeployStatus added in v1.9.9

func GetReleaseDeployStatus(c *gin.Context)

func GetReleaseInstanceDeployStatus added in v1.9.9

func GetReleaseInstanceDeployStatus(c *gin.Context)

@Summary Get Release Instance Deploy Status @Description Get Release Instance Deploy Status @Tags environment @Accept json @Produce json @Param projectName query string true "project name" @Param body body service.HelmDeployStatusCheckRequest true "body" @Success 200 {array} service.GetReleaseInstanceDeployStatusResponse @Router /api/aslan/environment/kube/helm/releaseInstances [post]

func GetResourceDeployStatus added in v1.9.9

func GetResourceDeployStatus(c *gin.Context)

@Summary Get Resource Deploy Status @Description Get Resource Deploy Status @Tags environment @Accept json @Produce json @Param projectName query string true "project name" @Param body body service.K8sDeployStatusCheckRequest true "body" @Success 200 {array} service.ServiceDeployStatus @Router /api/aslan/environment/kube/k8s/resources [post]

func GetService

func GetService(c *gin.Context)

func GetServiceContainer

func GetServiceContainer(c *gin.Context)

func GetServiceRenderCharts added in v1.5.0

func GetServiceRenderCharts(c *gin.Context)

@Summary Get Service render charts @Description Get service render charts @Tags environment @Accept json @Produce json @Param projectName query string true "project name" @Param envName query string false "env name" @Param body body commonservice.GetSvcRenderRequest true "body" @Success 200 {array} commonservice.HelmSvcRenderArg @Router /api/aslan/environment/production/rendersets/renderchart [post]

func GetServiceVariables added in v1.9.9

func GetServiceVariables(c *gin.Context)

@Summary Get service variables @Description Get service variables @Tags environment @Accept json @Produce json @Param projectName query string true "project name" @Param envName query string false "env name" @Param serviceName query string true "service name" @Success 200 {array} commonservice.K8sSvcRenderArg @Router /api/aslan/environment/rendersets/variables [get]

func GetYamlContent added in v1.6.0

func GetYamlContent(c *gin.Context)

func ListAllK8sResourcesInNamespace added in v1.9.9

func ListAllK8sResourcesInNamespace(c *gin.Context)

func ListAvailableNamespaces

func ListAvailableNamespaces(c *gin.Context)

func ListCanaryDeploymentServiceInfo added in v1.9.9

func ListCanaryDeploymentServiceInfo(c *gin.Context)

func ListCommonEnvCfgHistory added in v1.9.9

func ListCommonEnvCfgHistory(c *gin.Context)

func ListConfigMaps

func ListConfigMaps(c *gin.Context)

func ListCustomWorkload added in v1.9.9

func ListCustomWorkload(c *gin.Context)

func ListDeploymentNames added in v1.9.9

func ListDeploymentNames(c *gin.Context)

func ListGroups

func ListGroups(c *gin.Context)

func ListIngresses added in v1.9.9

func ListIngresses(c *gin.Context)

func ListK8sResOverview added in v1.9.9

func ListK8sResOverview(c *gin.Context)

func ListKubeEvents

func ListKubeEvents(c *gin.Context)

func ListLatestEnvCfg added in v1.9.9

func ListLatestEnvCfg(c *gin.Context)

func ListNamespace added in v1.9.9

func ListNamespace(c *gin.Context)

func ListNodes added in v1.8.0

func ListNodes(c *gin.Context)

func ListPodEvents

func ListPodEvents(c *gin.Context)

func ListProductionCommonEnvCfgHistory added in v1.9.9

func ListProductionCommonEnvCfgHistory(c *gin.Context)

func ListProductionConfigMaps added in v1.9.9

func ListProductionConfigMaps(c *gin.Context)

func ListProductionEnvs added in v1.9.9

func ListProductionEnvs(c *gin.Context)

func ListProductionGroups added in v1.9.9

func ListProductionGroups(c *gin.Context)

func ListProductionIngresses added in v1.9.9

func ListProductionIngresses(c *gin.Context)

func ListProductionPvcs added in v1.9.9

func ListProductionPvcs(c *gin.Context)

func ListProductionReleases added in v1.9.9

func ListProductionReleases(c *gin.Context)

func ListProductionSecrets added in v1.9.9

func ListProductionSecrets(c *gin.Context)

func ListProducts

func ListProducts(c *gin.Context)

func ListProductsRevision

func ListProductsRevision(c *gin.Context)

func ListProductsRevisionSnaps added in v1.9.9

func ListProductsRevisionSnaps(c *gin.Context)

ListProductsRevisionSnaps called from cron service

func ListPvcs added in v1.9.9

func ListPvcs(c *gin.Context)

func ListReleases added in v1.8.0

func ListReleases(c *gin.Context)

func ListSecrets added in v1.9.9

func ListSecrets(c *gin.Context)

func ListServicePods

func ListServicePods(c *gin.Context)

func ListSvcsInEnv added in v1.9.9

func ListSvcsInEnv(c *gin.Context)

@Summary List services in env @Description List services in env @Tags environment @Accept json @Produce json @Param name path string true "env name" @Param projectName query string true "project name" @Success 200 {object} commonservice.EnvServices @Router /api/aslan/environment/environments/{name}/services [get]

func ListWorkloads added in v1.5.0

func ListWorkloads(c *gin.Context)

func ListWorkloadsInEnv added in v1.5.0

func ListWorkloadsInEnv(c *gin.Context)

@Summary List Workloads In Env @Description List Workloads In Env @Tags environment @Accept json @Produce json @Param name path string true "env name" @Success 200 {array} commonservice.ServiceResp @Router /api/aslan/environment/production/environments/{name}/workloads [get]

func ListWorkloadsInfo added in v1.9.9

func ListWorkloadsInfo(c *gin.Context)

func MigrateHistoryConfigMaps added in v1.9.9

func MigrateHistoryConfigMaps(c *gin.Context)

func OpenAPIApplyProductionYamlService added in v1.9.9

func OpenAPIApplyProductionYamlService(c *gin.Context)

func OpenAPIApplyYamlService added in v1.9.9

func OpenAPIApplyYamlService(c *gin.Context)

func OpenAPICreateCommonEnvCfg added in v1.9.9

func OpenAPICreateCommonEnvCfg(c *gin.Context)

func OpenAPICreateK8sEnv added in v1.9.9

func OpenAPICreateK8sEnv(c *gin.Context)

func OpenAPICreateProductionEnv added in v1.9.9

func OpenAPICreateProductionEnv(c *gin.Context)

func OpenAPIDeleteCommonEnvCfg added in v1.9.9

func OpenAPIDeleteCommonEnvCfg(c *gin.Context)

func OpenAPIDeleteEnv added in v1.9.9

func OpenAPIDeleteEnv(c *gin.Context)

func OpenAPIDeleteProductionEnv added in v1.9.9

func OpenAPIDeleteProductionEnv(c *gin.Context)

func OpenAPIDeleteProductionEnvCommonEnvCfg added in v1.9.9

func OpenAPIDeleteProductionEnvCommonEnvCfg(c *gin.Context)

func OpenAPIDeleteProductionYamlServiceFromEnv added in v1.9.9

func OpenAPIDeleteProductionYamlServiceFromEnv(c *gin.Context)

func OpenAPIDeleteYamlServiceFromEnv added in v1.9.9

func OpenAPIDeleteYamlServiceFromEnv(c *gin.Context)

func OpenAPIGetCommonEnvCfg added in v1.9.9

func OpenAPIGetCommonEnvCfg(c *gin.Context)

func OpenAPIGetEnvDetail added in v1.9.9

func OpenAPIGetEnvDetail(c *gin.Context)

func OpenAPIGetEnvGlobalVariables added in v1.9.9

func OpenAPIGetEnvGlobalVariables(c *gin.Context)

func OpenAPIGetProductionCommonEnvCfg added in v1.9.9

func OpenAPIGetProductionCommonEnvCfg(c *gin.Context)

func OpenAPIGetProductionEnvDetail added in v1.9.9

func OpenAPIGetProductionEnvDetail(c *gin.Context)

func OpenAPIGetProductionEnvGlobalVariables added in v1.9.9

func OpenAPIGetProductionEnvGlobalVariables(c *gin.Context)

func OpenAPIListCommonEnvCfg added in v1.9.9

func OpenAPIListCommonEnvCfg(c *gin.Context)

func OpenAPIListEnvs added in v1.9.9

func OpenAPIListEnvs(c *gin.Context)

func OpenAPIListProductionCommonEnvCfg added in v1.9.9

func OpenAPIListProductionCommonEnvCfg(c *gin.Context)

func OpenAPIListProductionEnvs added in v1.9.9

func OpenAPIListProductionEnvs(c *gin.Context)

func OpenAPIRestartService added in v1.9.9

func OpenAPIRestartService(c *gin.Context)

func OpenAPIScaleWorkloads added in v1.9.9

func OpenAPIScaleWorkloads(c *gin.Context)

func OpenAPIUpdateCommonEnvCfg added in v1.9.9

func OpenAPIUpdateCommonEnvCfg(c *gin.Context)

func OpenAPIUpdateEnvBasicInfo added in v1.9.9

func OpenAPIUpdateEnvBasicInfo(c *gin.Context)

func OpenAPIUpdateGlobalVariables added in v1.9.9

func OpenAPIUpdateGlobalVariables(c *gin.Context)

func OpenAPIUpdateProductionCommonEnvCfg added in v1.9.9

func OpenAPIUpdateProductionCommonEnvCfg(c *gin.Context)

func OpenAPIUpdateProductionEnvBasicInfo added in v1.9.9

func OpenAPIUpdateProductionEnvBasicInfo(c *gin.Context)

func OpenAPIUpdateProductionGlobalVariables added in v1.9.9

func OpenAPIUpdateProductionGlobalVariables(c *gin.Context)

func OpenAPIUpdateProductionYamlServices added in v1.9.9

func OpenAPIUpdateProductionYamlServices(c *gin.Context)

func OpenAPIUpdateYamlServices added in v1.9.9

func OpenAPIUpdateYamlServices(c *gin.Context)

func PatchDebugContainer added in v1.9.9

func PatchDebugContainer(c *gin.Context)

func PatchWorkload added in v1.9.9

func PatchWorkload(c *gin.Context)

func PreviewGlobalVariables added in v1.9.9

func PreviewGlobalVariables(c *gin.Context)

func PreviewHelmProductDefaultValues added in v1.9.9

func PreviewHelmProductDefaultValues(c *gin.Context)

func PreviewProductionEnvGlobalVariables added in v1.9.9

func PreviewProductionEnvGlobalVariables(c *gin.Context)

func PreviewProductionHelmProductDefaultValues added in v1.9.9

func PreviewProductionHelmProductDefaultValues(c *gin.Context)

func PreviewService added in v1.9.9

func PreviewService(c *gin.Context)

@Summary Preview service @Description Preview service @Tags environment @Accept json @Produce json @Param projectName query string true "project name" @Param name path string true "env name" @Param serviceName path string true "service name" @Param body body service.PreviewServiceArgs true "body" @Success 200 {object} service.SvcDiffResult @Router /api/aslan/environment/environments/{name}/services/{serviceName}/preview [post]

func ProductionEstimatedValues added in v1.9.9

func ProductionEstimatedValues(c *gin.Context)

@Summary Get Production Estimated Values @Description Get Production Estimated Values @Tags environment @Accept json @Produce json @Param name path string true "env name" @Param projectName query string true "project name" @Param serviceName query string true "service name or release name" @Param isHelmChartDeploy query string true "is helm chart deploy" @Param body body service.EstimateValuesArg true "body" @Success 200 {object} service.RawYamlResp @Router /api/aslan/environment/production/environments/{name}/estimated-values [post]

func ProductionServiceDiff added in v1.9.9

func ProductionServiceDiff(c *gin.Context)

func RecoverWorkload added in v1.9.9

func RecoverWorkload(c *gin.Context)

func RestartProductionService added in v1.9.9

func RestartProductionService(c *gin.Context)

func RestartProductionWorkload added in v1.9.9

func RestartProductionWorkload(c *gin.Context)

func RestartService

func RestartService(c *gin.Context)

func RestartWorkload added in v1.9.9

func RestartWorkload(c *gin.Context)

func RollBackConfigMap

func RollBackConfigMap(c *gin.Context)

func RunAnalysis added in v1.9.9

func RunAnalysis(c *gin.Context)

@Summary Run Enviroment Analysis @Description Run Enviroment Analysis @Tags environment @Accept json @Produce json @Param name path string true "env name" @Param projectName query string true "project name" @Success 200 {object} service.EnvAnalysisRespone @Router /api/aslan/environment/environments/{name}/analysis [post]

func RunProductionAnalysis added in v1.9.9

func RunProductionAnalysis(c *gin.Context)

@Summary Run Production Enviroment Analysis @Description Run Production Enviroment Analysis @Tags environment @Accept json @Produce json @Param name path string true "env name" @Param projectName query string true "project name" @Success 200 {object} service.EnvAnalysisRespone @Router /api/aslan/environment/production/environments/{name}/analysis [post]

func ScaleNewService

func ScaleNewService(c *gin.Context)

func ServiceDiff

func ServiceDiff(c *gin.Context)

func SyncEnvResource added in v1.9.9

func SyncEnvResource(c *gin.Context)

func SyncHelmProductRenderset added in v1.9.9

func SyncHelmProductRenderset(c *gin.Context)

func UpdateCommonEnvCfg added in v1.9.9

func UpdateCommonEnvCfg(c *gin.Context)

func UpdateCronJobContainerImage added in v1.9.9

func UpdateCronJobContainerImage(c *gin.Context)

func UpdateDeploymentContainerImage

func UpdateDeploymentContainerImage(c *gin.Context)

func UpdateEnvConfigs added in v1.9.9

func UpdateEnvConfigs(c *gin.Context)

@Summary Update enviroment configs @Description Update environment configs @Tags environment @Accept json @Produce json @Param name path string true "env name" @Param projectName query string true "project name" @Param body body service.EnvConfigsArgs true "body" @Success 200 @Router /api/aslan/environment/environments/{name}/configs [put]

func UpdateHelmProductCharts added in v1.9.9

func UpdateHelmProductCharts(c *gin.Context)

@Summary Update helm product charts @Description Update helm product charts @Tags environment @Accept json @Produce json @Param projectName query string true "project name" @Param name path string true "env name" @Param body body service.EnvRendersetArg true "body" @Success 200 @Router /api/aslan/environment/production/environments/{name}/helm/charts [put]

func UpdateHelmProductDefaultValues added in v1.9.9

func UpdateHelmProductDefaultValues(c *gin.Context)

func UpdateHelmProductRenderset added in v1.6.0

func UpdateHelmProductRenderset(c *gin.Context)

func UpdateK8sProductGlobalVariables added in v1.9.9

func UpdateK8sProductGlobalVariables(c *gin.Context)

@Summary Update global variables @Description Update global variables @Tags environment @Accept json @Produce json @Param projectName query string true "project name" @Param name path string true "env name" @Param body body updateK8sProductGlobalVariablesRequest true "body" @Success 200 @Router /api/aslan/environment/environments/{name}/k8s/globalVariables [put]

func UpdateMultiProductionProducts added in v1.9.9

func UpdateMultiProductionProducts(c *gin.Context)

@Summary Update Multi production products @Description Update Multi production products @Tags environment @Accept json @Produce json @Param projectName query string true "project name" @Param type query string false "type" @Param force query bool true "is force" @Param k8s_body body []service.UpdateEnv true "updateMultiK8sEnv body" @Param helm_body body service.UpdateMultiHelmProductArg true "updateMultiHelmEnv body" @Param helm_chart_body body service.UpdateMultiHelmProductArg true "updateMultiHelmChartEnv body" @Param pm_body body []service.UpdateEnv true "updateMultiCvmEnv body" @Success 200 @Router /api/aslan/environment/production/environments [put]

func UpdateMultiProducts added in v1.7.1

func UpdateMultiProducts(c *gin.Context)

@Summary Update Multi products @Description Update Multi products @Tags environment @Accept json @Produce json @Param projectName query string true "project name" @Param type query string false "type" @Param force query bool true "is force" @Param k8s_body body []service.UpdateEnv true "updateMultiK8sEnv body" @Param helm_body body service.UpdateMultiHelmProductArg true "updateMultiHelmEnv body" @Param pm_body body []service.UpdateEnv true "updateMultiCvmEnv body" @Success 200 @Router /api/aslan/environment/environments [put]

func UpdateProduct

func UpdateProduct(c *gin.Context)

UpdateProduct update product variables, used for pm products

func UpdateProductAlias added in v1.9.9

func UpdateProductAlias(c *gin.Context)

func UpdateProductRecycleDay added in v1.2.0

func UpdateProductRecycleDay(c *gin.Context)

func UpdateProductRegistry added in v1.8.0

func UpdateProductRegistry(c *gin.Context)

func UpdateProductionCommonEnvCfg added in v1.9.9

func UpdateProductionCommonEnvCfg(c *gin.Context)

func UpdateProductionDeploymentContainerImage added in v1.9.9

func UpdateProductionDeploymentContainerImage(c *gin.Context)

func UpdateProductionEnvConfigs added in v1.9.9

func UpdateProductionEnvConfigs(c *gin.Context)

@Summary Update production enviroment configs @Description Update production environment configs @Tags environment @Accept json @Produce json @Param name path string true "env name" @Param projectName query string true "project name" @Param body body service.EnvConfigsArgs true "body" @Success 200 @Router /api/aslan/environment/production/environments/{name}/configs [put]

func UpdateProductionEnvHelmProductCharts added in v1.9.9

func UpdateProductionEnvHelmProductCharts(c *gin.Context)

func UpdateProductionEnvK8sProductGlobalVariables added in v1.9.9

func UpdateProductionEnvK8sProductGlobalVariables(c *gin.Context)

func UpdateProductionHelmProductDefaultValues added in v1.9.9

func UpdateProductionHelmProductDefaultValues(c *gin.Context)

func UpdateProductionProductRegistry added in v1.9.9

func UpdateProductionProductRegistry(c *gin.Context)

func UpdateProductionService added in v1.9.9

func UpdateProductionService(c *gin.Context)

func UpdateService

func UpdateService(c *gin.Context)

@Summary Update service @Description Update service @Tags environment @Accept json @Produce json @Param projectName query string true "project name" @Param name path string true "env name" @Param serviceName path string true "service name" @Param body body service.SvcRevision true "body" @Success 200 @Router /api/aslan/environment/environments/{name}/services/{serviceName} [put]

func UpdateStatefulSetContainerImage

func UpdateStatefulSetContainerImage(c *gin.Context)

func UpsertEnvAnalysisCron added in v1.9.9

func UpsertEnvAnalysisCron(c *gin.Context)

@Summary Upsert Env Analysis Cron @Description Upsert Env Analysis Cron @Tags environment @Accept json @Produce json @Param name path string true "env name" @Param projectName query string true "project name" @Param body body service.EnvAnalysisCronArg true "body" @Success 200 @Router /api/aslan/environment/environments/{name}/analysis/cron [put]

func UpsertProductionEnvAnalysisCron added in v1.9.9

func UpsertProductionEnvAnalysisCron(c *gin.Context)

@Summary Upsert Production Env Analysis Cron @Description Upsert Production Env Analysis Cron @Tags environment @Accept json @Produce json @Param name path string true "env name" @Param projectName query string true "project name" @Param body body service.EnvAnalysisCronArg true "body" @Success 200 @Router /api/aslan/environment/production/environments/{name}/analysis/cron [put]

Types

type ChartInfoArgs

type ChartInfoArgs struct {
	ChartInfos []*template.ServiceRender `json:"chart_infos"`
}

type DeleteProductHelmReleaseRequest added in v1.9.9

type DeleteProductHelmReleaseRequest struct {
	ReleaseNames []string `json:"release_names"`
}

type DeleteProductServicesRequest added in v1.9.9

type DeleteProductServicesRequest struct {
	ServiceNames []string `json:"service_names"`
}

type EnvAnalysisHistoryReq added in v1.9.9

type EnvAnalysisHistoryReq struct {
	ProjectName string `json:"projectName" form:"projectName"`
	Production  bool   `json:"production" form:"production"`
	EnvName     string `json:"envName" form:"envName"`
	PageNum     int    `json:"pageNum" form:"pageNum"`
	PageSize    int    `json:"pageSize" form:"pageSize"`
}

type EnvAnalysisHistoryResp added in v1.9.9

type EnvAnalysisHistoryResp struct {
	Total  int64               `json:"total"`
	Result []*ai.EnvAIAnalysis `json:"result"`
}

type ListServicePodsArgs

type ListServicePodsArgs struct {
	ProductName string `json:"product_name"`
	EnvName     string `json:"env_name"`
	// contains filtered or unexported fields
}

type ListWorkloadsArgs added in v1.5.0

type ListWorkloadsArgs struct {
	Namespace    string `json:"namespace"    form:"namespace"`
	ClusterID    string `json:"clusterId"    form:"clusterId"`
	WorkloadName string `json:"workloadName" form:"workloadName"`
	PerPage      int    `json:"perPage"      form:"perPage,default:20"`
	Page         int    `json:"page"         form:"page,default:1"`
}

type NamespaceResource

type NamespaceResource struct {
	Services  []*commonservice.ServiceResp `json:"services"`
	Ingresses []resource.Ingress           `json:"ingresses"`
}

type OpenAPIRouter added in v1.9.9

type OpenAPIRouter struct{}

func (*OpenAPIRouter) Inject added in v1.9.9

func (*OpenAPIRouter) Inject(router *gin.RouterGroup)

type OperationLog added in v1.9.9

type OperationLog struct {
	Count int                    `json:"count"`
	Logs  []*models.OperationLog `json:"logs"`
}

type Router

type Router struct{}

func (*Router) Inject

func (*Router) Inject(router *gin.RouterGroup)

type UpdateProductParams added in v1.9.9

type UpdateProductParams struct {
	ServiceNames []string `json:"service_names"`
	VariableYaml string   `json:"variable_yaml"`
	commonmodels.Product
}

type UpdateProductRegistryRequest added in v1.8.0

type UpdateProductRegistryRequest struct {
	RegistryID string `json:"registry_id"`
}

Jump to

Keyboard shortcuts

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