mirror of
https://github.com/grafana/grafana.git
synced 2025-01-09 23:53:25 -06:00
473898e47c
* Move some thema code inside grafana * Use new codegen instead of thema for core kinds * Replace TS generator * Use new generator for go types * Remove thema from oapi generator * Remove thema from generators * Don't use kindsys/thema for core kinds * Remove kindsys/thema from plugins * Remove last thema related * Remove most of cuectx and move utils_ts into codegen. It also deletes wire dependency * Merge plugins generators * Delete thema dependency 🎉 * Fix CODEOWNERS * Fix package name * Fix TS output names * More path fixes * Fix mod codeowners * Use original plugin's name * Remove kindsys dependency 🎉 * Modify oapi schema and create an apply function to fix elasticsearch errors * cue.mod was deleted by mistake * Fix TS panels * sort imports * Fixing elasticsearch output * Downgrade oapi-codegen library * Update output ts files * More fixes * Restore old elasticsearch generated file and skip its generation. Remove core imports into plugins * More lint fixes * Add codeowners * restore embed.go file * Fix embed.go
23 lines
665 B
Go
23 lines
665 B
Go
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
|
|
}
|