balamurugana / minio-dotnet

Minio .NET Library for Amazon S3 Compatible Cloud Storage

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Minio .NET Library for Amazon S3 Compatible Cloud Storage Gitter

Install from NuGet Build Status

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

Object Operations

Pesigned Operations

How to run these examples?

On Linux

Simply edit the example .Net program to include your access credentials and follow the steps below.

$ git clone https://github.com/minio/minio-dotnet && cd minio-dotnet
$ sudo apt-get install mono-xbuild mono-devel mono-complete
$ sudo mozroots --import --machine --sync 
$ sudo certmgr -ssl -m https://go.microsoft.com
$ sudo certmgr -ssl -m https://nugetgallery.blob.core.windows.net
$ sudo certmgr -ssl -m https://nuget.org
$ wget https://www.nuget.org/nuget.exe
$ mono nuget.exe update -self
$ mono nuget.exe restore
$ xbuild /t:Clean
$ xbuild /t:Rebuild /p:Configuration=Release
[edit Minio.Examples/ListBuckets.cs]
$ mcs /r:Minio/bin/Release/Minio.dll Minio.Examples/ListBuckets.cs
$ export MONO_PATH=Minio/bin/Release
$ mono Minio.Examples/ListBuckets.exe
....

Contribute

Contributors Guide

About

Minio .NET Library for Amazon S3 Compatible Cloud Storage

License:Apache License 2.0


Languages

Language:C# 100.0%