Simple dependency support

This commit is contained in:
Christopher LaPointe
2023-05-29 21:29:55 -04:00
parent ebb45b55c3
commit f7c5daf448
6 changed files with 164 additions and 27 deletions

View File

@@ -97,7 +97,7 @@ func ContainerHandler(w http.ResponseWriter, r *http.Request) {
} else {
w.WriteHeader(http.StatusAccepted)
renderErr := splashTemplate.Execute(w, SplashModel{
Name: host,
Hostname: host,
ContainerState: sOpts,
})
if renderErr != nil {
@@ -114,6 +114,7 @@ func StatusHandler(w http.ResponseWriter, r *http.Request) {
statusPageTemplate.Execute(w, StatusPageModel{
Active: core.ActiveContainers(),
Qualifying: core.QualifyingContainers(r.Context()),
Providers: core.ProviderContainers(r.Context()),
RuntimeMetrics: fmt.Sprintf("Heap=%d, InUse=%d, Total=%d, Sys=%d, NumGC=%d", stats.HeapAlloc, stats.HeapInuse, stats.TotalAlloc, stats.Sys, stats.NumGC),
})
default: