1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-21 21:33:18 +01:00

feat: enables container filter to be configured at multiple places

This commit is contained in:
Amir Raminfar
2024-12-13 11:59:39 -08:00
parent a62cef7e25
commit 74b5adad00
20 changed files with 468 additions and 350 deletions

View File

@@ -3,12 +3,14 @@ package web
import (
"encoding/json"
"net/http"
"github.com/amir20/dozzle/internal/docker"
)
func (h *handler) debugStore(w http.ResponseWriter, r *http.Request) {
respone := make(map[string]interface{})
respone["hosts"] = h.multiHostService.Hosts()
containers, errors := h.multiHostService.ListAllContainers()
containers, errors := h.multiHostService.ListAllContainers(docker.ContainerFilter{})
respone["containers"] = containers
respone["errors"] = errors