tree: 76c3f025da3d484ed541292b853b126a7638db85 [path history] [tgz]
  1. internal/
  2. .release-please-manifest.json
  3. acl.go
  4. acl_test.go
  5. bucket.go
  6. bucket_test.go
  7. CHANGES.md
  8. client.go
  9. client_test.go
  10. conformance_test.go
  11. copy.go
  12. copy_test.go
  13. doc.go
  14. emulator_test.sh
  15. example_test.go
  16. go.mod
  17. go.sum
  18. grpc_client.go
  19. hmac.go
  20. hmac_test.go
  21. http_client.go
  22. iam.go
  23. integration_test.go
  24. invoke.go
  25. invoke_test.go
  26. mock_test.go
  27. notifications.go
  28. notifications_test.go
  29. oc_test.go
  30. post_policy_v4.go
  31. post_policy_v4_test.go
  32. reader.go
  33. reader_test.go
  34. README.md
  35. release-please-config.json
  36. retry_conformance_test.go
  37. retry_test.go
  38. storage.go
  39. storage.replay
  40. storage_test.go
  41. writer.go
  42. writer_test.go
storage/README.md

Cloud Storage Go Reference

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)
}