Like Prometheus, but for logs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
loki/vendor/cloud.google.com/go
renovate[bot] 426f3faadd
fix(deps): update module google.golang.org/api to v0.217.0 (#15777)
4 months ago
..
auth fix(deps): update module google.golang.org/api to v0.217.0 (#15777) 4 months ago
bigtable fix(deps): update module cloud.google.com/go/bigtable to v1.34.0 (#15581) 5 months ago
compute/metadata fix(deps): update module google.golang.org/api to v0.213.0 (#15455) 5 months ago
iam fix(deps): update module google.golang.org/api to v0.206.0 (#14968) 6 months ago
internal fix(deps): update module cloud.google.com/go/bigtable to v1.34.0 (#15581) 5 months ago
longrunning fix(deps): update module google.golang.org/api to v0.206.0 (#14968) 6 months ago
monitoring fix(deps): update module github.com/fsouza/fake-gcs-server to v1.52.1 (#15589) 4 months ago
pubsub fix(deps): update module cloud.google.com/go/pubsub to v1.45.3 (#15294) 5 months ago
storage fix(deps): update module cloud.google.com/go/storage to v1.50.0 (#15690) 4 months ago
.gitignore update vendored cortex and add new replace overrides (#3256) 4 years ago
.release-please-manifest-individual.json fix(deps): update module cloud.google.com/go/bigtable to v1.34.0 (#15581) 5 months ago
.release-please-manifest-submodules.json fix(deps): update module cloud.google.com/go/bigtable to v1.34.0 (#15581) 5 months ago
.release-please-manifest.json fix(deps): update module cloud.google.com/go/bigtable to v1.34.0 (#15581) 5 months ago
CHANGES.md fix(deps): update module cloud.google.com/go/bigtable to v1.34.0 (#15581) 5 months ago
CODE_OF_CONDUCT.md loki: use new runtimeconfig package from Cortex (#1484) 5 years ago
CONTRIBUTING.md feat: upgrade prometheus (#13671) 10 months ago
LICENSE Move promtail from kausalco/public, update it for prometheus changes. 7 years ago
README.md fix(deps): update module cloud.google.com/go/bigtable to v1.34.0 (#15581) 5 months ago
RELEASING.md Chore: Upgrade to latest Cortex (#5085) 3 years ago
SECURITY.md Chore: Upgrade Prometheus and Cortex (#4017) 4 years ago
debug.md fix(deps): update module cloud.google.com/go/bigtable to v1.34.0 (#15581) 5 months ago
doc.go fix(deps): update module cloud.google.com/go/bigtable to v1.34.0 (#15581) 5 months ago
migration.md Update Prometheus dependency to latest release (v2.40.4) (#7826) 2 years ago
release-please-config-individual.json fix(deps): update module cloud.google.com/go/bigtable to v1.34.0 (#15581) 5 months ago
release-please-config-yoshi-submodules.json fix(deps): update module cloud.google.com/go/bigtable to v1.34.0 (#15581) 5 months ago
release-please-config.json Update Prometheus dependency to latest release (v2.40.4) (#7826) 2 years ago
testing.md feat: upgrade prometheus (#13671) 10 months ago

README.md

Google Cloud Client Libraries for Go

Go Reference

Go packages for Google Cloud Platform services.

Installation

go get cloud.google.com/go/firestore@latest # Replace firestore 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

Note: As of Jan 1, 2025 the Cloud Client Libraries for Go will support the two most-recent major Go releases -- the same policy the Go programming language follows.

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

  • Go 1.23
  • Go 1.22
  • Go 1.21

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 credentials package to create an auth.Credentials. Then pass option.WithAuthCredentials to the NewClient function:

creds := ...
client, err := storage.NewClient(ctx, option.WithAuthCredentials(creds))

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.