Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( FilterFields = []string{"ClusterName", "Namespace", "Type", "CPULimitStdvar", "MemoryLimitStdvar"} PreloadFields = []string{"Containers"} OrderFields = []string{} ModelName = "Workload" PrimaryKeyName = "workload_id" )
Functions ¶
This section is empty.
Types ¶
type WorkloadHandler ¶
type WorkloadHandler struct {
base.BaseHandler
}
func (*WorkloadHandler) DeleteWorkload ¶
func (h *WorkloadHandler) DeleteWorkload(c *gin.Context)
Delete 删除 Workload @Tags ResourceList @Summary Workload删除 @Description Workload删除 @Accept json @Produce json @Param workload_id path uint true "workload_id" @Success 204 {object} handlers.ResponseStruct resp @Router /v1/resources/workload/{workload_id} [delete] @Security JWT
func (*WorkloadHandler) ListWorkload ¶
func (h *WorkloadHandler) ListWorkload(c *gin.Context)
ListWorkload 列表 Workload @Tags ResourceList @Summary Workload列表 @Description Workload列表 @Accept json @Produce json @Param cluster query string false "cluster" @Param namespace query string false "namespace" @Param workloadtype query string false "workloadtype" @Success 200 {object} handlers.ResponseStruct{Data=[]models.Workload} "Workload" @Router /v1/resources/workload [get] @Security JWT
func (*WorkloadHandler) RegistRouter ¶
func (h *WorkloadHandler) RegistRouter(rg *gin.RouterGroup)