Documentation
¶
Index ¶
- func AffectedServices(c *gin.Context)
- func BatchPreviewServices(c *gin.Context)
- func CheckIstioGrayscaleReady(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 DeleteCommonEnvCfg(c *gin.Context)
- func DeleteHelmReleases(c *gin.Context)
- func DeletePod(c *gin.Context)
- func DeleteProduct(c *gin.Context)
- func DeleteProductServices(c *gin.Context)
- func DiffEnvServiceVersions(c *gin.Context)
- func DisableBaseEnv(c *gin.Context)
- func DisableIstioGrayscale(c *gin.Context)
- func DownloadFileFromPod(c *gin.Context)
- func EnableBaseEnv(c *gin.Context)
- func EnableIstioGrayscale(c *gin.Context)
- func EnvSleep(c *gin.Context)
- func EstimatedValues(c *gin.Context)
- func ExportYaml(c *gin.Context)
- func FetchServiceYaml(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 GetEnvServiceVersionYaml(c *gin.Context)
- func GetEnvSleepCron(c *gin.Context)
- func GetEnvironment(c *gin.Context)
- func GetEstimatedRenderCharts(c *gin.Context)
- func GetGlobalVariableCandidates(c *gin.Context)
- func GetGlobalVariables(c *gin.Context)
- func GetImageInfos(c *gin.Context)
- func GetInitProduct(c *gin.Context)
- func GetIstioGrayscaleConfig(c *gin.Context)
- func GetIstioGrayscalePortalService(c *gin.Context)
- func GetK8sResourceYaml(c *gin.Context)
- func GetK8sWorkflowDetail(c *gin.Context)
- func GetOperationLogs(c *gin.Context)
- func GetPodsDetailInfo(c *gin.Context)
- func GetPortalService(c *gin.Context)
- func GetProductDefaultValues(c *gin.Context)
- func GetReleaseDeployStatus(c *gin.Context)
- func GetReleaseInstanceDeployStatus(c *gin.Context)
- func GetResourceDeployStatus(c *gin.Context)
- func GetService(c *gin.Context)
- func GetServiceRenderCharts(c *gin.Context)
- func GetServiceVariables(c *gin.Context)
- func GetYamlContent(c *gin.Context)
- func InitializeEnv(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 ListEnvServiceVersions(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 ListPodsInfo(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 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 OpenAPICheckShareEnvReady(c *gin.Context)
- func OpenAPICheckWorkloadsK8sServices(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 OpenAPIDsiableBaseEnv(c *gin.Context)
- func OpenAPIEnableBaseEnv(c *gin.Context)
- func OpenAPIGetCommonEnvCfg(c *gin.Context)
- func OpenAPIGetEnvDetail(c *gin.Context)
- func OpenAPIGetEnvGlobalVariables(c *gin.Context)
- func OpenAPIGetPortalService(c *gin.Context)
- func OpenAPIGetProductionCommonEnvCfg(c *gin.Context)
- func OpenAPIGetProductionEnvDetail(c *gin.Context)
- func OpenAPIGetProductionEnvGlobalVariables(c *gin.Context)
- func OpenAPIGetProductionService(c *gin.Context)
- func OpenAPIGetService(c *gin.Context)
- func OpenAPIListCommonEnvCfg(c *gin.Context)
- func OpenAPIListEnvs(c *gin.Context)
- func OpenAPIListKubeEvents(c *gin.Context)
- func OpenAPIListProductionCommonEnvCfg(c *gin.Context)
- func OpenAPIListProductionEnvs(c *gin.Context)
- func OpenAPIProductionRestartService(c *gin.Context)
- func OpenAPIRestartService(c *gin.Context)
- func OpenAPIScaleWorkloads(c *gin.Context)
- func OpenAPISetPortalService(c *gin.Context)
- func OpenAPIUpdateCommonEnvCfg(c *gin.Context)
- func OpenAPIUpdateCronJobContainerImage(c *gin.Context)
- func OpenAPIUpdateDeploymentContainerImage(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 OpenAPIUpdateStatefulSetContainerImage(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 PreviewService(c *gin.Context)
- func RecoverWorkload(c *gin.Context)
- func RestartService(c *gin.Context)
- func RestartWorkload(c *gin.Context)
- func RollBackConfigMap(c *gin.Context)
- func RollbackEnvServiceVersion(c *gin.Context)
- func RunAnalysis(c *gin.Context)
- func ScaleNewService(c *gin.Context)
- func ServiceDiff(c *gin.Context)
- func SetIstioGrayscaleConfig(c *gin.Context)
- func SetupIstioGrayscalePortalService(c *gin.Context)
- func SetupPortalService(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 UpdateK8sProductGlobalVariables(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 UpdateService(c *gin.Context)
- func UpdateStatefulSetContainerImage(c *gin.Context)
- func UpsertEnvAnalysisCron(c *gin.Context)
- func UpsertEnvSleepCron(c *gin.Context)
- type ChartInfoArgs
- type DeleteProductHelmReleaseRequest
- type DeleteProductServicesRequest
- type EnvAnalysisHistoryReq
- type EnvAnalysisHistoryResp
- type FetchServiceYamlResponse
- type ListWorkloadsArgs
- type NamespaceResource
- type OpenAPIGetPortalServiceResponse
- type OpenAPIGetServiceResponse
- type OpenAPIListKubeEventResponse
- type OpenAPIRouter
- type OpenAPISetPortalServiceRequest
- type OpenAPIShareEnvReadyChecks
- type OpenAPIShareEnvReadyResponse
- type OpenAPIUpdateContainerImageArgs
- type OperationLog
- type Router
- type UpdateProductParams
- type UpdateProductRegistryRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AffectedServices ¶
func BatchPreviewServices ¶
func CheckIstioGrayscaleReady ¶
@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]
func CheckShareEnvReady ¶
func CleanProductCronJob ¶
CleanProductCronJob is called from cron
func ConnectSshPmExec ¶
func CreateCommonEnvCfg ¶
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 DeleteCommonEnvCfg ¶
func DeleteHelmReleases ¶
@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]
func DeleteProduct ¶
@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]
func DeleteProductServices ¶
@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 DiffEnvServiceVersions ¶
@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]
func DisableBaseEnv ¶
func DisableIstioGrayscale ¶
@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]
func DownloadFileFromPod ¶
func EnableBaseEnv ¶
func EnableIstioGrayscale ¶
@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]
func EnvSleep ¶
@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]
func EstimatedValues ¶
func ExportYaml ¶
func FetchServiceYaml ¶
@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]
func GetBundleResources ¶
func GetChartInfos ¶
func GetChartValues ¶
func GetEnvAnalysisCron ¶
@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]
func GetEnvAnalysisHistory ¶
func GetEnvConfigs ¶
@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]
func GetEnvServiceVersionYaml ¶
@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]
func GetEnvSleepCron ¶
@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]
func GetEnvironment ¶
@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]
func GetGlobalVariableCandidates ¶
@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 ¶
@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 GetImageInfos ¶
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} getInitProductResponse @Router /api/aslan/environment/init_info/{name} [get]
func GetIstioGrayscaleConfig ¶
@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]
func GetIstioGrayscalePortalService ¶
@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]
func GetK8sResourceYaml ¶
func GetK8sWorkflowDetail ¶
func GetOperationLogs ¶
func GetPodsDetailInfo ¶
@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]
func GetPortalService ¶
@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]
func GetProductDefaultValues ¶
func GetReleaseDeployStatus ¶
func GetReleaseInstanceDeployStatus ¶
@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 ¶
@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 GetServiceRenderCharts ¶
@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 ¶
@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 ¶
func ListAvailableNamespaces ¶
func ListCommonEnvCfgHistory ¶
func ListConfigMaps ¶
func ListCustomWorkload ¶
func ListDeploymentNames ¶
func ListEnvServiceVersions ¶
@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]
func ListGroups ¶
func ListIngresses ¶
func ListK8sResOverview ¶
func ListKubeEvents ¶
func ListLatestEnvCfg ¶
func ListNamespace ¶
func ListPodEvents ¶
func ListPodsInfo ¶
@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]
func ListProducts ¶
func ListProductsRevision ¶
func ListProductsRevisionSnaps ¶
ListProductsRevisionSnaps called from cron service
func ListReleases ¶
func ListSecrets ¶
func ListSvcsInEnv ¶
@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 ¶
func ListWorkloadsInEnv ¶
@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 ¶
func OpenAPIApplyYamlService ¶
func OpenAPICreateK8sEnv ¶
func OpenAPIDeleteEnv ¶
func OpenAPIDsiableBaseEnv ¶
func OpenAPIEnableBaseEnv ¶
func OpenAPIGetCommonEnvCfg ¶
func OpenAPIGetEnvDetail ¶
func OpenAPIGetPortalService ¶
func OpenAPIGetService ¶
func OpenAPIListCommonEnvCfg ¶
func OpenAPIListEnvs ¶
func OpenAPIListKubeEvents ¶
func OpenAPIProductionRestartService ¶ added in v2.3.0
func OpenAPIRestartService ¶
func OpenAPIScaleWorkloads ¶
func OpenAPISetPortalService ¶
func PatchDebugContainer ¶
func PatchWorkload ¶
func PreviewGlobalVariables ¶
func PreviewService ¶
@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 RecoverWorkload ¶
func RestartService ¶
func RestartWorkload ¶
func RollBackConfigMap ¶
func RollbackEnvServiceVersion ¶
@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]
func RunAnalysis ¶
@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]
func ScaleNewService ¶
func ServiceDiff ¶
func SetIstioGrayscaleConfig ¶
@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]
func SetupIstioGrayscalePortalService ¶
@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]
func SetupPortalService ¶
@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]
func SyncEnvResource ¶
func UpdateCommonEnvCfg ¶
func UpdateEnvConfigs ¶
@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]
func UpdateHelmProductCharts ¶
@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 UpdateK8sProductGlobalVariables ¶
@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 UpdateMultiProducts ¶
@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 ¶
func UpdateProductRecycleDay ¶
func UpdateProductRegistry ¶
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 ¶
@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 UpsertEnvSleepCron ¶
@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]
Types ¶
type ChartInfoArgs ¶
type ChartInfoArgs struct {
ChartInfos []*template.ServiceRender `json:"chart_infos"`
}
type DeleteProductHelmReleaseRequest ¶
type DeleteProductHelmReleaseRequest struct {
ReleaseNames []string `json:"release_names"`
}
type DeleteProductServicesRequest ¶
type DeleteProductServicesRequest struct {
ServiceNames []string `json:"service_names"`
}
type EnvAnalysisHistoryReq ¶
type EnvAnalysisHistoryResp ¶
type EnvAnalysisHistoryResp struct { Total int64 `json:"total"` Result []*ai.EnvAIAnalysis `json:"result"` }
type FetchServiceYamlResponse ¶
type FetchServiceYamlResponse struct {
Yaml string `json:"yaml"`
}
type ListWorkloadsArgs ¶
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 OpenAPIGetPortalServiceResponse ¶
type OpenAPIGetPortalServiceResponse struct { DefaultGatewayAddress string `json:"default_gateway_address"` Servers []OpenAPISetPortalServiceRequest `json:"servers"` }
type OpenAPIGetServiceResponse ¶
type OpenAPIGetServiceResponse struct { ServiceName string `json:"service_name"` Scales []*internalresource.Workload `json:"scales"` Ingress []*internalresource.Ingress `json:"ingress"` Services []*internalresource.Service `json:"service_endpoints"` CronJobs []*internalresource.CronJob `json:"cron_jobs"` Namespace string `json:"namespace"` EnvName string `json:"env_name"` ProductName string `json:"product_name"` GroupName string `json:"group_name"` Workloads []*commonservice.Workload `json:"-"` }
type OpenAPIListKubeEventResponse ¶
type OpenAPIListKubeEventResponse struct { Reason string `json:"reason,omitempty"` // A human-readable description of the status of this operation. Message string `json:"message,omitempty" protobuf:"bytes,4,opt,name=message"` // The time at which the event was first recorded. (Time of server receipt is in TypeMeta.) FirstSeen int64 `json:"first_seen,omitempty"` // The time at which the most recent occurrence of this event was recorded. LastSeen int64 `json:"last_seen,omitempty"` // The number of times this event has occurred. Count int32 `json:"count,omitempty"` // Type of this event (Normal, Warning), new types could be added in the future Type string `json:"type,omitempty"` }
type OpenAPIRouter ¶
type OpenAPIRouter struct{}
func (*OpenAPIRouter) Inject ¶
func (*OpenAPIRouter) Inject(router *gin.RouterGroup)
type OpenAPIShareEnvReadyChecks ¶
type OpenAPIShareEnvReadyChecks struct {}
type OpenAPIShareEnvReadyResponse ¶
type OpenAPIShareEnvReadyResponse struct {}
type OperationLog ¶
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 ¶
type UpdateProductParams struct { ServiceNames []string `json:"service_names"` VariableYaml string `json:"variable_yaml"` commonmodels.Product }
type UpdateProductRegistryRequest ¶
type UpdateProductRegistryRequest struct {
RegistryID string `json:"registry_id"`
}