Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GoogleCloudPlatform/golang-samples
/ functions
Functions
5,023 in github.com/GoogleCloudPlatform/golang-samples
⨍
Functions
5,023
◇
Types & classes
329
↓ 1 callers
Function
stagesExpressionsExample
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_general.go:1524
↓ 1 callers
Function
startInstance
startInstance starts a stopped Google Compute Engine instance (with unencrypted disks).
compute/start_instance.go:28
↓ 1 callers
Function
startInstanceWithEncKey
startInstanceWithEncKey starts a stopped Google Compute Engine instance (with encrypted disks).
compute/start_instance_with_enc_key.go:29
↓ 1 callers
Function
startReplication
startReplication starts disk replication in a project for a given zone.
compute/disks/start_replication.go:28
↓ 1 callers
Function
startsWithFunction
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_string.go:63
↓ 1 callers
Function
startup
()
testing/gimmeproj/main.go:97
↓ 1 callers
Function
status
(ctx context.Context)
testing/gimmeproj/main.go:270
↓ 1 callers
Function
stopConnector
(w io.Writer, projectID, region, connectClusterID, connectorID string, opts ...option.ClientOption)
managedkafka/connect/connectors/stop_connector.go:29
↓ 1 callers
Function
stopReplication
stopReplication stops primary disk replication in a project for a given zone.
compute/disks/stop_replication.go:28
↓ 1 callers
Function
stopReplicationConsistencyGroup
stopReplicationConsistencyGroup stop replication for a consistency group for a project in a given region.
compute/disks/consistency_group_stop_replication.go:29
↓ 1 callers
Function
stopReplicationRegional
(projectID, primaryDiskName, primaryRegion string)
compute/disks/disks_test.go:258
↓ 1 callers
Function
storeVectors
(w io.Writer, projectID string)
firestore/vector_store.go:33
↓ 1 callers
Function
strConcatFunction
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_string.go:196
↓ 1 callers
Function
strContainsFunction
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_string.go:215
↓ 1 callers
Function
strIndexOfFunction
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_string.go:425
↓ 1 callers
Function
strLTrimFunction
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_string.go:330
↓ 1 callers
Function
strRTrimFunction
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_string.go:349
↓ 1 callers
Function
strRepeatFunction
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_string.go:368
↓ 1 callers
Function
strReplaceAllFunction
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_string.go:387
↓ 1 callers
Function
strReplaceOneFunction
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_string.go:406
↓ 1 callers
Function
strReverseFunction
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_string.go:292
↓ 1 callers
Function
strTrimFunction
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_string.go:311
↓ 1 callers
Function
streamTime
(client pb.TimeServiceClient, duration uint)
run/grpc-server-streaming/client/client.go:78
↓ 1 callers
Function
streamingAndBatching
streamingAndBatching starts a stream of data (reading rows), batches them, and then goes through the batch and deletes all the cells in column
bigtable/deletes/delete_streaming_batching.go:28
↓ 1 callers
Function
subcollectionInputExample
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_general.go:1286
↓ 1 callers
Function
subcollectionInputExampleData
(_ io.Writer, client *firestore.Client)
firestore/pipeline_snippets_general.go:1263
↓ 1 callers
Function
submain
()
testing/gimmeproj/main.go:123
↓ 1 callers
Function
submitJob
(w io.Writer, projectID, region, clusterName string)
dataproc/submit_job.go:33
↓ 1 callers
Function
subscribeOpenTelemetryTracing
(w io.Writer, projectID, subID string, sampleRate float64)
pubsub/v1samples/subscriptions/pull_otel_tracing.go:34
↓ 1 callers
Function
subscribeOpenTelemetryTracing
(w io.Writer, projectID, subID string, sampleRate float64)
pubsub/subscriptions/pull_otel_tracing.go:34
↓ 1 callers
Function
subscribeWithAvroSchema
(w io.Writer, projectID, subID, avscFile string)
pubsub/v1samples/schemas/subscribe_avro_records.go:30
↓ 1 callers
Function
subscribeWithAvroSchema
(w io.Writer, projectID, subID, avscFile string)
pubsub/schemas/subscribe_avro_records.go:30
↓ 1 callers
Function
subscribeWithAvroSchemaRevisions
(w io.Writer, projectID, subID, avscFile string)
pubsub/v1samples/schemas/subscribe_with_avro_schema_revisions.go:30
↓ 1 callers
Function
subscribeWithAvroSchemaRevisions
(w io.Writer, projectID, subID string)
pubsub/schemas/subscribe_with_avro_schema_revisions.go:31
↓ 1 callers
Function
subscribeWithProtoSchema
(w io.Writer, projectID, subID, protoFile string)
pubsub/v1samples/schemas/subscribe_proto_messages.go:31
↓ 1 callers
Function
subscribeWithProtoSchema
(w io.Writer, projectID, subID string)
pubsub/schemas/subscribe_proto_messages.go:31
↓ 1 callers
Function
substrFunction
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_string.go:272
↓ 1 callers
Function
subtractFunction
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_arithmetic.go:44
↓ 1 callers
Function
sumFunction
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_array.go:25
↓ 1 callers
Function
suspendInstance
suspendInstance suspends a running Google Compute Engine instance.
compute/instances/suspend-resume/suspend.go:28
↓ 1 callers
Function
syncWords
[END speech_transcribe_async_word_time_offsets_gcs]
speech/wordoffset/wordoffset.go:113
↓ 1 callers
Function
tableLabels
tableLabels demonstrates fetching metadata from a table and printing the Label metadata to an io.Writer.
bigquery/snippets/table/bigquery_get_table_labels.go:27
↓ 1 callers
Function
tailLogs
tailLogs creates a channel to stream log entries that were recently ingested for a project
logging/taillogs/taillogs.go:28
↓ 1 callers
Function
teardown
(t *testing.T, projectID string)
dataproc/quickstart/quickstart_test.go:82
↓ 1 callers
Function
teardownCreateDataset
(output string, t *testing.T)
aiplatform/snippets/create_dataset_test.go:51
↓ 1 callers
Function
testCastVote
(t *testing.T)
cloudsql/sqlserver/database-sql/cloudsql_test.go:121
↓ 1 callers
Function
testCastVote
(t *testing.T)
cloudsql/postgres/database-sql/cloudsql_test.go:134
↓ 1 callers
Function
testCastVote
(t *testing.T)
cloudsql/mysql/database-sql/cloudsql_test.go:134
↓ 1 callers
Function
testCleanupSecret
testCleanupSecret deletes the specified secret in the GCP project. It fails the test if the secret deletion fails.
parametermanager/parametermanager_test.go:363
↓ 1 callers
Function
testCleanupSecret
testCleanupSecret deletes the specified secret in the GCP project. It fails the test if the secret deletion fails.
parametermanager/regional_samples/regional_parametermanager_test.go:299
↓ 1 callers
Function
testCleanupTagKey
(tb testing.TB, tagKeyName string)
secretmanager/secretmanager_test.go:1566
↓ 1 callers
Function
testCleanupTagKey
(tb testing.TB, tagKeyName string)
secretmanager/regional_samples/regional_secretmanager_test.go:324
↓ 1 callers
Function
testCleanupTagValue
Polling to clean up the tag value because, after deleting a secret, it takes some time for the tag value to become unbound.
secretmanager/secretmanager_test.go:1586
↓ 1 callers
Function
testCleanupTagValue
Polling to clean up the tag value because, after deleting a secret, it takes some time for the tag value to become unbound.
secretmanager/regional_samples/regional_secretmanager_test.go:344
↓ 1 callers
Function
testCreateTagKey
(tb testing.TB, projectID string)
secretmanager/secretmanager_test.go:1513
↓ 1 callers
Function
testCreateTagKey
(tb testing.TB, projectID string)
secretmanager/regional_samples/regional_secretmanager_test.go:409
↓ 1 callers
Function
testCreateTagValue
(tb testing.TB, tagKeyId string)
secretmanager/secretmanager_test.go:1540
↓ 1 callers
Function
testCreateTagValue
(tb testing.TB, tagKeyId string)
secretmanager/regional_samples/regional_secretmanager_test.go:436
↓ 1 callers
Function
testDeleteReceiveService
testDeleteReceiveService deletes a deployed project in CloudRun with the given serviceName and projectID.
run/service-auth/receive_test.go:169
↓ 1 callers
Function
testDeployReceiveService
testDeployReceiveService deploys current source code to CloudRun.
run/service-auth/receive_test.go:139
↓ 1 callers
Function
testGenerateServiceID
testGenerateServiceID produces an unique ID.
run/service-auth/receive_test.go:193
↓ 1 callers
Function
testGetGCPAuthToken
testGetGCPAuthToken returns an access token with specified audience.
run/service-auth/receive_test.go:95
↓ 1 callers
Function
testGetProjectNumber
testGetProjectNumber returns formatted Project Number with given projectID.
run/service-auth/receive_test.go:117
↓ 1 callers
Function
testGetVotes
(t *testing.T)
cloudsql/sqlserver/database-sql/cloudsql_test.go:103
↓ 1 callers
Function
testGetVotes
(t *testing.T)
cloudsql/postgres/database-sql/cloudsql_test.go:116
↓ 1 callers
Function
testGetVotes
(t *testing.T)
cloudsql/mysql/database-sql/cloudsql_test.go:116
↓ 1 callers
Function
testIam
testIam demonstrates how to determine if your service user has appropriate access to create and update findings, it writes permissions to w. sourceNam
securitycenter/findings/test_iam.go:30
↓ 1 callers
Function
testIam
testIam demonstrates how to determine if your service user has appropriate access to create and update findings, it writes permissions to w. sourceNam
securitycenter/iamv2/test_iam_permissions.go:30
↓ 1 callers
Function
testIamGrantAccess
testIamGrantAccess grants the specified member access permissions to the secret.
parametermanager/parametermanager_test.go:337
↓ 1 callers
Function
testIamGrantAccess
testIamGrantAccess grants the specified member access permissions to the secret.
parametermanager/regional_samples/regional_parametermanager_test.go:269
↓ 1 callers
Function
testJobFromAdHoc
testJobFromAdHoc tests major operations on a job created from an ad-hoc configuration. It will wait until the job successfully completes as part of th
media/transcoder/transcoder_test.go:473
↓ 1 callers
Function
testJobFromPreset
testJobFromPreset tests major operations on a job created from a preset. It will wait until the job successfully completes as part of the test.
media/transcoder/transcoder_test.go:256
↓ 1 callers
Function
testJobFromPresetBatchMode
testJobFromPresetBatchMode tests major operations on a job created from a preset in batch mode. It will wait until the job successfully completes as p
media/transcoder/transcoder_test.go:330
↓ 1 callers
Function
testJobFromTemplate
testJobFromTemplate tests major operations on a job created from a template. It will wait until the job successfully completes as part of the test.
media/transcoder/transcoder_test.go:403
↓ 1 callers
Function
testJobTemplates
testJobTemplates tests major operations on job templates. Create, get, and list operations check if the template resource name is returned. The delete
media/transcoder/transcoder_test.go:137
↓ 1 callers
Function
testJobWithAnimatedOverlay
testJobWithAnimatedOverlay tests major operations on a job created from an ad-hoc configuration that includes an animated overlay. It will wait until
media/transcoder/transcoder_test.go:597
↓ 1 callers
Function
testJobWithConcatenatedInputs
testJobWithConcatenatedInputs tests major operations on a job created from an ad-hoc configuration that concatenates two inputs videos. It will wait u
media/transcoder/transcoder_test.go:786
↓ 1 callers
Function
testJobWithEmbeddedCaptions
testJobWithEmbeddedCaptions tests major operations on a job created from an ad-hoc configuration that embeds captions in the output video. It will wai
media/transcoder/transcoder_test.go:848
↓ 1 callers
Function
testJobWithPeriodicImagesSpritesheet
testJobWithPeriodicImagesSpritesheet tests major operations on a job created from an ad-hoc configuration that generates two spritesheets. It will wai
media/transcoder/transcoder_test.go:721
↓ 1 callers
Function
testJobWithSetNumberImagesSpritesheet
testJobWithSetNumberImagesSpritesheet tests major operations on a job created from an ad-hoc configuration that generates two spritesheets. It will wa
media/transcoder/transcoder_test.go:659
↓ 1 callers
Function
testJobWithStandaloneCaptions
testJobWithStandaloneCaptions tests major operations on a job created from an ad-hoc configuration that can use captions from a standalone file. It wi
media/transcoder/transcoder_test.go:910
↓ 1 callers
Function
testJobWithStaticOverlay
testJobWithStaticOverlay tests major operations on a job created from an ad-hoc configuration that includes a static overlay. It will wait until the j
media/transcoder/transcoder_test.go:535
↓ 1 callers
Function
testMain
(m *testing.M)
datastore/snippets/query_test.go:45
↓ 1 callers
Function
testName
(tb testing.TB)
secretmanager/regional_samples/regional_secretmanager_test.go:69
↓ 1 callers
Function
testPermissions
(w io.Writer, projectID, topicID string)
pubsub/topics/test_permissions.go:27
↓ 1 callers
Function
testPermissions
(w io.Writer, projectID, topicID string)
pubsub/v1samples/topics/test_permissions.go:26
↓ 1 callers
Function
testPermissions
(w io.Writer, projectID, subID string)
pubsub/v1samples/subscriptions/test_permissions.go:26
↓ 1 callers
Function
testPermissions
(w io.Writer, projectID, subID string)
pubsub/subscriptions/test_permissions.go:27
↓ 1 callers
Function
testQueryFilterOrCleanup
(projectID string, refs []*firestore.DocumentRef)
firestore/query_filter_or_test.go:60
↓ 1 callers
Function
testQueryFilterOrSetup
(projectID string)
firestore/query_filter_or_test.go:26
↓ 1 callers
Function
testSecret
testSecret creates a secret in the specified GCP project. It returns the created secret or fails the test if secret creation fails.
parametermanager/parametermanager_test.go:284
↓ 1 callers
Function
testSecret
testSecret creates a secret in the specified GCP project. It returns the created secret or fails the test if secret creation fails.
parametermanager/regional_samples/regional_parametermanager_test.go:215
↓ 1 callers
Function
testSecretVersion
testSecretVersion creates a version of a secret with the given payload in the specified GCP project. It returns the created secret version or fails th
parametermanager/parametermanager_test.go:315
↓ 1 callers
Function
testSecretVersion
testSecretVersion creates a version of a secret with the given payload in the specified GCP project. It returns the created secret version or fails th
parametermanager/regional_samples/regional_parametermanager_test.go:243
↓ 1 callers
Function
textDetection
textDetection analyzes a video and extracts the text from the video's audio.
videointelligence/annotate/text_detection.go:32
↓ 1 callers
Function
textDetectionGCS
textDetectionGCS analyzes a video and extracts the text from the video's audio.
videointelligence/annotate/text_detection_gcs.go:31
↓ 1 callers
Function
timestampAddFunction
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_date_timestamp.go:82
↓ 1 callers
Function
timestampSubFunction
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_date_timestamp.go:101
↓ 1 callers
Function
timestampToUnixMicrosFunction
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_date_timestamp.go:120
↓ 1 callers
Function
timestampToUnixMillisFunction
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_date_timestamp.go:139
← previous
next →
2,501–2,600 of 5,023, ranked by callers