A static class in Alta.IO, Alta.Utilities.
Static access to a DigitalOcean Spaces (S3-compatible, sfo2 region) client. Keys must be set with SetupKeys before first use.
Fields
4 private and internal fields
| Member | What it is |
|---|
private static string accessKey | Stored access key. |
private static TransferUtility client | Backing field for Client. |
private static AmazonS3Client s3Client | Backing field for S3Client. |
private static string secretKey | Stored secret key. |
Properties
| Member | What it is |
|---|
static TransferUtility Client { get; } | S3 TransferUtility for uploads and downloads (up to 1000 concurrent requests), created on first use. |
static AmazonS3Client S3Client { get; } | The AmazonS3Client for the sfo2 Spaces endpoint, created on first use. |
Methods
| Member | What it is |
|---|
static void SetupKeys(string accessKey, string secretKey) | Stores the access and secret keys used when the clients are created. Nothing calls it in this build (AltaIO sets up S3Utility instead). |
1 private and internal method
| Member | What it is |
|---|
private static void Setup() | Creates both clients from the stored keys. |