mirror of
https://github.com/grafana/grafana.git
synced 2025-02-12 08:35:43 -06:00
* support grafana wildcard version * undo go.mod changes * tidy * flesh out tests * refactor * add tests * tidy naming * undo some changes * split interfaces * separation * update new signature * simplify * update var namings * unexport types * introduce opts pattern * reorder test * fix compat checks * middle ground * unexport client * move back * fix tests * inline logger * make client usable * use fake logger * tidy errors * remove unused types * fix test * review fixes * rework compatibility * adjust installer * fix tests * opts => cfg * remove unused var * fix var name
28 lines
493 B
Go
28 lines
493 B
Go
package repo
|
|
|
|
import "archive/zip"
|
|
|
|
type PluginArchive struct {
|
|
File *zip.ReadCloser
|
|
}
|
|
|
|
type PluginArchiveInfo struct {
|
|
URL string
|
|
Version string
|
|
Checksum string
|
|
}
|
|
|
|
// PluginRepo is (a subset of) the JSON response from /api/plugins/repo/$pluginID
|
|
type PluginRepo struct {
|
|
Versions []Version `json:"versions"`
|
|
}
|
|
|
|
type Version struct {
|
|
Version string `json:"version"`
|
|
Arch map[string]ArchMeta `json:"arch"`
|
|
}
|
|
|
|
type ArchMeta struct {
|
|
SHA256 string `json:"sha256"`
|
|
}
|