pilotwings/backend/types.py

20 lines
357 B
Python
Raw Normal View History

2024-11-06 14:18:51 +00:00
from pydantic import BaseModel
class ContainerRequest(BaseModel):
image: str
environment: list[str]
class SerializedContainer(BaseModel):
id: str
name: str | None
image: str | None
labels: dict[str, str]
status: str
health: str
engine: str | None
owner: str | None
environment: list[str]
logs: str | None