chore: use yamlsource (#27466)

Co-authored-by: Michael Geers <michael@geers.tv>
This commit is contained in:
Maschga 2026-02-17 10:47:43 +01:00 • committed by GitHub
parent 50c5e9ac97
commit 9293cdef3e
13 changed files with 60 additions and 51 deletions

View file

@ -20,11 +20,19 @@ import (
// ConfigStatus for publishing config, status and source to UI and external systems
type ConfigStatus struct {
Config any `json:"config,omitempty"`
Status any `json:"status,omitempty"`
FromYaml bool `json:"fromYaml,omitempty"`
Config any `json:"config,omitempty"`
Status any `json:"status,omitempty"`
YamlSource YamlSource `json:"yamlSource,omitempty"`
}
type YamlSource string
const (
YamlSourceFile YamlSource = "file"
YamlSourceDb YamlSource = "db"
YamlSourceNone YamlSource = ""
)
type All struct {
Network Network
Ocpp ocpp.Config