forked from grafana.jool/grafana-jool
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.1 KiB
48 lines
1.1 KiB
package installer
|
|
|
|
type InstalledPlugin struct {
|
|
ID string `json:"id"`
|
|
Name string `json:"name"`
|
|
Type string `json:"type"`
|
|
Info PluginInfo `json:"info"`
|
|
Dependencies Dependencies `json:"dependencies"`
|
|
}
|
|
|
|
type Dependencies struct {
|
|
GrafanaVersion string `json:"grafanaVersion"`
|
|
Plugins []PluginDependency `json:"plugins"`
|
|
}
|
|
|
|
type PluginDependency struct {
|
|
ID string `json:"id"`
|
|
Type string `json:"type"`
|
|
Name string `json:"name"`
|
|
Version string `json:"version"`
|
|
}
|
|
|
|
type PluginInfo struct {
|
|
Version string `json:"version"`
|
|
Updated string `json:"updated"`
|
|
}
|
|
|
|
type Plugin struct {
|
|
ID string `json:"id"`
|
|
Category string `json:"category"`
|
|
Versions []Version `json:"versions"`
|
|
}
|
|
|
|
type Version struct {
|
|
Commit string `json:"commit"`
|
|
URL string `json:"url"`
|
|
Version string `json:"version"`
|
|
Arch map[string]ArchMeta `json:"arch"`
|
|
}
|
|
|
|
type ArchMeta struct {
|
|
SHA256 string `json:"sha256"`
|
|
}
|
|
|
|
type PluginRepo struct {
|
|
Plugins []Plugin `json:"plugins"`
|
|
Version string `json:"version"`
|
|
}
|
|
|