metadata

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

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"`
}

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"`
	Version string `json:"version"`
}

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