Skip to main content

DigitalOceanUtility

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
MemberWhat it is
private static string accessKeyStored access key.
private static TransferUtility clientBacking field for Client.
private static AmazonS3Client s3ClientBacking field for S3Client.
private static string secretKeyStored secret key.

Properties​

MemberWhat 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​

MemberWhat 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
MemberWhat it is
private static void Setup()Creates both clients from the stored keys.