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

Commit

Permalink
配置增加domain
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonken committed Mar 15, 2018
1 parent 6c98642 commit c2087a1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions cos/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ func New(o *Option) *Client {
conf.SecretID = o.SecretID
conf.SecretKey = o.SecretKey
conf.Region = o.Region
conf.Domain = o.Domain

conn := Conn{&http.Client{}, conf}
client.conn = &conn
Expand Down
1 change: 1 addition & 0 deletions cos/option.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ type Option struct {
SecretID string `mapstructure:"secret_id" json:"secret_id"`
SecretKey string `mapstructure:"secret_key" json:"secret_key"`
Region string `mapstructure:"region" json:"region"`
Domain string `mapstructure:"domain" json:"domain"`
}
2 changes: 1 addition & 1 deletion cos/setup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const (
)

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

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

0 comments on commit c2087a1

Please sign in to comment.