• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

asset/H19-Nov-2019-3,3752,264

automl/H19-Nov-2019-8,8226,376

bigquery/H19-Nov-2019-50,12745,125

bigtable/H19-Nov-2019-17,67514,169

civil/H19-Nov-2019-721544

cloudbuild/apiv1/H19-Nov-2019-2,2771,688

cloudtasks/H19-Nov-2019-7,6465,508

cmd/go-cloud-debug-agent/H19-Nov-2019-23,23519,089

compute/metadata/H19-Nov-2019-668401

container/H19-Nov-2019-4,5813,619

containeranalysis/H19-Nov-2019-4,0002,909

dataproc/H19-Nov-2019-8,6776,223

datastore/H03-May-2022-13,38810,705

debugger/apiv2/H19-Nov-2019-1,466993

dialogflow/apiv2/H19-Nov-2019-7,0445,036

dlp/apiv2/H19-Nov-2019-4,0473,062

errorreporting/H19-Nov-2019-2,1521,466

expr/apiv1alpha1/H19-Nov-2019-1,122741

firestore/H19-Nov-2019-30,97526,127

functions/metadata/H19-Nov-2019-286180

grafeas/apiv1/H19-Nov-2019-2,1711,633

httpreplay/H19-Nov-2019-2,4221,804

iam/H19-Nov-2019-4,2053,092

internal/H19-Nov-2019-6,1174,112

iot/apiv1/H19-Nov-2019-2,7092,054

irm/apiv1alpha2/H19-Nov-2019-4,5903,573

kms/apiv1/H19-Nov-2019-3,5222,656

language/H19-Nov-2019-2,2321,570

logging/H19-Nov-2019-9,0506,516

longrunning/H19-Nov-2019-1,450972

monitoring/apiv3/H19-Nov-2019-7,4055,502

oslogin/H19-Nov-2019-2,0221,430

phishingprotection/apiv1beta1/H19-Nov-2019-463275

profiler/H19-Nov-2019-3,2752,550

pubsub/H19-Nov-2019-15,10211,074

recaptchaenterprise/apiv1beta1/H19-Nov-2019-569367

recommender/apiv1beta1/H19-Nov-2019-1,041726

redis/H19-Nov-2019-4,3113,109

rpcreplay/H19-Nov-2019-2,6441,995

scheduler/H19-Nov-2019-2,8352,047

securitycenter/H19-Nov-2019-5,7284,385

spanner/H19-Nov-2019-36,42127,571

speech/H19-Nov-2019-1,9861,376

storage/H19-Nov-2019-43,97940,534

talent/apiv4beta1/H19-Nov-2019-6,0494,457

texttospeech/apiv1/H19-Nov-2019-668433

trace/H19-Nov-2019-1,5571,016

translate/H19-Nov-2019-2,3981,733

videointelligence/H19-Nov-2019-1,262767

vision/H19-Nov-2019-5,4273,882

webrisk/apiv1beta1/H19-Nov-2019-686458

CHANGES.mdH A D19-Nov-201942.5 KiB1,4021,146

CODE_OF_CONDUCT.mdH A D19-Nov-20191.9 KiB4535

CONTRIBUTING.mdH A D19-Nov-201912.2 KiB307240

LICENSEH A D19-Nov-201911.1 KiB203169

README.mdH A D19-Nov-201912.1 KiB180154

RELEASING.mdH A D19-Nov-20196 KiB154123

doc.goH A D19-Nov-20193.7 KiB1011

examples_test.goH A D19-Nov-20194.1 KiB11753

go.modH A D19-Nov-2019998 2926

go.sumH A D19-Nov-201920.1 KiB210209

issue_template.mdH A D19-Nov-2019229 179

license_test.goH A D19-Nov-20191.8 KiB7549

microgens.csvH A D19-Nov-20192.5 KiB1110

regen-gapic.shH A D19-Nov-20192.7 KiB8244

tidyall.shH A D19-Nov-2019973 298

tools.goH A D19-Nov-20191.2 KiB349

README.md

1# Google Cloud Client Libraries for Go
2
3[![GoDoc](https://godoc.org/cloud.google.com/go?status.svg)](https://godoc.org/cloud.google.com/go)
4
5Go packages for [Google Cloud Platform](https://cloud.google.com) services.
6
7``` go
8import "cloud.google.com/go"
9```
10
11To install the packages on your system, *do not clone the repo*. Instead:
12
131. Change to your project directory:
14
15   ```
16   cd /my/cloud/project
17   ```
181. Get the package you want to use. Some products have their own module, so it's
19   best to `go get` the package(s) you want to use:
20
21   ```
22   $ go get cloud.google.com/go/firestore # Replace with the package you want to use.
23   ```
24
25**NOTE:** Some of these packages are under development, and may occasionally
26make backwards-incompatible changes.
27
28**NOTE:** Github repo is a mirror of [https://code.googlesource.com/gocloud](https://code.googlesource.com/gocloud).
29
30## Supported APIs
31
32Google API                                      | Status       | Package
33------------------------------------------------|--------------|-----------------------------------------------------------
34[Asset][cloud-asset]                            | alpha        | [`cloud.google.com/go/asset/v1beta`](https://godoc.org/cloud.google.com/go/asset/v1beta)
35[Automl][cloud-automl]                          | stable       | [`cloud.google.com/go/automl/apiv1`](https://godoc.org/cloud.google.com/go/automl/apiv1)
36[BigQuery][cloud-bigquery]                      | stable       | [`cloud.google.com/go/bigquery`](https://godoc.org/cloud.google.com/go/bigquery)
37[Bigtable][cloud-bigtable]                      | stable       | [`cloud.google.com/go/bigtable`](https://godoc.org/cloud.google.com/go/bigtable)
38[Cloudbuild][cloud-build]                       | alpha        | [`cloud.google.com/go/cloudbuild/apiv1`](https://godoc.org/cloud.google.com/go/cloudbuild/apiv1)
39[Cloudtasks][cloud-tasks]                       | stable       | [`cloud.google.com/go/cloudtasks/apiv2`](https://godoc.org/cloud.google.com/go/cloudtasks/apiv2)
40[Container][cloud-container]                    | stable       | [`cloud.google.com/go/container/apiv1`](https://godoc.org/cloud.google.com/go/container/apiv1)
41[ContainerAnalysis][cloud-containeranalysis]    | beta         | [`cloud.google.com/go/containeranalysis/apiv1`](https://godoc.org/cloud.google.com/go/containeranalysis/apiv1)
42[Dataproc][cloud-dataproc]                      | stable       | [`cloud.google.com/go/dataproc/apiv1`](https://godoc.org/cloud.google.com/go/dataproc/apiv1)
43[Datastore][cloud-datastore]                    | stable       | [`cloud.google.com/go/datastore`](https://godoc.org/cloud.google.com/go/datastore)
44[Debugger][cloud-debugger]                      | alpha        | [`cloud.google.com/go/debugger/apiv2`](https://godoc.org/cloud.google.com/go/debugger/apiv2)
45[Dialogflow][cloud-dialogflow]                  | alpha        | [`cloud.google.com/go/dialogflow/apiv2`](https://godoc.org/cloud.google.com/go/dialogflow/apiv2)
46[Data Loss Prevention][cloud-dlp]               | alpha        | [`cloud.google.com/go/dlp/apiv2`](https://godoc.org/cloud.google.com/go/dlp/apiv2)
47[ErrorReporting][cloud-errors]                  | alpha        | [`cloud.google.com/go/errorreporting`](https://godoc.org/cloud.google.com/go/errorreporting)
48[Firestore][cloud-firestore]                    | stable       | [`cloud.google.com/go/firestore`](https://godoc.org/cloud.google.com/go/firestore)
49[IAM][cloud-iam]                                | stable       | [`cloud.google.com/go/iam`](https://godoc.org/cloud.google.com/go/iam)
50[IoT][cloud-iot]                                | alpha        | [`cloud.google.com/iot/apiv1`](https://godoc.org/cloud.google.com/iot/apiv1)
51[IRM][cloud-irm]                                | alpha        | [`cloud.google.com/irm/apiv1alpha2`](https://godoc.org/cloud.google.com/irm/apiv1alpha2)
52[KMS][cloud-kms]                                | stable       | [`cloud.google.com/go/kms`](https://godoc.org/cloud.google.com/go/kms)
53[Natural Language][cloud-natural-language]      | stable       | [`cloud.google.com/go/language/apiv1`](https://godoc.org/cloud.google.com/go/language/apiv1)
54[Logging][cloud-logging]                        | stable       | [`cloud.google.com/go/logging`](https://godoc.org/cloud.google.com/go/logging)
55[Memorystore][cloud-memorystore]                | alpha        | [`cloud.google.com/go/redis/apiv1`](https://godoc.org/cloud.google.com/go/redis/apiv1)
56[Monitoring][cloud-monitoring]                  | alpha        | [`cloud.google.com/go/monitoring/apiv3`](https://godoc.org/cloud.google.com/go/monitoring/apiv3)
57[OS Login][cloud-oslogin]                       | alpha        | [`cloud.google.com/go/oslogin/apiv1`](https://godoc.org/cloud.google.com/go/oslogin/apiv1)
58[Pub/Sub][cloud-pubsub]                         | stable       | [`cloud.google.com/go/pubsub`](https://godoc.org/cloud.google.com/go/pubsub)
59[Phishing Protection][cloud-phishingprotection] | alpha        | [`cloud.google.com/go/phishingprotection/apiv1beta1`](https://godoc.org/cloud.google.com/go/phishingprotection/apiv1beta1)
60[reCAPTCHA Enterprise][cloud-recaptcha]         | alpha        | [`cloud.google.com/go/recaptchaenterprise/apiv1beta1`](https://godoc.org/cloud.google.com/go/recaptchaenterprise/apiv1beta1)
61[Recommender][cloud-recommender]                | beta         | [`cloud.google.com/go/recommender/apiv1beta1`](https://godoc.org/cloud.google.com/go/recommender/apiv1beta1)
62[Scheduler][cloud-scheduler]                    | stable       | [`cloud.google.com/go/scheduler/apiv1`](https://godoc.org/cloud.google.com/go/scheduler/apiv1)
63[Securitycenter][cloud-securitycenter]          | alpha        | [`cloud.google.com/go/securitycenter/apiv1`](https://godoc.org/cloud.google.com/go/securitycenter/apiv1)
64[Spanner][cloud-spanner]                        | stable       | [`cloud.google.com/go/spanner`](https://godoc.org/cloud.google.com/go/spanner)
65[Speech][cloud-speech]                          | stable       | [`cloud.google.com/go/speech/apiv1`](https://godoc.org/cloud.google.com/go/speech/apiv1)
66[Storage][cloud-storage]                        | stable       | [`cloud.google.com/go/storage`](https://godoc.org/cloud.google.com/go/storage)
67[Talent][cloud-talent]                          | alpha        | [`cloud.google.com/go/talent/apiv4beta1`](https://godoc.org/cloud.google.com/go/talent/apiv4beta1)
68[Text To Speech][cloud-texttospeech]            | alpha        | [`cloud.google.com/go/texttospeech/apiv1`](https://godoc.org/cloud.google.com/go/texttospeech/apiv1)
69[Trace][cloud-trace]                            | alpha        | [`cloud.google.com/go/trace/apiv2`](https://godoc.org/cloud.google.com/go/trace/apiv2)
70[Translate][cloud-translate]                    | stable       | [`cloud.google.com/go/translate`](https://godoc.org/cloud.google.com/go/translate)
71[Video Intelligence][cloud-video]               | alpha        | [`cloud.google.com/go/videointelligence/apiv1beta1`](https://godoc.org/cloud.google.com/go/videointelligence/apiv1beta1)
72[Vision][cloud-vision]                          | stable       | [`cloud.google.com/go/vision/apiv1`](https://godoc.org/cloud.google.com/go/vision/apiv1)
73[Webrisk][cloud-webrisk]                        | alpha        | [`cloud.google.com/go/webrisk/apiv1beta1`](https://godoc.org/cloud.google.com/go/webrisk/apiv1beta1)
74
75> **Alpha status**: the API is still being actively developed. As a
76> result, it might change in backward-incompatible ways and is not recommended
77> for production use.
78>
79> **Beta status**: the API is largely complete, but still has outstanding
80> features and bugs to be addressed. There may be minor backwards-incompatible
81> changes where necessary.
82>
83> **Stable status**: the API is mature and ready for production use. We will
84> continue addressing bugs and feature requests.
85
86Documentation and examples are available at [godoc.org/cloud.google.com/go](https://godoc.org/cloud.google.com/go)
87
88## Go Versions Supported
89
90We support the two most recent major versions of Go. If Google App Engine uses
91an older version, we support that as well.
92
93## Authorization
94
95By default, each API will use [Google Application Default Credentials](https://developers.google.com/identity/protocols/application-default-credentials)
96for authorization credentials used in calling the API endpoints. This will allow your
97application to run in many environments without requiring explicit configuration.
98
99[snip]:# (auth)
100```go
101client, err := storage.NewClient(ctx)
102```
103
104To authorize using a
105[JSON key file](https://cloud.google.com/iam/docs/managing-service-account-keys),
106pass
107[`option.WithCredentialsFile`](https://godoc.org/google.golang.org/api/option#WithCredentialsFile)
108to the `NewClient` function of the desired package. For example:
109
110[snip]:# (auth-JSON)
111```go
112client, err := storage.NewClient(ctx, option.WithCredentialsFile("path/to/keyfile.json"))
113```
114
115You can exert more control over authorization by using the
116[`golang.org/x/oauth2`](https://godoc.org/golang.org/x/oauth2) package to
117create an `oauth2.TokenSource`. Then pass
118[`option.WithTokenSource`](https://godoc.org/google.golang.org/api/option#WithTokenSource)
119to the `NewClient` function:
120[snip]:# (auth-ts)
121```go
122tokenSource := ...
123client, err := storage.NewClient(ctx, option.WithTokenSource(tokenSource))
124```
125
126## Contributing
127
128Contributions are welcome. Please, see the
129[CONTRIBUTING](https://github.com/GoogleCloudPlatform/google-cloud-go/blob/master/CONTRIBUTING.md)
130document for details. We're using Gerrit for our code reviews. Please don't open pull
131requests against this repo, new pull requests will be automatically closed.
132
133Please note that this project is released with a Contributor Code of Conduct.
134By participating in this project you agree to abide by its terms.
135See [Contributor Code of Conduct](https://github.com/GoogleCloudPlatform/google-cloud-go/blob/master/CONTRIBUTING.md#contributor-code-of-conduct)
136for more information.
137
138[cloud-asset]: https://cloud.google.com/security-command-center/docs/how-to-asset-inventory
139[cloud-automl]: https://cloud.google.com/automl
140[cloud-build]: https://cloud.google.com/cloud-build/
141[cloud-bigquery]: https://cloud.google.com/bigquery/
142[cloud-bigtable]: https://cloud.google.com/bigtable/
143[cloud-container]: https://cloud.google.com/containers/
144[cloud-containeranalysis]: https://cloud.google.com/container-registry/docs/container-analysis
145[cloud-dataproc]: https://cloud.google.com/dataproc/
146[cloud-datastore]: https://cloud.google.com/datastore/
147[cloud-dialogflow]: https://cloud.google.com/dialogflow-enterprise/
148[cloud-debugger]: https://cloud.google.com/debugger/
149[cloud-dlp]: https://cloud.google.com/dlp/
150[cloud-errors]: https://cloud.google.com/error-reporting/
151[cloud-firestore]: https://cloud.google.com/firestore/
152[cloud-iam]: https://cloud.google.com/iam/
153[cloud-iot]: https://cloud.google.com/iot-core/
154[cloud-irm]: https://cloud.google.com/incident-response/docs/concepts
155[cloud-kms]: https://cloud.google.com/kms/
156[cloud-pubsub]: https://cloud.google.com/pubsub/
157[cloud-storage]: https://cloud.google.com/storage/
158[cloud-language]: https://cloud.google.com/natural-language
159[cloud-logging]: https://cloud.google.com/logging/
160[cloud-natural-language]: https://cloud.google.com/natural-language/
161[cloud-memorystore]: https://cloud.google.com/memorystore/
162[cloud-monitoring]: https://cloud.google.com/monitoring/
163[cloud-oslogin]: https://cloud.google.com/compute/docs/oslogin/rest
164[cloud-phishingprotection]: https://cloud.google.com/phishing-protection/
165[cloud-securitycenter]: https://cloud.google.com/security-command-center/
166[cloud-scheduler]: https://cloud.google.com/scheduler
167[cloud-spanner]: https://cloud.google.com/spanner/
168[cloud-speech]: https://cloud.google.com/speech
169[cloud-talent]: https://cloud.google.com/solutions/talent-solution/
170[cloud-tasks]: https://cloud.google.com/tasks/
171[cloud-texttospeech]: https://cloud.google.com/texttospeech/
172[cloud-talent]: https://cloud.google.com/solutions/talent-solution/
173[cloud-trace]: https://cloud.google.com/trace/
174[cloud-translate]: https://cloud.google.com/translate
175[cloud-recaptcha]: https://cloud.google.com/recaptcha-enterprise/
176[cloud-recommender]: https://cloud.google.com/recommendations/
177[cloud-video]: https://cloud.google.com/video-intelligence/
178[cloud-vision]: https://cloud.google.com/vision
179[cloud-webrisk]: https://cloud.google.com/web-risk/
180