plugin

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2020 License: Apache-2.0 Imports: 20 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 PluginBase added in v0.5.0

type PluginBase struct {
	ID        string
	PluginDir string
	Version   string
}

type PluginSignature added in v0.5.0

type PluginSignature int
const (
	PluginSignatureUnsigned PluginSignature = iota
	PluginSignatureInvalid
	PluginSignatureModified
	PluginSignatureValid
)

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(archiveURL 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