envconst: queryable report of resolved variables + integration inot zrepl status --raw

fixes #299
refs #186
This commit is contained in:
Christian Schwarz
2020-06-07 12:24:16 +02:00
parent b330ccca5d
commit 4b1b7a8561
4 changed files with 101 additions and 45 deletions
+3 -1
View File
@@ -14,6 +14,7 @@ import (
"github.com/prometheus/client_golang/prometheus"
"github.com/zrepl/zrepl/daemon/logging/trace"
"github.com/zrepl/zrepl/endpoint"
"github.com/zrepl/zrepl/util/envconst"
"github.com/zrepl/zrepl/config"
"github.com/zrepl/zrepl/daemon/job"
@@ -150,7 +151,8 @@ type Status struct {
}
type GlobalStatus struct {
ZFSCmds *zfscmd.Report
ZFSCmds *zfscmd.Report
Envconst *envconst.Report
}
func (s *jobs) status() map[string]*job.Status {