handler

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertVaraibleKVAndYaml

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

func CreateHelmProductionService(c *gin.Context)

func CreateK8sProductionService

func CreateK8sProductionService(c *gin.Context)

func CreateK8sWorkloads

func CreateK8sWorkloads(c *gin.Context)

func CreateOrUpdateBulkHelmServices

func CreateOrUpdateBulkHelmServices(c *gin.Context)

func CreateOrUpdateHelmService

func CreateOrUpdateHelmService(c *gin.Context)

func CreatePMService

func CreatePMService(c *gin.Context)

func CreateRawProductionYamlServicesOpenAPI

func CreateRawProductionYamlServicesOpenAPI(c *gin.Context)

func CreateRawYamlServicesOpenAPI

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

func DeleteProductionService(c *gin.Context)

func DeleteProductionServicesOpenAPI

func DeleteProductionServicesOpenAPI(c *gin.Context)

func DeleteServiceTemplate

func DeleteServiceTemplate(c *gin.Context)

func DeleteYamlServicesOpenAPI

func DeleteYamlServicesOpenAPI(c *gin.Context)

func DiffProductionServiceVersions

func DiffProductionServiceVersions(c *gin.Context)

@Summary Diff Production Service Versions @Description Diff Production Service Versions @Tags service @Accept json @Produce json @Param serviceName path string true "service name" @Param projectName query string true "project name" @Param revisionA query int true "revision a" @Param revisionB query int true "revision b" @Success 200 {object} service.ListServiceVersionsResponse @Router /api/aslan/service/production/version/{serviceName}/diff [get]

func DiffServiceVersions

func DiffServiceVersions(c *gin.Context)

@Summary Diff Service Versions @Description Diff Service Versions @Tags service @Accept json @Produce json @Param serviceName path string true "service name" @Param projectName query string true "project name" @Param revisionA query int true "revision a" @Param revisionB query int true "revision b" @Success 200 {object} service.ListServiceVersionsResponse @Router /api/aslan/service/version/{serviceName}/diff [get]

func FindHarborChartDetail

func FindHarborChartDetail(c *gin.Context)

func GetDeployableEnvs

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

func GetFileContent(c *gin.Context)

func GetFilePath

func GetFilePath(c *gin.Context)

func GetHelmServiceModule

func GetHelmServiceModule(c *gin.Context)

func GetKubeWorkloads

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

func GetProductionHelmFileContent(c *gin.Context)

func GetProductionHelmFilePath

func GetProductionHelmFilePath(c *gin.Context)

func GetProductionHelmServiceModule

func GetProductionHelmServiceModule(c *gin.Context)

func GetProductionK8sService

func GetProductionK8sService(c *gin.Context)

func GetProductionK8sServiceOption

func GetProductionK8sServiceOption(c *gin.Context)

func GetProductionServiceVersionYaml

func GetProductionServiceVersionYaml(c *gin.Context)

@Summary Get Production Service Version Yaml @Description Get Production Service Versions Yaml @Tags service @Accept json @Produce json @Param serviceName path string true "service name" @Param projectName query string true "project name" @Param revision path string true "revision" @Success 200 {object} service.GetServiceVersionYamlResponse @Router /api/aslan/service/production/version/{serviceName}/revision/{revision} [get]

func GetProductionYamlServiceOpenAPI

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 GetServiceVersionYaml

func GetServiceVersionYaml(c *gin.Context)

@Summary Get Service Version Yaml @Description Get Service Versions Yaml @Tags service @Accept json @Produce json @Param serviceName path string true "service name" @Param projectName query string true "project name" @Param revision path string true "revision" @Success 200 {object} service.GetServiceVersionYamlResponse @Router /api/aslan/service/version/{serviceName}/revision/{revision} [get]

func GetYamlServiceOpenAPI

func GetYamlServiceOpenAPI(c *gin.Context)

func HelmReleaseNaming

func HelmReleaseNaming(c *gin.Context)

func ListHarborChartRepos

func ListHarborChartRepos(c *gin.Context)

func ListHarborChartVersions

func ListHarborChartVersions(c *gin.Context)

func ListHarborProjects

func ListHarborProjects(c *gin.Context)

func ListHelmProductionServices

func ListHelmProductionServices(c *gin.Context)

func ListHelmServices

func ListHelmServices(c *gin.Context)

func ListProductionServiceVersions

func ListProductionServiceVersions(c *gin.Context)

@Summary List Production Service Versions @Description List Production Service Versions @Tags service @Accept json @Produce json @Param serviceName path string true "service name" @Param projectName query string true "project name" @Success 200 {array} service.ListServiceVersionsResponse @Router /api/aslan/service/production/version/{serviceName} [get]

func ListProductionServices

func ListProductionServices(c *gin.Context)

func ListProductionYamlServicesOpenAPI

func ListProductionYamlServicesOpenAPI(c *gin.Context)

func ListServicePort

func ListServicePort(c *gin.Context)

func ListServiceTemplate

func ListServiceTemplate(c *gin.Context)

func ListServiceVersions

func ListServiceVersions(c *gin.Context)

@Summary List Service Versions @Description List Service Versions @Tags service @Accept json @Produce json @Param serviceName path string true "service name" @Param projectName query string true "project name" @Success 200 {array} service.ListServiceVersionsResponse @Router /api/aslan/service/version/{serviceName} [get]

func ListWorkloadTemplate

func ListWorkloadTemplate(c *gin.Context)

func ListYamlServicesOpenAPI

func ListYamlServicesOpenAPI(c *gin.Context)

func LoadKubeWorkloadsYaml

func LoadKubeWorkloadsYaml(c *gin.Context)

func LoadProductionServiceFromYamlTemplate

func LoadProductionServiceFromYamlTemplate(c *gin.Context)

func LoadProductionServiceFromYamlTemplateOpenAPI

func LoadProductionServiceFromYamlTemplateOpenAPI(c *gin.Context)

func LoadServiceFromYamlTemplate

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

func LoadServiceFromYamlTemplateOpenAPI(c *gin.Context)

func LoadServiceTemplate

func LoadServiceTemplate(c *gin.Context)

func PreloadServiceTemplate

func PreloadServiceTemplate(c *gin.Context)

func PreviewServiceYamlFromYamlTemplate

func PreviewServiceYamlFromYamlTemplate(c *gin.Context)

func ReloadProductionServiceFromYamlTemplate

func ReloadProductionServiceFromYamlTemplate(c *gin.Context)

func ReloadServiceFromYamlTemplate

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 RollbackProductionServiceVersion

func RollbackProductionServiceVersion(c *gin.Context)

@Summary Rollback Production Service Version @Description Rollback Production SService Version @Tags service @Accept json @Produce json @Param serviceName path string true "service name" @Param projectName query string true "project name" @Param revision query int true "revision" @Success 200 @Router /api/aslan/service/production/version/{serviceName}/rollback [post]

func RollbackServiceVersion

func RollbackServiceVersion(c *gin.Context)

@Summary Rollback Service Version @Description Rollback Service Version @Tags service @Accept json @Produce json @Param serviceName path string true "service name" @Param projectName query string true "project name" @Param revision query int true "revision" @Success 200 @Router /api/aslan/service/version/{serviceName}/rollback [post]

func SyncServiceTemplate

func SyncServiceTemplate(c *gin.Context)

func UpdateFileContent

func UpdateFileContent(c *gin.Context)

func UpdateHelmProductionService

func UpdateHelmProductionService(c *gin.Context)

func UpdateHelmService

func UpdateHelmService(c *gin.Context)

func UpdateK8sProductionServiceVariables

func UpdateK8sProductionServiceVariables(c *gin.Context)

func UpdatePmServiceTemplate

func UpdatePmServiceTemplate(c *gin.Context)

func UpdateProductionHelmReleaseNaming

func UpdateProductionHelmReleaseNaming(c *gin.Context)

func UpdateProductionServiceConfigOpenAPI

func UpdateProductionServiceConfigOpenAPI(c *gin.Context)

func UpdateProductionServiceVariableOpenAPI

func UpdateProductionServiceVariableOpenAPI(c *gin.Context)

func UpdateProductionSvcFileContent

func UpdateProductionSvcFileContent(c *gin.Context)

func UpdateServiceConfigOpenAPI

func UpdateServiceConfigOpenAPI(c *gin.Context)

func UpdateServiceHealthCheckStatus

func UpdateServiceHealthCheckStatus(c *gin.Context)

func UpdateServiceTemplate

func UpdateServiceTemplate(c *gin.Context)

used in cron, update service env status

func UpdateServiceVariable

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

func UpdateServiceVariableOpenAPI(c *gin.Context)

func UpdateWorkloads

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

type OpenAPIRouter struct{}

func (*OpenAPIRouter) Inject

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