Add FileInfo and get file []byte in plugin api (#9269)

* Add FileInfo and get file []byte in plugin api

* Regenerated plugin mocks

* Rename ReadFileAtPath to ReadFile
Этот коммит содержится в:
Elias Nahum
2018-08-20 13:18:25 -03:00
коммит произвёл Christopher Speller
родитель c2f2fda8a1
Коммит 0aa0adb911
4 изменённых файлов: 122 добавлений и 0 удалений

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

@@ -163,6 +163,12 @@ type API interface {
// actually duplicating the uploaded files.
CopyFileInfos(userId string, fileIds []string) ([]string, *model.AppError)
// GetFileInfo gets a File Info for a specific fileId
GetFileInfo(fileId string) (*model.FileInfo, *model.AppError)
// ReadFileAtPath reads the file from the backend for a specific path
ReadFile(path string) ([]byte, *model.AppError)
// KVSet will store a key-value pair, unique per plugin.
KVSet(key string, value []byte) *model.AppError