tree: 66d0f137c7ff794e526c0c5da5426f5c0cf0af9d [path history] [tgz]
  1. README.md
  2. acl.go
  3. acl_test.go
  4. bucket.go
  5. bucket_test.go
  6. conformance_test.go
  7. copy.go
  8. copy_test.go
  9. doc.go
  10. example_test.go
  11. go110.go
  12. iam.go
  13. integration_test.go
  14. internal/
  15. invoke.go
  16. invoke_test.go
  17. mock_test.go
  18. not_go110.go
  19. notifications.go
  20. notifications_test.go
  21. oc_test.go
  22. reader.go
  23. reader_test.go
  24. storage.go
  25. storage.replay
  26. storage_test.go
  27. writer.go
  28. writer_test.go
storage/README.md

Cloud Storage GoDoc

Example Usage

First create a storage.Client to use throughout your application:

client, err := storage.NewClient(ctx)
if err != nil {
	log.Fatal(err)
}
// Read the object1 from bucket.
rc, err := client.Bucket("bucket").Object("object1").NewReader(ctx)
if err != nil {
	log.Fatal(err)
}
defer rc.Close()
body, err := ioutil.ReadAll(rc)
if err != nil {
	log.Fatal(err)
}