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
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
c2f2fda8a1
Коммит
0aa0adb911
@@ -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
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user