package
1.18.0
Repository: https://github.com/koderover/zadig.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
CleanProductCronJob is called from cron.
No description provided by the author
No description provided by the author
@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.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
@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].
No description provided by the author
No description provided by the author
@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].
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
@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].
No description provided by the author
@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].
@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].
No description provided by the author
@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].
@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].
No description provided by the author
No description provided by the author
@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].
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
@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].
No description provided by the author
@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].
@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].
No description provided by the author
@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].
No description provided by the author
@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].
No description provided by the author
@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].
@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].
No description provided by the author
No description provided by the author
@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].
@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].
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ListProductsRevisionSnaps called from cron service.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
@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].
No description provided by the author
@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].
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
@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].
@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].
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
@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].
@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].
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
@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].
@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].
No description provided by the author
No description provided by the author
@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].
@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].
@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].
UpdateProduct update product variables, used for pm products.
No description provided by the author
No description provided by the author
No description provided by the author
@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].
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
@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].
No description provided by the author
@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].
@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].

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author