https://github.com/grafana/grafana
Raw File
Tip revision: 0c6b9c16a928126a1285ee8633eb137fbb9aeea1 authored by Ryan McKinley on 18 May 2021, 18:19:19 UTC
Live: broadcast first event immediately (#34310)
Tip revision: 0c6b9c1
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