From 2936248f0c083b47c46f426cc35d761710041b39 Mon Sep 17 00:00:00 2001 From: xuty <xty50337@hotmail.com> Date: Sun, 29 Mar 2020 22:03:24 +0800 Subject: [PATCH] update README --- CHANGELOG.md | 4 ++++ README.md | 20 ++++++++++++++++---- pubspec.yaml | 2 +- 3 files changed, 21 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0edb3da..82881ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.1.0+1 + +- update README + ## 0.1.0 - Initial version, created by Stagehand diff --git a/README.md b/README.md index edd2495..0cce5d8 100644 --- a/README.md +++ b/README.md @@ -23,8 +23,6 @@ This is the _unofficial_ MinIO Dart Client SDK that provides simple APIs to acce **MinIO** ```dart -import 'package:minio/minio.dart'; - final minio = Minio( endPoint: 'play.min.io', accessKey: 'Q3AM3UQ867SPQQA43P2F', @@ -35,8 +33,6 @@ final minio = Minio( **AWS S3** ```dart -import 'package:minio/minio.dart'; - final minio = Minio( endPoint: 's3.amazonaws.com', accessKey: 'YOUR-ACCESSKEYID', @@ -44,6 +40,22 @@ final minio = Minio( ); ``` +**File upload** +```dart +import 'package:minio/io.dart'; +import 'package:minio/minio.dart'; + +void main() async { + final minio = Minio( + endPoint: 'play.min.io', + accessKey: 'Q3AM3UQ867SPQQA43P2F', + secretKey: 'zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG', + ); + + await minio.fPutObject(bucket, object, 'path/to/file'); +} +``` + For complete example, see: [example] ## Features and bugs diff --git a/pubspec.yaml b/pubspec.yaml index 1cf0fc1..7211eb5 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: minio description: Unofficial MinIO Dart Client SDK that provides simple APIs to access any Amazon S3 compatible object storage server. -version: 0.1.0 +version: 0.1.0+1 homepage: https://github.com/xtyxtyx/minio-dart issue_tracker: https://github.com/xtyxtyx/minio-dart/issues -- GitLab