# Functions
No description provided by the author
No description provided by the author
@Summary Check Istio Grayscale Ready @Description Check Istio Grayscale Ready @Tags environment @Accept json @Produce json @Param projectName query string true "project name" @Param name path string true "env name" @Param op path string true "operation" @Success 200 {object} service.IstioGrayscaleReady @Router /api/aslan/environment/production/environments/{name}/check/istioGrayscale/{op}/ready [get].
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
@Summary Delete helm release from envrionment @Description Delete 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/environments/:name/helm/releases [delete].
No description provided by the author
@Summary Delete Product @Description Delete Product @Tags environment @Accept json @Produce json @Param projectName query string true "project name" @Param name path string true "env name" @Param is_delete query string true "is delete" @Success 200 @Router /api/aslan/environment/environments/{name} [delete].
@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].
@Summary Diff Environment Service Versions @Description Diff Environment Service Versions @Tags environment @Accept json @Produce json @Param name path string true "env name" @Param serviceName path string true "service name or release name when isHelmChart is true" @Param projectName query string true "project name" @Param revisionA query int true "revision a" @Param revisionB query int true "revision b" @Param isHelmChart query bool true "is helm chart type" @Param releaseName query string true "release name" @Success 200 {object} service.ListEnvServiceVersionsResponse @Router /api/aslan/environment/environments/{name}/version/{serviceName}/diff [get].
No description provided by the author
@Summary Disable Istio Grayscale @Description Disable Istio Grayscale @Tags environment @Accept json @Produce json @Param projectName query string true "project name" @Param name path string true "env name" @Success 200 @Router /api/aslan/environment/production/environments/{name}/istioGrayscale/enable [delete].
No description provided by the author
No description provided by the author
@Summary Enable Istio Grayscale @Description Enable Istio Grayscale @Tags environment @Accept json @Produce json @Param projectName query string true "project name" @Param name path string true "env name" @Success 200 @Router /api/aslan/environment/production/environments/{name}/istioGrayscale/enable [post].
@Summary Environment Sleep @Description Environment Sleep @Tags environment @Accept json @Produce json @Param name path string true "env name" @Param projectName query string true "project name" @Param action query string true "enable or disable" @Success 200 @Router /api/aslan/environment/environments/{name}/sleep [post].
No description provided by the author
No description provided by the author
@Summary Fetch Service Yaml @Description Fetch Service Yaml @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 {object} FetchServiceYamlResponse @Router /api/aslan/environment/environments/{name}/services/{serviceName}/yaml [get].
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 {object} service.EnvAnalysisCronArg @Router /api/aslan/environment/environments/{name}/analysis/cron [get].
No description provided by the author
@Summary Get environment 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/environments/{name} [get].
@Summary Get Environment Service Version Yaml @Description Get Environment Service Version Yaml @Tags environment @Accept json @Produce json @Param name path string true "env name" @Param serviceName path string true "service name or release name when isHelmChart is true" @Param revision path string true "revision" @Param projectName query string true "project name" @Param isHelmChart query bool true "is helm chart type" @Param releaseName query string true "release name" @Success 200 {array} service.GetEnvServiceVersionYamlResponse @Router /api/aslan/environment/environments/{name}/version/{serviceName}/revision/{revision} [get].
@Summary Get Env Sleep Cron @Description Get Env Sleep Cron @Tags environment @Accept json @Produce json @Param name path string true "env name" @Param projectName query string true "project name" @Success 200 {object} service.EnvSleepCronArg @Router /api/aslan/environment/environments/{name}/sleep/cron [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
@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} getInitProductResponse @Router /api/aslan/environment/init_info/{name} [get].
@Summary Get Istio Grayscale Config @Description Get Istio Grayscale Config @Tags environment @Accept json @Produce json @Param projectName query string true "project name" @Param name path string true "env name" @Success 200 {object} models.IstioGrayscale @Router /api/aslan/environment/production/environments/{name}/istioGrayscale/config [get].
@Summary Get Portal Service for Istio Grayscale @Description Get Portal Service for Istio Grayscale @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 {object} service.GetPortalServiceResponse @Router /api/aslan/environment/production/environments/{name}/istioGrayscale/portal/{serviceName} [get].
No description provided by the author
No description provided by the author
No description provided by the author
@Summary Get Pods Detail Info @Description Get Pods Detail Info @Tags environment @Accept json @Produce json @Param projectName query string true "projectName" @Param envName query string true "envName" @Param podName path string true "podName" @Success 200 {object} resource.Pod @Router /api/aslan/environment/kube/pods/{podName} [get].
@Summary Get Portal Service for Share Env @Description Get Portal Service for Share Env @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 {object} service.GetPortalServiceResponse @Router /api/aslan/environment/environments/{name}/share/portal/{serviceName} [get].
No description provided by the author
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
@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
InitializeEnv.
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 List Environment Service Versions @Description List Environment Service Versions @Tags environment @Accept json @Produce json @Param name path string true "env name" @Param serviceName path string true "service name or release name when isHelmChart is true" @Param projectName query string true "project name" @Param isHelmChart query bool true "is helm chart type" @Success 200 {array} service.ListEnvServiceVersionsResponse @Router /api/aslan/environment/environments/{name}/version/{serviceName} [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
@Summary Get Pods Info @Description Get Pods Info @Tags environment @Accept json @Produce json @Param projectName query string true "projectName" @Param envName query string true "envName" @Success 200 {array} service.ListPodsInfoRespone @Router /api/aslan/environment/kube/pods [get].
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
@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
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].
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 Rollback Environment Service Version @Description Rollback Environment Service Version @Tags environment @Accept json @Produce json @Param name path string true "env name" @Param serviceName path string true "service name or release name when isHelmChart is true" @Param projectName query string true "project name" @Param revision query int true "revision" @Param isHelmChart query bool true "is helm chart type" @Success 200 @Router /api/aslan/environment/environments/{name}/version/{serviceName}/rollback [post].
@Summary Run environment Analysis @Description Run environment 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].
No description provided by the author
No description provided by the author
@Summary Set Istio Grayscale Config @Description Set Istio Grayscale Config @Tags environment @Accept json @Produce json @Param projectName query string true "project name" @Param name path string true "env name" @Param body body kube.SetIstioGrayscaleConfigRequest true "body" @Success 200 @Router /api/aslan/environment/production/environments/{name}/istioGrayscale/config [post].
@Summary Setup Portal Service for Istio Grayscale @Description Setup Portal Service for Istio Grayscale @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.SetupPortalServiceRequest true "body" @Success 200 @Router /api/aslan/environment/production/environments/{name}/istioGrayscale/portal/{serviceName} [post].
@Summary Setup Portal Service for Share Env @Description Setup Portal Service for Share Env @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.SetupPortalServiceRequest true "body" @Success 200 @Router /api/aslan/environment/environments/{name}/share/portal/{serviceName} [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
@Summary Update environment 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
@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 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 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 Env Sleep Cron @Description Upsert Env Sleep 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.EnvSleepCronArg true "body" @Success 200 @Router /api/aslan/environment/environments/{name}/sleep/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
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