Chore: Change endpoint to check versions in cli (#78008)

This commit is contained in:
Andres Martinez Gotor
2023-11-21 12:46:26 +01:00
committed by GitHub
parent 97c79f2c34
commit f8a6380510
5 changed files with 90 additions and 30 deletions

View File

@ -12,14 +12,15 @@ type PluginArchiveInfo struct {
Checksum string
}
// PluginRepo is (a subset of) the JSON response from /api/plugins/repo/$pluginID
type PluginRepo struct {
Versions []Version `json:"versions"`
// PluginVersions is the JSON response from /api/plugins/$pluginID/versions
type PluginVersions struct {
Versions []Version `json:"items"`
}
type Version struct {
Version string `json:"version"`
Arch map[string]ArchMeta `json:"arch"`
Arch map[string]ArchMeta `json:"packages"`
URL string `json:"url"`
}
type ArchMeta struct {