mirror of
https://github.com/grafana/grafana.git
synced 2025-07-24 22:13:11 +08:00
Introduce "scuemata" system for CUE-based specification of Grafana objects (#32527)
This commit is contained in:
21
embed.go
Normal file
21
embed.go
Normal file
@ -0,0 +1,21 @@
|
||||
package grafana
|
||||
|
||||
import (
|
||||
"embed"
|
||||
"io/fs"
|
||||
)
|
||||
|
||||
// CoreSchema embeds all CUE files within the cue/ subdirectory.
|
||||
//
|
||||
// TODO good rule about where to search
|
||||
//
|
||||
//go:embed cue/*/*.cue
|
||||
var CoreSchema embed.FS
|
||||
|
||||
// TODO good rule about where to search
|
||||
//
|
||||
//go:embed public/app/plugins/*/*/*.cue public/app/plugins/*/*/plugin.json
|
||||
var base embed.FS
|
||||
|
||||
// PluginSchema embeds all CUE files within the public/ subdirectory.
|
||||
var PluginSchema, _ = fs.Sub(base, "public/app/plugins")
|
Reference in New Issue
Block a user