Add GetFileLink method to plugin API (#9665)

* add GetFileLink method to plugin API

* Update plugin/api.go

* add translations for new plugin API errors
Этот коммит содержится в:
Charles Kenney
2018-10-17 20:31:51 -04:00
коммит произвёл Jesse Hallam
родитель db1123b8b2
Коммит 3bc89083fc
5 изменённых файлов: 82 добавлений и 0 удалений

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

@@ -256,6 +256,11 @@ type API interface {
// Minimum server version: 5.3
GetFileInfo(fileId string) (*model.FileInfo, *model.AppError)
// GetFileLink gets the public link to a file by fileId.
//
// Minimum server version: 5.6
GetFileLink(fileId string) (string, *model.AppError)
// ReadFileAtPath reads the file from the backend for a specific path
//
// Minimum server version: 5.3