fdfb9edfb0
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
29 lines
465 B
Python
29 lines
465 B
Python
from pydantic import BaseModel
|
|
|
|
|
|
class ContainerInfo(BaseModel):
|
|
id: str
|
|
name: str
|
|
status: str
|
|
image: str
|
|
created: str
|
|
uptime: str | None = None
|
|
is_swarm: bool = False
|
|
swarm_service: str | None = None
|
|
|
|
|
|
class ContainerAction(BaseModel):
|
|
success: bool
|
|
message: str
|
|
|
|
|
|
class LogsResponse(BaseModel):
|
|
container: str
|
|
logs: str
|
|
|
|
|
|
class HealthResponse(BaseModel):
|
|
status: str
|
|
hostname: str
|
|
containers_total: int
|