plugin

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL