An open API service indexing awesome lists of open source software.

https://github.com/nemeslaszlo/cloud.file.storage.manager

Provides complete implementation to handle easily cloud file storage operations like get informations about files, reading, downloadURL generation, file update, file append and delete. Primarily for Azure right now.
https://github.com/nemeslaszlo/cloud.file.storage.manager

amazon-s3 azure azure-blob azure-blob-storage dotnet fileoperations minio minio-storage physical-storage s3-storage

Last synced: 6 months ago
JSON representation

Provides complete implementation to handle easily cloud file storage operations like get informations about files, reading, downloadURL generation, file update, file append and delete. Primarily for Azure right now.

Awesome Lists containing this project

README

        

# Cloud File Storage Manager

## Azure Blob Storage

Provides complete implementation to handle easily cloud file storage operations like get informations about files, reading, downloadURL generation, file update, file move and delete. Primarily for `Azure (Azure Blob Storage)` right now.

### Configuration

Let's add a section to the `appsettings.json`

```
"AzureStorageSettings": {
"AccountName": "",
"AccountKey": "",
"ContainerName": ""
}
```
In the application, configure this settings part

```cs
services.AddSingleton(services => new AzureCloudFileStorageManager(new AzureCloudFileStorageManagerOptions()
{
AccountName = config.GetSection("AzureStorageSettings").GetValue("AccountName"),
AccountKey = config.GetSection("AzureStorageSettings").GetValue("AccountKey"),
ContainerName = config.GetSection("AzureStorageSettings").GetValue("ContainerName")
}));

```

## Amazon S3

Provides complete implementation to handle easily cloud file storage operations like get informations about files, reading, downloadURL generation, file update, file move and delete. Primarily for `Amazon S3` right now.

### Configuration

Let's add a section to the `appsettings.json`

```
"AmazonS3torageSettings": {
"IsAnonymus": false,
"AccessKey": "",
"SecretKey": "",
"BucketName": "",
"BucketRegion": ""
}
```
In the application, configure this settings part

```cs
services.AddSingleton(services => new AmazonS3FileStorageManager(new AmazonS3FileStorageManagerOptions()
{
IsAnonymus = config.GetSection("AmazonS3torageSettings").GetValue("IsAnonymus"),
AccessKey = config.GetSection("AmazonS3torageSettings").GetValue("AccessKey"),
SecretKey = config.GetSection("AmazonS3torageSettings").GetValue("SecretKey"),
BucketName = config.GetSection("AmazonS3torageSettings").GetValue("BucketName"),
BucketRegion = config.GetSection("AmazonS3torageSettings").GetValue("BucketRegion")
}));

```

## Minio (Amazon S3 Compatible Cloud Storage)

Provides complete implementation to handle easily cloud file storage operations like get informations about files, reading, downloadURL generation, file update, file move and delete. Primarily for `Minio .NET SDK for Amazon S3 Compatible Cloud Storage.` right now.

### Configuration

Let's add a section to the `appsettings.json`

```
"MinioStorageSettings": {
"HostAndPort": "",
"UseSSL": false,
"AccessKey": "",
"SecretKey": "",
"BucketName": ""
}
```
In the application, configure this settings part

```cs
services.AddSingleton(services => new MinioCloudFileStorageManager(new MinioCloudFileStorageManagerOptions()
{
HostAndPort = config.GetSection("MinioStorageSettings").GetValue("HostAndPort"),
UseSSL = config.GetSection("MinioStorageSettings").GetValue("UseSSL"),
AccessKey = config.GetSection("MinioStorageSettings").GetValue("AccessKey"),
SecretKey = config.GetSection("MinioStorageSettings").GetValue("SecretKey"),
BucketName = config.GetSection("MinioStorageSettings").GetValue("BucketName")
}));

```

## Physical

Provides complete implementation to handle easily cloud file storage operations like get informations about files, reading, downloadURL generation, file update, file move and delete. Primarily for `Physical` right now.

### Configuration

Let's add a section to the `appsettings.json`

```
"PhysicalStorageSettings": {
"RootDirectoryPath": "",
}
```
In the application, configure this settings part

```cs
services.AddSingleton(services => new PhysicalFileStorage(new PhysicalFileStorageOptions()
{
RootDirectoryPath = config.GetSection("PhysicalStorageSettings").GetValue("RootDirectoryPath")
}));

```