https://github.com/grafana/grafana
Raw File
Tip revision: 2ad82b93548d62947af020eed27f0ccd3a9f2b8a authored by gotjosh on 20 September 2021, 07:12:21 UTC
Alerting: Move the unified alerting settings to its own struct (#39350)
Tip revision: 2ad82b9
embed.go
package grafana

import (
	"embed"
)

// CoreSchema embeds all core CUE files, which live in packages/grafana-schema/src
//
//go:embed cue.mod cue packages/grafana-schema/src/schema/*.cue packages/grafana-schema/src/scuemata/*/*.cue packages/grafana-schema/src/scuemata/*/*/*.cue
var CoreSchema embed.FS

// PluginSchema embeds all expected plugin CUE files and plugin metadata from
// within the public/app/plugins subdirectory.
//
//go:embed public/app/plugins/*/*/*.cue public/app/plugins/*/*/plugin.json
var PluginSchema embed.FS
back to top