summaryrefslogtreecommitdiffstats
path: root/plugin/api.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/api.go')
-rw-r--r--plugin/api.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/plugin/api.go b/plugin/api.go
index d0ad178ca..927fd3c6a 100644
--- a/plugin/api.go
+++ b/plugin/api.go
@@ -155,6 +155,13 @@ type API interface {
// UpdatePost updates a post.
UpdatePost(post *model.Post) (*model.Post, *model.AppError)
+ // CopyFileInfos creates a copy of FileInfo objects provided in the list of FileIds
+ // these new FileInfo objects will not be linked to any post and will
+ // be ready to provide to a new CreatePost call
+ // this should be used when you want to create a copy of a post including
+ // file attachments without duplicating the file uploads
+ CopyFileInfos(userId string, fileIds []string) ([]string, *model.AppError)
+
// KVSet will store a key-value pair, unique per plugin.
KVSet(key string, value []byte) *model.AppError