https://github.com/grafana/grafana
Raw File
Tip revision: 98d6fb793be469e9b147675bee3b7b6a098c64b6 authored by Domas on 18 May 2021, 10:56:31 UTC
Alerting: wrap top level components in ErrorBoundary (#34040)
Tip revision: 98d6fb7
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