feat(controller,app): add edge apps controller
This commit is contained in:
@ -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{}
|
||||
|
Reference in New Issue
Block a user