mirror of https://github.com/perkeep/perkeep.git
![]() rm google.golang.org/cloud add cloud.google.com/go at a47b182e769f5e75f5fc927ff6ee2678f7f552cf update google.golang.org/api to 63cb68f1e3834e44683ca062ddf06cb9a889380a update google.golang.org/grpc to 0e6ec3a4501ee9ee2d023abe92e436fd04ed4081 update go4.org to f5283521d7365fb2875408726e9cbf349f173767 fix in cmd/ pkg/ server/ TODO(mpl): fix misc/docker tools as well. next CL. Fixes #832 Change-Id: I842b968a0afea8a5822913bd614d67cdbe50ee63 |
||
---|---|---|
.. | ||
testdata | ||
README | ||
googlestorage.go | ||
googlestorage_test.go |
README
Implements the Storage interface for Google Storage. A GoogleStorage instance stores blobs in a single Google Storage bucket, with each blob keyed by its blobref. Server configuration ===================== High-level server config is formatted like: "googlecloudstorage": "clientId:clientSecret:refreshToken:bucketName" Testing ======== googlestorage_test.go contains integration tests which run against Google Storage. In order to run these tests properly, you will need to: 1. Set up google storage. See: http://code.google.com/apis/storage/docs/signup.html 2. Upload the contents of the testdata dir to a google storage bucket. Note that all these files begin with 'test-': such files will be ignored when the bucket is used as blobserver storage. 3. Create the config file '~/.config/camlistore/gstestconfig.json'. The file should look something like this: { "gsconf": { "auth": { "client_id": "your client id", "client_secret": "your client secret", "refresh_token": "a refresh token" }, "bucket": "bucketName" } } You can use 'camtool googinit' to help obtain the auth config object.