Skip to content
This repository has been archived by the owner on Apr 1, 2022. It is now read-only.

Commit

Permalink
增加bucket
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonken committed Mar 15, 2018
1 parent c2087a1 commit c5cf683
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions cos/conf.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ type Conf struct {
RetryTimes int
UA string
Domain string
Bucket string
}

func getDefaultConf() *Conf {
Expand Down
1 change: 1 addition & 0 deletions cos/option.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ type Option struct {
SecretKey string `mapstructure:"secret_key" json:"secret_key"`
Region string `mapstructure:"region" json:"region"`
Domain string `mapstructure:"domain" json:"domain"`
Bucket string `mapstructure:"bucket" json:"bucket"`
}
3 changes: 2 additions & 1 deletion cos/setup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ const (
)

func setUp() {
client = New(&Option{"1254217795", "AKIDkOq6C6qLgstiMqmGF2d3HKBpHYeZlpAH", "Rny65tVv9BQuHUVKxOehZFqJbifYN7g3", "ap-chengdu", "mycloud.com"})
client = New(&Option{"1254217795", "AKIDkOq6C6qLgstiMqmGF2d3HKBpHYeZlpAH", "Rny65tVv9BQuHUVKxOehZFqJbifYN7g3", "ap-chengdu", "myqcloud.com", "omnipay-entity-dev"})

}

func assert(want, condition, got interface{}) {
Expand Down

0 comments on commit c5cf683

Please sign in to comment.