feat(controller,app): add edge apps controller

This commit is contained in:
2023-03-03 20:37:09 +01:00
parent e13de5bd0d
commit bd0d5a621a
20 changed files with 862 additions and 36 deletions

View File

@ -26,11 +26,11 @@ func (s *Spec) SpecRevision() int {
return s.Revision
}
func (s *Spec) SpecData() any {
return struct {
Config *uci.UCI `json:"config"`
PostImportCommands []*UCIPostImportCommand `json:"postImportCommands"`
}{Config: s.Config, PostImportCommands: s.PostImportCommands}
func (s *Spec) SpecData() map[string]any {
return map[string]any{
"config": s.Config,
"postImportCommands": s.PostImportCommands,
}
}
func NewSpec() *Spec {
@ -38,3 +38,5 @@ func NewSpec() *Spec {
PostImportCommands: make([]*UCIPostImportCommand, 0),
}
}
var _ spec.Spec = &Spec{}