diff options
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 |