tree: 4efa5316ee6c3d04256465713fd5f790c6d0c6ee [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. hmac.go
  13. hmac_test.go
  14. iam.go
  15. integration_test.go
  16. internal/
  17. invoke.go
  18. invoke_test.go
  19. mock_test.go
  20. not_go110.go
  21. notifications.go
  22. notifications_test.go
  23. oc_test.go
  24. reader.go
  25. reader_test.go
  26. retry_test.go
  27. storage.go
  28. storage.replay
  29. storage_test.go
  30. writer.go
  31. 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)
}