emissary/internal/agent/controller/openwrt/spec/sysupgrade/init.go

18 lines
266 B
Go
Raw Permalink Normal View History

package sysupgrade
import (
_ "embed"
"forge.cadoles.com/Cadoles/emissary/internal/spec"
"github.com/pkg/errors"
)
//go:embed schema.json
var schema []byte
func init() {
if err := spec.Register(Name, schema); err != nil {
panic(errors.WithStack(err))
}
}