package sysupgrade import ( "forge.cadoles.com/Cadoles/emissary/internal/spec" ) const ( Name string = "sysupgrade.openwrt.emissary.cadoles.com" Version string = "0.0.0" ) type Spec struct { Revision int `json:"revision"` URL string `json:"url"` SHA256Sum string `json:"sha256sum"` Version string `json:"version"` } func (s *Spec) SpecDefinitionName() string { return Name } func (s *Spec) SpecDefinitionVersion() string { return Version } func (s *Spec) SpecRevision() int { return s.Revision } func (s *Spec) SpecData() map[string]any { return map[string]any{ "url": s.URL, "version": s.Version, "sha256sum": s.SHA256Sum, } } func NewSpec() *Spec { return &Spec{ Revision: -1, } } var _ spec.Spec = &Spec{}