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
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
c2f2fda8a1
Коммит
0aa0adb911
@@ -279,6 +279,14 @@ func (api *PluginAPI) CopyFileInfos(userId string, fileIds []string) ([]string,
|
||||
return api.app.CopyFileInfos(userId, fileIds)
|
||||
}
|
||||
|
||||
func (api *PluginAPI) GetFileInfo(fileId string) (*model.FileInfo, *model.AppError) {
|
||||
return api.app.GetFileInfo(fileId)
|
||||
}
|
||||
|
||||
func (api *PluginAPI) ReadFile(path string) ([]byte, *model.AppError) {
|
||||
return api.app.ReadFile(path)
|
||||
}
|
||||
|
||||
func (api *PluginAPI) KVSet(key string, value []byte) *model.AppError {
|
||||
return api.app.SetPluginKey(api.id, key, value)
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user