Structs§
- File
Metadata - Wrapped
Signer - To get around using a Box
with ShadowDriveClient.
Constants§
- FILE_
UPLOAD_ BATCH_ SIZE - Maximum amount of files to batch into a single [store_files] request.
Functions§
- get_
text - Check with a HEAD that the URL exists and is a “text/plain” file. If so, return the response of a GET request.
- last_
modified - Pulls “last-modified” from HeaderMap, unaltered.
- parse_
filesize - Convert a file size string to Byte object with the denoted size.
- process_
shadow_ api_ response - Further diagnostic printing wherever possible.
- pubkey_
arg - Clap value parser for base58 string representations of Pubkey.
- shadow_
client_ factory - We either create an authenticated client with default auth headers, or else we simply use the RpcClient provided by the normal ShadowDriveClient constructor.
- shadow_
file_ with_ basename - Factory function for a ShadowFile, where we just use the path’s
basename. Panics if
path.file_name()returns None. - storage_
object_ url - Generate a Shadow Drive file URL from storage account and filename.
- wait_
for_ user_ confirmation - Confirm from the user that they definitely want some irreversible operation to occur.