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