14 lines
424 B
Go
14 lines
424 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 {
|
|
Image string `json:"image"`
|
|
Env map[string]string `json:"env"`
|
|
ResourceLimits *k8s.ResourceLimits `json:"resourceLimits"`
|
|
WorkspaceID string `json:"workspaceId"`
|
|
}
|