handler

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: Apache-2.0 Imports: 18 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 ConvertVaraibleKVAndYaml added in v1.9.9

func ConvertVaraibleKVAndYaml(c *gin.Context)

@Summary convert varaible kv and yaml @Description convert varaible kv and yaml @Tags service @Accept json @Produce json @Param body body commonservice.ConvertVaraibleKVAndYamlArgs true "body" @Success 200 {object} commonservice.ConvertVaraibleKVAndYamlArgs @Router /api/aslan/service/services/variable/convert [post]

func CreateHelmProductionService added in v1.9.9

func CreateHelmProductionService(c *gin.Context)

func CreateK8sProductionService added in v1.9.9

func CreateK8sProductionService(c *gin.Context)

func CreateK8sWorkloads added in v1.5.0

func CreateK8sWorkloads(c *gin.Context)

func CreateOrUpdateBulkHelmServices added in v1.6.0

func CreateOrUpdateBulkHelmServices(c *gin.Context)

func CreateOrUpdateHelmService added in v1.5.0

func CreateOrUpdateHelmService(c *gin.Context)

func CreatePMService added in v1.2.0

func CreatePMService(c *gin.Context)

func CreateRawProductionYamlServicesOpenAPI added in v1.9.9

func CreateRawProductionYamlServicesOpenAPI(c *gin.Context)

func CreateRawYamlServicesOpenAPI added in v1.9.9

func CreateRawYamlServicesOpenAPI(c *gin.Context)

func CreateServiceTemplate

func CreateServiceTemplate(c *gin.Context)

@Summary Create service template @Description Create service template @Tags service @Accept json @Produce json @Param force query bool true "is force to create service template" @Param body body createServiceTemplateRequest true "body" @Success 200 {object} svcservice.ServiceOption @Router /api/aslan/service/services [post]

func DeleteProductionService added in v1.9.9

func DeleteProductionService(c *gin.Context)

func DeleteProductionServicesOpenAPI added in v1.9.9

func DeleteProductionServicesOpenAPI(c *gin.Context)

func DeleteServiceTemplate

func DeleteServiceTemplate(c *gin.Context)

func DeleteYamlServicesOpenAPI added in v1.9.9

func DeleteYamlServicesOpenAPI(c *gin.Context)

func FindHarborChartDetail added in v1.2.0

func FindHarborChartDetail(c *gin.Context)

func GetDeployableEnvs added in v1.9.9

func GetDeployableEnvs(c *gin.Context)

@Summary Get Deployable Envs @Description Get Deployable Envs @Tags service @Accept json @Produce json @Param name path string true "service name" @Param projectName query string true "project name" @Success 200 {object} service.DeployableEnvResp @Router /api/aslan/service/services/{name}/environments/deployable [get]

func GetFileContent added in v1.2.0

func GetFileContent(c *gin.Context)

func GetFilePath added in v1.2.0

func GetFilePath(c *gin.Context)

func GetHelmServiceModule added in v1.2.0

func GetHelmServiceModule(c *gin.Context)

func GetKubeWorkloads added in v1.9.9

func GetKubeWorkloads(c *gin.Context)

GetKubeWorkloads api used to force user to have get environments privilege to use, now it is removed. Revert if necessary

func GetProductionHelmFileContent added in v1.9.9

func GetProductionHelmFileContent(c *gin.Context)

func GetProductionHelmFilePath added in v1.9.9

func GetProductionHelmFilePath(c *gin.Context)

func GetProductionHelmServiceModule added in v1.9.9

func GetProductionHelmServiceModule(c *gin.Context)

func GetProductionK8sService added in v1.9.9

func GetProductionK8sService(c *gin.Context)

func GetProductionK8sServiceOption added in v1.9.9

func GetProductionK8sServiceOption(c *gin.Context)

func GetProductionYamlServiceOpenAPI added in v1.9.9

func GetProductionYamlServiceOpenAPI(c *gin.Context)

func GetServiceTemplate

func GetServiceTemplate(c *gin.Context)

func GetServiceTemplateOption

func GetServiceTemplateOption(c *gin.Context)

func GetServiceTemplateProductName

func GetServiceTemplateProductName(c *gin.Context)

func GetYamlServiceOpenAPI added in v1.9.9

func GetYamlServiceOpenAPI(c *gin.Context)

func HelmReleaseNaming added in v1.9.9

func HelmReleaseNaming(c *gin.Context)

func ListHarborChartRepos added in v1.2.0

func ListHarborChartRepos(c *gin.Context)

func ListHarborChartVersions added in v1.2.0

func ListHarborChartVersions(c *gin.Context)

func ListHarborProjects added in v1.2.0

func ListHarborProjects(c *gin.Context)

func ListHelmProductionServices added in v1.9.9

func ListHelmProductionServices(c *gin.Context)

func ListHelmServices added in v1.2.0

func ListHelmServices(c *gin.Context)

func ListProductionServices added in v1.9.9

func ListProductionServices(c *gin.Context)

func ListProductionYamlServicesOpenAPI added in v1.9.9

func ListProductionYamlServicesOpenAPI(c *gin.Context)

func ListServicePort

func ListServicePort(c *gin.Context)

func ListServiceTemplate

func ListServiceTemplate(c *gin.Context)

func ListWorkloadTemplate added in v1.5.0

func ListWorkloadTemplate(c *gin.Context)

func ListYamlServicesOpenAPI added in v1.9.9

func ListYamlServicesOpenAPI(c *gin.Context)

func LoadKubeWorkloadsYaml added in v1.9.9

func LoadKubeWorkloadsYaml(c *gin.Context)

func LoadProductionServiceFromYamlTemplate added in v1.9.9

func LoadProductionServiceFromYamlTemplate(c *gin.Context)

func LoadProductionServiceFromYamlTemplateOpenAPI added in v1.9.9

func LoadProductionServiceFromYamlTemplateOpenAPI(c *gin.Context)

func LoadServiceFromYamlTemplate added in v1.6.0

func LoadServiceFromYamlTemplate(c *gin.Context)

@Summary Load service from yaml template @Description Load service from yaml template @Tags service @Accept json @Produce json @Param body body svcservice.LoadServiceFromYamlTemplateReq true "body" @Success 200 @Router /api/aslan/service/template/load [post]

func LoadServiceFromYamlTemplateOpenAPI added in v1.9.9

func LoadServiceFromYamlTemplateOpenAPI(c *gin.Context)

func LoadServiceTemplate

func LoadServiceTemplate(c *gin.Context)

func PreloadServiceTemplate

func PreloadServiceTemplate(c *gin.Context)

func PreviewServiceYamlFromYamlTemplate added in v1.9.9

func PreviewServiceYamlFromYamlTemplate(c *gin.Context)

func ReloadProductionServiceFromYamlTemplate added in v1.9.9

func ReloadProductionServiceFromYamlTemplate(c *gin.Context)

func ReloadServiceFromYamlTemplate added in v1.6.0

func ReloadServiceFromYamlTemplate(c *gin.Context)

@Summary Reload service from yaml template @Description Reload service from yaml template @Tags service @Accept json @Produce json @Param body body svcservice.LoadServiceFromYamlTemplateReq true "body" @Success 200 @Router /api/aslan/service/template/reload [post]

func SyncServiceTemplate added in v1.9.9

func SyncServiceTemplate(c *gin.Context)

func UpdateFileContent added in v1.9.9

func UpdateFileContent(c *gin.Context)

func UpdateHelmProductionService added in v1.9.9

func UpdateHelmProductionService(c *gin.Context)

func UpdateHelmService added in v1.2.0

func UpdateHelmService(c *gin.Context)

func UpdateK8sProductionServiceVariables added in v1.9.9

func UpdateK8sProductionServiceVariables(c *gin.Context)

func UpdatePmServiceTemplate added in v1.2.0

func UpdatePmServiceTemplate(c *gin.Context)

func UpdateProductionHelmReleaseNaming added in v1.9.9

func UpdateProductionHelmReleaseNaming(c *gin.Context)

func UpdateProductionServiceConfigOpenAPI added in v1.9.9

func UpdateProductionServiceConfigOpenAPI(c *gin.Context)

func UpdateProductionServiceVariableOpenAPI added in v1.9.9

func UpdateProductionServiceVariableOpenAPI(c *gin.Context)

func UpdateProductionSvcFileContent added in v1.9.9

func UpdateProductionSvcFileContent(c *gin.Context)

func UpdateServiceConfigOpenAPI added in v1.9.9

func UpdateServiceConfigOpenAPI(c *gin.Context)

func UpdateServiceHealthCheckStatus added in v1.8.0

func UpdateServiceHealthCheckStatus(c *gin.Context)

func UpdateServiceVariable added in v1.9.9

func UpdateServiceVariable(c *gin.Context)

@Summary Update service varaible @Description Update service varaible @Tags service @Accept json @Produce json @Param name path string true "service name" @Param projectName query string true "project name" @Param body body updateServiceVariableRequest true "body" @Success 200 @Router /api/aslan/service/services/{name}/variable [put]

func UpdateServiceVariableOpenAPI added in v1.9.9

func UpdateServiceVariableOpenAPI(c *gin.Context)

func UpdateWorkloads added in v1.5.0

func UpdateWorkloads(c *gin.Context)

func ValidateServiceUpdate

func ValidateServiceUpdate(c *gin.Context)

ValidateServiceUpdate seems to require no privilege

func YamlValidator

func YamlValidator(c *gin.Context)

Types

type OpenAPIRouter added in v1.9.9

type OpenAPIRouter struct{}

func (*OpenAPIRouter) Inject added in v1.9.9

func (*OpenAPIRouter) Inject(router *gin.RouterGroup)

type Router

type Router struct{}

func (*Router) Inject

func (*Router) Inject(router *gin.RouterGroup)

type ValidatorResp

type ValidatorResp struct {
	Message string `json:"message"`
}

Jump to

Keyboard shortcuts

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