feat(cli): support for asking grafana net about plugins

This commit is contained in:
bergquist
2016-03-10 14:43:21 +01:00
parent 43073da7eb
commit fee0745e98
5 changed files with 18 additions and 15 deletions

View File

@@ -12,7 +12,8 @@ import (
var IoHelper m.IoUtil = IoUtilImp{}
func ListAllPlugins(repoUrl string) (m.PluginRepo, error) {
res, _ := goreq.Request{Uri: repoUrl, MaxRedirects: 3}.Do()
res, _ := goreq.Request{Uri: repoUrl + "/repo", MaxRedirects: 3}.Do()
var resp m.PluginRepo
err := res.Body.FromJsonTo(&resp)