Upstream v2.1.4 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 Deletion of Files

Delete file version

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

This module retrieves Unfinished LargeFiles

Examples

For listing existing files, buckets

Lists files by file name

Provides the Endpoints for uploading

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

Handles Querying and Manipulating of Job States

Request module for making and handling network request to b2

For Running recurring tasks like renewing auth token

Manages Supervisors for Uploaders

Utilities for accessing the upstream upload system

Simple Worker for single threaded uploading

Calculates the sha from the streaming chunk

Handles uploading of chunks (pieces from the client)

Generates the chunks stream for Worker.File and Worker.LargeFile

LargeFile Uploader handles all the interaction to upload a large file

used to track the status of the upload process

Worker for simple file