Skip to content

Commit

Permalink
rename google.golang.org/cloud to cloud.google.com/go
Browse files Browse the repository at this point in the history
Signed-off-by: Grace Noah <gracenoah>
  • Loading branch information
Grace Noah committed Feb 13, 2018
1 parent 6664ec7 commit 3ee0d9d
Show file tree
Hide file tree
Showing 10 changed files with 343 additions and 6 deletions.
8 changes: 4 additions & 4 deletions registry/storage/driver/gcs/gcs.go
@@ -1,7 +1,7 @@
// Package gcs provides a storagedriver.StorageDriver implementation to
// store blobs in Google cloud storage.
//
// This package leverages the google.golang.org/cloud/storage client library
// This package leverages the cloud.google.com/go/storage client library
//for interfacing with gcs.
//
// Because gcs is a key, value store the Stat call does not support last modification
Expand Down Expand Up @@ -30,6 +30,8 @@ import (
"strings"
"time"

cloud "cloud.google.com/go"
"cloud.google.com/go/storage"
storagedriver "github.com/docker/distribution/registry/storage/driver"
"github.com/docker/distribution/registry/storage/driver/base"
"github.com/docker/distribution/registry/storage/driver/factory"
Expand All @@ -38,8 +40,6 @@ import (
"golang.org/x/oauth2/google"
"golang.org/x/oauth2/jwt"
"google.golang.org/api/googleapi"
"google.golang.org/cloud"
"google.golang.org/cloud/storage"
)

const (
Expand Down Expand Up @@ -259,7 +259,7 @@ func (d *driver) Reader(context context.Context, path string, offset int64) (io.
}

func getObject(client *http.Client, bucket string, name string, offset int64) (*http.Response, error) {
// copied from google.golang.org/cloud/storage#NewReader :
// copied from cloud.google.com/go/storage#NewReader :
// to set the additional "Range" header
u := &url.URL{
Scheme: "https",
Expand Down
2 changes: 1 addition & 1 deletion registry/storage/driver/gcs/gcs_test.go
Expand Up @@ -8,13 +8,13 @@ import (
"os"
"testing"

"cloud.google.com/go/storage"
dcontext "github.com/docker/distribution/context"
storagedriver "github.com/docker/distribution/registry/storage/driver"
"github.com/docker/distribution/registry/storage/driver/testsuites"
"golang.org/x/oauth2"
"golang.org/x/oauth2/google"
"google.golang.org/api/googleapi"
"google.golang.org/cloud/storage"
"gopkg.in/check.v1"
)

Expand Down
2 changes: 1 addition & 1 deletion vendor.conf
Expand Up @@ -41,7 +41,7 @@ golang.org/x/oauth2 045497edb6234273d67dbc25da3f2ddbc4c4cacf
golang.org/x/time a4bde12657593d5e90d0533a3e4fd95e635124cb
google.golang.org/api 9bf6e6e569ff057f75d9604a46c52928f17d2b54
google.golang.org/appengine 12d5545dc1cfa6047a286d5e853841b6471f4c19
google.golang.org/cloud 975617b05ea8a58727e6c1a06b6161ff4185a9f2
cloud.google.com/go 975617b05ea8a58727e6c1a06b6161ff4185a9f2
google.golang.org/grpc d3ddb4469d5a1b949fc7a7da7c1d6a0d1b6de994
gopkg.in/check.v1 64131543e7896d5bcc6bd5a76287eb75ea96c673
gopkg.in/square/go-jose.v1 40d457b439244b546f023d056628e5184136899b
Expand Down
202 changes: 202 additions & 0 deletions vendor/cloud.google.com/go/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

135 changes: 135 additions & 0 deletions vendor/cloud.google.com/go/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 3ee0d9d

Please sign in to comment.