Skip to content

Commit

Permalink
Dev (#6)
Browse files Browse the repository at this point in the history
* fix lifecycle

* fix createDate

* fix

* fix err

* fix name
  • Loading branch information
lewzylu authored May 3, 2018
1 parent e20c24a commit a05720b
Show file tree
Hide file tree
Showing 44 changed files with 131 additions and 121 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ install:

script:
- make test
- go test -coverprofile=cover.out github.com/mozillazg/go-cos
- go test -coverprofile=cover.out github.com/lewzylu/go-cos
- $HOME/gopath/bin/goveralls -service=travis-ci -coverprofile=cover.out

matrix:
Expand Down
14 changes: 7 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
### 新增

* 支持新增的 Put Object Copy API
* 新增 `github.com/mozillazg/go-cos/debug`,目前只包含 `DebugRequestTransport`
* 新增 `github.com/lewzylu/go-cos/debug`,目前只包含 `DebugRequestTransport`


## [0.6.0] (2017-07-09)
Expand Down Expand Up @@ -63,9 +63,9 @@
* 完成大部分 Bucket API(还剩一个 Put Bucket Lifecycle)


[0.7.0]: https://github.com/mozillazg/go-cos/compare/v0.6.0...v0.7.0
[0.6.0]: https://github.com/mozillazg/go-cos/compare/v0.5.0...v0.6.0
[0.5.0]: https://github.com/mozillazg/go-cos/compare/v0.4.0...v0.5.0
[0.4.0]: https://github.com/mozillazg/go-cos/compare/v0.3.0...v0.4.0
[0.3.0]: https://github.com/mozillazg/go-cos/compare/v0.2.0...v0.3.0
[0.2.0]: https://github.com/mozillazg/go-cos/compare/v0.1.0...v0.2.0
[0.7.0]: https://github.com/lewzylu/go-cos/compare/v0.6.0...v0.7.0
[0.6.0]: https://github.com/lewzylu/go-cos/compare/v0.5.0...v0.6.0
[0.5.0]: https://github.com/lewzylu/go-cos/compare/v0.4.0...v0.5.0
[0.4.0]: https://github.com/lewzylu/go-cos/compare/v0.3.0...v0.4.0
[0.3.0]: https://github.com/lewzylu/go-cos/compare/v0.2.0...v0.3.0
[0.2.0]: https://github.com/lewzylu/go-cos/compare/v0.1.0...v0.2.0
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2017 mozillazg
Copyright (c) 2017 lewzylu

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

腾讯云对象存储服务 COS(Cloud Object Storage) Go SDK(API 版本:V5 版本的 XML API)。

[![Build Status](https://img.shields.io/travis/mozillazg/go-cos/master.svg)](https://travis-ci.org/mozillazg/go-cos)
[![Coverage Status](https://img.shields.io/coveralls/mozillazg/go-cos/master.svg)](https://coveralls.io/r/mozillazg/go-cos?branch=master)
[![Go Report Card](https://goreportcard.com/badge/github.com/mozillazg/go-cos)](https://goreportcard.com/report/github.com/mozillazg/go-cos)
[![GoDoc](https://godoc.org/github.com/mozillazg/go-cos?status.svg)](https://godoc.org/github.com/mozillazg/go-cos)
[![Build Status](https://img.shields.io/travis/lewzylu/go-cos/master.svg)](https://travis-ci.org/lewzylu/go-cos)
[![Coverage Status](https://img.shields.io/coveralls/lewzylu/go-cos/master.svg)](https://coveralls.io/r/lewzylu/go-cos?branch=master)
[![Go Report Card](https://goreportcard.com/badge/github.com/lewzylu/go-cos)](https://goreportcard.com/report/github.com/lewzylu/go-cos)
[![GoDoc](https://godoc.org/github.com/lewzylu/go-cos?status.svg)](https://godoc.org/github.com/lewzylu/go-cos)

## Install

`go get -u github.com/mozillazg/go-cos`
`go get -u github.com/lewzylu/go-cos`


## Usage
Expand All @@ -26,7 +26,7 @@ import (
"os"
"time"

"github.com/mozillazg/go-cos"
"github.com/lewzylu/go-cos"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions _example/bucket/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (

"net/http"

"github.com/mozillazg/go-cos"
"github.com/mozillazg/go-cos/debug"
"github.com/lewzylu/go-cos"
"github.com/lewzylu/go-cos/debug"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions _example/bucket/deleteCORS.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (

"net/http"

"github.com/mozillazg/go-cos"
"github.com/mozillazg/go-cos/debug"
"github.com/lewzylu/go-cos"
"github.com/lewzylu/go-cos/debug"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions _example/bucket/deleteLifecycle.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (

"net/http"

"github.com/mozillazg/go-cos"
"github.com/mozillazg/go-cos/debug"
"github.com/lewzylu/go-cos"
"github.com/lewzylu/go-cos/debug"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions _example/bucket/deleteTagging.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (

"net/http"

"github.com/mozillazg/go-cos"
"github.com/mozillazg/go-cos/debug"
"github.com/lewzylu/go-cos"
"github.com/lewzylu/go-cos/debug"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions _example/bucket/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (

"net/http"

"github.com/mozillazg/go-cos"
"github.com/mozillazg/go-cos/debug"
"github.com/lewzylu/go-cos"
"github.com/lewzylu/go-cos/debug"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions _example/bucket/getACL.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (

"net/http"

"github.com/mozillazg/go-cos"
"github.com/mozillazg/go-cos/debug"
"github.com/lewzylu/go-cos"
"github.com/lewzylu/go-cos/debug"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions _example/bucket/getCORS.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (

"net/http"

"github.com/mozillazg/go-cos"
"github.com/mozillazg/go-cos/debug"
"github.com/lewzylu/go-cos"
"github.com/lewzylu/go-cos/debug"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions _example/bucket/getLifecycle.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (

"net/http"

"github.com/mozillazg/go-cos"
"github.com/mozillazg/go-cos/debug"
"github.com/lewzylu/go-cos"
"github.com/lewzylu/go-cos/debug"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions _example/bucket/getLocation.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (

"net/http"

"github.com/mozillazg/go-cos"
"github.com/mozillazg/go-cos/debug"
"github.com/lewzylu/go-cos"
"github.com/lewzylu/go-cos/debug"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions _example/bucket/getTagging.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (

"net/http"

"github.com/mozillazg/go-cos"
"github.com/mozillazg/go-cos/debug"
"github.com/lewzylu/go-cos"
"github.com/lewzylu/go-cos/debug"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions _example/bucket/head.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (

"net/http"

"github.com/mozillazg/go-cos"
"github.com/mozillazg/go-cos/debug"
"github.com/lewzylu/go-cos"
"github.com/lewzylu/go-cos/debug"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions _example/bucket/listMultipartUploads.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (

"net/http"

"github.com/mozillazg/go-cos"
"github.com/mozillazg/go-cos/debug"
"github.com/lewzylu/go-cos"
"github.com/lewzylu/go-cos/debug"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions _example/bucket/put.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (

"net/http"

"github.com/mozillazg/go-cos"
"github.com/mozillazg/go-cos/debug"
"github.com/lewzylu/go-cos"
"github.com/lewzylu/go-cos/debug"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions _example/bucket/putACL.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (

"net/http"

"github.com/mozillazg/go-cos"
"github.com/mozillazg/go-cos/debug"
"github.com/lewzylu/go-cos"
"github.com/lewzylu/go-cos/debug"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions _example/bucket/putCORS.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (

"net/http"

"github.com/mozillazg/go-cos"
"github.com/mozillazg/go-cos/debug"
"github.com/lewzylu/go-cos"
"github.com/lewzylu/go-cos/debug"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions _example/bucket/putLifecycle.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (

"net/http"

"github.com/mozillazg/go-cos"
"github.com/mozillazg/go-cos/debug"
"github.com/lewzylu/go-cos"
"github.com/lewzylu/go-cos/debug"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions _example/bucket/putTagging.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (

"net/http"

"github.com/mozillazg/go-cos"
"github.com/mozillazg/go-cos/debug"
"github.com/lewzylu/go-cos"
"github.com/lewzylu/go-cos/debug"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions _example/object/MutiUpload.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"net/http"

"fmt"
"github.com/mozillazg/go-cos"
"github.com/mozillazg/go-cos/debug"
"github.com/lewzylu/go-cos"
"github.com/lewzylu/go-cos/debug"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions _example/object/abortMultipartUpload.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (

"net/http"

"github.com/mozillazg/go-cos"
"github.com/mozillazg/go-cos/debug"
"github.com/lewzylu/go-cos"
"github.com/lewzylu/go-cos/debug"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions _example/object/append.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (

"net/http"

"github.com/mozillazg/go-cos"
"github.com/mozillazg/go-cos/debug"
"github.com/lewzylu/go-cos"
"github.com/lewzylu/go-cos/debug"
)

func genBigData(blockSize int) []byte {
Expand Down
4 changes: 2 additions & 2 deletions _example/object/completeMultipartUpload.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (

"net/http"

"github.com/mozillazg/go-cos"
"github.com/mozillazg/go-cos/debug"
"github.com/lewzylu/go-cos"
"github.com/lewzylu/go-cos/debug"
)

func initUpload(c *cos.Client, name string) *cos.InitiateMultipartUploadResult {
Expand Down
4 changes: 2 additions & 2 deletions _example/object/copy.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
"io/ioutil"
"time"

"github.com/mozillazg/go-cos"
"github.com/mozillazg/go-cos/debug"
"github.com/lewzylu/go-cos"
"github.com/lewzylu/go-cos/debug"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions _example/object/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (

"net/http"

"github.com/mozillazg/go-cos"
"github.com/mozillazg/go-cos/debug"
"github.com/lewzylu/go-cos"
"github.com/lewzylu/go-cos/debug"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions _example/object/deleteMultiple.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import (

"net/http"

"github.com/mozillazg/go-cos"
"github.com/mozillazg/go-cos/debug"
"github.com/lewzylu/go-cos"
"github.com/lewzylu/go-cos/debug"
)

func genBigData(blockSize int) []byte {
Expand Down
4 changes: 2 additions & 2 deletions _example/object/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (

"net/http"

"github.com/mozillazg/go-cos"
"github.com/mozillazg/go-cos/debug"
"github.com/lewzylu/go-cos"
"github.com/lewzylu/go-cos/debug"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions _example/object/getACL.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (

"net/http"

"github.com/mozillazg/go-cos"
"github.com/mozillazg/go-cos/debug"
"github.com/lewzylu/go-cos"
"github.com/lewzylu/go-cos/debug"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion _example/object/getAnonymous.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"io/ioutil"

"github.com/mozillazg/go-cos"
"github.com/lewzylu/go-cos"
)

func upload(c *cos.Client, name string) {
Expand Down
4 changes: 2 additions & 2 deletions _example/object/head.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (

"net/http"

"github.com/mozillazg/go-cos"
"github.com/mozillazg/go-cos/debug"
"github.com/lewzylu/go-cos"
"github.com/lewzylu/go-cos/debug"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions _example/object/initiateMultipartUpload.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (

"net/http"

"github.com/mozillazg/go-cos"
"github.com/mozillazg/go-cos/debug"
"github.com/lewzylu/go-cos"
"github.com/lewzylu/go-cos/debug"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions _example/object/listParts.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (

"net/http"

"github.com/mozillazg/go-cos"
"github.com/mozillazg/go-cos/debug"
"github.com/lewzylu/go-cos"
"github.com/lewzylu/go-cos/debug"
)

func initUpload(c *cos.Client, name string) *cos.InitiateMultipartUploadResult {
Expand Down
Loading

0 comments on commit a05720b

Please sign in to comment.