Example application for accessing the cloud storage from an App Engine application and also how to make it work in the App Engine SDK.
A note is that this code is a simple and very unsafe example, uploading it with access to your bucket basically grants full control to public.
Implemented example API's:
- Create/upload object
- List objects in bucket
- Delete object
Todo:
- Read object
- Get public link for object
- Enable Cloud Integration in appengine console
- Create Oauth 2.0 Client Id -> Service Account in Cloud Console.
- Download the JSON and store it as
server/storage_dev_privatekey.json
- Edit the values
server/config.go
to match your project and bucket.