chore: use yamlsource (#27466)
Co-authored-by: Michael Geers <michael@geers.tv>
This commit is contained in:
parent
50c5e9ac97
commit
9293cdef3e
13 changed files with 60 additions and 51 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue