-
-
Notifications
You must be signed in to change notification settings - Fork 72
Vultr Storage
In order to use Vultr storage you need to reference package first. The provider wraps around the standard AWS SDK which is updated regularly, but adds a lot of untrivial workarounds that makes your life painless.
You can use the Vultr method to connect to Vultr Object Storage storage servers (S3 compatible).
IBlobStorage storage = StorageFactory.Blobs.Vultr(
accessKeyId, secretAccessKey, bucketName, hostName);Where hostName is the Vultr Storage endpoint hostname (e.g. sgp1.vultrobjects.com).
To create with a connection string, first reference the module:
StorageFactory.Modules.UseAwsStorage();Then construct using the following format:
IBlobStorage storage = StorageFactory.Blobs.FromConnectionString("vultr://keyId=...;key=...;bucket=...;hostName=...");where:
- keyId is (optional) access key ID.
- key is (optional) secret access key.
- bucket is bucket name.
-
hostName is the Vultr Storage endpoint hostname (e.g.
sgp1.vultrobjects.com).
If you already have credentials in the local credentials file generated by AWS CLI, you can also use them to connect to a bucket with FluentStorage. Look here for more details.
Native operations are exposed via IAwsS3BlobStorageNativeOperations interface.