You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2.1 KiB
2.1 KiB
Minio .NET Library for Amazon S3 Compatible Cloud Storage 
Install from NuGet 
To install Minio .NET package, run the following command in Nuget Package Manager Console
PM> Install-Package Minio
Example
using Minio;
private static MinioClient client = new MinioClient("https://s3.amazonaws.com", "Access Key", "Secret Key");
var buckets = client.ListBuckets();
foreach (Bucket bucket in buckets)
{
Console.Out.WriteLine(bucket.Name + " " + bucket.CreationDate);
}
Additional Examples
Bucket Operations
- ListBuckets.cs
- MakeBucket.cs
- RemoveBucket.cs
- BucketExists.cs
- ListObjects.cs
- DropAllIncompleteUploads.cs
Object Operations
How to run these examples?
On Linux
Simply edit the example .Net program to include your access credentials and follow the steps below.
$ sudo apt-get install mono
$ git clone https://github.com/minio/minio-dotnet && cd minio-dotnet
$ wget http://www.nuget.org/nuget.exe
$ mono nuget.exe restore
$ xbuild
[edit Minio.Examples/ListBuckets.cs]
$ mcs /r:Minio/bin/Debug/Minio.dll Minio.Examples/ListBuckets.cs
$ export MONO_PATH=Minio/bin/Debug
$ mono Minio.Examples/ListBuckets.exe
....