handler

package
v2.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 30 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AffectedServices

func AffectedServices(c *gin.Context)

func BatchPreviewServices

func BatchPreviewServices(c *gin.Context)

func CheckIstioGrayscaleReady

func CheckIstioGrayscaleReady(c *gin.Context)

@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 CheckShareEnvReady(c *gin.Context)

func CheckWorkloadsK8sServices

func CheckWorkloadsK8sServices(c *gin.Context)

func CleanProductCronJob

func CleanProductCronJob(c *gin.Context)

CleanProductCronJob is called from cron

func ConnectSshPmExec

func ConnectSshPmExec(c *gin.Context)

func CreateCommonEnvCfg

func CreateCommonEnvCfg(c *gin.Context)

func CreateProduct

func CreateProduct(c *gin.Context)

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

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

func DeleteCommonEnvCfg

func DeleteCommonEnvCfg(c *gin.Context)

func DeleteHelmReleases

func DeleteHelmReleases(c *gin.Context)

@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 DeletePod

func DeletePod(c *gin.Context)

func DeleteProduct

func DeleteProduct(c *gin.Context)

@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

func DeleteProductServices(c *gin.Context)

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

func DiffEnvServiceVersions

func DiffEnvServiceVersions(c *gin.Context)

@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 DisableBaseEnv(c *gin.Context)

func DisableIstioGrayscale

func DisableIstioGrayscale(c *gin.Context)

@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 DownloadFileFromPod(c *gin.Context)

func EnableBaseEnv

func EnableBaseEnv(c *gin.Context)

func EnableIstioGrayscale

func EnableIstioGrayscale(c *gin.Context)

@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

func EnvSleep(c *gin.Context)

@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 EstimatedValues(c *gin.Context)

func ExportYaml

func ExportYaml(c *gin.Context)

func FetchServiceYaml

func FetchServiceYaml(c *gin.Context)

@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 GetBundleResources(c *gin.Context)

func GetChartInfos

func GetChartInfos(c *gin.Context)

func GetChartValues

func GetChartValues(c *gin.Context)

func GetEnvAnalysisCron

func GetEnvAnalysisCron(c *gin.Context)

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

func GetEnvAnalysisHistory

func GetEnvAnalysisHistory(c *gin.Context)

func GetEnvConfigs

func GetEnvConfigs(c *gin.Context)

@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

func GetEnvServiceVersionYaml(c *gin.Context)

@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

func GetEnvSleepCron(c *gin.Context)

@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

func GetEnvironment(c *gin.Context)

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

func GetEstimatedRenderCharts

func GetEstimatedRenderCharts(c *gin.Context)

func GetGlobalVariableCandidates

func GetGlobalVariableCandidates(c *gin.Context)

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

func GetGlobalVariables

func GetGlobalVariables(c *gin.Context)

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

func GetImageInfos

func GetImageInfos(c *gin.Context)

func GetInitProduct

func GetInitProduct(c *gin.Context)

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

func GetIstioGrayscaleConfig

func GetIstioGrayscaleConfig(c *gin.Context)

@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

func GetIstioGrayscalePortalService(c *gin.Context)

@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 GetK8sResourceYaml(c *gin.Context)

func GetK8sWorkflowDetail

func GetK8sWorkflowDetail(c *gin.Context)

func GetOperationLogs

func GetOperationLogs(c *gin.Context)

func GetPodsDetailInfo

func GetPodsDetailInfo(c *gin.Context)

@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

func GetPortalService(c *gin.Context)

@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 GetProductDefaultValues(c *gin.Context)

func GetReleaseDeployStatus

func GetReleaseDeployStatus(c *gin.Context)

func GetReleaseInstanceDeployStatus

func GetReleaseInstanceDeployStatus(c *gin.Context)

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

func GetResourceDeployStatus

func GetResourceDeployStatus(c *gin.Context)

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

func GetService

func GetService(c *gin.Context)

func GetServiceRenderCharts

func GetServiceRenderCharts(c *gin.Context)

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

func GetServiceVariables

func GetServiceVariables(c *gin.Context)

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

func GetYamlContent

func GetYamlContent(c *gin.Context)

func InitializeEnv

func InitializeEnv(c *gin.Context)

InitializeEnv

func ListAllK8sResourcesInNamespace

func ListAllK8sResourcesInNamespace(c *gin.Context)

func ListAvailableNamespaces

func ListAvailableNamespaces(c *gin.Context)

func ListCanaryDeploymentServiceInfo

func ListCanaryDeploymentServiceInfo(c *gin.Context)

func ListCommonEnvCfgHistory

func ListCommonEnvCfgHistory(c *gin.Context)

func ListConfigMaps

func ListConfigMaps(c *gin.Context)

func ListCustomWorkload

func ListCustomWorkload(c *gin.Context)

func ListDeploymentNames

func ListDeploymentNames(c *gin.Context)

func ListEnvServiceVersions

func ListEnvServiceVersions(c *gin.Context)

@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 ListGroups(c *gin.Context)

func ListIngresses

func ListIngresses(c *gin.Context)

func ListK8sResOverview

func ListK8sResOverview(c *gin.Context)

func ListKubeEvents

func ListKubeEvents(c *gin.Context)

func ListLatestEnvCfg

func ListLatestEnvCfg(c *gin.Context)

func ListNamespace

func ListNamespace(c *gin.Context)

func ListNodes

func ListNodes(c *gin.Context)

func ListPodEvents

func ListPodEvents(c *gin.Context)

func ListPodsInfo

func ListPodsInfo(c *gin.Context)

@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 ListProducts(c *gin.Context)

func ListProductsRevision

func ListProductsRevision(c *gin.Context)

func ListProductsRevisionSnaps

func ListProductsRevisionSnaps(c *gin.Context)

ListProductsRevisionSnaps called from cron service

func ListPvcs

func ListPvcs(c *gin.Context)

func ListReleases

func ListReleases(c *gin.Context)

func ListSecrets

func ListSecrets(c *gin.Context)

func ListSvcsInEnv

func ListSvcsInEnv(c *gin.Context)

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

func ListWorkloads

func ListWorkloads(c *gin.Context)

func ListWorkloadsInEnv

func ListWorkloadsInEnv(c *gin.Context)

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

func ListWorkloadsInfo

func ListWorkloadsInfo(c *gin.Context)

func MigrateHistoryConfigMaps

func MigrateHistoryConfigMaps(c *gin.Context)

func OpenAPIApplyProductionYamlService

func OpenAPIApplyProductionYamlService(c *gin.Context)

func OpenAPIApplyYamlService

func OpenAPIApplyYamlService(c *gin.Context)

func OpenAPICheckShareEnvReady

func OpenAPICheckShareEnvReady(c *gin.Context)

func OpenAPICheckWorkloadsK8sServices

func OpenAPICheckWorkloadsK8sServices(c *gin.Context)

func OpenAPICreateCommonEnvCfg

func OpenAPICreateCommonEnvCfg(c *gin.Context)

func OpenAPICreateK8sEnv

func OpenAPICreateK8sEnv(c *gin.Context)

func OpenAPICreateProductionEnv

func OpenAPICreateProductionEnv(c *gin.Context)

func OpenAPIDeleteCommonEnvCfg

func OpenAPIDeleteCommonEnvCfg(c *gin.Context)

func OpenAPIDeleteEnv

func OpenAPIDeleteEnv(c *gin.Context)

func OpenAPIDeleteProductionEnv

func OpenAPIDeleteProductionEnv(c *gin.Context)

func OpenAPIDeleteProductionEnvCommonEnvCfg

func OpenAPIDeleteProductionEnvCommonEnvCfg(c *gin.Context)

func OpenAPIDeleteProductionYamlServiceFromEnv

func OpenAPIDeleteProductionYamlServiceFromEnv(c *gin.Context)

func OpenAPIDeleteYamlServiceFromEnv

func OpenAPIDeleteYamlServiceFromEnv(c *gin.Context)

func OpenAPIDsiableBaseEnv

func OpenAPIDsiableBaseEnv(c *gin.Context)

func OpenAPIEnableBaseEnv

func OpenAPIEnableBaseEnv(c *gin.Context)

func OpenAPIGetCommonEnvCfg

func OpenAPIGetCommonEnvCfg(c *gin.Context)

func OpenAPIGetEnvDetail

func OpenAPIGetEnvDetail(c *gin.Context)

func OpenAPIGetEnvGlobalVariables

func OpenAPIGetEnvGlobalVariables(c *gin.Context)

func OpenAPIGetPortalService

func OpenAPIGetPortalService(c *gin.Context)

func OpenAPIGetProductionCommonEnvCfg

func OpenAPIGetProductionCommonEnvCfg(c *gin.Context)

func OpenAPIGetProductionEnvDetail

func OpenAPIGetProductionEnvDetail(c *gin.Context)

func OpenAPIGetProductionEnvGlobalVariables

func OpenAPIGetProductionEnvGlobalVariables(c *gin.Context)

func OpenAPIGetProductionService

func OpenAPIGetProductionService(c *gin.Context)

func OpenAPIGetService

func OpenAPIGetService(c *gin.Context)

func OpenAPIListCommonEnvCfg

func OpenAPIListCommonEnvCfg(c *gin.Context)

func OpenAPIListEnvs

func OpenAPIListEnvs(c *gin.Context)

func OpenAPIListKubeEvents

func OpenAPIListKubeEvents(c *gin.Context)

func OpenAPIListProductionCommonEnvCfg

func OpenAPIListProductionCommonEnvCfg(c *gin.Context)

func OpenAPIListProductionEnvs

func OpenAPIListProductionEnvs(c *gin.Context)

func OpenAPIProductionRestartService added in v2.3.0

func OpenAPIProductionRestartService(c *gin.Context)

func OpenAPIRestartService

func OpenAPIRestartService(c *gin.Context)

func OpenAPIScaleWorkloads

func OpenAPIScaleWorkloads(c *gin.Context)

func OpenAPISetPortalService

func OpenAPISetPortalService(c *gin.Context)

func OpenAPIUpdateCommonEnvCfg

func OpenAPIUpdateCommonEnvCfg(c *gin.Context)

func OpenAPIUpdateCronJobContainerImage

func OpenAPIUpdateCronJobContainerImage(c *gin.Context)

func OpenAPIUpdateDeploymentContainerImage

func OpenAPIUpdateDeploymentContainerImage(c *gin.Context)

func OpenAPIUpdateEnvBasicInfo

func OpenAPIUpdateEnvBasicInfo(c *gin.Context)

func OpenAPIUpdateGlobalVariables

func OpenAPIUpdateGlobalVariables(c *gin.Context)

func OpenAPIUpdateProductionCommonEnvCfg

func OpenAPIUpdateProductionCommonEnvCfg(c *gin.Context)

func OpenAPIUpdateProductionEnvBasicInfo

func OpenAPIUpdateProductionEnvBasicInfo(c *gin.Context)

func OpenAPIUpdateProductionGlobalVariables

func OpenAPIUpdateProductionGlobalVariables(c *gin.Context)

func OpenAPIUpdateProductionYamlServices

func OpenAPIUpdateProductionYamlServices(c *gin.Context)

func OpenAPIUpdateStatefulSetContainerImage

func OpenAPIUpdateStatefulSetContainerImage(c *gin.Context)

func OpenAPIUpdateYamlServices

func OpenAPIUpdateYamlServices(c *gin.Context)

func PatchDebugContainer

func PatchDebugContainer(c *gin.Context)

func PatchWorkload

func PatchWorkload(c *gin.Context)

func PreviewGlobalVariables

func PreviewGlobalVariables(c *gin.Context)

func PreviewHelmProductDefaultValues

func PreviewHelmProductDefaultValues(c *gin.Context)

func PreviewService

func PreviewService(c *gin.Context)

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

func RecoverWorkload

func RecoverWorkload(c *gin.Context)

func RestartService

func RestartService(c *gin.Context)

func RestartWorkload

func RestartWorkload(c *gin.Context)

func RollBackConfigMap

func RollBackConfigMap(c *gin.Context)

func RollbackEnvServiceVersion

func RollbackEnvServiceVersion(c *gin.Context)

@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

func RunAnalysis(c *gin.Context)

@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 ScaleNewService(c *gin.Context)

func ServiceDiff

func ServiceDiff(c *gin.Context)

func SetIstioGrayscaleConfig

func SetIstioGrayscaleConfig(c *gin.Context)

@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

func SetupIstioGrayscalePortalService(c *gin.Context)

@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

func SetupPortalService(c *gin.Context)

@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 SyncEnvResource(c *gin.Context)

func SyncHelmProductRenderset

func SyncHelmProductRenderset(c *gin.Context)

func UpdateCommonEnvCfg

func UpdateCommonEnvCfg(c *gin.Context)

func UpdateCronJobContainerImage

func UpdateCronJobContainerImage(c *gin.Context)

func UpdateDeploymentContainerImage

func UpdateDeploymentContainerImage(c *gin.Context)

func UpdateEnvConfigs

func UpdateEnvConfigs(c *gin.Context)

@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

func UpdateHelmProductCharts(c *gin.Context)

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

func UpdateHelmProductDefaultValues

func UpdateHelmProductDefaultValues(c *gin.Context)

func UpdateK8sProductGlobalVariables

func UpdateK8sProductGlobalVariables(c *gin.Context)

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

func UpdateMultiProducts

func UpdateMultiProducts(c *gin.Context)

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

func UpdateProduct

func UpdateProduct(c *gin.Context)

UpdateProduct update product variables, used for pm products

func UpdateProductAlias

func UpdateProductAlias(c *gin.Context)

func UpdateProductRecycleDay

func UpdateProductRecycleDay(c *gin.Context)

func UpdateProductRegistry

func UpdateProductRegistry(c *gin.Context)

func UpdateService

func UpdateService(c *gin.Context)

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

func UpdateStatefulSetContainerImage

func UpdateStatefulSetContainerImage(c *gin.Context)

func UpsertEnvAnalysisCron

func UpsertEnvAnalysisCron(c *gin.Context)

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

func UpsertEnvSleepCron

func UpsertEnvSleepCron(c *gin.Context)

@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 EnvAnalysisHistoryReq struct {
	ProjectName string `json:"projectName" form:"projectName"`
	Production  bool   `json:"production" form:"production"`
	EnvName     string `json:"envName" form:"envName"`
	PageNum     int    `json:"pageNum" form:"pageNum"`
	PageSize    int    `json:"pageSize" form:"pageSize"`
}

type EnvAnalysisHistoryResp

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 OpenAPISetPortalServiceRequest

type OpenAPISetPortalServiceRequest struct {
	Host         string `json:"host"`
	PortNumber   uint32 `json:"port_number"`
	PortProtocol string `json:"port_protocol"`
}

type OpenAPIShareEnvReadyChecks

type OpenAPIShareEnvReadyChecks struct {
	NamespaceHasIstioLabel  bool `json:"namespace_has_istio_label"`
	VirtualServicesDeployed bool `json:"virtualservice_deployed"`
	PodsHaveIstioProxy      bool `json:"pods_have_istio_proxy"`
	WorkloadsReady          bool `json:"workloads_ready"`
	WorkloadsHaveK8sService bool `json:"workloads_have_k8s_service"`
}

type OpenAPIShareEnvReadyResponse

type OpenAPIShareEnvReadyResponse struct {
	IsReady bool                       `json:"is_ready"`
	Checks  OpenAPIShareEnvReadyChecks `json:"checks"`
}

type OpenAPIUpdateContainerImageArgs

type OpenAPIUpdateContainerImageArgs struct {
	Type          string `json:"type"`
	ProductName   string `json:"product_name"`
	EnvName       string `json:"env_name"`
	ServiceName   string `json:"service_name"`
	Name          string `json:"name"`
	ContainerName string `json:"container_name"`
	Image         string `json:"image"`
}

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"`
}

Jump to

Keyboard shortcuts

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