This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.AWS.S3.
Summary
Provides a high level utility for managing transfers to and from Amazon S3.
It makes extensive use of Amazon S3 multipart uploads to achieve enhanced throughput,
performance, and reliability. When uploading large files by specifying file paths
instead of a stream, TransferUtility uses multiple threads to upload multiple parts of
a single upload at once. When dealing with large content sizes and high bandwidth,
this can increase throughput significantly.
- Assembly
- Cake
.AWS .S3 .dll - Namespace
- Cake
.AWS .S3 - Implementing Types
graph BT
Type["IS3Manager"]
class Type type-node
Implementing0["S3Manager"]-.->Type
click Implementing0 "/api/Cake.AWS.S3/S3Manager"
Syntax
public interface IS3Manager
Properties
Name | Value | Summary |
---|---|---|
LogProgress | bool |
If the manager should output progrtess events to the cake log
|
Methods
Name | Value | Summary |
---|---|---|
Delete |
Task |
Removes the null version (if there is one) of an object and inserts a delete
marker, which becomes the latest version of the object. If there isn't a null
version, Amazon S3 does not remove any objects.
|
DeleteAll |
Task |
Removes all objects from the bucket
|
Download |
Task |
Downloads the content from Amazon S3 and writes it to the specified file.
|
Generate |
void |
Generates a base64-encoded encryption key for Amazon S3 to use to encrypt / decrypt objects
|
GetBytes |
Task |
Get the byte array of the content from Amazon S3
|
GetHash |
string |
Gets the hash of a file
|
GetObject |
Task |
Retrieves object from Amazon S3.
|
GetObjectMetaData |
Task |
Retrieves object Metadata from Amazon S3.
|
GetObjects |
Task |
Returns all the objects in a S3 bucket.
|
GetPreSignedURL |
string |
Create a signed URL allowing access to a resource that would usually require authentication. cts
|
Open |
Task |
Opens a stream of the content from Amazon S3
|
SyncDownload |
Task |
Syncs the specified directory from Amazon S3, checking the modified date of the local files with existing S3Objects and downloading them if its changed.
|
SyncDownload |
Task |
Syncs the specified file from Amazon S3, checking the modified date of the local files with existing S3Objects and downloading them if its changed.
|
SyncUpload |
Task |
Syncs the specified file to Amazon S3, checking the modified date of the local files with existing S3Objects and uploading them if its changes.
|
SyncUpload |
Task |
Syncs the specified directory to Amazon S3, checking the modified date of the local files with existing S3Objects and uploading them if its changes.
|
Upload |
Task |
Uploads the specified file. For large uploads, the file will be divided and uploaded in parts
using Amazon S3's multipart API. The parts will be reassembled as one object in Amazon S3.
|
Upload |
Task |
Uploads the contents of the specified stream. For large uploads, the file will be divided and uploaded in parts
using Amazon S3's multipart API. The parts will be reassembled as one object in Amazon S3.
|
Extension Methods
Name | Value | Summary |
---|---|---|
Dump |
string |
Get a basic string representation of specified object.
From LoggingExtensions
Requires the Cake.Incubator addin
|
IsIn |
bool |
Checks if the source is contained in a list
From EnumerableExtensions
Requires the Cake.Incubator addin
|
NotNull |
void |
Throws an exception if the specified parameter's value is null.
From Extensions
Requires the Cake.Ftp addin
|
NotNull |
void |
From IssuesArgumentChecks
Requires the Cake.Issues addin
|
ThrowIfNull |
T |
Throws a
System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
ThrowIfNull |
T |
Throws a
System.ArgumentNullException if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
ToDictionary |
IDictionary |
From ObjectHelpers
Requires the Cake.DeployParams addin
|
To |
string |
From StringExtensions
Requires the Cake.Issues addin
|