An open API service indexing awesome lists of open source software.

https://github.com/makeomatic/ms-files-transport

abstract class with tests for ms-files service
https://github.com/makeomatic/ms-files-transport

Last synced: about 1 year ago
JSON representation

abstract class with tests for ms-files service

Awesome Lists containing this project

README

          

# ms-files-transport

abstract class with tests for ms-files service

## Methods

### initResumableUpload(metadata)

Initiates resumable upload - could either be a multipart upload for amazon, or a real resumable upload with gce, etc.
Idea is to return upload id and instructions for what we are to do next

### completeResumableUpload(id)

Notifies server if resumable upload had finished. Unless this call is made within X amount of time
we must cleanup everything that was created during this upload

### createSignedURL(metadata)

Creates signed url, which provides access to a certain file for a limited amount of time

### postProcess(file, functionToPerform)

Buffers `file` and passes to `functionToPerform`, which is defined my implementation of a parent service

### readFile(file, opts)

Provides convenience method to read a file from a bucket