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: 23 Imported by: 1 module, 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 BatchCreatePMHost

func BatchCreatePMHost(c *gin.Context)

func CreateOrUpdateMatchRules

func CreateOrUpdateMatchRules(c *gin.Context)

func CreatePMHost

func CreatePMHost(c *gin.Context)

func CreateProductTemplate

func CreateProductTemplate(c *gin.Context)

func CreateProjectCodeHost

func CreateProjectCodeHost(c *gin.Context)

@Summary Create Project CodeHost @Description Create Project CodeHost @Tags project @Accept json @Produce json @Param name path string true "project name" @Param body body models.CodeHost true "body" @Success 200 @Router /api/aslan/project/integration/{name}/codehosts [post]

func CreateProjectGroup

func CreateProjectGroup(c *gin.Context)

func CreateVariableSet

func CreateVariableSet(c *gin.Context)

func DeleteCodeHost

func DeleteCodeHost(c *gin.Context)

@Summary Delete Project CodeHost @Description Delete Project CodeHost @Tags project @Accept json @Produce json @Param name path string true "project name" @Param id path int true "code host id" @Success 200 @Router /api/aslan/project/integration/{name}/codehosts/{id} [delete]

func DeletePMHost

func DeletePMHost(c *gin.Context)

TODO: add authorization to this

func DeleteProductTemplate

func DeleteProductTemplate(c *gin.Context)

func DeleteProjectGroup

func DeleteProjectGroup(c *gin.Context)

func DeleteVariableSet

func DeleteVariableSet(c *gin.Context)

func GetAgentAccessCmd

func GetAgentAccessCmd(c *gin.Context)

func GetBizDirProject

func GetBizDirProject(c *gin.Context)

@Summary Get Bussiness Directory @Description Get Bussiness Directory @Tags project @Accept json @Produce json @Success 200 {array} projectservice.GroupDetail @Router /api/aslan/project/bizdir [get]

func GetBizDirProjectServices

func GetBizDirProjectServices(c *gin.Context)

@Summary Get Bussiness Directory Project Services @Description Get Bussiness Directory Project Services @Tags project @Accept json @Produce json @Param projectName query string true "project name" @Success 200 {array} string @Router /api/aslan/project/bizdir/services [get]

func GetBizDirServiceDetail

func GetBizDirServiceDetail(c *gin.Context)

@Summary Get Bussiness Directory Searvice Detail @Description Get Bussiness Directory Searvice Detail @Tags project @Accept json @Produce json @Param projectName query string true "project name" @Param serviceName query string true "service name" @Success 200 {array} projectservice.GetBizDirServiceDetailResponse @Router /api/aslan/project/bizdir/service/detail [get]

func GetCustomMatchRules

func GetCustomMatchRules(c *gin.Context)

func GetGlobalVariableCandidates

func GetGlobalVariableCandidates(c *gin.Context)

@Summary Get global variable candidates @Description Get global variable candidates @Tags project @Accept json @Produce json @Param name path string true "project name" @Success 200 {array} projectservice.GetGlobalVariableCandidatesRespone @Router /api/aslan/project/products/{name}/globalVariableCandidates [get]

func GetGlobalVariables

func GetGlobalVariables(c *gin.Context)

@Summary Get global variables @Description Get global variables @Tags project @Accept json @Produce json @Param name path string true "project name" @Success 200 {array} commontypes.ServiceVariableKV @Router /api/aslan/project/products/{name}/globalVariables [get]

func GetPMHost

func GetPMHost(c *gin.Context)

func GetPresetProjectGroup

func GetPresetProjectGroup(c *gin.Context)

func GetProductTemplate

func GetProductTemplate(c *gin.Context)

func GetProductTemplateServices

func GetProductTemplateServices(c *gin.Context)

TODO: no authorization whatsoever

func GetProductionGlobalVariableCandidates

func GetProductionGlobalVariableCandidates(c *gin.Context)

@Summary Get production_global variable candidates @Description Get global variable candidates @Tags project @Accept json @Produce json @Param name path string true "project name" @Success 200 {array} projectservice.GetGlobalVariableCandidatesRespone @Router /api/aslan/project/products/{name}/globalProductionGlobalVariables [get]

func GetProductionGlobalVariables

func GetProductionGlobalVariables(c *gin.Context)

@Summary Get global production_variables @Description Get global variables @Tags project @Accept json @Produce json @Param name path string true "project name" @Success 200 {array} commontypes.ServiceVariableKV @Router /api/aslan/project/products/{name}/productionGlobalVariables [get]

func GetProjectCodeHost

func GetProjectCodeHost(c *gin.Context)

@Summary Get Project CodeHost @Description Get Project CodeHost @Tags project @Accept json @Produce json @Param name path string true "project name" @Param id path int true "code host id" @Success 200 {object} models.CodeHost @Router /api/aslan/project/integration/{name}/codehosts/{id} [get]

func GetVariableSet

func GetVariableSet(c *gin.Context)

func ListAvailableCodeHost

func ListAvailableCodeHost(c *gin.Context)

@Summary List Available CodeHost @Description List Available CodeHost @Tags project @Accept json @Produce json @Param name path string true "project name" @Param encryptedKey query string true "encrypted key" @Success 200 {array} models.CodeHost @Router /api/aslan/project/integration/{name}/codehosts/available [get]

func ListLabels

func ListLabels(c *gin.Context)

func ListPMHosts

func ListPMHosts(c *gin.Context)

func ListProjectCodeHost

func ListProjectCodeHost(c *gin.Context)

@Summary List Project CodeHost @Description List Project CodeHost @Tags project @Accept json @Produce json @Param name path string true "project name" @Param encryptedKey query string true "encrypted key" @Success 200 {array} models.CodeHost @Router /api/aslan/project/integration/{name}/codehosts [get]

func ListProjectGroups

func ListProjectGroups(c *gin.Context)

func ListProjects

func ListProjects(c *gin.Context)

func ListTemplatesHierachy

func ListTemplatesHierachy(c *gin.Context)

func ListVariableSets

func ListVariableSets(c *gin.Context)

TODO: no authorization, fix this

func OfflineVM

func OfflineVM(c *gin.Context)

func OpenAPICreateProductTemplate

func OpenAPICreateProductTemplate(c *gin.Context)

func OpenAPIDeleteProject

func OpenAPIDeleteProject(c *gin.Context)

func OpenAPIGetGlobalVariables

func OpenAPIGetGlobalVariables(c *gin.Context)

func OpenAPIGetProjectDetail

func OpenAPIGetProjectDetail(c *gin.Context)

func OpenAPIInitializeHelmProject

func OpenAPIInitializeHelmProject(c *gin.Context)

func OpenAPIInitializeYamlProject

func OpenAPIInitializeYamlProject(c *gin.Context)

@Summary OpenAPI Initialize Yaml Project @Description OpenAPI Initialize Yaml Project @Tags OpenAPI @Accept json @Produce json @Param body body service.OpenAPIInitializeProjectReq true "body" @Success 200 @Router /openapi/projects/project/init/yaml [post]

func OpenAPIListProject

func OpenAPIListProject(c *gin.Context)

func RecoveryVM

func RecoveryVM(c *gin.Context)

func SearchBizDirByProject

func SearchBizDirByProject(c *gin.Context)

@Summary Bussiness Directory Search By Project @Description Bussiness Directory Search By Project @Tags project @Accept json @Produce json @Param projectName query string true "project name" @Success 200 {array} projectservice.GroupDetail @Router /api/aslan/project/bizdir/search/project [get]

func SearchBizDirByService

func SearchBizDirByService(c *gin.Context)

@Summary Bussiness Directory Search By Service @Description Bussiness Directory Search By Service @Tags project @Accept json @Produce json @Param serviceName query string true "service name" @Success 200 {array} projectservice.SearchBizDirByServiceGroup @Router /api/aslan/project/bizdir/search/service [get]

func TransferProject

func TransferProject(c *gin.Context)

func UpdateGlobalVariables

func UpdateGlobalVariables(c *gin.Context)

@Summary Update global variables @Description Update global variables @Tags project @Accept json @Produce json @Param name path string true "project name" @Param body body updateGlobalVariablesRequest true "body" @Success 200 @Router /api/aslan/project/products/{name}/globalVariables [put]

func UpdatePMHost

func UpdatePMHost(c *gin.Context)

func UpdateProductTemplate

func UpdateProductTemplate(c *gin.Context)

UpdateProductTemplate ...

func UpdateProductTmplStatus

func UpdateProductTmplStatus(c *gin.Context)

TODO: old API with no authorizations

func UpdateProductionGlobalVariables

func UpdateProductionGlobalVariables(c *gin.Context)

@Summary Update production_global variables @Description Update global variables @Tags project @Accept json @Produce json @Param name path string true "project name" @Param body body updateGlobalVariablesRequest true "body" @Success 200 @Router /api/aslan/project/products/{name}/productionGlobalVariables [put]

func UpdateProductionServiceOrchestration

func UpdateProductionServiceOrchestration(c *gin.Context)

func UpdateProject

func UpdateProject(c *gin.Context)

func UpdateProjectCodeHost

func UpdateProjectCodeHost(c *gin.Context)

@Summary Update Project CodeHost @Description Update Project CodeHost @Tags project @Accept json @Produce json @Param name path string true "project name" @Param id path int true "code host id" @Param body body models.CodeHost true "body" @Success 200 @Router /api/aslan/project/integration/{name}/codehosts/{id} [patch]

func UpdateProjectGroup

func UpdateProjectGroup(c *gin.Context)

func UpdateServiceOrchestration

func UpdateServiceOrchestration(c *gin.Context)

func UpdateVariableSet

func UpdateVariableSet(c *gin.Context)

func UpgradeAgent

func UpgradeAgent(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 UpdateOrchestrationServiceReq

type UpdateOrchestrationServiceReq struct {
	Services           [][]string `json:"services"`
	ProductionServices [][]string `json:"production_services"`
}

Jump to

Keyboard shortcuts

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