Skip to content

Commit

Permalink
Replace Minio with MinIO and minio.io with min.io (#297)
Browse files Browse the repository at this point in the history
  • Loading branch information
kannappanr authored and nitisht committed Apr 8, 2019
1 parent 57a9e57 commit 765959d
Show file tree
Hide file tree
Showing 118 changed files with 183 additions and 183 deletions.
24 changes: 12 additions & 12 deletions Docs/API.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# .NET Client API Reference [![Slack](https://slack.minio.io/slack?type=svg)](https://slack.minio.io)
# .NET Client API Reference [![Slack](https://slack.min.io/slack?type=svg)](https://slack.min.io)

## Initialize Minio Client object.
## Initialize MinIO Client object.

## Minio
## MinIO

```cs
var minioClient = new MinioClient("play.minio.io:9000",
var minioClient = new MinioClient("play.min.io:9000",
"Q3AM3UQ867SPQQA43P2F",
"zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG"
).WithSSL();
Expand Down Expand Up @@ -39,7 +39,7 @@ var s3Client = new MinioClient("s3.amazonaws.com",
| |
|---|
|`public MinioClient(string endpoint, string accessKey = "", string secretKey = "", string region="", string sessionToken="")` |
| Creates Minio client object with given endpoint.AccessKey,secretKey, region and sessionToken are optional parameters,and can be omitted for anonymous access.
| Creates MinIO client object with given endpoint.AccessKey,secretKey, region and sessionToken are optional parameters,and can be omitted for anonymous access.
The client object uses Http access by default. To use Https, chain method WithSSL() to client object to use secure transfer protocol |


Expand All @@ -49,9 +49,9 @@ __Parameters__
|---|---|---|
| `endpoint` | _string_ | endPoint is an URL, domain name, IPv4 address or IPv6 address.Valid endpoints are listed below: |
| | |s3.amazonaws.com |
| | |play.minio.io:9000 |
| | |play.min.io:9000 |
| | |localhost |
| | |play.minio.io|
| | |play.min.io|
| `accessKey` | _string_ |accessKey is like user-id that uniquely identifies your account.This field is optional and can be omitted for anonymous access. |
|`secretKey` | _string_ | secretKey is the password to your account.This field is optional and can be omitted for anonymous access.|
|`region` | _string_ | region to which calls should be made.This field is optional and can be omitted.|
Expand All @@ -61,26 +61,26 @@ __Secure Access__

| |
|---|
|`Chain .WithSSL() to Minio Client object to use https instead of http. ` |
|`Chain .WithSSL() to MinIO Client object to use https instead of http. ` |

__Proxy__

| |
|---|
|`Chain .WithProxy(proxyObject) to Minio Client object to use proxy ` |
|`Chain .WithProxy(proxyObject) to MinIO Client object to use proxy ` |

__Example__


### Minio
### MinIO


```cs
// 1. public MinioClient(String endpoint)
MinioClient minioClient = new MinioClient("play.minio.io:9000");
MinioClient minioClient = new MinioClient("play.min.io:9000");

// 2. public MinioClient(String endpoint, String accessKey, String secretKey)
MinioClient minioClient = new MinioClient("play.minio.io:9000",
MinioClient minioClient = new MinioClient("play.min.io:9000",
accessKey:"Q3AM3UQ867SPQQA43P2F",
secretKey:"zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG"
).WithSSL();
Expand Down
18 changes: 9 additions & 9 deletions Docs/zh_CN/API.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# .NET Client API参考文档 [![Slack](https://slack.minio.io/slack?type=svg)](https://slack.minio.io)
# .NET Client API参考文档 [![Slack](https://slack.min.io/slack?type=svg)](https://slack.min.io)

## 初始化Minio Client object。
## 初始化MinIO Client object。

## Minio
## MinIO

```cs
var minioClient = new MinioClient("play.minio.io:9000",
var minioClient = new MinioClient("play.min.io:9000",
"Q3AM3UQ867SPQQA43P2F",
"zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG"
).WithSSL();
Expand Down Expand Up @@ -48,9 +48,9 @@ __参数__
|---|---|---|
| `endpoint` | _string_ | endPoint是一个URL,域名,IPv4或者IPv6地址。以下是合法的endpoints: |
| | |s3.amazonaws.com |
| | |play.minio.io:9000 |
| | |play.min.io:9000 |
| | |localhost |
| | |play.minio.io|
| | |play.min.io|
| `accessKey` | _string_ |accessKey类似于用户ID,用于唯一标识你的账户。可选,为空代表匿名访问。 |
|`secretKey` | _string_ | secretKey是你账户的密码。可选,为空代表匿名访问。 |
|`region` | _string_ | 对象存储的region。可选。|
Expand All @@ -65,15 +65,15 @@ __安全访问__
__示例__


### Minio
### MinIO


```cs
// 1. public MinioClient(String endpoint)
MinioClient minioClient = new MinioClient("play.minio.io:9000");
MinioClient minioClient = new MinioClient("play.min.io:9000");

// 2. public MinioClient(String endpoint, String accessKey, String secretKey)
MinioClient minioClient = new MinioClient("play.minio.io:9000",
MinioClient minioClient = new MinioClient("play.min.io:9000",
accessKey:"Q3AM3UQ867SPQQA43P2F",
secretKey:"zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG"
).WithSSL();
Expand Down
4 changes: 2 additions & 2 deletions FileUploader/FileUpload.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Minio .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 Minio, Inc.
* MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -32,7 +32,7 @@ static void Main(string[] args)
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12
| SecurityProtocolType.Tls11
| SecurityProtocolType.Tls12;
var endpoint = "play.minio.io:9000";
var endpoint = "play.min.io:9000";
var accessKey = "Q3AM3UQ867SPQQA43P2F";
var secretKey = "zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG";
try
Expand Down
10 changes: 5 additions & 5 deletions MAINTAINERS.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ $ git clone https://github.com/$USER_ID/minio-dotnet
$ cd minio-dotnet
```

Minio .NET Library uses nuget for its dependency management https://nuget.org/
MinIO .NET Library uses nuget for its dependency management https://nuget.org/

### Publishing a new package
The steps below assume that the package is being built on Ubuntu 16.04, with following dependencies met.
Expand Down Expand Up @@ -49,23 +49,23 @@ $ msbuild /t:pack ./Minio/Minio.csproj /p:Configuration=Release
... package built ...
```
#### Upload the package to nuget.org
Login to nuget.org(https://www.nuget.org) and find the API Key for Minio
Login to nuget.org(https://www.nuget.org) and find the API Key for MinIO
```sh
$ export MINIO_API_KEY=??
$ nuget setApiKey $MINIO_API_KEY
$ nuget push .\Minio\artifacts\Minio.1.0.9.nupkg -Apikey $MINIO_API_KEY -src https://nuget.org
```
#### Verify package on nuget.org
Verify that latest versions of Minio packages are available on [Nuget](https://www.nuget.org/account/Packages).
Verify that latest versions of MinIO packages are available on [Nuget](https://www.nuget.org/account/Packages).

#### Tag
Tag and sign your release commit, additionally this step requires you to have access to Minio's trusted private key.
Tag and sign your release commit, additionally this step requires you to have access to MinIO's trusted private key.
$ git tag -s 2.0.0
$ git push
$ git push --tags

#### Announce
Announce new release by adding release notes at https://github.com/minio/minio-dotnet/releases from trusted@minio.io account. Release notes requires two sections highlights and changelog. Highlights is a bulleted list of salient features in this release and Changelog contains list of all commits since the last release.
Announce new release by adding release notes at https://github.com/minio/minio-dotnet/releases from trusted@min.io account. Release notes requires two sections highlights and changelog. Highlights is a bulleted list of salient features in this release and Changelog contains list of all commits since the last release.

To generate changelog

Expand Down
2 changes: 1 addition & 1 deletion Minio.Examples/Cases/BucketExists.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Minio .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 Minio, Inc.
* MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion Minio.Examples/Cases/CopyObject.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Minio .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 Minio, Inc.
* MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion Minio.Examples/Cases/CopyObjectMetadata.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Minio .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2018 Minio, Inc.
* MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2018 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion Minio.Examples/Cases/CustomRequestLogger.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Minio .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 Minio, Inc.
* MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion Minio.Examples/Cases/FGetObject.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Minio .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 Minio, Inc.
* MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion Minio.Examples/Cases/FPutObject.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Minio .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 Minio, Inc.
* MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion Minio.Examples/Cases/GetBucketNotification.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Minio .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 Minio, Inc.
* MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion Minio.Examples/Cases/GetBucketPolicy.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Minio .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 Minio, Inc.
* MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion Minio.Examples/Cases/GetObject.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Minio .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 Minio, Inc.
* MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion Minio.Examples/Cases/GetPartialObject.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Minio .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 Minio, Inc.
* MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion Minio.Examples/Cases/ListBuckets.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Minio .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 Minio, Inc.
* MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion Minio.Examples/Cases/ListIncompleteUploads.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Minio .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 Minio, Inc.
* MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion Minio.Examples/Cases/ListObjects.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Minio .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 Minio, Inc.
* MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion Minio.Examples/Cases/MakeBucket.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Minio .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 Minio, Inc.
* MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion Minio.Examples/Cases/PresignedGetObject.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Minio .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 Minio, Inc.
* MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion Minio.Examples/Cases/PresignedPostPolicy.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Minio .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 Minio, Inc.
* MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion Minio.Examples/Cases/PresignedPutObject.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Minio .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 Minio, Inc.
* MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion Minio.Examples/Cases/PutObject.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Minio .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 Minio, Inc.
* MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion Minio.Examples/Cases/RemoveAllBucketNotifications.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Minio .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 Minio, Inc.
* MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion Minio.Examples/Cases/RemoveBucket.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Minio .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 Minio, Inc.
* MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion Minio.Examples/Cases/RemoveIncompleteUpload.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Minio .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 Minio, Inc.
* MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion Minio.Examples/Cases/RemoveObject.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Minio .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 Minio, Inc.
* MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion Minio.Examples/Cases/RemoveObjects.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Minio .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 Minio, Inc.
* MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion Minio.Examples/Cases/SetBucketNotification.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Minio .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 Minio, Inc.
* MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion Minio.Examples/Cases/SetBucketPolicy.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Minio .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 Minio, Inc.
* MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion Minio.Examples/Cases/StatObject.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Minio .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 Minio, Inc.
* MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
6 changes: 3 additions & 3 deletions Minio.Examples/Program.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Minio .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 Minio, Inc.
* MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -71,14 +71,14 @@ public static void Main(string[] args)
}
else
{
endPoint = "play.minio.io:9000";
endPoint = "play.min.io:9000";
accessKey = "Q3AM3UQ867SPQQA43P2F";
secretKey = "zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG";
enableHTTPS = true;
}
ServicePointManager.ServerCertificateValidationCallback +=
(sender, certificate, chain, sslPolicyErrors) => true;
// WithSSL() enables SSL support in Minio client
// WithSSL() enables SSL support in MinIO client
MinioClient minioClient = null;
if (enableHTTPS)
minioClient = new Minio.MinioClient(endPoint, accessKey, secretKey).WithSSL();
Expand Down
Loading

0 comments on commit 765959d

Please sign in to comment.