Add comprehensive Docker containers management page with filtering, search, bulk actions, and enhanced container control with state verification
This commit is contained in:
@@ -273,3 +273,28 @@ class DockerImageExtendedListResponse(BaseModel):
|
||||
total: int
|
||||
total_size: int
|
||||
unused_count: int = 0
|
||||
|
||||
|
||||
# === Aggregated Containers Response ===
|
||||
|
||||
class DockerContainerAggregatedResponse(DockerContainerBase):
|
||||
"""Response schema for Docker container with host info (for aggregated view)."""
|
||||
id: int
|
||||
host_id: str
|
||||
host_name: str
|
||||
host_ip: str
|
||||
created_at: Optional[datetime] = None
|
||||
last_update_at: Optional[datetime] = None
|
||||
|
||||
model_config = ConfigDict(from_attributes=True)
|
||||
|
||||
|
||||
class DockerContainerAggregatedListResponse(BaseModel):
|
||||
"""Response for listing all containers across all hosts."""
|
||||
containers: List[DockerContainerAggregatedResponse]
|
||||
total: int
|
||||
running: int
|
||||
stopped: int
|
||||
paused: int
|
||||
hosts_count: int
|
||||
last_update: Optional[datetime] = None
|
||||
|
||||
Reference in New Issue
Block a user