feat: project scaffold with models, config, and test fixtures

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-05 18:52:39 -06:00
parent 3aa9f10d0d
commit fdfb9edfb0
13 changed files with 222 additions and 0 deletions
+42
View File
@@ -0,0 +1,42 @@
from pydantic import BaseModel
class NodeConfig(BaseModel):
name: str
host: str
agent_port: int = 8889
class NodeStatus(BaseModel):
name: str
host: str
healthy: bool
containers_total: int = 0
error: str | None = None
class ServiceRef(BaseModel):
node: str
container: str
class Group(BaseModel):
id: str
name: str
services: list[ServiceRef] = []
class GroupsData(BaseModel):
groups: list[Group] = []
class ServiceInfo(BaseModel):
id: str
name: str
node: str
status: str
image: str
created: str
uptime: str | None = None
is_swarm: bool = False
swarm_service: str | None = None