diff options
author | Elias Nahum <nahumhbl@gmail.com> | 2018-08-20 13:18:25 -0300 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2018-08-20 09:18:25 -0700 |
commit | 0aa0adb9113455da719877f2a3553df1e0ee0a97 (patch) | |
tree | fadf9e2917c903eaaacb4a4b6b5d227109bad8dd /plugin/api.go | |
parent | c2f2fda8a19b22453c99d832cca6eaad48a1b964 (diff) | |
download | chat-0aa0adb9113455da719877f2a3553df1e0ee0a97.tar.gz chat-0aa0adb9113455da719877f2a3553df1e0ee0a97.tar.bz2 chat-0aa0adb9113455da719877f2a3553df1e0ee0a97.zip |
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
Diffstat (limited to 'plugin/api.go')
-rw-r--r-- | plugin/api.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugin/api.go b/plugin/api.go index 841a2c702..256ac9f81 100644 --- a/plugin/api.go +++ b/plugin/api.go @@ -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 |