16 lines
499 B
Go
16 lines
499 B
Go
package api
|
|
|
|
// 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"`
|
|
}
|