metadata

package
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2026 License: Apache-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Analyzer = &analysis.Analyzer{
	Name:     "metadata",
	Requires: []*analysis.Analyzer{archive.Analyzer},
	Run:      run,
	Rules:    []*analysis.Rule{missingMetadata},
	ReadmeInfo: analysis.ReadmeInfo{
		Name:        "Metadata",
		Description: "Checks that `plugin.json` exists and is valid.",
	},
}

Functions

This section is empty.

Types

type Author added in v0.20.2

type Author struct {
	URL string `json:"url"`
}

type Includes added in v0.20.2

type Includes struct {
	Action     string `json:"action"`
	AddToNav   bool   `json:"addToNav"`
	Component  string `json:"component"`
	DefaultNav bool   `json:"defaultNav"`
	Icon       string `json:"icon"`
	Name       string `json:"name"`
	Path       string `json:"path"`
	Role       string `json:"role"`
	Type       string `json:"type"`
	Uid        string `json:"uid"`
}

type Info added in v0.20.2

type Info struct {
	Author      Author        `json:"author"`
	Screenshots []Screenshots `json:"screenshots"`
	Logos       Logos         `json:"logos"`
	Links       []Link        `json:"links"`
	Version     string        `json:"version"`
	Keywords    []string      `json:"keywords"`
	Description string        `json:"description"`
}
type Link struct {
	Name string `json:"name"`
	URL  string `json:"url"`
}

type Logos added in v0.20.2

type Logos struct {
	Small string `json:"small"`
	Large string `json:"large"`
}

type Metadata

type Metadata struct {
	ID           string               `json:"id"`
	Name         string               `json:"name"`
	Type         string               `json:"type"`
	Info         Info                 `json:"info"`
	Includes     []Includes           `json:"includes"`
	Executable   string               `json:"executable"`
	Backend      bool                 `json:"backend"`
	Alerting     bool                 `json:"alerting"`
	Dependencies MetadataDependencies `json:"dependencies"`
	DocsPath     string               `json:"docsPath"`
}

type MetadataDependencies added in v0.20.1

type MetadataDependencies struct {
	GrafanaDependency string                     `json:"grafanaDependency"`
	Plugins           []MetadataPluginDependency `json:"plugins"`
}

type MetadataPluginDependency added in v0.20.1

type MetadataPluginDependency struct {
	ID   string `json:"id"`
	Name string `json:"name"`
	Type string `json:"type"`
}

type Screenshots added in v0.20.2

type Screenshots struct {
	Name string `json:"name"`
	Path string `json:"path"`
}

Jump to

Keyboard shortcuts

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