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

@ -24,10 +24,10 @@ func (s *Spec) SpecRevision() int {
return s.Revision
}
func (s *Spec) SpecData() any {
return struct {
Gateways map[ID]GatewayEntry
}{Gateways: s.Gateways}
func (s *Spec) SpecData() map[string]any {
return map[string]any{
"gateways": s.Gateways,
}
}
func NewSpec() *Spec {
@ -35,3 +35,5 @@ func NewSpec() *Spec {
Gateways: make(map[ID]GatewayEntry),
}
}
var _ spec.Spec = &Spec{}