package k8s type K8SCluster struct { ClusterName string `json:"clusterName" gorm:"comment:集群名称" form:"clusterName" binding:"required"` KubeConfig string `json:"kubeConfig" gorm:"comment:集群凭证;type:varchar(12800)" binding:"required"` ClusterVersion string `json:"clusterVersion" gorm:"comment:集群版本"` NodeNumber int `json:"nodeNumber" gorm:"comment:节点数"` } type PaginationQ struct { Size int `form:"size" json:"size"` Page int `form:"page" json:"page"` Total int64 `json:"total"` Keyword string `form:"keyword" json:"keyword"` } type ClusterIds struct { Data interface{} `json:"clusterIds"` } type ClusterNodesStatus struct { NodeCount int `json:"node_count"` Ready int `json:"ready"` UnReady int `json:"unready"` Namespace int `json:"namespace"` Deployment int `json:"deployment"` Pod int `json:"pod"` CpuUsage float64 `json:"cpu_usage" desc:"cpu使用率"` CpuCore float64 `json:"cpu_core"` CpuCapacityCore float64 `json:"cpu_capacity_core"` MemoryUsage float64 `json:"memory_usage" desc:"内存使用率"` MemoryUsed float64 `json:"memory_used"` MemoryTotal float64 `json:"memory_total"` }