Documentation
¶
Index ¶
- func ClusterRouter(r *gin.RouterGroup)
- func CreateCluster(ctx *gin.Context)
- func DeleteCluster(ctx *gin.Context)
- func GetClusterId(ctx *gin.Context)
- func ListCluster(ctx *gin.Context)
- func ListGetLabel(ctx *gin.Context)
- func UpdateCluster(ctx *gin.Context)
- type Cluster
- type ClusterId
- type CreateClusterRequestBody
- type ErrorResp
- type UpdateClusterRequestBody
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClusterRouter ¶
func ClusterRouter(r *gin.RouterGroup)
func CreateCluster ¶
@BasePath /api/v1 PingProject godoc @Summary CreateCluster @Schemes @Description Create Cluster @Tags CreateCluster @Accept json @Produce json @Security ApiKeyAuth @Param ReqeustBody body CreateClusterRequestBody true "Create Cluster" @Success 200 {object} util.Res {"code":200,"data":null,"msg":""} @Success 400 {object} util.Res {"code":400,"data":null,"msg":""} @Success 404 {object} util.Res {"code":404,"data":null,"msg":""} @Success 500 {object} util.Res {"code":500,"data":null,"msg":""} @Router /cluster/create [post] @ID CreateCluster
func DeleteCluster ¶
@BasePath /api/v1 PingCluster godoc @Summary DeleteCluster @Schemes @Description Delete Cluster @Tags DeleteCluster @Accept json @Produce json @Security ApiKeyAuth @Param project_name query string true "Project_Name" @Param cluster_name query string true "Cluster_Name" @Success 200 {object} util.Res {"code":200,"data":null,"msg":""} @Success 400 {object} util.Res {"code":400,"data":null,"msg":""} @Success 404 {object} util.Res {"code":404,"data":null,"msg":""} @Success 500 {object} util.Res {"code":500,"data":null,"msg":""} @Router /cluster/delete [delete] @ID DeleteCluster
func GetClusterId ¶
@BasePath /api/v1 PingProject godoc @Summary GetClusterId @Schemes @Description Get ClusterID @Tags GetClusterId @Accept json @Produce json @Security ApiKeyAuth @Param project_name query string true "Project Name" @Param cluster_name query string true "Cluster Name" @Success 200 {object} util.Res {"code":200,"data":null,"msg":""} @Success 400 {object} util.Res {"code":400,"data":null,"msg":""} @Success 404 {object} util.Res {"code":404,"data":null,"msg":""} @Success 500 {object} util.Res {"code":500,"data":null,"msg":""} @Router /cluster/get_id [get] @ID GetClusterId
func ListCluster ¶
@BasePath /api/v1 PingCluster godoc @Summary ListCluster @Schemes @Description List Cluster @Tags ListCluster @Accept json @Produce json @Security ApiKeyAuth @Param project_name query string false "Project Name" @Param cluster_name query string false "Cluster Name" @Success 200 {object} util.Res {"code":200,"data":null,"msg":""} @Success 400 {object} util.Res {"code":400,"data":null,"msg":""} @Success 404 {object} util.Res {"code":404,"data":null,"msg":""} @Success 500 {object} util.Res {"code":500,"data":null,"msg":""} @Router /cluster/list [get] @ID ListCluster
func ListGetLabel ¶
@BasePath /api/v1 PingCluster godoc @Summary ListGetLabel @Schemes @Description List Cluster for label @Tags ListGetLabel @Accept json @Produce json @Security ApiKeyAuth @Param project_name query string false "Project Name" @Param label_key query string true "Label Key" @Param label_value query string true "Label value" @Success 200 {object} util.Res {"code":200,"data":null,"msg":""} @Success 400 {object} util.Res {"code":400,"data":null,"msg":""} @Success 404 {object} util.Res {"code":404,"data":null,"msg":""} @Success 500 {object} util.Res {"code":500,"data":null,"msg":""} @Router /cluster/label [get] @ID ListGetLabel
func UpdateCluster ¶
@BasePath /api/v1 PingCluster godoc @Summary UpdateCluster @Schemes @Description Update Cluster @Tags UpdateCluster @Accept json @Produce json @Security ApiKeyAuth @Param project_name query string true "Project_Name" @Param cluster_id query string true "Cluster_ID" @Param ReqeustBody body UpdateClusterRequestBody true "Update Cluster" @Success 200 {object} util.Res {"code":200,"data":null,"msg":""} @Success 400 {object} util.Res {"code":400,"data":null,"msg":""} @Success 404 {object} util.Res {"code":404,"data":null,"msg":""} @Success 500 {object} util.Res {"code":500,"data":null,"msg":""} @Router /cluster/update [put] @ID UpdateCluster