https://github.com/grafana/grafana
Raw File
Tip revision: 674a0ef4a18f3fe24d6657e5eb0b3e183705afcc authored by Arve Knudsen on 18 May 2021, 11:41:55 UTC
CSP: Allow all image sources by default (#34265)
Tip revision: 674a0ef
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