/
githubmirror
/
grafana
Обзор
Документация
Войти
/
githubmirror
/
grafana
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
pkg/plugins/codegen/pfs/plugin.go
22 строки
665 B
Selene
Codegen: Isolate schema generation code (#98742)
10 янв 2025, 15:33
Не верифицирован
10 янв 2025, 15:33
0501ff9
Код
Авторство
О чём код?
package pfs import ( "cuelang.org/go/cue" "cuelang.org/go/cue/ast" ) // ParsedPlugin represents everything knowable about a single plugin from static // analysis of its filesystem tree contents, as performed by [ParsePluginFS]. // // Guarantees described in the below comments only exist for instances of this // struct returned from [ParsePluginFS]. type ParsedPlugin struct { // Properties contains the plugin's definition, as declared in plugin.json. Properties Metadata CueFile cue.Value Variant SchemaInterface // CUEImports lists the CUE import statements in the plugin's grafanaplugin CUE // package, if any. CUEImports []*ast.ImportSpec }