Files
Amir Raminfar 13da2a4222
Push container / Push branches and PRs (push) Waiting to run
Deploy VitePress site to Pages / build (push) Waiting to run
Deploy VitePress site to Pages / Deploy (push) Blocked by required conditions
Test / Typecheck (push) Waiting to run
Test / JavaScript Tests (push) Waiting to run
Test / Go Tests (push) Waiting to run
Test / Go Staticcheck (push) Waiting to run
Test / Integration Tests (push) Waiting to run
feat: supports k8s cluster (#3599)
2025-02-10 09:29:39 -08:00

21 lines
525 B
Go

package web
import (
"encoding/json"
"net/http"
"github.com/amir20/dozzle/internal/container"
)
func (h *handler) debugStore(w http.ResponseWriter, r *http.Request) {
respone := make(map[string]interface{})
respone["hosts"] = h.hostService.Hosts()
containers, errors := h.hostService.ListAllContainers(container.ContainerLabels{})
respone["containers"] = containers
respone["errors"] = errors
w.Header().Set("Content-Type", "application/json")
w.WriteHeader(http.StatusOK)
json.NewEncoder(w).Encode(respone)
}