MCPcopy Create free account

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

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

↓ 1 callersFunctionbatchTranslateText
batchTranslateText translates a large volume of text in asynchronous batch mode.
translate/v3/batch_translate_text.go:29
↓ 1 callersFunctionbatchTranslateTextWithGlossary
batchTranslateTextWithGlossary translates a large volume of text in asynchronous batch mode.
translate/v3/batch_translate_text_with_glossary.go:29
↓ 1 callersFunctionbatchWrite
(ctx context.Context, client *firestore.Client)
firestore/save_data_batch_writes.go:26
↓ 1 callersFunctionbetaClient
()
language/analyze/entity_sentiment.go:25
↓ 1 callersFunctionblur
[END functions_imagemagick_analyze] [START functions_imagemagick_blur] blur blurs the image stored at gs://inputBucket/name and stores the result in g
functions/imagemagick/imagemagick.go:93
↓ 1 callersFunctionblur
[END functions_imagemagick_analyze] [START functions_imagemagick_blur] blur blurs the image stored at gs://inputBucket/name and stores the result in g
functions/functionsv2/imagemagick/imagemagick.go:105
↓ 1 callersFunctionblur
[END cloudrun_imageproc_handler_analyze] [START cloudrun_imageproc_handler_blur] blur blurs the image stored at gs://inputBucket/name and stores the r
run/image-processing/imagemagick/imagemagick.go:93
↓ 1 callersFunctionblurOffensiveImages
[END functions_imagemagick_setup] [START functions_imagemagick_analyze] blurOffensiveImages blurs offensive images uploaded to GCS.
functions/functionsv2/imagemagick/imagemagick.go:66
↓ 1 callersFunctionbodyShouldContain
(t *testing.T, s *cr.Service, path, shouldContain string)
internal/cloudrunci/testingapp/testingapp_test.go:41
↓ 1 callersFunctionbroadeningLocationSearch
[END job_city_location_search] [START job_broadening_location_search] broadeningLocationSearch searches for jobs with a broadening area of given locat
jobs/v3/howto/location_based_search_sample.go:151
↓ 1 callersFunctionbrowseTable
browseTable demonstrates reading data from a BigQuery table directly without the use of a query. For large tables, we also recommend the BigQuery Stor
bigquery/snippets/table/bigquery_browse_table.go:29
↓ 1 callersMethodbuildCmd
()
internal/cloudrunci/cloudrunjobs.go:234
↓ 1 callersMethodbuildCmd
()
internal/cloudrunci/cloudrunci.go:456
↓ 1 callersFunctionbulkMute
bulkMute kicks off a long-running operation (LRO) to bulk mute findings for a parent based on a filter. The parent can be either an organization, fold
securitycenter/muteconfig/bulk_mute.go:31
↓ 1 callersFunctionbulkMute
bulkMute kicks off a long-running operation (LRO) to bulk mute findings for a parent based on a filter. The parent can be either an organization, fold
securitycenter/muteconfigv2/bulk_mute.go:31
↓ 1 callersFunctionbusyloop
()
profiler/profiler_quickstart/main.go:27
↓ 1 callersFunctionbusyloop
Helper functions to keep CPU busy See profiler_quickstart for details on how this works.
profiler/export/main_test.go:63
↓ 1 callersFunctionbusyloop
Simulates a CPU-intensive computation.
profiler/hotapp/main.go:99
↓ 1 callersFunctionbyteLengthFunction
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_string.go:25
↓ 1 callersFunctioncalculateKAnonymityWithEntityId
Uses the Data Loss Prevention API to compute the k-anonymity of a column set in a Google BigQuery table.
dlp/snippets/risk/k_anonymity_with_entity_id.go:31
↓ 1 callersFunctioncallHandler
callHandler calls an HTTP handler with the provided request and returns the log output.
run/logging-manual/main_test.go:80
↓ 1 callersFunctioncallSingle
callSingle makes an http request to this application's /single endpoint. The provided context is used to propagate the trace context with the http hea
opentelemetry/instrumentation/app/client.go:27
↓ 1 callersFunctioncancelJob
cancelJob demonstrates how a job cancellation request can be issued for a specific BigQuery job.
bigquery/snippets/job/bigquery_cancel_job.go:27
↓ 1 callersFunctioncategoryFilterSearch
[END job_discovery_basic_keyword_search] [START job_discovery_category_filter_search] categoryFilterSearch searches for jobs on category filter.
jobs/v3/howto/general_search_sample.go:84
↓ 1 callersFunctionceilFunction
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_arithmetic.go:122
↓ 1 callersFunctioncertificates
[END getting_started_auth_audience] [START getting_started_auth_certs] certificates returns Cloud IAP's cryptographic public keys.
getting-started/authenticating-users/main.go:165
↓ 1 callersFunctionchangeDefaultStorageClass
changeDefaultStorageClass changes the storage class on a bucket.
storage/buckets/change_default_storage_class.go:28
↓ 1 callersFunctionchangeMachineType
changeMachineType changes the machine type of the instance. If the instance is running, it will shut it down so that the machine type could be changed
compute/change_machine_type.go:30
↓ 1 callersFunctionchangeObjectStorageClass
changeObjectStorageClass changes the storage class of a single object.
storage/objects/change_file_storage_class.go:28
↓ 1 callersFunctioncharLengthFunction
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_string.go:44
↓ 1 callersFunctioncheckLatestTransferOperation
(w io.Writer, projectID string, jobName string)
storagetransfer/check_latest_transfer_operation.go:28
↓ 1 callersFunctioncheckServiceAvailable
(t *testing.T, projectID string)
jobs/v3/quickstart/main_test.go:29
↓ 1 callersFunctioncheckServiceAvailable
(t *testing.T, projectID string)
jobs/v4/quickstart/main_test.go:31
↓ 1 callersFunctioncheckStateImportJob
checkStateImportJob checks the state of an ImportJob in KMS.
kms/check_state_import_job.go:28
↓ 1 callersFunctioncheckStateImportedKey
checkStateImportedKey checks the state of a CryptoKeyVersion in KMS.
kms/check_state_imported_key.go:28
↓ 1 callersFunctioncheckTimestamp
checkTimestamp allows requests time stamped less than 5 minutes ago.
functions/functionsv2/slack/search.go:168
↓ 1 callersFunctioncheckTimestamp
Arbitrarily trusting requests time stamped less than 5 minutes ago.
functions/slack/search.go:173
↓ 1 callersFunctioncityLocationSearch
[END job_basic_location_search] [START job_city_location_search] cityLocationSearch searches for jobs in the same city of given location.
jobs/v3/howto/location_based_search_sample.go:90
↓ 1 callersFunctionclassifyText
classifyText sends a string of text to the Cloud Natural Language API to classify the category of the text.
language/analyze_v2/classify_text.go:29
↓ 1 callersFunctioncleanStaleAssets
(tc testutil.Context)
media/livestream/livestream_test.go:71
↓ 1 callersFunctioncleanStaleResources
(projectID string)
media/videostitcher/stitcher_test.go:81
↓ 1 callersFunctioncleanUpStaleInstances
()
run/service-health/main.go:391
↓ 1 callersFunctioncleanupDataCatalog
cleanupDataCatalog examines the output of the quickstart, and removes created resources.
datacatalog/datacatalog_quickstart/main_test.go:121
↓ 1 callersFunctioncleanupEntities
()
securitycenter/findingsv2/findings_test.go:140
↓ 1 callersFunctioncleanupInstanceConfigs
(projectID string)
spanner/spanner_snippets/spanner/integration_test.go:1785
↓ 1 callersFunctioncleanupInstanceWithName
(instanceName string)
spanner/spanner_snippets/spanner/integration_test.go:1770
↓ 1 callersFunctioncleanupOrphanedModules
cleanupOrphanedModules deletes any modules left over from previous test runs
securitycenter/management_api/security_health_analytics_custom_module_test.go:66
↓ 1 callersFunctionclientCreate
clientCreate creates a new Datastore admin client.
datastore/admin/datastore_admin_client_create.go:27
↓ 1 callersFunctioncloneConsistencyGroup
cloneConsistencyGroup clones all disks in consistency group for a project in a given region.
compute/disks/consistency_group_clone.go:29
↓ 1 callersFunctioncollectionGroupInputExample
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_general.go:1339
↓ 1 callersFunctioncollectionGroupInputExampleData
(_ io.Writer, client *firestore.Client)
firestore/pipeline_snippets_general.go:1316
↓ 1 callersFunctioncollectionGroupInputSyntaxExample
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_general.go:1302
↓ 1 callersFunctioncollectionGroupQuery
collectionGroupQuery runs a collection group query over the data created by collectionGroupSetup.
firestore/collection_group_query.go:29
↓ 1 callersFunctioncollectionGroupStage
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_general.go:891
↓ 1 callersFunctioncollectionInputExample
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_general.go:1247
↓ 1 callersFunctioncollectionInputExampleData
(_ io.Writer, client *firestore.Client)
firestore/pipeline_snippets_general.go:1225
↓ 1 callersFunctioncollectionInputSyntaxExample
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_general.go:1211
↓ 1 callersFunctioncollectionStage
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_general.go:874
↓ 1 callersFunctioncommitAvroSchema
commitAvroSchema commits a new Avro schema revision to an existing schema.
pubsub/v1samples/schemas/commit_avro_schema.go:28
↓ 1 callersFunctioncommitAvroSchema
commitAvroSchema commits a new Avro schema revision to an existing schema.
pubsub/schemas/commit_avro_schema.go:29
↓ 1 callersFunctioncommitProtoSchema
commitProtoSchema commits a new proto schema revision to an existing schema.
pubsub/v1samples/schemas/commit_proto_schema.go:28
↓ 1 callersFunctioncommitProtoSchema
commitProtoSchema commits a new proto schema revision to an existing schema.
pubsub/schemas/commit_proto_schema.go:29
↓ 1 callersFunctioncommuteSearch
[START job_discovery_commute_search] commuteSearch searches for jobs within commute filter.
jobs/v3/howto/commute_search_sample.go:29
↓ 1 callersFunctioncommuteSearch
commuteSearch searches for jobs within commute filter.
jobs/v4/howto/commute_search_sample.go:30
↓ 1 callersFunctioncompanyDisplayNameSearch
[END job_discovery_language_code_filter_search] [START job_discovery_company_display_name_search] companyDisplayNameSearch searches for job on company
jobs/v3/howto/general_search_sample.go:311
↓ 1 callersFunctioncompensationSearch
[END job_discovery_company_display_name_search] [START job_discovery_compensation_search] compensationSearch searches for job on compensation.
jobs/v3/howto/general_search_sample.go:366
↓ 1 callersFunctioncomposeFile
composeFile composes source objects to create a composite object.
storage/objects/compose_object.go:28
↓ 1 callersFunctioncomposeNewsletter
[END gae_unittest_package_example]
docs/appengine/tools/unittest/package.go:40
↓ 1 callersFunctioncomputeSubrequests
[END opentelemetry_instrumentation_random_sleep] computeSubrequests performs the task of making a given number of http requests to /single endpoint on
opentelemetry/instrumentation/app/work.go:81
↓ 1 callersFunctioncomputeWithTxt
computeWithTxt shows how to compute tokens with text input.
genai/count_tokens/counttoken_compute_with_txt.go:29
↓ 1 callersFunctioncondFunction
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_logical.go:129
↓ 1 callersFunctionconfigFromEnv
()
run/jobs/main.go:37
↓ 1 callersFunctionconfigureConnectionPool
configureConnectionPool sets database connection pool properties. For more information, see https://golang.org/pkg/database/sql
cloudsql/sqlserver/database-sql/cloudsql.go:174
↓ 1 callersFunctionconfigureConnectionPool
(w io.Writer, projectID, instanceID string)
bigtable/connectionpool/configure_connection_pool.go:29
↓ 1 callersFunctionconfigureRetries
configureRetries configures a custom retry strategy for a single API call.
storage/retry/configure_retries.go:29
↓ 1 callersFunctionconnectTCPSocket
connectTCPSocket initializes a TCP connection pool for a Cloud SQL instance of SQL Server.
cloudsql/sqlserver/database-sql/connect_tcp.go:32
↓ 1 callersFunctionconnectTCPSocket
connectTCPSocket initializes a TCP connection pool for a Cloud SQL instance of Postgres.
cloudsql/postgres/database-sql/connect_tcp.go:34
↓ 1 callersFunctionconnectTCPSocket
connectTCPSocket initializes a TCP connection pool for a Cloud SQL instance of MySQL.
cloudsql/mysql/database-sql/connect_tcp.go:34
↓ 1 callersFunctionconnectUnixSocket
connectUnixSocket initializes a Unix socket connection pool for a Cloud SQL instance of Postgres.
cloudsql/postgres/database-sql/connect_unix.go:32
↓ 1 callersFunctionconnectUnixSocket
connectUnixSocket initializes a Unix socket connection pool for a Cloud SQL instance of MySQL.
cloudsql/mysql/database-sql/connect_unix.go:29
↓ 1 callersFunctionconnectWithConnector
()
cloudsql/sqlserver/database-sql/connect_connector.go:45
↓ 1 callersFunctionconnectWithConnector
()
cloudsql/postgres/database-sql/connect_connector.go:31
↓ 1 callersFunctionconnectWithConnector
()
cloudsql/mysql/database-sql/connect_connector.go:30
↓ 1 callersFunctionconnectWithConnectorIAMAuthN
()
cloudsql/postgres/database-sql/connect_connector_iam_authn.go:31
↓ 1 callersFunctionconnectWithConnectorIAMAuthN
()
cloudsql/mysql/database-sql/connect_connector_iam_authn.go:31
↓ 1 callersFunctionconsumeAnyReservation
consumeAnyReservation creates instance, consuming any available reservation
compute/reservations/consume_any_reservation.go:29
↓ 1 callersFunctionconsumeSpecificReservation
consumeSpecificReservation creates instance, consuming specific reservation Note: respective reservation should have SpecificReservationRequired: true
compute/reservations/consume_specific_reservation.go:30
↓ 1 callersFunctionconsumeSpecificSharedReservation
consumeSpecificSharedReservation consumes specific shared reservation in particular zone
compute/reservations/consume_specific_shared_reservation.go:28
↓ 1 callersFunctioncontention
Simulates some work that contends over a shared mutex. It calls an "impl" function to produce a bit deeper stacks in the profiler visualization, merel
profiler/hotapp/main.go:49
↓ 1 callersFunctioncontentionImpl
(d time.Duration)
profiler/hotapp/main.go:53
↓ 1 callersFunctioncontextClasses
contextClasses provides "hints" to the speech recognizer to favour specific classes of words in the results.
speech/snippets/context_classes.go:32
↓ 1 callersFunctioncontrolledGenerationResponseSchema6
controlledGenerationResponseSchema6 shows how to make sure the generated output will always be valid JSON and adhere to a specific schema.
vertexai/controlled-generation/controlledgen_schema6.go:29
↓ 1 callersFunctioncontrolledGenerationResponseSchemaEnum
controlledGenerationResponseSchemaEnum demonstrates how to constrain model responses to a predefined set of enum values for genre classification.
vertexai/controlled-generation/controlledgen_schema_enum.go:29
↓ 1 callersFunctionconvertBigQueryResourceRepresentation
convertBigQueryResourceRepresentation converts a table identifier in standard sql form (project.datadata.table) into the representation used within da
datacatalog/datacatalog_quickstart/main.go:181
↓ 1 callersFunctioncopyBackupWithMultiRegionEncryptionKey
copyBackupWithMultiRegionEncryptionKey copies an existing backup to a given instance in same or different region, or in same or different project with
spanner/spanner_snippets/spanner/spanner_copy_backup_with_mr_cmek.go:31
↓ 1 callersFunctioncopyFile
copyFile copies an object into specified bucket.
storage/objects/copy_file.go:28
↓ 1 callersFunctioncopyMultiTable
copyMultiTable demonstrates using a copy job to copy multiple source tables into a single destination table.
bigquery/snippets/job/bigquery_copy_table_multiple_source.go:26
↓ 1 callersFunctioncopyOldVersionOfObject
copyOldVersionOfObject copies a noncurrent version of an object.
storage/objects/copy_file_archived_generation.go:28
↓ 1 callersFunctioncopyTable
copyTable demonstrates copying a table from a source to a destination, and allowing the copy to overwrite existing data by using truncation.
bigquery/snippets/job/bigquery_copy_table.go:27
↓ 1 callersFunctioncopyTable
copyTable copies data from one table to another.
bigtable/search/search.go:388
← previousnext →901–1,000 of 5,023, ranked by callers