Module shadow_drive_cli::utils
source · Structs
- To get around using a Box
with ShadowDriveClient.
Constants
- Maximum amount of files to batch into a single [store_files] request.
Functions
- Check with a HEAD that the URL exists and is a “text/plain” file. If so, return the response of a GET request.
- Pulls “last-modified” from HeaderMap, unaltered.
- Convert a file size string to Byte object with the denoted size.
- Further diagnostic printing wherever possible.
- Clap value parser for base58 string representations of [Pubkey].
- We either create an authenticated client with default auth headers, or else we simply use the RpcClient provided by the normal ShadowDriveClient constructor.
- Factory function for a ShadowFile, where we just use the path’s basename. Panics if
path.file_name()returns None. - Generate a Shadow Drive file URL from storage account and filename.
- Confirm from the user that they definitely want some irreversible operation to occur.