Skip to content

Commit 06d6d5b

Browse files
committed
bump s3cli to support gcs
1 parent ed7b651 commit 06d6d5b

File tree

802 files changed

+304479
-27965
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

802 files changed

+304479
-27965
lines changed

deps.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,12 @@ github.com/hashicorp/go-multierror:d30f099
1717
github.com/jessevdk/go-flags:4cc2832
1818
github.com/mattn/go-isatty:56b76bd
1919
github.com/mattn/go-colorable:e8a10dd
20-
github.com/aws/aws-sdk-go:665c623
2120
github.com/go-ini/ini:12f418c
2221
github.com/jmespath/go-jmespath:0b12d6b
2322
github.com/charlievieth/fs/...:1c3b3f1
2423
github.com/hashicorp/errwrap/...:7554cd9
2524
github.com/bmatcuk/doublestar/...:044df0a
2625
github.com/cppforlife/go-patch/patch:661a67c
26+
github.com/pivotal-golang/s3cli:90561c0
27+
github.com/golang/protobuf/proto:98fa357
28+
github.com/aws/aws-sdk-go:1a651d9

releasedir/s3_blobstore.go

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ import (
88
bosherr "github.com/cloudfoundry/bosh-utils/errors"
99
boshsys "github.com/cloudfoundry/bosh-utils/system"
1010
boshuuid "github.com/cloudfoundry/bosh-utils/uuid"
11-
s3client "github.com/cppforlife/s3cli/client"
11+
s3client "github.com/pivotal-golang/s3cli/client"
12+
s3config "github.com/pivotal-golang/s3cli/config"
1213
)
1314

1415
type S3Blobstore struct {
@@ -95,7 +96,17 @@ func (b S3Blobstore) client() (s3client.S3Blobstore, error) {
9596
return s3client.S3Blobstore{}, bosherr.WrapErrorf(err, "Marshaling config")
9697
}
9798

98-
client, err := s3client.New(gobytes.NewBuffer(bytes))
99+
conf, err := s3config.NewFromReader(gobytes.NewBuffer(bytes))
100+
if err != nil {
101+
return s3client.S3Blobstore{}, bosherr.WrapErrorf(err, "Reading config")
102+
}
103+
104+
s3ClientSDK, err := s3client.NewSDK(conf)
105+
if err != nil {
106+
return s3client.S3Blobstore{}, bosherr.WrapErrorf(err, "Building client SDK")
107+
}
108+
109+
client, err := s3client.New(s3ClientSDK, &conf)
99110
if err != nil {
100111
return s3client.S3Blobstore{}, bosherr.WrapErrorf(err, "Validating config")
101112
}

vendor/github.com/aws/aws-sdk-go/.travis.yml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/aws/aws-sdk-go/CHANGELOG.md

Lines changed: 96 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/aws/aws-sdk-go/Makefile

Lines changed: 24 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/aws/aws-sdk-go/README.md

Lines changed: 11 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/aws/aws-sdk-go/aws/awserr/error.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/aws/aws-sdk-go/aws/awserr/types.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/aws/aws-sdk-go/aws/awsutil/copy.go

Lines changed: 9 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)