riboflavin v0.0.2 Riboflavin.API
Direct API interface for Backblaze B2
Summary
Functions
Used to log in to the B2 API. Returns an authorization token that can be used for account-level operations, and a URL that should be used as the base URL for subsequent API calls
Creates a new bucket. A bucket belongs to the account used to create it
Deletes the bucket specified. Only buckets that contain no version of any files can be deleted
Deletes one version of a file from B2
Downloads one file from B2
Downloads one file by providing the name of the bucket and the name of the file
Gets information about one file stored in B2
Gets a URL to use for uploading files
Hides a file so that downloading by name will not find the file, but previous versions of the file are still stored. See File Versions about what it means to hide a file
Lists buckets associated with an account in alphabetical order by bucket ID
Lists the names of all files in a bucket, starting at a given name. TODO: Start File Name
Lists all of the versions of all of the files contained in one bucket, in alphabetical order by file name, and by reverse of data/time uploaded for versions of files with the same name. TODO: Start file name and ID
Update an existing bucket
Uploads one file to B2, returning its unique file ID
Formats and gets to URL and returns Map with response
TODO: Download async to not block on download
Formats and sends post to URL and returns Map with response
Post a file and headers
Generate Sha1 of File
Types
Functions
Used to log in to the B2 API. Returns an authorization token that can be used for account-level operations, and a URL that should be used as the base URL for subsequent API calls.
Creates a new bucket. A bucket belongs to the account used to create it.
Deletes the bucket specified. Only buckets that contain no version of any files can be deleted.
Deletes one version of a file from B2.
Downloads one file from B2.
Downloads one file by providing the name of the bucket and the name of the file.
Gets information about one file stored in B2.
Gets a URL to use for uploading files.
Hides a file so that downloading by name will not find the file, but previous versions of the file are still stored. See File Versions about what it means to hide a file.
Lists buckets associated with an account in alphabetical order by bucket ID.
Lists the names of all files in a bucket, starting at a given name. TODO: Start File Name
Lists all of the versions of all of the files contained in one bucket, in alphabetical order by file name, and by reverse of data/time uploaded for versions of files with the same name. TODO: Start file name and ID
Update an existing bucket.
Uploads one file to B2, returning its unique file ID.