tree: 5594460370c432488f5c6d0eb14e6a2c278274b0 [path history] [tgz]
  1. .repo-metadata.json
  2. README.md
  3. acl.go
  4. acl_test.go
  5. bucket.go
  6. bucket_test.go
  7. conformance_test.go
  8. copy.go
  9. copy_test.go
  10. doc.go
  11. example_test.go
  12. go110.go
  13. hmac.go
  14. hmac_test.go
  15. iam.go
  16. integration_test.go
  17. internal/
  18. invoke.go
  19. invoke_test.go
  20. mock_test.go
  21. not_go110.go
  22. notifications.go
  23. notifications_test.go
  24. oc_test.go
  25. reader.go
  26. reader_test.go
  27. retry_test.go
  28. storage.go
  29. storage.replay
  30. storage_test.go
  31. writer.go
  32. 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)
}