[MM-48523] Expose resumable uploads API to plugins (#21700)

* Expose resumable uploads API to plugins

* Update translations
Этот коммит содержится в:
Claudio Costa
2022-11-22 15:26:22 -06:00
коммит произвёл GitHub
родитель a1e16f7b02
Коммит 0509e78744
13 изменённых файлов: 362 добавлений и 19 удалений

Просмотреть файл

@@ -1168,6 +1168,24 @@ type API interface {
//
// Minimum server version: 7.6
RegisterCollectionAndTopic(collectionType, topicType string) error
// CreateUploadSession creates and returns a new (resumable) upload session.
//
// @tag Upload
// Minimum server version: 7.6
CreateUploadSession(us *model.UploadSession) (*model.UploadSession, error)
// UploadData uploads the data for a given upload session.
//
// @tag Upload
// Minimum server version: 7.6
UploadData(us *model.UploadSession, rd io.Reader) (*model.FileInfo, error)
// GetUploadSession returns the upload session for the provided id.
//
// @tag Upload
// Minimum server version: 7.6
GetUploadSession(uploadID string) (*model.UploadSession, error)
}
var handshake = plugin.HandshakeConfig{