little improve
This commit is contained in:
@@ -1,15 +1,13 @@
|
||||
package api
|
||||
|
||||
import (
|
||||
"gitea.starryskymeow.cn/xkm/educode-controller/internal/k8s"
|
||||
)
|
||||
|
||||
// CreateWorkspaceRequest defines the request body for creating a new workspace.
|
||||
type CreateWorkspaceRequest struct {
|
||||
Image string `json:"image"`
|
||||
Env map[string]string `json:"env"`
|
||||
ResourceLimits *ResourceLimits `json:"resourceLimits"`
|
||||
WorkspaceID string `json:"workspaceId"`
|
||||
}
|
||||
|
||||
// ResourceLimits defines the CPU and memory resource limits.
|
||||
type ResourceLimits struct {
|
||||
CPU string `json:"cpu"`
|
||||
Memory string `json:"memory"`
|
||||
Image string `json:"image"`
|
||||
Env map[string]string `json:"env"`
|
||||
ResourceLimits *k8s.ResourceLimits `json:"resourceLimits"`
|
||||
WorkspaceID string `json:"workspaceId"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user