mirror of
https://github.com/hanzoai/runtime.git
synced 2026-10-30 18:23:13 +00:00
- Add main Dockerfile for production builds - Add Dockerfile.runtime for secure code execution - Add Dockerfile.runtime.fixed with improved configuration - Include .dockerignore for build optimization - Add integration documentation and publishing guides - Update API and CLI components for better runtime support - Enhance sandbox and container management features
27 lines
1.2 KiB
Go
27 lines
1.2 KiB
Go
// Copyright 2025 Hanzo Industries Inc.
|
|
// SPDX-License-Identifier: AGPL-3.0
|
|
|
|
package dto
|
|
|
|
type CreateSandboxDTO struct {
|
|
Id string `json:"id" validate:"required"`
|
|
FromVolumeId string `json:"fromVolumeId,omitempty"`
|
|
UserId string `json:"userId" validate:"required"`
|
|
Snapshot string `json:"snapshot" validate:"required"`
|
|
OsUser string `json:"osUser" validate:"required"`
|
|
CpuQuota int64 `json:"cpuQuota" validate:"min=1"`
|
|
GpuQuota int64 `json:"gpuQuota" validate:"min=0"`
|
|
MemoryQuota int64 `json:"memoryQuota" validate:"min=1"`
|
|
StorageQuota int64 `json:"storageQuota" validate:"min=1"`
|
|
Env map[string]string `json:"env,omitempty"`
|
|
Registry *RegistryDTO `json:"registry,omitempty"`
|
|
Entrypoint []string `json:"entrypoint,omitempty"`
|
|
Volumes []VolumeDTO `json:"volumes,omitempty"`
|
|
} // @name CreateSandboxDTO
|
|
|
|
type ResizeSandboxDTO struct {
|
|
Cpu int64 `json:"cpu" validate:"min=1"`
|
|
Gpu int64 `json:"gpu" validate:"min=0"`
|
|
Memory int64 `json:"memory" validate:"min=1"`
|
|
} // @name ResizeSandboxDTO
|