From 09a48d20079b27216af08afaa818abe71b264b0c Mon Sep 17 00:00:00 2001 From: hujianxin Date: Mon, 19 Aug 2019 11:50:55 +0800 Subject: [PATCH] update --- .gitignore | 2 +- README-cn.md | 8 ++++---- README.md | 16 ++++++++-------- example/01-create-bucket/main.go | 2 +- example/02-delete-bucket/main.go | 2 +- example/03-list-buckets/main.go | 2 +- example/04-does-bucket-exists/main.go | 2 +- example/05-get-bucket/main.go | 2 +- example/06-get-bucket-acl/main.go | 2 +- example/07-set-bucket-acl/main.go | 2 +- example/08-list-objects/main.go | 2 +- example/09-get-lifecycle/main.go | 2 +- example/10-set-lifecycle/main.go | 2 +- example/11-set-lifecycle-rule/main.go | 2 +- example/12-get-object/main.go | 2 +- fds/doc.go | 4 ++-- fds/fds.go | 2 +- fds/fds_test.go | 2 +- fds/httpparser/header_test.go | 2 +- fds/httpparser/querystring_test.go | 2 +- fds/httpparser/range_test.go | 2 +- fds/manager/download.go | 4 ++-- 22 files changed, 34 insertions(+), 34 deletions(-) diff --git a/.gitignore b/.gitignore index 435f77d..3b9c532 100644 --- a/.gitignore +++ b/.gitignore @@ -15,7 +15,7 @@ .idea/ # bin -galaxy-fds-sdk-go +go-fds # env file for debug .env diff --git a/README-cn.md b/README-cn.md index 3710444..7dc5067 100644 --- a/README-cn.md +++ b/README-cn.md @@ -1,4 +1,4 @@ -# galaxy-fds-sdk-go +# go-fds 小米文件存储FDS(File Storage Service) Go SDK. # 简介 @@ -14,7 +14,7 @@ 最后,auth.go里面的signature方法是直接使用了旧SDK中的代码。 ## 安装 -`go get -u github.com/hujianxin/galaxy-fds-sdk-go` +`go get -u github.com/hujianxin/go-fds` ## 用法 ```go @@ -24,8 +24,8 @@ import ( "log" "os" - "github.com/hujianxin/galaxy-fds-sdk-go/fds" - "github.com/hujianxin/galaxy-fds-sdk-go/fds/manager" + "github.com/hujianxin/go-fds/fds" + "github.com/hujianxin/go-fds/fds/manager" ) func main() { diff --git a/README.md b/README.md index d952bd7..391dbe2 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,17 @@ -# galaxy-fds-sdk-go +# go-fds FDS Go SDK. -[![Build Status](https://travis-ci.org/hujianxin/galaxy-fds-sdk-go.svg?branch=master)](https://travis-ci.org/hujianxin/galaxy-fds-sdk-go) -[![Go Report Card](https://goreportcard.com/badge/github.com/hujianxin/galaxy-fds-sdk-go)](https://goreportcard.com/report/github.com/hujianxin/galaxy-fds-sdk-go) +[![Build Status](https://travis-ci.org/hujianxin/go-fds.svg?branch=master)](https://travis-ci.org/hujianxin/go-fds) +[![Go Report Card](https://goreportcard.com/badge/github.com/hujianxin/go-fds)](https://goreportcard.com/report/github.com/hujianxin/go-fds) -[The formal Go SDK of FDS](https://github.com/XiaoMi/galaxy-fds-sdk-golang) is not well designed, but constrained by the fixed interface, I can't reconstruct it in large scale. +[The formal Go SDK of FDS](https://github.com/XiaoMi/go-fdslang) is not well designed, but constrained by the fixed interface, I can't reconstruct it in large scale. So, I start up this project for a good sdk design. :sparkles: :sparkles: :sparkles: **We got context support working, which make your concurrent program more fluent** ## Install -`go get -u github.com/hujianxin/galaxy-fds-sdk-go` +`go get -u github.com/hujianxin/go-fds` ## Usage ```go @@ -21,8 +21,8 @@ import ( "log" "os" - "github.com/hujianxin/galaxy-fds-sdk-go/fds" - "github.com/hujianxin/galaxy-fds-sdk-go/fds/manager" + "github.com/hujianxin/go-fds/fds" + "github.com/hujianxin/go-fds/fds/manager" ) func main() { @@ -50,4 +50,4 @@ func main() { For more sample, please look into `example` package ## Development -To develop galaxy-fds-sdk-go, you'd better to upgrade your go version to 1.11+,because there is a `go modules` concept from go1.11, which can make it convenient. +To develop go-fds, you'd better to upgrade your go version to 1.11+,because there is a `go modules` concept from go1.11, which can make it convenient. diff --git a/example/01-create-bucket/main.go b/example/01-create-bucket/main.go index 3af5332..62e20ca 100644 --- a/example/01-create-bucket/main.go +++ b/example/01-create-bucket/main.go @@ -4,7 +4,7 @@ import ( "log" "os" - "github.com/hujianxin/galaxy-fds-sdk-go/fds" + "github.com/hujianxin/go-fds/fds" ) func main() { diff --git a/example/02-delete-bucket/main.go b/example/02-delete-bucket/main.go index 7f18d47..df2280e 100644 --- a/example/02-delete-bucket/main.go +++ b/example/02-delete-bucket/main.go @@ -4,7 +4,7 @@ import ( "log" "os" - "github.com/hujianxin/galaxy-fds-sdk-go/fds" + "github.com/hujianxin/go-fds/fds" ) func main() { diff --git a/example/03-list-buckets/main.go b/example/03-list-buckets/main.go index eb74428..c139a84 100644 --- a/example/03-list-buckets/main.go +++ b/example/03-list-buckets/main.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/hujianxin/galaxy-fds-sdk-go/fds" + "github.com/hujianxin/go-fds/fds" ) func main() { diff --git a/example/04-does-bucket-exists/main.go b/example/04-does-bucket-exists/main.go index 2a38156..271cf81 100644 --- a/example/04-does-bucket-exists/main.go +++ b/example/04-does-bucket-exists/main.go @@ -7,7 +7,7 @@ import ( "os" "time" - "github.com/hujianxin/galaxy-fds-sdk-go/fds" + "github.com/hujianxin/go-fds/fds" ) func main() { diff --git a/example/05-get-bucket/main.go b/example/05-get-bucket/main.go index 85986a2..8f44788 100644 --- a/example/05-get-bucket/main.go +++ b/example/05-get-bucket/main.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/hujianxin/galaxy-fds-sdk-go/fds" + "github.com/hujianxin/go-fds/fds" ) func main() { diff --git a/example/06-get-bucket-acl/main.go b/example/06-get-bucket-acl/main.go index f402c26..4d612e6 100644 --- a/example/06-get-bucket-acl/main.go +++ b/example/06-get-bucket-acl/main.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/hujianxin/galaxy-fds-sdk-go/fds" + "github.com/hujianxin/go-fds/fds" ) func main() { diff --git a/example/07-set-bucket-acl/main.go b/example/07-set-bucket-acl/main.go index f07b3e9..9470718 100644 --- a/example/07-set-bucket-acl/main.go +++ b/example/07-set-bucket-acl/main.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/hujianxin/galaxy-fds-sdk-go/fds" + "github.com/hujianxin/go-fds/fds" ) func main() { diff --git a/example/08-list-objects/main.go b/example/08-list-objects/main.go index 44c9206..01da4d7 100644 --- a/example/08-list-objects/main.go +++ b/example/08-list-objects/main.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/hujianxin/galaxy-fds-sdk-go/fds" + "github.com/hujianxin/go-fds/fds" ) func main() { diff --git a/example/09-get-lifecycle/main.go b/example/09-get-lifecycle/main.go index b850fdc..d6b595e 100644 --- a/example/09-get-lifecycle/main.go +++ b/example/09-get-lifecycle/main.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/hujianxin/galaxy-fds-sdk-go/fds" + "github.com/hujianxin/go-fds/fds" ) func main() { diff --git a/example/10-set-lifecycle/main.go b/example/10-set-lifecycle/main.go index c19b151..6d8b27d 100644 --- a/example/10-set-lifecycle/main.go +++ b/example/10-set-lifecycle/main.go @@ -4,7 +4,7 @@ import ( "log" "os" - "github.com/hujianxin/galaxy-fds-sdk-go/fds" + "github.com/hujianxin/go-fds/fds" ) func main() { diff --git a/example/11-set-lifecycle-rule/main.go b/example/11-set-lifecycle-rule/main.go index 6d595c7..8b25e35 100644 --- a/example/11-set-lifecycle-rule/main.go +++ b/example/11-set-lifecycle-rule/main.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/hujianxin/galaxy-fds-sdk-go/fds" + "github.com/hujianxin/go-fds/fds" ) func main() { diff --git a/example/12-get-object/main.go b/example/12-get-object/main.go index af1a7f2..cb742ab 100644 --- a/example/12-get-object/main.go +++ b/example/12-get-object/main.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/hujianxin/galaxy-fds-sdk-go/fds" + "github.com/hujianxin/go-fds/fds" "io/ioutil" ) diff --git a/fds/doc.go b/fds/doc.go index 837d976..08130fe 100644 --- a/fds/doc.go +++ b/fds/doc.go @@ -13,8 +13,8 @@ Usage: "log" "os" - "github.com/hujianxin/galaxy-fds-sdk-go/fds" - "github.com/hujianxin/galaxy-fds-sdk-go/fds/manager" + "github.com/hujianxin/go-fds/fds" + "github.com/hujianxin/go-fds/fds/manager" ) func main() { diff --git a/fds/fds.go b/fds/fds.go index 2628fd6..4b19c26 100644 --- a/fds/fds.go +++ b/fds/fds.go @@ -16,7 +16,7 @@ import ( "strings" "time" - "github.com/hujianxin/galaxy-fds-sdk-go/fds/httpparser" + "github.com/hujianxin/go-fds/fds/httpparser" "github.com/sirupsen/logrus" ) diff --git a/fds/fds_test.go b/fds/fds_test.go index e014551..4f4bb83 100644 --- a/fds/fds_test.go +++ b/fds/fds_test.go @@ -13,7 +13,7 @@ import ( "time" "github.com/google/uuid" - "github.com/hujianxin/galaxy-fds-sdk-go/fds" + "github.com/hujianxin/go-fds/fds" "github.com/stretchr/testify/suite" ) diff --git a/fds/httpparser/header_test.go b/fds/httpparser/header_test.go index cf2b9c0..d3934ff 100644 --- a/fds/httpparser/header_test.go +++ b/fds/httpparser/header_test.go @@ -5,7 +5,7 @@ import ( "testing" "time" - "github.com/hujianxin/galaxy-fds-sdk-go/fds/httpparser" + "github.com/hujianxin/go-fds/fds/httpparser" "github.com/stretchr/testify/assert" ) diff --git a/fds/httpparser/querystring_test.go b/fds/httpparser/querystring_test.go index bb3433d..d9785b4 100644 --- a/fds/httpparser/querystring_test.go +++ b/fds/httpparser/querystring_test.go @@ -4,7 +4,7 @@ import ( "testing" "time" - "github.com/hujianxin/galaxy-fds-sdk-go/fds/httpparser" + "github.com/hujianxin/go-fds/fds/httpparser" "github.com/stretchr/testify/assert" ) diff --git a/fds/httpparser/range_test.go b/fds/httpparser/range_test.go index 299a121..9419cbf 100644 --- a/fds/httpparser/range_test.go +++ b/fds/httpparser/range_test.go @@ -4,7 +4,7 @@ import ( "strings" "testing" - "github.com/hujianxin/galaxy-fds-sdk-go/fds/httpparser" + "github.com/hujianxin/go-fds/fds/httpparser" "github.com/stretchr/testify/assert" ) diff --git a/fds/manager/download.go b/fds/manager/download.go index fe40a72..caf02ae 100644 --- a/fds/manager/download.go +++ b/fds/manager/download.go @@ -11,8 +11,8 @@ import ( "os" "strconv" - "github.com/hujianxin/galaxy-fds-sdk-go/fds" - "github.com/hujianxin/galaxy-fds-sdk-go/fds/httpparser" + "github.com/hujianxin/go-fds/fds" + "github.com/hujianxin/go-fds/fds/httpparser" "github.com/sirupsen/logrus" )