From 0aa0adb9113455da719877f2a3553df1e0ee0a97 Mon Sep 17 00:00:00 2001 From: Elias Nahum Date: Mon, 20 Aug 2018 13:18:25 -0300 Subject: 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 --- plugin/api.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'plugin/api.go') 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 -- cgit v1.2.3-1-g7c22