Merge branch 'main' into firestore-transform
tree: 61372d8601d482cae839a412e9535166075a6dce
  1. .github/
  2. accessapproval/
  3. accesscontextmanager/
  4. aiplatform/
  5. analytics/
  6. apigateway/
  7. apigeeconnect/
  8. appengine/
  9. area120/
  10. artifactregistry/
  11. asset/
  12. assuredworkloads/
  13. automl/
  14. bigquery/
  15. bigtable/
  16. billing/
  17. binaryauthorization/
  18. certificatemanager/
  19. channel/
  20. civil/
  21. cloudbuild/
  22. clouddms/
  23. cloudtasks/
  24. cmd/
  25. compute/
  26. contactcenterinsights/
  27. container/
  28. containeranalysis/
  29. datacatalog/
  30. dataflow/
  31. datafusion/
  32. datalabeling/
  33. dataplex/
  34. dataproc/
  35. dataqna/
  36. datastore/
  37. datastream/
  38. debugger/
  39. deploy/
  40. dialogflow/
  41. dlp/
  42. documentai/
  43. domains/
  44. errorreporting/
  45. essentialcontacts/
  46. eventarc/
  47. filestore/
  48. firestore/
  49. functions/
  50. gaming/
  51. gkeconnect/
  52. gkehub/
  53. grafeas/
  54. gsuiteaddons/
  55. httpreplay/
  56. iam/
  57. iap/
  58. ids/
  59. internal/
  60. iot/
  61. kms/
  62. language/
  63. lifesciences/
  64. logging/
  65. longrunning/
  66. managedidentities/
  67. mediatranslation/
  68. memcache/
  69. metastore/
  70. monitoring/
  71. networkconnectivity/
  72. networkmanagement/
  73. networksecurity/
  74. notebooks/
  75. orchestration/
  76. orgpolicy/
  77. osconfig/
  78. oslogin/
  79. phishingprotection/
  80. policytroubleshooter/
  81. privatecatalog/
  82. profiler/
  83. pubsub/
  84. pubsublite/
  85. recaptchaenterprise/
  86. recommendationengine/
  87. recommender/
  88. redis/
  89. resourcemanager/
  90. resourcesettings/
  91. retail/
  92. rpcreplay/
  93. scheduler/
  94. secretmanager/
  95. security/
  96. securitycenter/
  97. servicecontrol/
  98. servicedirectory/
  99. servicemanagement/
  100. serviceusage/
  101. shell/
  102. spanner/
  103. speech/
  104. storage/
  105. storagetransfer/
  106. talent/
  107. texttospeech/
  108. third_party/
  109. tpu/
  110. trace/
  111. translate/
  112. video/
  113. videointelligence/
  114. vision/
  115. vmmigration/
  116. vpcaccess/
  117. webrisk/
  118. websecurityscanner/
  119. workflows/
  120. .gitignore
  121. .release-please-manifest-submodules.json
  122. .release-please-manifest.json
  123. CHANGES.md
  124. CODE_OF_CONDUCT.md
  125. CONTRIBUTING.md
  126. doc.go
  127. go.mod
  128. go.sum
  129. header_test.go
  130. LICENSE
  131. README.md
  132. release-please-config-submodules.json
  133. release-please-config-yoshi-submodules.json
  134. release-please-config.json
  135. RELEASING.md
  136. SECURITY.md
  137. testing.md
README.md

Google Cloud Client Libraries for Go

Go Reference

Go packages for Google Cloud Platform services.

import "cloud.google.com/go"

To install the packages on your system, do not clone the repo. Instead:

  1. Change to your project directory:

    cd /my/cloud/project
    
  2. Get the package you want to use. Some products have their own module, so it's best to go get the package(s) you want to use:

    $ go get cloud.google.com/go/firestore # Replace with the package you want to use.
    

NOTE: Some of these packages are under development, and may occasionally make backwards-incompatible changes.

Supported APIs

For an updated list of all of our released APIs please see our reference docs.

Go Versions Supported

Our libraries are compatible with at least the three most recent, major Go releases. They are currently compatible with:

  • Go 1.17
  • Go 1.16
  • Go 1.15

Authorization

By default, each API will use Google Application Default Credentials for authorization credentials used in calling the API endpoints. This will allow your application to run in many environments without requiring explicit configuration.

client, err := storage.NewClient(ctx)

To authorize using a JSON key file, pass option.WithCredentialsFile to the NewClient function of the desired package. For example:

client, err := storage.NewClient(ctx, option.WithCredentialsFile("path/to/keyfile.json"))

You can exert more control over authorization by using the golang.org/x/oauth2 package to create an oauth2.TokenSource. Then pass option.WithTokenSource to the NewClient function: snip:# (auth-ts)

tokenSource := ...
client, err := storage.NewClient(ctx, option.WithTokenSource(tokenSource))

Contributing

Contributions are welcome. Please, see the CONTRIBUTING document for details.

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms. See Contributor Code of Conduct for more information.

Links