Google Git
Sign in
fuchsia/third_party/github.com/googleapis/google-cloud-go/refs/heads/upstream/refactor-bigtable-integration-tests/./storage
tree: 49592ccdfe24bd25891f7a32a2c84b22bd1a8087
  1. control/
  2. dataflux/
  3. experimental/
  4. internal/
  5. transfermanager/
  6. .repo-metadata.json
  7. acl.go
  8. acl_test.go
  9. bucket.go
  10. bucket_test.go
  11. CHANGES.md
  12. client.go
  13. client_test.go
  14. conformance_test.go
  15. copy.go
  16. copy_test.go
  17. doc.go
  18. dynamic_delay.go
  19. dynamic_delay_test.go
  20. emulator_test.sh
  21. example_test.go
  22. go.mod
  23. go.sum
  24. grpc_client.go
  25. grpc_client_test.go
  26. grpc_dp.go
  27. grpc_metrics.go
  28. grpc_metrics_test.go
  29. grpc_reader.go
  30. grpc_reader_multi_range.go
  31. grpc_writer.go
  32. grpc_writer_test.go
  33. headers_test.go
  34. hmac.go
  35. hmac_test.go
  36. http_client.go
  37. http_client_test.go
  38. iam.go
  39. integration_test.go
  40. invoke.go
  41. invoke_test.go
  42. mock_test.go
  43. notifications.go
  44. notifications_test.go
  45. option.go
  46. option_test.go
  47. post_policy_v4.go
  48. post_policy_v4_test.go
  49. reader.go
  50. reader_test.go
  51. README.md
  52. retry_conformance_test.go
  53. retry_test.go
  54. storage.go
  55. storage.replay
  56. storage_test.go
  57. TESTING.md
  58. trace.go
  59. trace_test.go
  60. writer.go
  61. writer_test.go
storage/README.md

Cloud Storage Go Reference

  • About Cloud Storage
  • API documentation
  • Go client documentation
  • Complete sample programs

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 := io.ReadAll(rc)
if err != nil {
	log.Fatal(err)
}
Powered by Gitiles| Privacy| Termstxt json