MCPcopy Create free account

hub / github.com/GoogleCloudPlatform/golang-samples / functions

Functions5,023 in github.com/GoogleCloudPlatform/golang-samples

↓ 1 callersMethodSend
(*TimeResponse)
run/grpc-server-streaming/pkg/api/v1/timeservice.pb.go:212
↓ 1 callersFunctionSimulateClient
SimulateClient creates a client which will send load to the server.
profiler/shakesapp/shakesapp/client.go:38
↓ 1 callersMethodStopConnector
(ctx context.Context, req *managedkafkapb.StopConnectorRequest)
internal/managedkafka/fake/fake.go:270
↓ 1 callersFunctionTranslateText
TranslateText is executed when a message is published to the Cloud Pub/Sub topic specified by the TRANSLATE_TOPIC environment variable, and translates
functions/ocr/app/translate.go:32
↓ 1 callersFunctionTranslateText
TranslateText is executed when a message is published to the Cloud Pub/Sub topic specified by the TRANSLATE_TOPIC environment variable, and translates
functions/functionsv2/ocr/app/translate.go:38
↓ 1 callersMethodUpdateCluster
(ctx context.Context, req *managedkafkapb.UpdateClusterRequest)
internal/managedkafka/fake/fake.go:111
↓ 1 callersMethodUpdateConnectCluster
(ctx context.Context, req *managedkafkapb.UpdateConnectClusterRequest)
internal/managedkafka/fake/fake.go:215
↓ 1 callersMethodUpdateConnector
(ctx context.Context, req *managedkafkapb.UpdateConnectorRequest)
internal/managedkafka/fake/fake.go:254
↓ 1 callersMethodUpdateConsumerGroup
(ctx context.Context, req *managedkafkapb.UpdateConsumerGroupRequest)
internal/managedkafka/fake/fake.go:171
↓ 1 callersFunctionUploadFile
UploadFile processes a 'multipart/form-data' upload request.
functions/http/form.go:29
↓ 1 callersMethodValidate
Validate confirms all environment variables are valid.
internal/cloudrunci/envvars.go:61
↓ 1 callersFunctionWithAttempts
(n int)
internal/cloudrunci/cloudrunci.go:160
↓ 1 callersFunctionWithDelay
(d time.Duration)
internal/cloudrunci/cloudrunci.go:165
↓ 1 callersFunctionWordCountFromPCol
WordCountFromPCol counts the words from a PCollection and validates it.
dataflow/flex-templates/wordcount/wordcount.go:109
↓ 1 callersFunction_deleteGlobalIPAddress
(ctx context.Context, projectID, addressName string)
compute/address/address_test.go:216
↓ 1 callersFunction_deleteRegionalIPAddress
(ctx context.Context, projectID, region, addressName string)
compute/address/address_test.go:240
↓ 1 callersFunction_listGlobalIPAddresses
(ctx context.Context, projectID string)
compute/address/address_test.go:153
↓ 1 callersFunction_listRegionalIPAddresses
(ctx context.Context, projectID, region string)
compute/address/address_test.go:180
↓ 1 callersFunctionaccessSecretVersion
accessSecretVersion accesses the payload for the given secret version if one exists. The version can be a version number as a string (e.g. "5") or an
secretmanager/access_secret_version.go:31
↓ 1 callersFunctionactivateHMACKey
activateHMACKey activates the HMAC key with the given access ID.
storage/service_account/hmac/activate.go:28
↓ 1 callersFunctionaddBinding
addBinding adds the principal to the project's IAM policy
iam/quickstart/quickstart.go:70
↓ 1 callersFunctionaddBucketConditionalIAMBinding
addBucketConditionalIAMBinding adds bucket conditional IAM binding.
storage/buckets/add_bucket_conditional_iam_binding.go:30
↓ 1 callersFunctionaddBucketDefaultOwner
addBucketDefaultOwner adds default ACL to the specified bucket.
storage/acl/add_bucket_default_owner.go:26
↓ 1 callersFunctionaddBucketIAMMember
addBucketIAMMember adds the bucket IAM member to permission role.
storage/buckets/add_bucket_iam_member.go:29
↓ 1 callersFunctionaddBucketLabel
addBucketLabel adds a label on a bucket.
storage/buckets/add_bucket_label.go:28
↓ 1 callersFunctionaddCustomModule
addCustomModule creates a custom module for testing purposes
securitycenter/management_api/event_threat_detection/event_threat_detection_custom_module_test.go:158
↓ 1 callersFunctionaddDeleteSecurityMarks
addDeleteSecurityMarks adds/updates "key_a" and deletes "key_b" from assetName's securityMarks. assetName is the resource path for an asset.
securitycenter/securitymarksv2/add_delete_security_marks.go:30
↓ 1 callersFunctionaddDeleteSecurityMarks
addDeleteSecurityMarks adds/updates "key_a" and deletes "key_b" from assetName's securityMarks. assetName is the resource path for an asset.
securitycenter/assets/add_delete_security_marks.go:30
↓ 1 callersFunctionaddDocAfterAutoGeneratedID
(ctx context.Context, client *firestore.Client)
firestore/save_data_set_id_random_document_ref.go:26
↓ 1 callersFunctionaddDocAsEntity
(ctx context.Context, client *firestore.Client)
firestore/save_data_set_from_custom_type.go:26
↓ 1 callersFunctionaddDocAsMap
(ctx context.Context, client *firestore.Client)
firestore/save_data_set_from_map.go:26
↓ 1 callersFunctionaddDocDataTypes
(ctx context.Context, client *firestore.Client)
firestore/save_data_set_from_map_nested.go:27
↓ 1 callersFunctionaddDocWithID
(ctx context.Context, client *firestore.Client)
firestore/save_data_set_id_specified.go:26
↓ 1 callersFunctionaddDocWithoutID
(ctx context.Context, client *firestore.Client)
firestore/save_data_set_id_random_collection.go:26
↓ 1 callersFunctionaddFieldsNestingExample
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_general.go:636
↓ 1 callersFunctionaddFieldsOverlapExample
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_general.go:619
↓ 1 callersFunctionaddFieldsSyntaxExample
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_general.go:601
↓ 1 callersFunctionaddFileOwner
addFileOwner adds ACL to the specified object.
storage/acl/add_file_owner.go:26
↓ 1 callersFunctionaddFunction
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_arithmetic.go:25
↓ 1 callersFunctionaddMember
addMember adds a member to a role binding.
iam/snippets/member_add.go:26
↓ 1 callersFunctionaddRotationSchedule
addRotationSchedule updates a key to add a rotation schedule. If the key already has a rotation schedule, it is overwritten.
kms/update_key_add_rotation.go:33
↓ 1 callersFunctionaddSecretVersion
addSecretVersion adds a new secret version to the given secret with the provided payload.
secretmanager/add_secret_version.go:30
↓ 1 callersFunctionaddTableLabel
addTableLabel demonstrates adding Label metadata to a BigQuery table.
bigquery/snippets/table/bigquery_label_table.go:26
↓ 1 callersFunctionaddToPool
(ctx context.Context, proj string)
testing/gimmeproj/main.go:294
↓ 1 callersFunctionaddUsers
(projectID, topicID string)
pubsub/v1samples/topics/add_users.go:26
↓ 1 callersFunctionaddUsers
addUsers adds all IAM users to a subscription.
pubsub/v1samples/subscriptions/add_users.go:27
↓ 1 callersFunctionaddUsersToSubscription
(w io.Writer, projectID, subID string)
pubsub/subscriptions/add_users.go:27
↓ 1 callersFunctionaddUsersToTopic
(w io.Writer, projectID, topicID string)
pubsub/topics/add_users.go:27
↓ 1 callersFunctionaggregateDistinct
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_general.go:223
↓ 1 callersFunctionaggregateExampleData
(_ io.Writer, client *firestore.Client)
firestore/pipeline_snippets_general.go:283
↓ 1 callersFunctionaggregateGroupComplexExample
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_general.go:361
↓ 1 callersFunctionaggregateGroupExample
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_general.go:339
↓ 1 callersFunctionaggregateGroupSyntax
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_general.go:262
↓ 1 callersFunctionaggregateGroups
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_general.go:203
↓ 1 callersFunctionaggregateSyntaxExample
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_general.go:243
↓ 1 callersFunctionaggregateWithoutGroupExample
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_general.go:320
↓ 1 callersFunctionaggregationQueryExplain
(w io.Writer, projectID string)
firestore/aggregate_query_explain.go:26
↓ 1 callersFunctionaggregationQueryExplainAnalyze
(w io.Writer, projectID string)
firestore/aggregate_query_explain_analyze.go:27
↓ 1 callersFunctionallDocs
(ctx context.Context, client *firestore.Client)
firestore/retrieve_data_get_all_documents.go:27
↓ 1 callersFunctionallocImpl
()
profiler/hotapp/main.go:79
↓ 1 callersFunctionallocMany
allocMany simulates a function which allocates a lot of memory, but does not hold on to that memory.
profiler/hotapp/main.go:88
↓ 1 callersFunctionallocOnce
Simulates a memory-hungry function. It calls an "impl" function to produce a bit deeper stacks in the profiler visualization, merely for illustration
profiler/hotapp/main.go:75
↓ 1 callersFunctionanalyzeEntities
analyzeEntities sends a string of text to the Cloud Natural Language API to detect the entities of the text.
language/analyze_v2/analyze_entities.go:29
↓ 1 callersFunctionanalyzeOrgPolicies
(w io.Writer, scope string, constraint string)
asset/quickstart/analyze-org-policies/analyze_org_policies.go:30
↓ 1 callersFunctionanalyzeOrgPolicyGovernedAssets
(w io.Writer, scope string, constraint string)
asset/quickstart/analyze-org-policy-governed-assets/analyze_org_policy_governed_assets.go:30
↓ 1 callersFunctionanalyzeOrgPolicyGovernedContainers
(w io.Writer, scope string, constraint string)
asset/quickstart/analyze-org-policy-governed-containers/analyze_org_policy_governed_containers.go:30
↓ 1 callersFunctionanalyzeSentiment
analyzeSentiment sends a string of text to the Cloud Natural Language API to assess the sentiment of the text.
language/analyze_v2/analyze_sentiment.go:29
↓ 1 callersFunctionandFunction
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_logical.go:44
↓ 1 callersFunctionappendToDefaultStream
appendToDefaultStream demonstrates using the managedwriter package to write some example data to a default stream.
bigquery/snippets/managedwriter/bigquerystorage_append_rows_default.go:107
↓ 1 callersFunctionappendToPendingStream
appendToPendingStream demonstrates using the managedwriter package to write some example data to a pending stream, and then committing it to a table.
bigquery/snippets/managedwriter/bigquerystorage_append_rows_pending.go:105
↓ 1 callersFunctionarrayConcatFunction
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_array.go:82
↓ 1 callersFunctionarrayContainsAllFunction
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_array.go:120
↓ 1 callersFunctionarrayContainsAnyFunction
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_array.go:139
↓ 1 callersFunctionarrayContainsFunction
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_array.go:101
↓ 1 callersFunctionarrayLengthFunction
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_array.go:158
↓ 1 callersFunctionarrayReverseFunction
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_array.go:177
↓ 1 callersFunctionassignStaticAddressToExistingVM
assignStaticAddressToExistingVM assigns a static external IP address to an existing VM instance. Note: VM and assigned IP must be in the same region.
compute/address/assign_static_address_to_existing_vm.go:31
↓ 1 callersFunctionassignStaticExternalToNewVM
[START compute_ip_address_assign_static_external_new_vm] assignStaticExternalToNewVM creates a new VM instance and assigns a static external IP addres
compute/address/assign_static_address_to_new_vm.go:31
↓ 1 callersFunctionasyncWords
[START speech_transcribe_async_word_time_offsets_gcs]
speech/wordoffset/wordoffset.go:68
↓ 1 callersFunctionattachRegionalDisk
Attaches the provided regional disk in read-write mode to the given VM
compute/disks/attach_regional_disk.go:29
↓ 1 callersFunctionattachRegionalDiskReadOnly
Attaches the provided regional disk in read-only mode to the given VM. Read-only disks can be attached to multiple VMs at once.
compute/disks/attach_regional_disk_readonly.go:29
↓ 1 callersFunctionattachSnapshotSchedule
attachSnapshotSchedule attaches a snapshot schedule to disk.
compute/snapshots/attach_disk_snapshot_schedule.go:28
↓ 1 callersFunctionattemptLease
(client *securitycenter.Client, asset *securitycenterpb.Asset, orgID string)
securitycenter/securitymarksv2/assets_test.go:62
↓ 1 callersFunctionattemptLease
(client *securitycenter.Client, asset *securitycenterpb.Asset, orgID string)
securitycenter/assets/assets_test.go:62
↓ 1 callersFunctionaudience
[END getting_started_auth_validate] [START getting_started_auth_audience] audience returns the expected audience value for this service.
getting-started/authenticating-users/main.go:146
↓ 1 callersFunctionaudioProfile
audioProfile generates audio from text using a custom synthesizer like a telephone call.
texttospeech/synthesize_speech/audio_profile.go:32
↓ 1 callersFunctionauthenticateExplicitWithAdc
authenticateExplicitWithAdc uses Application Default Credentials to print storage buckets.
auth/authenticate_explicit_with_adc.go:31
↓ 1 callersFunctionauthenticateImplicitWithAdc
authenticateImplicitWithAdc uses Application Default Credentials to automatically find credentials and authenticate.
auth/authenticate_implicit_with_adc.go:29
↓ 1 callersFunctionauthenticateWithAPIKey
authenticateWithAPIKey authenticates with an API key for Google Language service.
auth/authenticate_with_api_key.go:30
↓ 1 callersFunctionautoPunctuation
(w io.Writer, path string)
speech/snippets/auto_punctuation.go:31
↓ 1 callersFunctionavgFunction
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_accumulators_aggregation.go:89
↓ 1 callersFunctionbasicClientUsage
basicClientUsage demonstrates the basic steps of creating BigQuery clients, using them to invoke BQ RPCs, and shutting down.
bigquery/snippets_preview/client/bigquery_client_usage.go:35
↓ 1 callersFunctionbasicJobSearch
[START job_discovery_basic_keyword_search] basicJobSearch searches for jobs with query.
jobs/v3/howto/general_search_sample.go:29
↓ 1 callersFunctionbasicLocationSearch
[START job_basic_location_search] basicLocationSearch searches for jobs within distance of location.
jobs/v3/howto/location_based_search_sample.go:29
↓ 1 callersFunctionbasicRead
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_general.go:1719
↓ 1 callersFunctionbatchCodePredict
batchCodePredict perform batch code prediction using a pre-trained code generation model
vertexai/batch-predict/batch_code_predict.go:30
↓ 1 callersFunctionbatchDeleteJobs
batchDeleteJobs deletes existing jobs by a filter.
jobs/v4/howto/batch_delete_jobs.go:28
↓ 1 callersFunctionbatchPredictBQ
batchPredictBQ submits a batch prediction job using BigQuery data source as its input
vertexai/batch-predict/gemini_batch_predict_bq.go:32
↓ 1 callersFunctionbatchPredictGCS
batchPredictGCS submits a batch prediction job using GCS data source as its input
vertexai/batch-predict/gemini_batch_predict_gcs.go:32
↓ 1 callersFunctionbatchTextPredict
batchTextPredict perform batch text prediction using a pre-trained text generation model
vertexai/batch-predict/batch_text_predict.go:30
← previousnext →801–900 of 5,023, ranked by callers