add sandbox runtime control endpoints
This commit is contained in:
parent
0ca0bac9bf
commit
1b38bcfeab
17 changed files with 1408 additions and 119 deletions
|
|
@ -12,6 +12,12 @@ class SandboxStatus(str, Enum):
|
|||
FAILED = 'failed'
|
||||
|
||||
|
||||
@dataclass(frozen=True, slots=True)
|
||||
class SandboxEndpoint:
|
||||
ip: str
|
||||
port: int
|
||||
|
||||
|
||||
@dataclass(frozen=True, slots=True)
|
||||
class SandboxSession:
|
||||
session_id: UUID
|
||||
|
|
@ -20,3 +26,6 @@ class SandboxSession:
|
|||
status: SandboxStatus
|
||||
created_at: datetime
|
||||
expires_at: datetime
|
||||
agent_id: str = ''
|
||||
volume_host_path: str = ''
|
||||
endpoint: SandboxEndpoint | None = None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue