Skip to content

Commit 9a03fef

Browse files
authored
add endpoint (#90)
1 parent d105f8f commit 9a03fef

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

awss3/store.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,10 @@ func NewClient(conf *cloudstorage.Config) (*s3.S3, *session.Session, error) {
123123
awsConf.WithRegion("us-east-1")
124124
}
125125

126+
if conf.Endpoint != "" {
127+
awsConf.WithEndpoint(conf.Endpoint)
128+
}
129+
126130
switch conf.AuthMethod {
127131
case AuthAccessKey:
128132
accessKey := conf.Settings.String(ConfKeyAccessKey)

store.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,8 @@ type (
181181
Project string
182182
// Region is the cloud region
183183
Region string
184+
// Endpoint is the api endpoint
185+
Endpoint string
184186
// Bucket is the "path" or named bucket in cloud
185187
Bucket string
186188
// the page size to use with api requests (default 1000)

0 commit comments

Comments
 (0)