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 - Interfaces
- Base Types
-
- Object
graph BT
Type-->Base0["Object"]
Type-.->Interface0["IS3Manager"]
click Interface0 "/api/Cake.AWS.S3/IS3Manager"
Type["S3Manager"]
class Type type-node
Syntax
public class S3Manager : IS3Manager
Constructors
Name | Summary |
---|---|
S3Manager |
Initializes a new instance of the S3Manager class.
|
Properties
Name | Value | Summary |
---|---|---|
LogProgress | bool |
If the manager should output progrtess events to the cake log
|
Methods
Name | Value | Summary |
---|---|---|
Delete |
Task |
Deletes a collection of files to S3. 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.
|
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.
|
Download |
Task |
Downloads a collection of files from S3 and writes ithem to the specified files.
|
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 directory 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 file 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 a collection of files to S3. 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.
|
UploadCompressed |
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.
|
UploadUnCompressed |
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.
|
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 |
Throws an exception if the specified parameter's value is null.
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 |
Returns the string value or a
Not set > markup suitable for Spectre.Console.
From StringExtensions
Requires the Cake.Issues addin
|