Cloud.File.Storage.Manager.Minio
3.0.0
dotnet add package Cloud.File.Storage.Manager.Minio --version 3.0.0
NuGet\Install-Package Cloud.File.Storage.Manager.Minio -Version 3.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Cloud.File.Storage.Manager.Minio" Version="3.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Cloud.File.Storage.Manager.Minio" Version="3.0.0" />
<PackageReference Include="Cloud.File.Storage.Manager.Minio" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Cloud.File.Storage.Manager.Minio --version 3.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Cloud.File.Storage.Manager.Minio, 3.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Cloud.File.Storage.Manager.Minio@3.0.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Cloud.File.Storage.Manager.Minio&version=3.0.0
#tool nuget:?package=Cloud.File.Storage.Manager.Minio&version=3.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 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
services.AddSingleton<ICloudFileStorageManager, MinioCloudFileStorageManager>(services => new MinioCloudFileStorageManager(new MinioCloudFileStorageManagerOptions()
{
HostAndPort = config.GetSection("MinioStorageSettings").GetValue<string>("HostAndPort"),
UseSSL = config.GetSection("MinioStorageSettings").GetValue<bool>("UseSSL"),
AccessKey = config.GetSection("MinioStorageSettings").GetValue<string>("AccessKey"),
SecretKey = config.GetSection("MinioStorageSettings").GetValue<string>("SecretKey"),
BucketName = config.GetSection("MinioStorageSettings").GetValue<string>("BucketName")
}));
Behaviour
- Folders are key prefixes. A listing returns one level: the files and the subfolders directly under the folder.
- Deleting a folder removes every object under its prefix, in batches; a failed batch raises an
IOException. The storage root cannot be deleted, moved or overwritten. - The bucket is created on the first write; reads and listings report a missing bucket as not found.
GetDownloadUrlreturns a presigned GET URL. The validity is capped at 7 days (the S3 maximum), and the link points atHostAndPort, so use an address the link's recipients can reach.HostAndPortmay carry a scheme:https://host:9000connects over HTTPS andhttp://host:9000over HTTP, whateverUseSSLsays. Without a schemeUseSSLdecides.UseSSLdefaults tofalsefor compatibility; set it totrue(or use anhttps://address) in production.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Cloud.File.Storage.Manager.Common (>= 4.0.0)
- Minio (>= 7.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
- Targets .NET 10
- Requires Cloud.File.Storage.Manager.Common 4.0.0