riboflavin v0.0.2 Riboflavin.B2

File management for Backblaze B2

Summary

Functions

authorize_account()

Pull credentials from config and send auth request to Backblaze. Return auth code and store for application

authorized?()

Check if we’ve already auth’d with backblaze

create_bucket(bucket_name, bucket_type)

Create a new bucket

delete_bucket(bucket_id)
delete_file_version(file_name, file_id)
download_file_by_id(file_id)
download_file_by_name(bucket_name, file_name, do_auth \\ false)
get_file_info(file_id)
get_upload_url(file_id)
hide_file(bucket_id, file_name)
list_buckets()
list_file_names(bucket_id, max_file_count \\ 100)
list_file_versions(bucket_id, max_file_count \\ 100)
update_b2auth(auth_info)
update_bucket(bucket_id, bucket_type)
upload_file(bucket_id, file_name, headers)