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