Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidPullRequest = errors.New("invalid pull request")
ErrInvalidPullRequest is returned whenever a URL or commit couldn't be determined from a diff.
View Source
var ErrPluginNotFound = errors.New("plugin not found")
ErrPluginNotFound is returned whenever a plugin could be found for a given ref.
Functions ¶
This section is empty.
Types ¶
type Ref ¶
type Ref struct { Username string `json:"username"` Repo string `json:"repo"` Ref string `json:"ref"` }
Ref describes a plugin version on GitHub.
type ValidationComment ¶
type ValidationComment struct { Severity checkSeverity `json:"level"` Message string `json:"message"` Details string `json:"details"` }
ValidationComment contains a comment returned by one of the checkers.
func Check ¶
func Check(url string, schemaPath string, client *grafana.Client) (json.RawMessage, []ValidationComment, error)
Check executes a number of checks to validate a plugin.
Click to show internal directories.
Click to hide internal directories.