mirror of
https://github.com/grafana/grafana.git
synced 2025-09-26 03:24:32 +08:00
Plugins: add build info to plugin metadata (#18164)
This commit is contained in:
@ -77,6 +77,13 @@ interface PluginMetaInfoLink {
|
|||||||
url: string;
|
url: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface PluginBuildInfo {
|
||||||
|
time?: number;
|
||||||
|
repo?: string;
|
||||||
|
branch?: string;
|
||||||
|
hash?: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface PluginMetaInfo {
|
export interface PluginMetaInfo {
|
||||||
author: {
|
author: {
|
||||||
name: string;
|
name: string;
|
||||||
@ -88,6 +95,7 @@ export interface PluginMetaInfo {
|
|||||||
large: string;
|
large: string;
|
||||||
small: string;
|
small: string;
|
||||||
};
|
};
|
||||||
|
build?: PluginBuildInfo;
|
||||||
screenshots: any[];
|
screenshots: any[];
|
||||||
updated: string;
|
updated: string;
|
||||||
version: string;
|
version: string;
|
||||||
|
@ -112,11 +112,19 @@ type PluginDependencyItem struct {
|
|||||||
Version string `json:"version"`
|
Version string `json:"version"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type PluginBuildInfo struct {
|
||||||
|
Time int64 `json:"time,omitempty"`
|
||||||
|
Repo string `json:"repo,omitempty"`
|
||||||
|
Branch string `json:"branch,omitempty"`
|
||||||
|
Hash string `json:"hash,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
type PluginInfo struct {
|
type PluginInfo struct {
|
||||||
Author PluginInfoLink `json:"author"`
|
Author PluginInfoLink `json:"author"`
|
||||||
Description string `json:"description"`
|
Description string `json:"description"`
|
||||||
Links []PluginInfoLink `json:"links"`
|
Links []PluginInfoLink `json:"links"`
|
||||||
Logos PluginLogos `json:"logos"`
|
Logos PluginLogos `json:"logos"`
|
||||||
|
Build PluginBuildInfo `json:"source"`
|
||||||
Screenshots []PluginScreenshots `json:"screenshots"`
|
Screenshots []PluginScreenshots `json:"screenshots"`
|
||||||
Version string `json:"version"`
|
Version string `json:"version"`
|
||||||
Updated string `json:"updated"`
|
Updated string `json:"updated"`
|
||||||
|
Reference in New Issue
Block a user