workloadreshandler

package
v1.23.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 7, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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)

Jump to

Keyboard shortcuts

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