Documentation ¶
Index ¶
- func AffectedServices(c *gin.Context)
- func BatchPreviewServices(c *gin.Context)
- func CheckShareEnvReady(c *gin.Context)
- func CheckWorkloadsK8sServices(c *gin.Context)
- func CleanProductCronJob(c *gin.Context)
- func ConnectSshPmExec(c *gin.Context)
- func CreateCommonEnvCfg(c *gin.Context)
- func CreateProduct(c *gin.Context)
- func CreateProductionCommonEnvCfg(c *gin.Context)
- func CreateProductionProduct(c *gin.Context)
- func DeleteCommonEnvCfg(c *gin.Context)
- func DeletePod(c *gin.Context)
- func DeleteProduct(c *gin.Context)
- func DeleteProductServices(c *gin.Context)
- func DeleteProductionCommonEnvCfg(c *gin.Context)
- func DeleteProductionHelmReleases(c *gin.Context)
- func DeleteProductionProduct(c *gin.Context)
- func DeleteProductionProductServices(c *gin.Context)
- func DisableBaseEnv(c *gin.Context)
- func DownloadFileFromPod(c *gin.Context)
- func EnableBaseEnv(c *gin.Context)
- func EstimatedValues(c *gin.Context)
- func ExportProductionServiceYaml(c *gin.Context)
- func ExportYaml(c *gin.Context)
- func GetBundleResources(c *gin.Context)
- func GetChartInfos(c *gin.Context)
- func GetChartValues(c *gin.Context)
- func GetEnvAnalysisCron(c *gin.Context)
- func GetEnvAnalysisHistory(c *gin.Context)
- func GetEnvConfigs(c *gin.Context)
- func GetEnvironment(c *gin.Context)
- func GetEstimatedRenderCharts(c *gin.Context)
- func GetGlobalVariableCandidates(c *gin.Context)
- func GetGlobalVariables(c *gin.Context)
- func GetHelmChartVersions(c *gin.Context)
- func GetImageInfos(c *gin.Context)
- func GetInitProduct(c *gin.Context)
- func GetK8sResourceYaml(c *gin.Context)
- func GetK8sWorkflowDetail(c *gin.Context)
- func GetOperationLogs(c *gin.Context)
- func GetProductDefaultValues(c *gin.Context)
- func GetProductInfo(c *gin.Context)
- func GetProductionChartValues(c *gin.Context)
- func GetProductionEnv(c *gin.Context)
- func GetProductionEnvAnalysisCron(c *gin.Context)
- func GetProductionEnvConfigs(c *gin.Context)
- func GetProductionEstimatedRenderCharts(c *gin.Context)
- func GetProductionService(c *gin.Context)
- func GetProductionServiceVariables(c *gin.Context)
- func GetProductionVariables(c *gin.Context)
- func GetReleaseDeployStatus(c *gin.Context)
- func GetReleaseInstanceDeployStatus(c *gin.Context)
- func GetResourceDeployStatus(c *gin.Context)
- func GetService(c *gin.Context)
- func GetServiceContainer(c *gin.Context)
- func GetServiceRenderCharts(c *gin.Context)
- func GetServiceVariables(c *gin.Context)
- func GetYamlContent(c *gin.Context)
- func ListAllK8sResourcesInNamespace(c *gin.Context)
- func ListAvailableNamespaces(c *gin.Context)
- func ListCanaryDeploymentServiceInfo(c *gin.Context)
- func ListCommonEnvCfgHistory(c *gin.Context)
- func ListConfigMaps(c *gin.Context)
- func ListCustomWorkload(c *gin.Context)
- func ListDeploymentNames(c *gin.Context)
- func ListGroups(c *gin.Context)
- func ListIngresses(c *gin.Context)
- func ListK8sResOverview(c *gin.Context)
- func ListKubeEvents(c *gin.Context)
- func ListLatestEnvCfg(c *gin.Context)
- func ListNamespace(c *gin.Context)
- func ListNodes(c *gin.Context)
- func ListPodEvents(c *gin.Context)
- func ListProductionCommonEnvCfgHistory(c *gin.Context)
- func ListProductionConfigMaps(c *gin.Context)
- func ListProductionEnvs(c *gin.Context)
- func ListProductionGroups(c *gin.Context)
- func ListProductionIngresses(c *gin.Context)
- func ListProductionPvcs(c *gin.Context)
- func ListProductionReleases(c *gin.Context)
- func ListProductionSecrets(c *gin.Context)
- func ListProducts(c *gin.Context)
- func ListProductsRevision(c *gin.Context)
- func ListProductsRevisionSnaps(c *gin.Context)
- func ListPvcs(c *gin.Context)
- func ListReleases(c *gin.Context)
- func ListSecrets(c *gin.Context)
- func ListServicePods(c *gin.Context)
- func ListSvcsInEnv(c *gin.Context)
- func ListWorkloads(c *gin.Context)
- func ListWorkloadsInEnv(c *gin.Context)
- func ListWorkloadsInfo(c *gin.Context)
- func MigrateHistoryConfigMaps(c *gin.Context)
- func OpenAPIApplyProductionYamlService(c *gin.Context)
- func OpenAPIApplyYamlService(c *gin.Context)
- func OpenAPICreateCommonEnvCfg(c *gin.Context)
- func OpenAPICreateK8sEnv(c *gin.Context)
- func OpenAPICreateProductionEnv(c *gin.Context)
- func OpenAPIDeleteCommonEnvCfg(c *gin.Context)
- func OpenAPIDeleteEnv(c *gin.Context)
- func OpenAPIDeleteProductionEnv(c *gin.Context)
- func OpenAPIDeleteProductionEnvCommonEnvCfg(c *gin.Context)
- func OpenAPIDeleteProductionYamlServiceFromEnv(c *gin.Context)
- func OpenAPIDeleteYamlServiceFromEnv(c *gin.Context)
- func OpenAPIGetCommonEnvCfg(c *gin.Context)
- func OpenAPIGetEnvDetail(c *gin.Context)
- func OpenAPIGetEnvGlobalVariables(c *gin.Context)
- func OpenAPIGetProductionCommonEnvCfg(c *gin.Context)
- func OpenAPIGetProductionEnvDetail(c *gin.Context)
- func OpenAPIGetProductionEnvGlobalVariables(c *gin.Context)
- func OpenAPIListCommonEnvCfg(c *gin.Context)
- func OpenAPIListEnvs(c *gin.Context)
- func OpenAPIListProductionCommonEnvCfg(c *gin.Context)
- func OpenAPIListProductionEnvs(c *gin.Context)
- func OpenAPIRestartService(c *gin.Context)
- func OpenAPIScaleWorkloads(c *gin.Context)
- func OpenAPIUpdateCommonEnvCfg(c *gin.Context)
- func OpenAPIUpdateEnvBasicInfo(c *gin.Context)
- func OpenAPIUpdateGlobalVariables(c *gin.Context)
- func OpenAPIUpdateProductionCommonEnvCfg(c *gin.Context)
- func OpenAPIUpdateProductionEnvBasicInfo(c *gin.Context)
- func OpenAPIUpdateProductionGlobalVariables(c *gin.Context)
- func OpenAPIUpdateProductionYamlServices(c *gin.Context)
- func OpenAPIUpdateYamlServices(c *gin.Context)
- func PatchDebugContainer(c *gin.Context)
- func PatchWorkload(c *gin.Context)
- func PreviewGlobalVariables(c *gin.Context)
- func PreviewHelmProductDefaultValues(c *gin.Context)
- func PreviewProductionEnvGlobalVariables(c *gin.Context)
- func PreviewProductionHelmProductDefaultValues(c *gin.Context)
- func PreviewService(c *gin.Context)
- func ProductionEstimatedValues(c *gin.Context)
- func ProductionServiceDiff(c *gin.Context)
- func RecoverWorkload(c *gin.Context)
- func RestartProductionService(c *gin.Context)
- func RestartProductionWorkload(c *gin.Context)
- func RestartService(c *gin.Context)
- func RestartWorkload(c *gin.Context)
- func RollBackConfigMap(c *gin.Context)
- func RunAnalysis(c *gin.Context)
- func RunProductionAnalysis(c *gin.Context)
- func ScaleNewService(c *gin.Context)
- func ServiceDiff(c *gin.Context)
- func SyncEnvResource(c *gin.Context)
- func SyncHelmProductRenderset(c *gin.Context)
- func UpdateCommonEnvCfg(c *gin.Context)
- func UpdateCronJobContainerImage(c *gin.Context)
- func UpdateDeploymentContainerImage(c *gin.Context)
- func UpdateEnvConfigs(c *gin.Context)
- func UpdateHelmProductCharts(c *gin.Context)
- func UpdateHelmProductDefaultValues(c *gin.Context)
- func UpdateHelmProductRenderset(c *gin.Context)
- func UpdateK8sProductGlobalVariables(c *gin.Context)
- func UpdateMultiProductionProducts(c *gin.Context)
- func UpdateMultiProducts(c *gin.Context)
- func UpdateProduct(c *gin.Context)
- func UpdateProductAlias(c *gin.Context)
- func UpdateProductRecycleDay(c *gin.Context)
- func UpdateProductRegistry(c *gin.Context)
- func UpdateProductionCommonEnvCfg(c *gin.Context)
- func UpdateProductionDeploymentContainerImage(c *gin.Context)
- func UpdateProductionEnvConfigs(c *gin.Context)
- func UpdateProductionEnvHelmProductCharts(c *gin.Context)
- func UpdateProductionEnvK8sProductGlobalVariables(c *gin.Context)
- func UpdateProductionHelmProductDefaultValues(c *gin.Context)
- func UpdateProductionProductRegistry(c *gin.Context)
- func UpdateProductionService(c *gin.Context)
- func UpdateService(c *gin.Context)
- func UpdateStatefulSetContainerImage(c *gin.Context)
- func UpsertEnvAnalysisCron(c *gin.Context)
- func UpsertProductionEnvAnalysisCron(c *gin.Context)
- type ChartInfoArgs
- type DeleteProductHelmReleaseRequest
- type DeleteProductServicesRequest
- type EnvAnalysisHistoryReq
- type EnvAnalysisHistoryResp
- type ListServicePodsArgs
- type ListWorkloadsArgs
- type NamespaceResource
- type OpenAPIRouter
- type OperationLog
- type Router
- type UpdateProductParams
- type UpdateProductRegistryRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AffectedServices ¶ added in v1.9.9
func BatchPreviewServices ¶ added in v1.9.9
func CheckShareEnvReady ¶ added in v1.9.9
func CheckWorkloadsK8sServices ¶ added in v1.9.9
func CleanProductCronJob ¶
CleanProductCronJob is called from cron
func ConnectSshPmExec ¶ added in v1.9.9
func CreateCommonEnvCfg ¶ added in v1.9.9
func CreateProduct ¶
@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 CreateProductionProduct ¶ added in v1.9.9
func DeleteCommonEnvCfg ¶ added in v1.9.9
func DeleteProduct ¶
func DeleteProductServices ¶ added in v1.9.9
@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 DeleteProductionHelmReleases ¶ added in v1.9.9
@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 DeleteProductionProductServices ¶ added in v1.9.9
func DisableBaseEnv ¶ added in v1.9.9
func DownloadFileFromPod ¶ added in v1.9.9
func EnableBaseEnv ¶ added in v1.9.9
func EstimatedValues ¶ added in v1.6.0
func ExportProductionServiceYaml ¶ added in v1.9.9
func ExportYaml ¶
func GetBundleResources ¶ added in v1.7.1
func GetChartInfos ¶ added in v1.8.0
func GetChartValues ¶ added in v1.9.9
func GetEnvAnalysisCron ¶ added in v1.9.9
@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 GetEnvConfigs ¶ added in v1.9.9
@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
@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 GetGlobalVariableCandidates ¶ added in v1.9.9
@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
@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 GetImageInfos ¶ added in v1.9.9
func GetInitProduct ¶
@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 GetK8sWorkflowDetail ¶ added in v1.9.9
func GetOperationLogs ¶ added in v1.9.9
func GetProductDefaultValues ¶ added in v1.6.0
func GetProductInfo ¶
func GetProductionChartValues ¶ added in v1.9.9
@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 GetProductionEnvAnalysisCron ¶ added in v1.9.9
@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
@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 GetProductionService ¶ added in v1.9.9
@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 GetProductionVariables ¶ added in v1.9.9
@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 GetReleaseInstanceDeployStatus ¶ added in v1.9.9
@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
@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 GetServiceContainer ¶
func GetServiceRenderCharts ¶ added in v1.5.0
@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
@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 ListAllK8sResourcesInNamespace ¶ added in v1.9.9
func ListAvailableNamespaces ¶
func ListCanaryDeploymentServiceInfo ¶ added in v1.9.9
func ListCommonEnvCfgHistory ¶ added in v1.9.9
func ListConfigMaps ¶
func ListCustomWorkload ¶ added in v1.9.9
func ListDeploymentNames ¶ added in v1.9.9
func ListGroups ¶
func ListIngresses ¶ added in v1.9.9
func ListK8sResOverview ¶ added in v1.9.9
func ListKubeEvents ¶
func ListLatestEnvCfg ¶ added in v1.9.9
func ListNamespace ¶ added in v1.9.9
func ListPodEvents ¶
func ListProductionCommonEnvCfgHistory ¶ added in v1.9.9
func ListProductionConfigMaps ¶ added in v1.9.9
func ListProductionEnvs ¶ added in v1.9.9
func ListProductionGroups ¶ added in v1.9.9
func ListProductionIngresses ¶ added in v1.9.9
func ListProductionPvcs ¶ added in v1.9.9
func ListProductionReleases ¶ added in v1.9.9
func ListProductionSecrets ¶ added in v1.9.9
func ListProducts ¶
func ListProductsRevision ¶
func ListProductsRevisionSnaps ¶ added in v1.9.9
ListProductsRevisionSnaps called from cron service
func ListReleases ¶ added in v1.8.0
func ListSecrets ¶ added in v1.9.9
func ListServicePods ¶
func ListSvcsInEnv ¶ added in v1.9.9
@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 ListWorkloadsInEnv ¶ added in v1.5.0
@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 MigrateHistoryConfigMaps ¶ added in v1.9.9
func OpenAPIApplyProductionYamlService ¶ added in v1.9.9
func OpenAPIApplyYamlService ¶ added in v1.9.9
func OpenAPICreateCommonEnvCfg ¶ added in v1.9.9
func OpenAPICreateK8sEnv ¶ added in v1.9.9
func OpenAPICreateProductionEnv ¶ added in v1.9.9
func OpenAPIDeleteCommonEnvCfg ¶ added in v1.9.9
func OpenAPIDeleteEnv ¶ added in v1.9.9
func OpenAPIDeleteProductionEnv ¶ added in v1.9.9
func OpenAPIDeleteProductionEnvCommonEnvCfg ¶ added in v1.9.9
func OpenAPIDeleteProductionYamlServiceFromEnv ¶ added in v1.9.9
func OpenAPIDeleteYamlServiceFromEnv ¶ added in v1.9.9
func OpenAPIGetCommonEnvCfg ¶ added in v1.9.9
func OpenAPIGetEnvDetail ¶ added in v1.9.9
func OpenAPIGetEnvGlobalVariables ¶ added in v1.9.9
func OpenAPIGetProductionCommonEnvCfg ¶ added in v1.9.9
func OpenAPIGetProductionEnvDetail ¶ added in v1.9.9
func OpenAPIGetProductionEnvGlobalVariables ¶ added in v1.9.9
func OpenAPIListCommonEnvCfg ¶ added in v1.9.9
func OpenAPIListEnvs ¶ added in v1.9.9
func OpenAPIListProductionCommonEnvCfg ¶ added in v1.9.9
func OpenAPIListProductionEnvs ¶ added in v1.9.9
func OpenAPIRestartService ¶ added in v1.9.9
func OpenAPIScaleWorkloads ¶ added in v1.9.9
func OpenAPIUpdateCommonEnvCfg ¶ added in v1.9.9
func OpenAPIUpdateEnvBasicInfo ¶ added in v1.9.9
func OpenAPIUpdateGlobalVariables ¶ added in v1.9.9
func OpenAPIUpdateProductionCommonEnvCfg ¶ added in v1.9.9
func OpenAPIUpdateProductionEnvBasicInfo ¶ added in v1.9.9
func OpenAPIUpdateProductionGlobalVariables ¶ added in v1.9.9
func OpenAPIUpdateProductionYamlServices ¶ added in v1.9.9
func OpenAPIUpdateYamlServices ¶ added in v1.9.9
func PatchDebugContainer ¶ added in v1.9.9
func PatchWorkload ¶ added in v1.9.9
func PreviewGlobalVariables ¶ added in v1.9.9
func PreviewHelmProductDefaultValues ¶ added in v1.9.9
func PreviewProductionEnvGlobalVariables ¶ added in v1.9.9
func PreviewProductionHelmProductDefaultValues ¶ added in v1.9.9
func PreviewService ¶ added in v1.9.9
@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
@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 RecoverWorkload ¶ added in v1.9.9
func RestartProductionService ¶ added in v1.9.9
func RestartProductionWorkload ¶ added in v1.9.9
func RestartService ¶
func RestartWorkload ¶ added in v1.9.9
func RollBackConfigMap ¶
func RunAnalysis ¶ added in v1.9.9
@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
@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 ServiceDiff ¶
func SyncEnvResource ¶ added in v1.9.9
func SyncHelmProductRenderset ¶ added in v1.9.9
func UpdateCommonEnvCfg ¶ added in v1.9.9
func UpdateCronJobContainerImage ¶ added in v1.9.9
func UpdateEnvConfigs ¶ added in v1.9.9
@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
@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 UpdateHelmProductRenderset ¶ added in v1.6.0
func UpdateK8sProductGlobalVariables ¶ added in v1.9.9
@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
@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
@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 ¶
UpdateProduct update product variables, used for pm products
func UpdateProductAlias ¶ added in v1.9.9
func UpdateProductRecycleDay ¶ added in v1.2.0
func UpdateProductRegistry ¶ added in v1.8.0
func UpdateProductionCommonEnvCfg ¶ added in v1.9.9
func UpdateProductionDeploymentContainerImage ¶ added in v1.9.9
func UpdateProductionEnvConfigs ¶ added in v1.9.9
@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 UpdateProductionEnvK8sProductGlobalVariables ¶ added in v1.9.9
func UpdateProductionHelmProductDefaultValues ¶ added in v1.9.9
func UpdateProductionProductRegistry ¶ added in v1.9.9
func UpdateProductionService ¶ added in v1.9.9
func UpdateService ¶
@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 UpsertEnvAnalysisCron ¶ added in v1.9.9
@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
@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 EnvAnalysisHistoryResp ¶ added in v1.9.9
type EnvAnalysisHistoryResp struct { Total int64 `json:"total"` Result []*ai.EnvAIAnalysis `json:"result"` }
type ListServicePodsArgs ¶
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"`
}