mirror of
https://github.com/grafana/grafana.git
synced 2024-11-27 03:11:01 -06:00
22 lines
470 B
Go
22 lines
470 B
Go
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")
|