Sample apps and code written for Google Cloud in the Go programming language.

Google Cloud Platform Go Samples

Kokoro Build Status

This repository holds sample code written in Go that demonstrates the Google Cloud Platform.

Some samples have accompanying guides on cloud.google.com. See respective README files for details.

Depending on samples

Copy any code you need from this repository into your own project.

Warning: Do not depend directly on the samples in this repo. Breaking changes may be made at any time without warning.

Contributing changes

Entirely new samples are not accepted. Bug fixes are welcome, either as pull requests or as GitHub issues.

See CONTRIBUTING.md for details on how to contribute.

Licensing

Code in this repository is licensed under the Apache 2.0. See LICENSE.

Comments
  • spanner: code samples for backups

    spanner: code samples for backups

    Samples and tests for the new Cloud Spanner backups functionality.

    Original PRs: https://github.com/helix-collective/golang-samples/pull/1 https://github.com/helix-collective/golang-samples/pull/2

  • spanner/spanner_snippets/spanner: TestCustomerManagedEncryptionKeys failed

    spanner/spanner_snippets/spanner: TestCustomerManagedEncryptionKeys failed

    Note: #2033 was also for this test, but it was closed more than 10 days ago. So, I didn't mark it flaky.


    commit: 9bc859f48ef701a4b81794b5bb86b509b17e2e4c buildURL: Build Status, Sponge status: failed

    Test output
    /usr/local/go/src/testing/testing.go:1701 +0xe5
    /usr/local/go/src/time/sleep.go:180 +0x45
    /usr/local/go/src/testing/testing.go:1240 +0x2da
    /usr/local/go/src/testing/testing.go:1512 +0x78
    /usr/local/go/src/testing/testing.go:1194 +0xef
    /usr/local/go/src/testing/testing.go:1510 +0x2fe
    /usr/local/go/src/testing/testing.go:1418 +0x1eb
    _testmain.go:51 +0x138
    /go/pkg/mod/[email protected]/stats/view/worker.go:276 +0xcd
    /go/pkg/mod/[email protected]/stats/view/worker.go:34 +0x68
    /go/pkg/mod/github.com/googleapis/gax-go/[email protected]/invoke.go:55 +0xa5
    /go/pkg/mod/cloud.google.com/[email protected]/longrunning/longrunning.go:156 +0xe5
    /go/pkg/mod/cloud.google.com/[email protected]/longrunning/longrunning.go:142 +0xf3
    /go/pkg/mod/cloud.google.com/go/[email protected]/admin/database/apiv1/database_admin_client.go:1186 +0xaa
    /tmpfs/src/github/golang-samples/spanner/spanner_snippets/spanner/spanner_restore_backup_with_encryption_key.go:63 +0x51e
    /tmpfs/src/github/golang-samples/spanner/spanner_snippets/spanner/integration_test.go:498 +0x91
    /tmpfs/src/github/golang-samples/spanner/spanner_snippets/spanner/integration_test.go:578 +0xb6
    /tmpfs/src/github/golang-samples/internal/testutil/retry.go:34 +0xd1
    /tmpfs/src/github/golang-samples/spanner/spanner_snippets/spanner/integration_test.go:576 +0x13b
    /tmpfs/src/github/golang-samples/spanner/spanner_snippets/spanner/integration_test.go:500 +0xc9b
    /usr/local/go/src/testing/testing.go:1194 +0xef
    /usr/local/go/src/testing/testing.go:1239 +0x2b3
    /go/pkg/mod/google.golang.org/[email protected]/balancer_conn_wrappers.go:69 +0xac
    /go/pkg/mod/google.golang.org/[email protected]/balancer_conn_wrappers.go:60 +0x172
    /go/pkg/mod/google.golang.org/[email protected]/clientconn.go:1214 +0x465
    /go/pkg/mod/google.golang.org/[email protected]/clientconn.go:844 +0x12a
    /usr/local/go/src/runtime/netpoll.go:222 +0x55
    /usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
    /usr/local/go/src/internal/poll/fd_poll_runtime.go:92
    /usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
    /usr/local/go/src/net/fd_posix.go:55 +0x4f
    /usr/local/go/src/net/net.go:183 +0x91
    /usr/local/go/src/crypto/tls/conn.go:776 +0x63
    /usr/local/go/src/bytes/buffer.go:204 +0xbe
    /usr/local/go/src/crypto/tls/conn.go:798 +0xf3
    /usr/local/go/src/crypto/tls/conn.go:605 +0x115
    /usr/local/go/src/crypto/tls/conn.go:573
    /usr/local/go/src/crypto/tls/conn.go:1276 +0x165
    /usr/local/go/src/bufio/bufio.go:227 +0x222
    /usr/local/go/src/io/io.go:328 +0x87
    /usr/local/go/src/io/io.go:347
    /go/pkg/mod/golang.org/x/[email protected]/http2/frame.go:237 +0x89
    /go/pkg/mod/golang.org/x/[email protected]/http2/frame.go:492 +0xa5
    /go/pkg/mod/google.golang.org/[email protected]/internal/transport/http2_client.go:1347 +0x1a5
    /go/pkg/mod/google.golang.org/[email protected]/internal/transport/http2_client.go:346 +0xdd1
    /go/pkg/mod/google.golang.org/[email protected]/internal/transport/controlbuf.go:407 +0xff
    /go/pkg/mod/google.golang.org/[email protected]/internal/transport/controlbuf.go:527 +0x1dd
    /go/pkg/mod/google.golang.org/[email protected]/internal/transport/http2_client.go:396 +0x7b
    /go/pkg/mod/google.golang.org/[email protected]/internal/transport/http2_client.go:394 +0x12ae
    /usr/local/go/src/runtime/netpoll.go:222 +0x55
    /usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
    /usr/local/go/src/internal/poll/fd_poll_runtime.go:92
    /usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
    /usr/local/go/src/net/fd_posix.go:55 +0x4f
    /usr/local/go/src/net/net.go:183 +0x91
    /usr/local/go/src/crypto/tls/conn.go:776 +0x63
    /usr/local/go/src/bytes/buffer.go:204 +0xbe
    /usr/local/go/src/crypto/tls/conn.go:798 +0xf3
    /usr/local/go/src/crypto/tls/conn.go:605 +0x115
    /usr/local/go/src/crypto/tls/conn.go:573
    /usr/local/go/src/crypto/tls/conn.go:1276 +0x165
    /usr/local/go/src/bufio/bufio.go:227 +0x222
    /usr/local/go/src/io/io.go:328 +0x87
    /usr/local/go/src/io/io.go:347
    /go/pkg/mod/golang.org/x/[email protected]/http2/frame.go:237 +0x89
    /go/pkg/mod/golang.org/x/[email protected]/http2/frame.go:492 +0xa5
    /go/pkg/mod/google.golang.org/[email protected]/internal/transport/http2_client.go:1347 +0x1a5
    /go/pkg/mod/google.golang.org/[email protected]/internal/transport/http2_client.go:346 +0xdd1
    /go/pkg/mod/google.golang.org/[email protected]/internal/transport/controlbuf.go:407 +0xff
    /go/pkg/mod/google.golang.org/[email protected]/internal/transport/controlbuf.go:527 +0x1dd
    /go/pkg/mod/google.golang.org/[email protected]/internal/transport/http2_client.go:396 +0x7b
    /go/pkg/mod/google.golang.org/[email protected]/internal/transport/http2_client.go:394 +0x12ae
    /go/pkg/mod/google.golang.org/[email protected]/internal/transport/controlbuf.go:407 +0xff
    /go/pkg/mod/google.golang.org/[email protected]/internal/transport/controlbuf.go:527 +0x1dd
    /go/pkg/mod/google.golang.org/[email protected]/internal/transport/http2_client.go:396 +0x7b
    /go/pkg/mod/google.golang.org/[email protected]/internal/transport/http2_client.go:394 +0x12ae
    /go/pkg/mod/google.golang.org/[email protected]/balancer_conn_wrappers.go:69 +0xac
    /go/pkg/mod/google.golang.org/[email protected]/balancer_conn_wrappers.go:60 +0x172
    /go/pkg/mod/google.golang.org/[email protected]/clientconn.go:1214 +0x465
    /go/pkg/mod/google.golang.org/[email protected]/clientconn.go:844 +0x12a
    /usr/local/go/src/runtime/netpoll.go:222 +0x55
    /usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
    /usr/local/go/src/internal/poll/fd_poll_runtime.go:92
    /usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
    /usr/local/go/src/net/fd_posix.go:55 +0x4f
    /usr/local/go/src/net/net.go:183 +0x91
    /usr/local/go/src/crypto/tls/conn.go:776 +0x63
    /usr/local/go/src/bytes/buffer.go:204 +0xbe
    /usr/local/go/src/crypto/tls/conn.go:798 +0xf3
    /usr/local/go/src/crypto/tls/conn.go:605 +0x115
    /usr/local/go/src/crypto/tls/conn.go:573
    /usr/local/go/src/crypto/tls/conn.go:1276 +0x165
    /usr/local/go/src/bufio/bufio.go:227 +0x222
    /usr/local/go/src/io/io.go:328 +0x87
    /usr/local/go/src/io/io.go:347
    /go/pkg/mod/golang.org/x/[email protected]/http2/frame.go:237 +0x89
    /go/pkg/mod/golang.org/x/[email protected]/http2/frame.go:492 +0xa5
    /go/pkg/mod/google.golang.org/[email protected]/internal/transport/http2_client.go:1347 +0x1a5
    /go/pkg/mod/google.golang.org/[email protected]/internal/transport/http2_client.go:346 +0xdd1
    /go/pkg/mod/google.golang.org/[email protected]/clientconn.go:1214 +0x465
    /go/pkg/mod/google.golang.org/[email protected]/clientconn.go:844 +0x12a
    /go/pkg/mod/google.golang.org/[email protected]/balancer_conn_wrappers.go:69 +0xac
    /go/pkg/mod/google.golang.org/[email protected]/balancer_conn_wrappers.go:60 +0x172
    /go/pkg/mod/google.golang.org/[email protected]/clientconn.go:1214 +0x465
    /go/pkg/mod/google.golang.org/[email protected]/clientconn.go:844 +0x12a
    /go/pkg/mod/google.golang.org/[email protected]/internal/transport/controlbuf.go:407 +0xff
    /go/pkg/mod/google.golang.org/[email protected]/internal/transport/controlbuf.go:527 +0x1dd
    /go/pkg/mod/google.golang.org/[email protected]/internal/transport/http2_client.go:396 +0x7b
    /go/pkg/mod/google.golang.org/[email protected]/internal/transport/http2_client.go:394 +0x12ae
    /usr/local/go/src/runtime/netpoll.go:222 +0x55
    /usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
    /usr/local/go/src/internal/poll/fd_poll_runtime.go:92
    /usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
    /usr/local/go/src/net/fd_posix.go:55 +0x4f
    /usr/local/go/src/net/net.go:183 +0x91
    /usr/local/go/src/crypto/tls/conn.go:776 +0x63
    /usr/local/go/src/bytes/buffer.go:204 +0xbe
    /usr/local/go/src/crypto/tls/conn.go:798 +0xf3
    /usr/local/go/src/crypto/tls/conn.go:605 +0x115
    /usr/local/go/src/crypto/tls/conn.go:573
    /usr/local/go/src/crypto/tls/conn.go:1276 +0x165
    /usr/local/go/src/bufio/bufio.go:227 +0x222
    /usr/local/go/src/io/io.go:328 +0x87
    /usr/local/go/src/io/io.go:347
    /go/pkg/mod/golang.org/x/[email protected]/http2/frame.go:237 +0x89
    /go/pkg/mod/golang.org/x/[email protected]/http2/frame.go:492 +0xa5
    /go/pkg/mod/google.golang.org/[email protected]/internal/transport/http2_client.go:1347 +0x1a5
    /go/pkg/mod/google.golang.org/[email protected]/internal/transport/http2_client.go:346 +0xdd1
    /go/pkg/mod/google.golang.org/[email protected]/balancer_conn_wrappers.go:69 +0xac
    /go/pkg/mod/google.golang.org/[email protected]/balancer_conn_wrappers.go:60 +0x172
  • spanner/spanner_snippets: TestBackupSample failed

    spanner/spanner_snippets: TestBackupSample failed

    This test failed!

    To configure my behavior, see the Build Cop Bot documentation.

    If I'm commenting on this issue too often, add the buildcop: quiet label and I will stop commenting.


    commit: 332956446c128e9b39f462033299f88da88f84aa buildURL: Build Status, Sponge status: failed

  • webrisk: initial commit

    webrisk: initial commit

    This go client is meant to be used to communicate with the WebRisk API (https://cloud.google.com/web-risk/) It was created by modifying the code on https://github.com/google/safebrowsing making it to point to WebRisk instead of Safebrowsing.

  • run/events-pubsub: TestPubSubEventsService failed

    run/events-pubsub: TestPubSubEventsService failed

    This test failed!

    To configure my behavior, see the Build Cop Bot documentation.

    If I'm commenting on this issue too often, add the buildcop: quiet label and I will stop commenting.


    commit: 051829e2a6cbe0b6ce7ad1100c65f2db3b93425f buildURL: Build Status, Sponge status: failed

    Test output
    Running operation [build container image] for service [run_events_pubsub]...
    Executing: /tmp/google-cloud-sdk/bin/gcloud --quiet builds submit --project golang-samples-tests-2 --tag gcr.io/golang-samples-tests-2/run_events_pubsub:20200813-171338
    Running operation [deploy service] for service [run_events_pubsub]...
    Executing: /tmp/google-cloud-sdk/bin/gcloud --quiet run deploy run_events_pubsub-20200813-171338 --project golang-samples-tests-2 --image gcr.io/golang-samples-tests-2/run_events_pubsub:20200813-171338 --platform managed --region us-central1
    Error Output for operation [deploy service] for service [run_events_pubsub]:
    ERROR: (gcloud.run.deploy) Invalid service name [run_events_pubsub-20200813-171338]. Service name must use only lowercase alphanumeric characters and dashes. Cannot begin or end with a dash, and cannot be longer than 63 characters.
        TestPubSubEventsService: e2e_test.go:32: service.Deploy "run_events_pubsub": gcloud: run_events_pubsub-20200813-171338: "operation [deploy service] for service [run_events_pubsub]: \"exit status 1\""
  • The deployment is broken on App Engine flexible for Go

    The deployment is broken on App Engine flexible for Go

    Not sure is the best place to post this issue.

    The deployment is broken on App Engine flexible for Go.

    Step #1: error building image: getting stage builder for stage 0: MANIFEST_UNKNOWN: "Manifest with digest 'sha256:884ac2144c3ee154bd67271e99bc6ef00f430092750167729b0321ab55fde5ec' has media type 'application/vnd.docker.distribution.manifest.list.v2+json', but client accepts 'application/vnd.docker.distribution.manifest.v2+json'."
    
  • functions: use request signing

    functions: use request signing

    From Slack's documentation at https://api.slack.com/docs/verifying-requests-from-slack#sdk_support

    Signing secrets replace the old verification tokens. We'll continue allowing apps to use verification tokens for now. However, we will retire them completely in coming months. We strongly recommend switching to request signing as soon as possible.

    The current example uses a verification token. The proposed pull request changes this to request signing verification.

  • spanner/spanner_snippets/spanner: TestBackupSample failed

    spanner/spanner_snippets/spanner: TestBackupSample failed

    Note: #1856 was also for this test, but it was closed more than 10 days ago. So, I didn't mark it flaky.


    commit: ee6aa086d41864d841c1e812b7ca324c9791795e buildURL: Build Status, Sponge status: failed

    Test output
        integration_test.go:384: failed to restore a backup: rpc error: code = FailedPrecondition desc = Cannot restore database (projects/golang-samples-tests/instances/golang-samples-tests/databases/restore-1610790968-554a3bc7) because the maximum number of pending restores (1) for the instance (projects/golang-samples-tests/instances/golang-samples-tests) has been reached. Please retry the operation once the pending restores complete.
        integration_test.go:360: got output ""; want it to contain "Source database projects/golang-samples-tests/instances/golang-samples-tests/databases/smpl-1610790968-554a3bc7 restored from backup"
        integration_test.go:364: got output "Database projects/golang-samples-tests/instances/golang-samples-tests/databases/restore-1610735832-ef74a5ce restored from backup is 100% optimized.\nDatabase projects/golang-samples-tests/instances/golang-samples-tests/databases/restore-1610733553-076379f7 restored from backup is 100% optimized.\nDatabase projects/golang-samples-tests/instances/golang-samples-tests/databases/restore-1610649534-02106cc1 restored from backup is 0% optimized.\nDatabase projects/golang-samples-tests/instances/golang-samples-tests/databases/restore-1610647094-c82d4836 restored from backup is 0% optimized.\nDatabase projects/golang-samples-tests/instances/golang-samples-tests/databases/restore-1610564514-958ff48c restored from backup is 0% optimized.\nDatabase projects/golang-samples-tests/instances/golang-samples-tests/databases/restore-1610476177-9dc56d36 restored from backup is 0% optimized.\nDatabase projects/golang-samples-tests/instances/golang-samples-tests/databases/restore-1610474301-80e242fc restored from backup is 0% optimized.\nDatabase projects/golang-samples-tests/instances/golang-samples-tests/databases/restore-1610390138-42f23917 restored from backup is 100% optimized.\nDatabase projects/golang-samples-tests/instances/golang-samples-tests/databases/restore-1610387794-8aa13ccf restored from backup is 100% optimized.\nDatabase projects/golang-samples-tests/instances/golang-samples-tests/databases/restore-1610303484-1a31bed1 restored from backup is 100% optimized.\nDatabase projects/golang-samples-tests/instances/golang-samples-tests/databases/restore-1610301137-8aa96a18 restored from backup is 0% optimized.\nDatabase projects/golang-samples-tests/instances/golang-samples-tests/databases/restore-1610216947-be6887a5 restored from backup is 0% optimized.\nDatabase projects/golang-samples-tests/instances/golang-samples-tests/databases/restore-1610214744-dc936677 restored from backup is 0% optimized.\n"; want it to contain "Database projects/golang-samples-tests/instances/golang-samples-tests/databases/restore-1610790968-554a3bc7 restored from backup"
  • scheduler: example for sending pubsub message

    scheduler: example for sending pubsub message

    Hello,

    I would like to use the cloud scheduler API to send a pubsub message. The godoc documentation does not contain an example, so I would like there to be a sample here. I know I can do this via the CLI:

    gcloud beta scheduler jobs create pubsub <JOB> --schedule "0 9 1 * *" --topic <TOPIC> --message-body "test" --attributes key1=value1,key2,value2

    But I am unclear as to how to accomplish this in Go using the API: https://pkg.go.dev/google.golang.org/api/cloudscheduler/v1#pkg-functions

  • feat: add samples for CMEK with Spanner

    feat: add samples for CMEK with Spanner

    Adds samples for Customer Managed Encryption Keys with Spanner:

    • Create database using a specific key
    • Create backup using a specific key
    • Restore backup using a specific key
  • firestore/firestore_snippets: TestListenChanges failed

    firestore/firestore_snippets: TestListenChanges failed

    This test failed!

    To configure my behavior, see the Build Cop Bot documentation.

    If I'm commenting on this issue too often, add the buildcop: quiet label and I will stop commenting.


    commit: ae6c8fa9115c91be5f54bcb162e3bd014eac5d05 buildURL: Build Status, Sponge status: failed

    Test output
    listen_test.go:125: listenChanges got
        ----
        New city: map[name:Los Angeles state:CA]
        New city: map[state:CA name:San Francisco]
    
    ----
    Want to contain:
    ----
    population:3900000
    ----</pre></details>
    
  • firestoreClient.Batch is deprecated

    firestoreClient.Batch is deprecated

    Sample code and reference docs have an example of batch deleting a collection using firestoreClient.Batch which is deprecated.

    References

    • Documentation: https://firebase.google.com/docs/firestore/manage-data/delete-data#collections
    • Sample Code: https://github.com/GoogleCloudPlatform/golang-samples/blob/9187374b211af561d1e4e329e843aaa7e31d8222/firestore/save.go#L282
  • chore(all): update everything

    chore(all): update everything

    Mend Renovate

    This PR contains the following updates:

    | Package | Type | Update | Change | |---|---|---|---| | cloud.google.com/go | require | minor | v0.107.0 -> v0.108.0 | | cloud.google.com/go/asset | require | minor | v1.10.1 -> v1.11.0 | | cloud.google.com/go/automl | require | minor | v1.8.0 -> v1.9.0 | | cloud.google.com/go/batch | require | minor | v0.5.0 -> v0.6.0 | | cloud.google.com/go/bigquery | require | minor | v1.44.0 -> v1.45.0 | | cloud.google.com/go/cloudtasks | require | minor | v1.8.0 -> v1.9.0 | | cloud.google.com/go/compute | require | minor | v1.14.0 -> v1.15.0 | | cloud.google.com/go/compute/metadata | require | patch | v0.2.2 -> v0.2.3 | | cloud.google.com/go/containeranalysis | require | minor | v0.6.0 -> v0.7.0 | | cloud.google.com/go/datacatalog | require | minor | v1.8.1 -> v1.9.0 | | cloud.google.com/go/dataproc | require | minor | v1.8.0 -> v1.9.0 | | cloud.google.com/go/dialogflow | require | minor | v1.21.0 -> v1.22.0 | | cloud.google.com/go/dlp | require | minor | v1.8.0 -> v1.9.0 | | cloud.google.com/go/functions | require | minor | v1.9.0 -> v1.10.0 | | cloud.google.com/go/iam | require | minor | v0.8.0 -> v0.10.0 | | cloud.google.com/go/kms | require | minor | v1.7.0 -> v1.8.0 | | cloud.google.com/go/language | require | minor | v1.8.0 -> v1.9.0 | | cloud.google.com/go/longrunning | require | minor | v0.3.0 -> v0.4.0 | | cloud.google.com/go/monitoring | require | minor | v1.9.0 -> v1.10.0 | | cloud.google.com/go/secretmanager | require | minor | v1.9.0 -> v1.10.0 | | cloud.google.com/go/securitycenter | require | minor | v1.17.0 -> v1.18.0 | | cloud.google.com/go/servicedirectory | require | minor | v1.7.0 -> v1.8.0 | | cloud.google.com/go/spanner | require | minor | v1.41.0 -> v1.42.0 | | cloud.google.com/go/speech | require | minor | v1.9.0 -> v1.11.0 | | cloud.google.com/go/storagetransfer | require | minor | v1.6.0 -> v1.7.0 | | cloud.google.com/go/talent | require | minor | v1.4.1 -> v1.5.0 | | cloud.google.com/go/texttospeech | require | minor | v1.5.0 -> v1.6.0 | | cloud.google.com/go/translate | require | minor | v1.4.0 -> v1.5.0 | | cloud.google.com/go/video | require | minor | v1.11.0 -> v1.12.0 | | cloud.google.com/go/videointelligence | require | minor | v1.9.0 -> v1.10.0 | | cloud.google.com/go/vision/v2 | require | minor | v2.5.0 -> v2.6.0 | | github.com/GoogleCloudPlatform/golang-samples | require | digest | 33c1a69 -> 08bc985 | | github.com/GoogleCloudPlatform/golang-samples | require | digest | 4c30e84 -> 08bc985 | | github.com/GoogleCloudPlatform/golang-samples/run/grpc-ping | require | digest | 33c1a69 -> 08bc985 | | github.com/GoogleCloudPlatform/golang-samples/run/grpc-server-streaming | require | digest | 33c1a69 -> 08bc985 | | github.com/alicebob/miniredis/v2 | require | minor | v2.23.1 -> v2.30.0 | | github.com/aws/aws-sdk-go | require | patch | v1.44.158 -> v1.44.175 | | github.com/cloudevents/sdk-go/v2 | require | minor | v2.12.0 -> v2.13.0 | | golang.org/x/exp | require | digest | fae10dd -> 4b8118a | | golang.org/x/net | require | minor | v0.4.0 -> v0.5.0 | | golang.org/x/oauth2 | require | minor | v0.3.0 -> v0.4.0 | | golang.org/x/text | require | minor | v0.5.0 -> v0.6.0 | | google.golang.org/api | require | minor | v0.104.0 -> v0.106.0 | | google.golang.org/genproto | require | digest | 23e4bf6 -> a12b697 | | google.golang.org/genproto | require | digest | f9683d7 -> a12b697 |


    Release Notes

    googleapis/google-cloud-go

    v0.108.0

    Compare Source

    Features
    Bug Fixes
    alicebob/miniredis

    v2.30.0

    Compare Source

    • implement redis 7.0.x (from 6.X). Main changes:
      • test against 7.0.7
      • update error messages
      • support nx|xx|gt|lt options in [P]EXPIRE[AT]
      • update how deleted items are processed in pending queues in streams
    aws/aws-sdk-go

    v1.44.175

    Compare Source

    ===

    Service Client Updates
    • service/acm-pca: Updates service API and documentation
    • service/auditmanager: Updates service API and documentation

    v1.44.174

    Compare Source

    ===

    Service Client Updates
    • service/amplifybackend: Updates service API and documentation
    • service/apprunner: Updates service API and documentation
    • service/connect: Updates service API
    • service/emr-serverless: Updates service API and documentation
    • service/lightsail: Updates service documentation
      • Documentation updates for Amazon Lightsail.
    • service/mwaa: Updates service documentation
    • service/rds: Updates service API, documentation, waiters, paginators, and examples
      • This release adds support for specifying which certificate authority (CA) to use for a DB instance's server certificate during DB instance creation, as well as other CA enhancements.

    v1.44.173

    Compare Source

    ===

    Service Client Updates
    • service/application-autoscaling: Updates service API and documentation
    • service/logs: Updates service documentation
      • Update to remove sequenceToken as a required field in PutLogEvents calls.
    • service/ssm: Updates service API and documentation
      • Adding support for QuickSetup Document Type in Systems Manager

    v1.44.172

    Compare Source

    ===

    Service Client Updates
    • service/securitylake: Updates service API and documentation

    v1.44.171

    Compare Source

    ===

    Service Client Updates
    • service/cloudfront: Updates service API and documentation
      • Extend response headers policy to support removing headers from viewer responses
    • service/iotfleetwise: Updates service documentation

    v1.44.170

    Compare Source

    ===

    Service Client Updates
    • service/apigateway: Updates service documentation
      • Documentation updates for Amazon API Gateway
    • service/elasticmapreduce: Updates service API and documentation
      • Added GetClusterSessionCredentials API to allow Amazon SageMaker Studio to connect to EMR on EC2 clusters with runtime roles and AWS Lake Formation-based access control for Apache Spark, Apache Hive, and Presto queries.
    • service/secretsmanager: Updates service API and documentation
      • Added owning service filter, include planned deletion flag, and next rotation date response parameter in ListSecrets.
    • service/wisdom: Updates service API and documentation

    v1.44.169

    Compare Source

    ===

    Service Client Updates
    • service/elasticache: Updates service API and documentation
      • This release allows you to modify the encryption in transit setting, for existing Redis clusters. You can now change the TLS configuration of your Redis clusters without the need to re-build or re-provision the clusters or impact application availability.
    • service/network-firewall: Updates service API and documentation
    • service/rds: Updates service API, documentation, waiters, paginators, and examples
      • This release adds support for Custom Engine Version (CEV) on RDS Custom SQL Server.
    • service/route53-recovery-control-config: Updates service documentation and paginators

    v1.44.168

    Compare Source

    ===

    Service Client Updates
    • service/memorydb: Updates service API, documentation, and paginators
    • service/transfer: Updates service API
      • Add additional operations to throw ThrottlingExceptions

    v1.44.167

    Compare Source

    ===

    Service Client Updates
    • service/connect: Updates service API and documentation
    • service/connectparticipant: Updates service API and documentation
    • service/detective: Updates service API and documentation
    • service/fsx: Updates service API and documentation
    • service/inspector2: Updates service API

    v1.44.166

    Compare Source

    ===

    Service Client Updates
    • service/compute-optimizer: Updates service API, documentation, and paginators
    • service/connect: Updates service API and documentation
    • service/iotdeviceadvisor: Updates service API and documentation
    • service/kinesis-video-webrtc-storage: Updates service API and documentation
    • service/rds: Updates service API, documentation, waiters, paginators, and examples
      • Add support for managing master user password in AWS Secrets Manager for the DBInstance and DBCluster.
    • service/secretsmanager: Updates service documentation
      • Documentation updates for Secrets Manager

    v1.44.165

    Compare Source

    ===

    Service Client Updates
    • service/connect: Updates service API
    • service/connectparticipant: Updates service API
    • service/license-manager-linux-subscriptions: Adds new service
    • service/macie2: Updates service API
    • service/sagemaker: Updates service API and documentation
      • This release enables adding RStudio Workbench support to an existing Amazon SageMaker Studio domain. It allows setting your RStudio on SageMaker environment configuration parameters and also updating the RStudioConnectUrl and RStudioPackageManagerUrl parameters for existing domains
    • service/scheduler: Updates service API
    • service/ssm: Updates service documentation
      • Doc-only updates for December 2022.
    • service/support: Updates service documentation
      • Documentation updates for the AWS Support API
    • service/transfer: Updates service API and documentation
      • This release adds support for Decrypt as a workflow step type.

    v1.44.164

    Compare Source

    ===

    Service Client Updates
    • service/batch: Updates service API and documentation
      • Adds isCancelled and isTerminated to DescribeJobs response.
    • service/ec2: Updates service API, documentation, and paginators
      • Adds support for pagination in the EC2 DescribeImages API.
    • service/lookoutequipment: Updates service API and documentation
    • service/medialive: Updates service API and documentation
      • This release adds support for two new features to AWS Elemental MediaLive. First, you can now burn-in timecodes to your MediaLive outputs. Second, we now now support the ability to decode Dolby E audio when it comes in on an input.
    • service/nimble: Updates service API, documentation, and paginators
    • service/resource-explorer-2: Updates service documentation
    • service/route53domains: Updates service API and documentation
      • Use Route 53 domain APIs to change owner, create/delete DS record, modify IPS tag, resend authorization. New: AssociateDelegationSignerToDomain, DisassociateDelegationSignerFromDomain, PushDomain, ResendOperationAuthorization. Updated: UpdateDomainContact, ListOperations, CheckDomainTransferability.
    • service/sagemaker: Updates service API and documentation
      • Amazon SageMaker Autopilot adds support for new objective metrics in CreateAutoMLJob API.
    • service/transcribe: Updates service API

    v1.44.163

    Compare Source

    ===

    Service Client Updates
    • service/athena: Updates service API and documentation
      • Add missed InvalidRequestException in GetCalculationExecutionCode,StopCalculationExecution APIs. Correct required parameters (Payload and Type) in UpdateNotebook API. Change Notebook size from 15 Mb to 10 Mb.
    • service/ecs: Updates service API and documentation
      • This release adds support for alarm-based rollbacks in ECS, a new feature that allows customers to add automated safeguards for Amazon ECS service rolling updates.
    • service/kinesis-video-webrtc-storage: Adds new service
    • service/kinesisvideo: Updates service API, documentation, and paginators
      • Amazon Kinesis Video Streams offers capabilities to stream video and audio in real-time via WebRTC to the cloud for storage, playback, and analytical processing. Customers can use our enhanced WebRTC SDK and cloud APIs to enable real-time streaming, as well as media ingestion to the cloud.
    • service/rds: Updates service API, documentation, waiters, paginators, and examples
      • Add support for --enable-customer-owned-ip to RDS create-db-instance-read-replica API for RDS on Outposts.
    • service/sagemaker: Updates service API, documentation, and paginators
      • AWS Sagemaker - Sagemaker Images now supports Aliases as secondary identifiers for ImageVersions. SageMaker Images now supports additional metadata for ImageVersions for better images management.

    v1.44.162

    Compare Source

    ===

    Service Client Updates
    • service/appflow: Updates service API and documentation
    • service/cloudfront: Updates service documentation
      • Updated documentation for CloudFront
    • service/datasync: Updates service API and documentation
    • service/elasticfilesystem: Updates service documentation
      • General documentation updates for EFS.
    • service/guardduty: Updates service documentation
      • This release provides the valid characters for the Description and Name field.
    • service/iotfleetwise: Updates service API
    • service/sagemaker: Updates service API and documentation
      • AWS sagemaker - Features: This release adds support for random seed, it's an integer value used to initialize a pseudo-random number generator. Setting a random seed will allow the hyperparameter tuning search strategies to produce more consistent configurations for the same tuning job.

    v1.44.161

    Compare Source

    ===

    Service Client Updates
    • service/backup-gateway: Updates service API and documentation
    • service/connect: Updates service API and documentation
    • service/ecs: Updates service API and documentation
      • This release adds support for container port ranges in ECS, a new capability that allows customers to provide container port ranges to simplify use cases where multiple ports are in use in a container. This release updates TaskDefinition mutation APIs and the Task description APIs.
    • service/eks: Updates service API and documentation
    • service/glue: Updates service API and documentation
      • This release adds support for AWS Glue Crawler with native DeltaLake tables, allowing Crawlers to classify Delta Lake format tables and catalog them for query engines to query against.
    • service/kinesis: Updates service API, documentation, and paginators
      • Added StreamARN parameter for Kinesis Data Streams APIs. Added a new opaque pagination token for ListStreams. SDKs will auto-generate Account Endpoint when accessing Kinesis Data Streams.
    • service/location: Updates service documentation
    • service/m2: Updates service API and documentation
    • service/sagemaker: Updates service API and documentation
      • SageMaker Inference Recommender now allows customers to load tests their models on various instance types using private VPC.
    • service/securityhub: Updates service API and documentation
    • service/translate: Updates service API and documentation

    v1.44.160

    Compare Source

    ===

    Service Client Updates
    • service/ce: Updates service API and documentation
    • service/monitoring: Updates service API and documentation
      • Adding support for Metrics Insights Alarms
    • service/networkmanager: Updates service API and documentation
    • service/redshift-data: Updates service API and documentation
    • service/sagemaker-metrics: Updates service documentation

    v1.44.159

    Compare Source

    ===

    Service Client Updates
    • service/cloudtrail: Updates service API and documentation
      • Merging mainline branch for service model into mainline release branch. There are no new APIs.
    • service/rds: Updates service API, documentation, waiters, paginators, and examples
      • This deployment adds ClientPasswordAuthType field to the Auth structure of the DBProxy.
    cloudevents/sdk-go

    v2.13.0

    Compare Source

    What's Changed
    New Contributors

    Full Changelog: https://github.com/cloudevents/sdk-go/compare/v2.12.0...v2.13.0

    golang/net

    v0.5.0

    Compare Source

    golang/oauth2

    v0.4.0

    Compare Source

    golang/text

    v0.6.0

    Compare Source

    googleapis/google-api-go-client

    v0.106.0

    Compare Source

    Features
    Bug Fixes

    v0.105.0

    Compare Source

    Features

    Configuration

    📅 Schedule: Branch creation - "before 3am on Monday" (UTC), Automerge - At any time (no schedule defined).

    🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

    Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


    • [ ] If you want to rebase/retry this PR, check this box

    This PR has been generated by Mend Renovate. View repository job log here.

  • chore(functions/v2): migrate CORS sample to gen2

    chore(functions/v2): migrate CORS sample to gen2

    Migrate https://cloud.google.com/functions/docs/samples/functions-http-cors#functions_http_cors-go example to gen2 signature using functions framework.

    Tested, executes successfully with the command:

    curl -m 70 -X POST https://garethgeorge-http-function-go-sehddnhvmq-uc.a.run.app \
    -H "Authorization: bearer $(gcloud auth print-identity-token)" \
    -H "Content-Type: application/json" \
    -d '{
      "name": "Hello World"
    }'
    
  • chore(functions/file_system): Update file_system sample to use gen2 signature

    chore(functions/file_system): Update file_system sample to use gen2 signature

    Migrate https://cloud.google.com/functions/docs/samples/functions-concepts-filesystem go sample to use functions framework.

    Tested by:

    • Running local test
    • Deploying and invoking function using curl stdout:
    Screen Shot 2022-12-16 at 10 56 03 AM
A Cloud Foundry cli plugin that offers a faster and customizable alternative for cf apps

Panzer cf cli plugin A plugin for faster interaction (less API calls) with Cloud Foundry, and choose the columns you want in your output. Instead of "

Feb 14, 2022
☁️🏃 Get up and running with Go on Google Cloud.

Get up and running with Go and gRPC on Google Cloud Platform, with this lightweight, opinionated, batteries-included service SDK.

Dec 20, 2022
Use Google Cloud KMS as an io.Reader and rand.Source.

Google Cloud KMS Go io.Reader and rand.Source This package provides a struct that implements Go's io.Reader and math/rand.Source interfaces, using Goo

Dec 1, 2022
Google Cloud Client Libraries for Go.
Google Cloud Client Libraries for Go.

Google Cloud Client Libraries for Go.

Jan 8, 2023
GoDrive: A cloud storage system similar to Dropbox or Google Drive, with resilient
GoDrive: A cloud storage system similar to Dropbox or Google Drive, with resilient

Cloud Storage Service Author: Marisa Tania, Ryan Tjakrakartadinata Professor: Matthew Malensek See project spec here: https://www.cs.usfca.edu/~mmalen

Dec 7, 2021
TurtleDex is a decentralized cloud storage platform that radically alters the landscape of cloud storage.

TurtleDex is a decentralized cloud storage platform that radically alters the landscape of cloud storage. By leveraging smart contracts, client-side e

Feb 17, 2021
Cloudpods is a cloud-native open source unified multi/hybrid-cloud platform developed with Golang
Cloudpods is a cloud-native open source unified multi/hybrid-cloud platform developed with Golang

Cloudpods is a cloud-native open source unified multi/hybrid-cloud platform developed with Golang, i.e. Cloudpods is a cloud on clouds. Cloudpods is able to manage not only on-premise KVM/baremetals, but also resources from many cloud accounts across many cloud providers. It hides the differences of underlying cloud providers and exposes one set of APIs that allow programatically interacting with these many clouds.

Jan 11, 2022
AWS SDK for the Go programming language.

AWS SDK for Go aws-sdk-go is the official AWS SDK for the Go programming language. Checkout our release notes for information about the latest bug fix

Jan 1, 2023
Go language interface to Swift / Openstack Object Storage / Rackspace cloud files (golang)

Swift This package provides an easy to use library for interfacing with Swift / Openstack Object Storage / Rackspace cloud files from the Go Language

Nov 9, 2022
Cloud cost estimates for Terraform in your CLI and pull requests 💰📉
Cloud cost estimates for Terraform in your CLI and pull requests 💰📉

Infracost shows cloud cost estimates for Terraform projects. It helps developers, devops and others to quickly see the cost breakdown and compare different options upfront.

Jan 2, 2023
Fleex allows you to create multiple VPS on cloud providers and use them to distribute your workload.
Fleex allows you to create multiple VPS on cloud providers and use them to distribute your workload.

Fleex allows you to create multiple VPS on cloud providers and use them to distribute your workload. Run tools like masscan, puredns, ffuf, httpx or anything you need and get results quickly!

Jan 6, 2023
Elkeid is a Cloud-Native Host-Based Intrusion Detection solution project to provide next-generation Threat Detection and Behavior Audition with modern architecture.
Elkeid is a Cloud-Native Host-Based Intrusion Detection solution project to provide next-generation Threat Detection and Behavior Audition with modern architecture.

Elkeid is a Cloud-Native Host-Based Intrusion Detection solution project to provide next-generation Threat Detection and Behavior Audition with modern architecture.

Dec 30, 2022
A Cloud Native Buildpack that contributes SDKMAN and uses it to install dependencies like the Java Virtual Machine

gcr.io/paketo-buildpacks/sdkman A Cloud Native Buildpack that contributes SDKMAN and uses it to install dependencies like the Java Virtual Machine. Be

Jan 8, 2022
Lightweight Cloud Instance Contextualizer
Lightweight Cloud Instance Contextualizer

Flamingo Flamingo is a lightweight contextualization tool that aims to handle initialization of cloud instances. It is meant to be a replacement for c

Jun 18, 2022
The extensible SQL interface to your favorite cloud APIs.
The extensible SQL interface to your favorite cloud APIs.

The extensible SQL interface to your favorite cloud APIs.

Jan 4, 2023
Terraform provider for HashiCorp Cloud Platform.

HashiCorp Cloud Platform (HCP) Terraform Provider Requirements Terraform >= 0.12.x Go >= 1.14 Building The Provider Clone the repository Enter the rep

Dec 25, 2022
The Cloud Posse Terraform Provider for various utilities (E.g. deep merging)
The Cloud Posse Terraform Provider for various utilities (E.g. deep merging)

terraform-provider-utils Terraform provider to add additional missing functionality to Terraform This project is part of our comprehensive "SweetOps"

Jan 7, 2023
Cloud-native way to provide elastic Jupyter Notebook services on Kubernetes
Cloud-native way to provide elastic Jupyter Notebook services on Kubernetes

elastic-jupyter-operator: Elastic Jupyter on Kubernetes Kubernetes 原生的弹性 Jupyter 即服务 介绍 为用户按需提供弹性的 Jupyter Notebook 服务。elastic-jupyter-operator 提供以下特性

Dec 29, 2022
A Cloud Native Buildpack for Go

The Go Paketo Buildpack provides a set of collaborating buildpacks that enable the building of a Go-based application.

Dec 14, 2022