Plugin framework: add ability to install other plugins to the… (#12232)

* add ability to upload other plugins to the plugin API

* generated client rpc glue code

* fix UploadPlugin API signature

* generated plugin mocks

* added upload plugin test

* removed unused comment

* using single line to call InstallPlugin with file Reader

* fix minimum server version

* added successful plugin upload test

* renamed UploadPlugin to InstallPlugin
Этот коммит содержится в:
Nikhil Ranjan
2019-10-17 20:57:55 +02:00
коммит произвёл Ali Farooq
родитель db97b49e7a
Коммит d7ee3553fa
5 изменённых файлов: 119 добавлений и 0 удалений

Просмотреть файл

@@ -4,6 +4,8 @@
package plugin
import (
"io"
plugin "github.com/hashicorp/go-plugin"
"github.com/mattermost/mattermost-server/model"
)
@@ -557,6 +559,12 @@ type API interface {
// Minimum server version: 5.6
GetPluginStatus(id string) (*model.PluginStatus, *model.AppError)
// InstallPlugin will upload another plugin with tar.gz file.
// Previous version will be replaced on replace true.
//
// Minimum server version: 5.18
InstallPlugin(file io.Reader, replace bool) (*model.Manifest, *model.AppError)
// KV Store Section
// KVSet stores a key-value pair, unique per plugin.