feat: project scaffold with models, config, and test fixtures
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
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
|
||||
Reference in New Issue
Block a user