14 lines
473 B
Go
14 lines
473 B
Go
package api
|
|
|
|
import (
|
|
"gitea.starryskymeow.cn/xkm/educode-controller/internal/k8s"
|
|
)
|
|
|
|
// CreateWorkspaceRequest defines the request body for creating a new workspace.
|
|
type CreateWorkspaceRequest struct {
|
|
WorkspaceID string `json:"WorkspaceID" binding:"required"`
|
|
Image string `json:"image,omitempty"`
|
|
Env map[string]string `json:"env,omitempty"`
|
|
ResourceLimits *k8s.ResourceLimits `json:"resourceLimits,omitempty"`
|
|
}
|