summaryrefslogtreecommitdiffstats
path: root/plugin/api.go
diff options
context:
space:
mode:
authorCharles Kenney <Charlesc.kenney@gmail.com>2018-10-17 20:31:51 -0400
committerJesse Hallam <jesse.hallam@gmail.com>2018-10-17 20:31:51 -0400
commit3bc89083fca64a1d096cc897f13d0a9b68433a8f (patch)
tree1a3b8f81f45dd39564f80288fea2ac0970bc75f9 /plugin/api.go
parentdb1123b8b28739ab78e46d8ec21f9aaa00ab520d (diff)
downloadchat-3bc89083fca64a1d096cc897f13d0a9b68433a8f.tar.gz
chat-3bc89083fca64a1d096cc897f13d0a9b68433a8f.tar.bz2
chat-3bc89083fca64a1d096cc897f13d0a9b68433a8f.zip
Add GetFileLink method to plugin API (#9665)
* add GetFileLink method to plugin API * Update plugin/api.go * add translations for new plugin API errors
Diffstat (limited to 'plugin/api.go')
-rw-r--r--plugin/api.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugin/api.go b/plugin/api.go
index 3e35811b8..660309f57 100644
--- a/plugin/api.go
+++ b/plugin/api.go
@@ -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