https://github.com/grafana/grafana
Raw File
Tip revision: f31094c77438c9d0fbadbf28d6dadd81756ceddf authored by Alexander Emelin on 13 July 2021, 18:04:02 UTC
Merge branch 'main' into FZambia/prometheus_frame_type
Tip revision: f31094c
embed.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")
back to top