feat (volumes): voeg volumes router toe aan backend
Nieuw bestand control/app_volumes.py met Libpod volume operaties:
- GET /volumes — lijst alle volumes (optioneel ?filters=key=value)
- POST /volumes — volume aanmaken (name, driver, labels, driverOpts)
- GET /volumes/{name} — details van één volume
- GET /volumes/{name}/exists — bestaanskontrolle (204 → true, 404 → false)
- DELETE /volumes/{name} — volume verwijderen (?force=true optioneel)
- POST /volumes/prune — ⚠️ verwijdert alle ongebruikte volumes
Filters: key=value formaat wordt automatisch omgezet naar
{"key":["value"]} JSON dat de Libpod API verwacht.
Containerfile: COPY app_volumes.py toegevoegd.
app.py: init_volumes_router geregistreerd.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -4,6 +4,7 @@ RUN apt-get update && apt-get install -y curl systemd && rm -rf /var/lib/apt/lis
|
||||
RUN pip install fastapi uvicorn requests-unixsocket pyyaml pytest httpx
|
||||
COPY app.py .
|
||||
COPY app_images.py .
|
||||
COPY app_volumes.py .
|
||||
COPY app_files.py .
|
||||
COPY app_networks.py .
|
||||
COPY app_pods.py .
|
||||
|
||||
Reference in New Issue
Block a user