Crate cloud_copy

Crate cloud_copy 

Source
Expand description

Cloud storage copy utility.

The cloud-copy crate offers a simple API for transferring files to and from Azure Blob Storage, Amazon S3, and Google Cloud Storage.

It exports a function named copy which is responsible for copying a source to a destination.

An optional transfer event stream provided to the copy function can be used to display transfer progress.

Additionally, when this crate is built with the cli feature enabled, a handle_events function is exported that will display progress bars using the tracing_indicatif crate.

Modules§

clicli
Utility code for CLI implementations.

Structs§

Alphanumeric
An alphanumeric string generator.
AzureConfig
Represents configuration for Azure Storage.
Config
Configuration used in a cloud copy operation.
GoogleAuthConfig
Represents authentication configuration for Google Cloud Storage.
GoogleConfig
Represents configuration for Google Cloud Storage.
HttpClient
Represents a client to use for making HTTP requests.
S3AuthConfig
Represents authentication configuration for S3.
S3Config
Represents configuration for AWS S3.

Enums§

AzureError
Represents an Azure-specific copy operation error.
Error
Represents a copy operation error.
GoogleError
Represents a Google-specific copy operation error.
Location
Represents either a local or remote location.
S3Error
Represents a S3-specific copy operation error.
TransferEvent
Represents an event that may occur during a file transfer.

Traits§

UrlExt
Extension trait for Url.

Functions§

copy
Copies a source location to a destination location.
rewrite_url
Re-writes a cloud storage schemed URL (e.g. az://, s3://, gs://) to a corresponding https:// URL.

Type Aliases§

Result
Represents a result for copy operations.