Documentation
¶
Index ¶
- func ConvertVaraibleKVAndYaml(c *gin.Context)
- func CreateK8sWorkloads(c *gin.Context)
- func CreateOrUpdateBulkHelmServices(c *gin.Context)
- func CreateOrUpdateHelmService(c *gin.Context)
- func CreatePMService(c *gin.Context)
- func CreateRawProductionYamlServicesOpenAPI(c *gin.Context)
- func CreateRawYamlServicesOpenAPI(c *gin.Context)
- func CreateServiceTemplate(c *gin.Context)
- func DeleteProductionServicesOpenAPI(c *gin.Context)
- func DeleteServiceTemplate(c *gin.Context)
- func DeleteYamlServicesOpenAPI(c *gin.Context)
- func DiffServiceVersions(c *gin.Context)
- func FindHarborChartDetail(c *gin.Context)
- func GetDeployableEnvs(c *gin.Context)
- func GetFileContent(c *gin.Context)
- func GetFilePath(c *gin.Context)
- func GetHelmServiceModule(c *gin.Context)
- func GetKubeWorkloads(c *gin.Context)
- func GetProductionYamlServiceOpenAPI(c *gin.Context)
- func GetServiceTemplate(c *gin.Context)
- func GetServiceTemplateOption(c *gin.Context)
- func GetServiceTemplateProductName(c *gin.Context)
- func GetServiceVersionYaml(c *gin.Context)
- func GetYamlServiceOpenAPI(c *gin.Context)
- func HelmReleaseNaming(c *gin.Context)
- func ListHarborChartRepos(c *gin.Context)
- func ListHarborChartVersions(c *gin.Context)
- func ListHarborProjects(c *gin.Context)
- func ListHelmServices(c *gin.Context)
- func ListProductionYamlServicesOpenAPI(c *gin.Context)
- func ListServicePort(c *gin.Context)
- func ListServiceTemplate(c *gin.Context)
- func ListServiceVersions(c *gin.Context)
- func ListWorkloadTemplate(c *gin.Context)
- func ListYamlServicesOpenAPI(c *gin.Context)
- func LoadKubeWorkloadsYaml(c *gin.Context)
- func LoadProductionServiceFromYamlTemplateOpenAPI(c *gin.Context)
- func LoadServiceFromYamlTemplate(c *gin.Context)
- func LoadServiceFromYamlTemplateOpenAPI(c *gin.Context)
- func LoadServiceTemplate(c *gin.Context)
- func PreloadServiceTemplate(c *gin.Context)
- func PreviewServiceYamlFromYamlTemplate(c *gin.Context)
- func ReloadServiceFromYamlTemplate(c *gin.Context)
- func RollbackServiceVersion(c *gin.Context)
- func SyncServiceTemplate(c *gin.Context)
- func UpdateFileContent(c *gin.Context)
- func UpdateHelmService(c *gin.Context)
- func UpdatePmServiceTemplate(c *gin.Context)
- func UpdateProductionServiceConfigOpenAPI(c *gin.Context)
- func UpdateProductionServiceVariableOpenAPI(c *gin.Context)
- func UpdateServiceConfigOpenAPI(c *gin.Context)
- func UpdateServiceHealthCheckStatus(c *gin.Context)
- func UpdateServiceTemplate(c *gin.Context)
- func UpdateServiceVariable(c *gin.Context)
- func UpdateServiceVariableOpenAPI(c *gin.Context)
- func UpdateWorkloads(c *gin.Context)
- func ValidateServiceUpdate(c *gin.Context)
- func YamlValidator(c *gin.Context)
- type OpenAPIRouter
- type Router
- type ValidatorResp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertVaraibleKVAndYaml ¶
@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 CreateK8sWorkloads ¶
func CreatePMService ¶
func CreateServiceTemplate ¶
@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 DeleteServiceTemplate ¶
func DiffServiceVersions ¶
@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" @Param production query bool true "is production" @Success 200 {object} service.ListServiceVersionsResponse @Router /api/aslan/service/version/{serviceName}/diff [get]
func FindHarborChartDetail ¶
func GetDeployableEnvs ¶
@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 GetFilePath ¶
func GetHelmServiceModule ¶
func GetKubeWorkloads ¶
GetKubeWorkloads api used to force user to have get environments privilege to use, now it is removed. Revert if necessary
func GetServiceTemplate ¶
func GetServiceVersionYaml ¶
@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" @Param production query bool true "is production" @Success 200 {object} service.GetServiceVersionYamlResponse @Router /api/aslan/service/version/{serviceName}/revision/{revision} [get]
func GetYamlServiceOpenAPI ¶
func HelmReleaseNaming ¶
func ListHarborChartRepos ¶
func ListHarborChartVersions ¶
func ListHarborProjects ¶
func ListHelmServices ¶
func ListServicePort ¶
func ListServiceTemplate ¶
func ListServiceVersions ¶
@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" @Param production query bool true "is production" @Success 200 {array} service.ListServiceVersionsResponse @Router /api/aslan/service/version/{serviceName} [get]
func ListWorkloadTemplate ¶
func ListYamlServicesOpenAPI ¶
func LoadKubeWorkloadsYaml ¶
func LoadServiceFromYamlTemplate ¶
@Summary Load service from yaml template @Description Load service from yaml template @Tags service @Accept json @Produce json @Param production query bool true "is production" @Param body body svcservice.LoadServiceFromYamlTemplateReq true "body" @Success 200 @Router /api/aslan/service/template/load [post]
func LoadServiceTemplate ¶
func PreloadServiceTemplate ¶
func ReloadServiceFromYamlTemplate ¶
@Summary Reload service from yaml template @Description Reload service from yaml template @Tags service @Accept json @Produce json @Param production query bool true "is production" @Param body body svcservice.LoadServiceFromYamlTemplateReq true "body" @Success 200 @Router /api/aslan/service/template/reload [post]
func RollbackServiceVersion ¶
@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" @Param production query bool true "is production" @Success 200 @Router /api/aslan/service/version/{serviceName}/rollback [post]
func SyncServiceTemplate ¶
func UpdateFileContent ¶
func UpdateHelmService ¶
func UpdatePmServiceTemplate ¶
func UpdateServiceTemplate ¶
used in cron, update service env status
func UpdateServiceVariable ¶
@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 production query bool true "is production" @Param body body updateServiceVariableRequest true "body" @Success 200 @Router /api/aslan/service/services/{name}/variable [put]
func UpdateWorkloads ¶
func ValidateServiceUpdate ¶
ValidateServiceUpdate seems to require no privilege
func YamlValidator ¶
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"`
}