Upstream v1.6.2 API Reference
Modules
Upstream is a utility for working with file upload. It specifically integrates with backblaze b2 object store service
Supervisor for the Upstream App
Authorizes the b2 account and start agent so we can access the data without making another authorize_account call
Handles Authorization of B2 account
Base B2 module for using in the api call definitions
Handles download requests to the b2 api
This will get_download_authorization for us
Public facing api for B2 LargeFile
Call to cancel un-finished large_files
Handles finishing large file uploading
This module will get the parts of an unfinished large file
Start a large file upload
For listing existing files, buckets
Lists files by file name
Public api for B2.Upload
Upload Standard File
Handle uploading of part
Gets the part URL from B2
Responsible for retrieving the upload_url from b2 for simple file
Url generation utility for b2
for handling error from the b2 server calls
Job module for making it easy to work with upload job by exposing file stats and file stream
Request module for making and handling network request to b2
Provides the Endpoints for uploading
The Store module is used to store the state of uploads. If you are using the Upstream module in a distributed system you will need to, set the redis_url: option for upstream, as uploads can happen from any of your node
Callbacks for Redis Handles redis specific commands
Manages Supervisors for Uploaders
Calculates the sha from the streaming chunk
Supervisor for Uploader.File
Generates the chunks stream for Worker.File and Worker.LargeFile
Supervisor for Uploader.LargeFile
Supervisor for Uploader.File
Utilities for accessing the upstream upload system
Simple Worker for single threaded uploading
Handles uploading of chunks (pieces from the client)
LargeFile Uploader handles all the interaction to upload a large file
used to track the status of the upload process
Worker for simple file