mirror of
https://github.com/grafana/grafana.git
synced 2025-02-11 16:15:42 -06:00
* New pfs impl * Reached codegen parity with old system * Update all models.cue inputs * Rename all models.cue files * Remove unused prefixfs * Changes Queries->DataQuery schema interface * Recodegen * All tests passing, nearly good now * Add SchemaInterface to kindsys props * Add pascal name deriver * Relocate plugin cue files again * Clarify use of injected fields * Remove unnecessary aliasing * Move DataQuery into mudball * Allow forcing ExpandReferences on go type generation * Move DataQuery def into kindsys, add generator to copy it to common * Fix copy generator to replace package name correctly * Fix duplicate type, test failure * Fix linting issues
19 lines
602 B
Go
19 lines
602 B
Go
package kindsys
|
|
|
|
import "errors"
|
|
|
|
// TODO consider rewriting with https://github.com/cockroachdb/errors
|
|
|
|
var (
|
|
// ErrValueNotExist indicates that a necessary CUE value did not exist.
|
|
ErrValueNotExist = errors.New("cue value does not exist")
|
|
|
|
// ErrValueNotAKind indicates that a provided CUE value is not any variety of
|
|
// Interface. This is almost always a user error - they oops'd and provided the
|
|
// wrong path, file, etc.
|
|
ErrValueNotAKind = errors.New("not a kind")
|
|
|
|
// ErrInvalidCUE indicates that the CUE representing the kind is invalid.
|
|
ErrInvalidCUE = errors.New("CUE syntax error")
|
|
)
|