github.com/slspeek/camlistore_namedsearch@v0.0.0-20140519202248-ed6f70f7721a/pkg/googlestorage/README (about) 1 Implements the Storage interface for Google Storage. 2 A GoogleStorage instance stores blobs in a single Google Storage bucket, with 3 each blob keyed by its blobref. 4 5 Server configuration 6 ===================== 7 8 High-level server config is formatted like: 9 10 "googlecloudstorage": "clientId:clientSecret:refreshToken:bucketName" 11 12 13 Testing 14 ======== 15 16 googlestorage_test.go contains integration tests which run against Google Storage. 17 In order to run these tests properly, you will need to: 18 19 1. Set up google storage. See: 20 http://code.google.com/apis/storage/docs/signup.html 21 22 2. Upload the contents of the testdata dir to a google storage bucket. Note 23 that all these files begin with 'test-': such files will be ignored when 24 the bucket is used as blobserver storage. 25 26 3. Create the config file '~/.config/camlistore/gstestconfig.json'. The 27 file should look something like this: 28 29 { 30 "gsconf": { 31 "auth": { 32 "client_id": "your client id", 33 "client_secret": "your client secret", 34 "refresh_token": "a refresh token" 35 }, 36 "bucket": "bucketName" 37 } 38 } 39 40 41 You can use 'camtool gsinit' to help obtain the auth config object.