perkeep/pkg/googlestorage
Brad Fitzpatrick 8ee9eddf6f googlestorage: get test failing in new ways
Change-Id: Icf03b0d17058504463c1db33d66924efce25290e
2012-03-29 16:18:00 -07:00
..
testdata Update from r60 to [almost] Go 1. 2012-02-18 21:53:06 -08:00
README Update from r60 to [almost] Go 1. 2012-02-18 21:53:06 -08:00
googlestorage.go Update from r60 to [almost] Go 1. 2012-02-18 21:53:06 -08:00
googlestorage_test.go googlestorage: get test failing in new ways 2012-03-29 16:18:00 -07:00
testconfig.json Update from r60 to [almost] Go 1. 2012-02-18 21:53:06 -08:00

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.  

Testing:

gsapi_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 '~/.camli/gstestconfig.json'.  The file should look
	something like this:

	{
			"auth": {
				"client_id": "your client id",
				"client_secret": "your client secret",
				"refresh_token": "a refresh token"
			},
			"bucket": "bucket.example.com"
	}

	You can use camgsinit to help obtain the auth config object.