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: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BatchCreatePMHost added in v1.9.9

func BatchCreatePMHost(c *gin.Context)

func CreateOrUpdateMatchRules added in v1.5.0

func CreateOrUpdateMatchRules(c *gin.Context)

func CreatePMHost added in v1.9.9

func CreatePMHost(c *gin.Context)

func CreateProductTemplate

func CreateProductTemplate(c *gin.Context)

func CreateVariableSet added in v1.9.9

func CreateVariableSet(c *gin.Context)

func DeletePMHost added in v1.9.9

func DeletePMHost(c *gin.Context)

TODO: add authorization to this

func DeleteProductTemplate

func DeleteProductTemplate(c *gin.Context)

func DeleteVariableSet added in v1.9.9

func DeleteVariableSet(c *gin.Context)

func GetCustomMatchRules added in v1.5.0

func GetCustomMatchRules(c *gin.Context)

func GetGlobalVariableCandidates added in v1.9.9

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 added in v1.9.9

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 added in v1.9.9

func GetPMHost(c *gin.Context)

func GetProductTemplate

func GetProductTemplate(c *gin.Context)

func GetProductTemplateServices

func GetProductTemplateServices(c *gin.Context)

TODO: no authorization whatsoever

func GetProductionGlobalVariableCandidates added in v1.9.9

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 added in v1.9.9

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 GetRenderSetInfo

func GetRenderSetInfo(c *gin.Context)

func GetVariableSet added in v1.9.9

func GetVariableSet(c *gin.Context)

func ListLabels added in v1.9.9

func ListLabels(c *gin.Context)

func ListPMHosts added in v1.9.9

func ListPMHosts(c *gin.Context)

func ListProjects added in v1.5.0

func ListProjects(c *gin.Context)

func ListTemplatesHierachy

func ListTemplatesHierachy(c *gin.Context)

func ListVariableSets added in v1.9.9

func ListVariableSets(c *gin.Context)

TODO: no authorization, fix this

func OpenAPICreateProductTemplate added in v1.9.9

func OpenAPICreateProductTemplate(c *gin.Context)

func OpenAPIDeleteProject added in v1.9.9

func OpenAPIDeleteProject(c *gin.Context)

func OpenAPIGetGlobalVariables added in v1.9.9

func OpenAPIGetGlobalVariables(c *gin.Context)

func OpenAPIGetProjectDetail added in v1.9.9

func OpenAPIGetProjectDetail(c *gin.Context)

func OpenAPIInitializeHelmProject added in v1.9.9

func OpenAPIInitializeHelmProject(c *gin.Context)

func OpenAPIInitializeYamlProject added in v1.9.9

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 added in v1.9.9

func OpenAPIListProject(c *gin.Context)

func TransferProject added in v1.9.9

func TransferProject(c *gin.Context)

func UpdateGlobalVariables added in v1.9.9

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 added in v1.9.9

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 added in v1.9.9

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 added in v1.9.9

func UpdateProductionServiceOrchestration(c *gin.Context)

func UpdateProject

func UpdateProject(c *gin.Context)

func UpdateServiceOrchestration added in v1.6.0

func UpdateServiceOrchestration(c *gin.Context)

func UpdateVariableSet added in v1.9.9

func UpdateVariableSet(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 UpdateOrchestrationServiceReq added in v1.7.0

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