MCPcopy Create free account

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

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

↓ 1 callersFunctionprepareClusteredData
prepareClusteredData setups up example partitioned/clustered table resources for the query tests.
bigquery/snippets/querying/integration_test.go:210
↓ 1 callersFunctionpreparePartitionedData
preparePartitionedData setups up example partitioned/clustered table resources for the query tests.
bigquery/snippets/querying/integration_test.go:180
↓ 1 callersFunctionprepareQuery
[END firestore_deps]
firestore/query.go:27
↓ 1 callersFunctionprepareRetrieve
(ctx context.Context, client *firestore.Client)
firestore/retrieve_data_get_dataset.go:25
↓ 1 callersFunctionprintDatasetInfo
printDatasetInfo demonstrates fetching dataset metadata and printing some of it to an io.Writer.
bigquery/snippets/dataset/bigquery_get_dataset.go:28
↓ 1 callersFunctionprintDatasetLabels
printDatasetLabels retrieves label metadata from a dataset and prints it to an io.Writer.
bigquery/snippets/dataset/bigquery_get_dataset_labels.go:27
↓ 1 callersFunctionprintDatum
printDatum prints the decoded row datum.
bigquery/bigquery_storage_quickstart/main.go:188
↓ 1 callersFunctionprintFileACL
printFileACL lists ACL of the specified object.
storage/acl/print_file_acl.go:27
↓ 1 callersFunctionprintFileACLForUser
printFileACLForUser lists ACL of the specified object with filter.
storage/acl/print_file_acl_for_user.go:27
↓ 1 callersFunctionprintImagesList
printImagesList prints a list of all non-deprecated image names available in given project.
compute/print_images_list.go:30
↓ 1 callersFunctionprintImagesListByPage
printImagesListByPage prints a list of all non-deprecated image names available in a given project, divided into pages as returned by the Compute Engi
compute/print_images_list_by_page.go:31
↓ 1 callersFunctionprintJobLogs
Retrieve the logs written by the given job to Cloud Logging
batch/read_job_logs.go:31
↓ 1 callersFunctionprintModelInfo
printModelInfo demonstrates fetching metadata about a BigQuery ML model and printing some of it to an io.Writer.
bigquery/snippets/models/bigquery_get_model.go:28
↓ 1 callersFunctionprintPreemtible
printPreemtible prints if a given instance is preemptible or not.
compute/instances/preemptible/print_preemtible.go:28
↓ 1 callersFunctionprintPubsubBucketNotification
printPubsubBucketNotification gets a notification configuration for a bucket.
storage/notifications/get.go:27
↓ 1 callersFunctionprintRecordBatch
printRecordBatch prints the arrow record batch
bigquery/bigquery_storage_quickstart/main.go:209
↓ 1 callersFunctionprintRow
(w io.Writer, row bigtable.Row)
bigtable/filters/filters.go:185
↓ 1 callersFunctionprintTableInfo
printTableInfo demonstrates fetching metadata from a table and printing some basic information to an io.Writer.
bigquery/snippets/table/bigquery_get_table.go:28
↓ 1 callersFunctionprocessArrow
processArrow receives row blocks from a channel, and uses the provided Arrow schema to decode the blocks into individual row messages for printing. W
bigquery/bigquery_storage_quickstart/main.go:333
↓ 1 callersFunctionprocessAvro
processAvro receives row blocks from a channel, and uses the provided Avro schema to decode the blocks into individual row messages for printing. Wil
bigquery/bigquery_storage_quickstart/main.go:375
↓ 1 callersFunctionprocessStream
processStream reads rows from a single storage Stream, and sends the Storage Response data blocks to a channel. This function will retry on transient
bigquery/bigquery_storage_quickstart/main.go:261
↓ 1 callersFunctionprocessTheMessage
[END functions_cloudevent_tips_infinite_retries] processTheMessage is a stand-in for the domain logic of your function.
functions/functionsv2/tips/infinite_retries/infinite_retries.go:69
↓ 1 callersFunctionprocessTheMessage
[END functions_tips_infinite_retries] processTheMessage is a stand-in for the domain logic of your function.
functions/tips/infinite_retries/infinite_retries.go:58
↓ 1 callersFunctionprojectID
(t *testing.T)
securitycenter/notifications/notifications_test.go:40
↓ 1 callersFunctionpromoteEphemeralAddress
promoteEphemeralAddress promotes an ephemeral IP address to a reserved static external IP address.
compute/address/promote_ephemeral_address.go:29
↓ 1 callersFunctionpublish
(w io.Writer, projectID, topicID, msg string)
pubsub/topics/publish.go:26
↓ 1 callersFunctionpublish
(w io.Writer, projectID, topicID, msg string)
pubsub/v1samples/topics/publish.go:26
↓ 1 callersFunctionpublishCustomAttributes
(w io.Writer, projectID, topicID string)
pubsub/topics/publish_custom.go:26
↓ 1 callersFunctionpublishCustomAttributes
(w io.Writer, projectID, topicID string)
pubsub/v1samples/topics/publish_custom.go:26
↓ 1 callersFunctionpublishMessages
(ctx context.Context, t *testing.T, topicPath string, messageCount int)
pubsublite/quickstart_subscriber/main_test.go:82
↓ 1 callersFunctionpublishOpenTelemetryTracing
publishOpenTelemetryTracing publishes a single message with OpenTelemetry tracing enabled, exporting to Cloud Trace.
pubsub/topics/publish_otel_tracing.go:35
↓ 1 callersFunctionpublishOpenTelemetryTracing
publishOpenTelemetryTracing publishes a single message with OpenTelemetry tracing enabled, exporting to Cloud Trace.
pubsub/v1samples/topics/publish_otel_tracing.go:35
↓ 1 callersFunctionpublishProtoMessages
(w io.Writer, projectID, topicID string)
pubsub/v1samples/schemas/publish_proto_messages.go:29
↓ 1 callersFunctionpublishProtoMessages
(w io.Writer, projectID, topicID string)
pubsub/schemas/publish_proto_messages.go:30
↓ 1 callersFunctionpublishThatScales
(w io.Writer, projectID, topicID string, n int)
pubsub/topics/publish_scale.go:29
↓ 1 callersFunctionpublishThatScales
(w io.Writer, projectID, topicID string, n int)
pubsub/v1samples/topics/publish_scale.go:29
↓ 1 callersFunctionpublishWithBatchSettings
(w io.Writer, projectID, zone, topicID string, messageCount int)
pubsublite/publish/publish_batch.go:28
↓ 1 callersFunctionpublishWithCompression
(w io.Writer, projectID, topicID string)
pubsub/topics/publish_with_compression.go:26
↓ 1 callersFunctionpublishWithCompression
(w io.Writer, projectID, topicID string)
pubsub/v1samples/topics/publish_with_compression.go:26
↓ 1 callersFunctionpublishWithCustomAttributes
(w io.Writer, projectID, zone, topicID string)
pubsublite/publish/publish_custom_attributes.go:27
↓ 1 callersFunctionpublishWithFlowControlSettings
(w io.Writer, projectID, topicID string)
pubsub/topics/publish_flow_control.go:29
↓ 1 callersFunctionpublishWithFlowControlSettings
(w io.Writer, projectID, topicID string)
pubsub/v1samples/topics/publish_flow_control.go:29
↓ 1 callersFunctionpublishWithOrderingKey
(w io.Writer, projectID, zone, topicID string, messageCount int)
pubsublite/publish/publish_ordering_key.go:27
↓ 1 callersFunctionpublishWithOrderingKey
(w io.Writer, projectID, topicID string)
pubsub/topics/publish_ordering.go:29
↓ 1 callersFunctionpublishWithOrderingKey
(w io.Writer, projectID, topicID string)
pubsub/v1samples/topics/publish_ordering.go:29
↓ 1 callersFunctionpublishWithRetrySettings
(w io.Writer, projectID, topicID, msg string)
pubsub/topics/publish_retry.go:30
↓ 1 callersFunctionpublishWithRetrySettings
(w io.Writer, projectID, topicID, msg string)
pubsub/v1samples/topics/publish_retry.go:30
↓ 1 callersFunctionpublishWithSettings
(w io.Writer, projectID, topicID string)
pubsub/topics/publish_settings.go:28
↓ 1 callersFunctionpublishWithSettings
(w io.Writer, projectID, topicID string)
pubsub/v1samples/topics/publish_settings.go:28
↓ 1 callersFunctionpubsubSubscription
(t *testing.T)
securitycenter/notifications/notifications_test.go:56
↓ 1 callersFunctionpubsubSubscription
(t *testing.T)
securitycenter/notificationsv2/notifications_test.go:58
↓ 1 callersFunctionpullMsgs
(w io.Writer, projectID, subID string)
pubsub/v1samples/subscriptions/async_pull.go:29
↓ 1 callersFunctionpullMsgs
(w io.Writer, projectID, subID string)
pubsub/subscriptions/async_pull.go:29
↓ 1 callersFunctionpullMsgsConcurrencyControl
(w io.Writer, projectID, subID string)
pubsub/v1samples/subscriptions/pull_concurrency.go:28
↓ 1 callersFunctionpullMsgsConcurrencyControl
(w io.Writer, projectID, subID string)
pubsub/subscriptions/pull_concurrency.go:28
↓ 1 callersFunctionpullMsgsCustomAttributes
(w io.Writer, projectID, subID string)
pubsub/v1samples/subscriptions/async_pull_custom_attributes.go:27
↓ 1 callersFunctionpullMsgsCustomAttributes
(w io.Writer, projectID, subID string)
pubsub/subscriptions/async_pull_custom_attributes.go:27
↓ 1 callersFunctionpullMsgsDeadLetterDeliveryAttempt
(w io.Writer, projectID, subID string)
pubsub/v1samples/subscriptions/dead_letter_delivery_attempt.go:27
↓ 1 callersFunctionpullMsgsSync
(w io.Writer, projectID, subID string)
pubsub/v1samples/subscriptions/sync_pull.go:28
↓ 1 callersFunctionpurgeFHIRResource
purgeFHIRResource purges an FHIR resources.
healthcare/fhir_resource_purge.go:27
↓ 1 callersFunctionpurgeOrphanProducts
purgeOrphanProducts deletes all products not in any product sets.
vision/product_search/purge_orphan_products.go:29
↓ 1 callersFunctionpurgeProductsInProductSet
purgeProductsInProductSet deletes all products in a product set.
vision/product_search/purge_products_in_product_set.go:29
↓ 1 callersFunctionqueryBasic
queryBasic demonstrates issuing a query and reading results.
bigquery/snippets/querying/bigquery_query.go:28
↓ 1 callersFunctionqueryBatch
queryBatch demonstrates issuing a query job using batch priority.
bigquery/snippets/querying/bigquery_query_batch.go:28
↓ 1 callersFunctionqueryClusteredTable
queryClusteredTable demonstrates querying a table that has a clustering specification.
bigquery/snippets/querying/bigquery_query_clustered_table.go:28
↓ 1 callersFunctionqueryDisableCache
queryDisableCache demonstrates issuing a query and requesting that the query cache is bypassed.
bigquery/snippets/querying/bigquery_query_no_cache.go:28
↓ 1 callersFunctionqueryDryRun
queryDryRun demonstrates issuing a dry run query to validate query structure and provide an estimate of the bytes scanned.
bigquery/snippets/querying/bigquery_query_dry_run.go:28
↓ 1 callersFunctionqueryExplain
(w io.Writer, projectID string)
firestore/query_explain.go:26
↓ 1 callersFunctionqueryExplainAnalyze
(w io.Writer, projectID string)
firestore/query_explain_analyze.go:26
↓ 1 callersFunctionqueryFilterOr
(w io.Writer, projectId string)
firestore/query_filter_or.go:27
↓ 1 callersFunctionqueryIn
(w io.Writer, projectId string)
datastore/snippets/query_in.go:30
↓ 1 callersFunctionqueryInformationSchemaDatabaseOptions
queryInformationSchemaDatabaseOptions queries the database options from the information schema table.
spanner/spanner_snippets/spanner/spanner_query_information_schema_database_options.go:30
↓ 1 callersFunctionqueryJobOptional
queryJobOptional demonstrates issuing a query that doesn't require a corresponding job.
bigquery/snippets/querying/bigquery_query_job_optional.go:29
↓ 1 callersFunctionqueryLegacy
queryLegacy demonstrates running a query using Legacy SQL.
bigquery/snippets/querying/bigquery_query_legacy.go:28
↓ 1 callersFunctionqueryLegacyLargeResults
queryLegacyLargeResults demonstrates issuing a legacy SQL query and writing a large result set into a destination table.
bigquery/snippets/querying/bigquery_query_legacy_large_results.go:29
↓ 1 callersFunctionqueryMultipleInequality
(w io.Writer, projectId string)
datastore/snippets/query_mieq.go:31
↓ 1 callersFunctionqueryNotEquals
(w io.Writer, projectId string)
datastore/snippets/query_neq.go:30
↓ 1 callersFunctionqueryNotIn
(w io.Writer, projectId string)
datastore/snippets/query_not_in.go:30
↓ 1 callersFunctionqueryPartitionedTable
queryPartitionedTable demonstrates querying a time partitioned table and using a predicate that leverages the partitioned column.
bigquery/snippets/querying/bigquery_query_partitioned_table.go:29
↓ 1 callersFunctionqueryTestablePermissions
queryTestablePermissions lists testable permissions on a resource.
iam/snippets/permissions_query_testable.go:27
↓ 1 callersFunctionqueryVisits
(ctx context.Context, limit int64)
appengine_flexible/datastore/datastore.go:97
↓ 1 callersFunctionqueryVisits
(ctx context.Context, limit int64)
appengine_flexible/go115_and_earlier/datastore/datastore.go:97
↓ 1 callersFunctionqueryWithArrayParams
queryWithArrayParams demonstrates issuing a query and specifying query parameters that include an array of strings.
bigquery/snippets/querying/bigquery_query_params_arrays.go:29
↓ 1 callersFunctionqueryWithDestination
queryWithDestination demonstrates saving the results of a query to a specific table by setting the destination via the API properties.
bigquery/snippets/querying/bigquery_query_destination_table.go:29
↓ 1 callersFunctionqueryWithDestinationCMEK
queryWithDestinationCMEK demonstrates saving query results to a destination table and protecting those results by specifying a customer managed encryp
bigquery/snippets/querying/bigquery_query_destination_table_cmek.go:29
↓ 1 callersFunctionqueryWithNamedParams
queryWithNamedParams demonstrate issuing a query using named query parameters.
bigquery/snippets/querying/bigquery_query_params_named.go:28
↓ 1 callersFunctionqueryWithPositionalParams
queryWithPostionalParams demonstrate issuing a query using positional query parameters.
bigquery/snippets/querying/bigquery_query_params_positional.go:28
↓ 1 callersFunctionqueryWithStructParam
queryWithStructParam demonstrates running a query and providing query parameters that include struct types.
bigquery/snippets/querying/bigquery_query_params_structs.go:29
↓ 1 callersFunctionqueryWithTimespan
(ctx context.Context, w io.Writer, client *spanner.Client, timespan int)
spanner/spanner_leaderboard/leaderboard.go:241
↓ 1 callersFunctionqueryWithTimestampParam
queryWithTimestampParam demonstrates issuing a query and supplying a timestamp query parameter.
bigquery/snippets/querying/bigquery_query_params_timestamps.go:29
↓ 1 callersFunctionquickstart
quickstart creates and runs a transfer job between two GCS buckets.
storagetransfer/quickstart.go:28
↓ 1 callersFunctionrandomID
()
spanner/spanner_leaderboard/leaderboard_test.go:32
↓ 1 callersFunctionrandomMonitoredResource
randomMonitoredResource returns the name of a random resource in the project.
monitoring/snippets/monitored_resource_get_test.go:49
↓ 1 callersFunctionrandomSleep
randomSleep simulates a some job being triggerred in response to an API call to the server. This function records the time spent in sleeping in a hist
opentelemetry/instrumentation/app/work.go:64
↓ 1 callersFunctionreadAppendableObjectTail
readAppendableObjectTail simulates a "tail -f" command on a GCS object. It repeatedly polls an appendable object for new content. In a real applicatio
storage/rapid/read_appendable_object_tail.go:33
↓ 1 callersFunctionreadDataWithDatabaseRole
(w io.Writer, db string, databaseRole string)
spanner/spanner_snippets/spanner/spanner_read_data_with_database_role.go:28
↓ 1 callersFunctionreadFiles
readFiles reads the content of files within the specified bucket with the specified prefix path in parallel and returns their content. It fails if ope
profiler/shakesapp/shakesapp/server.go:72
↓ 1 callersFunctionreadHeartbeat
(instanceId string)
run/service-health/main.go:488
↓ 1 callersMethodreadService
readService reads the service out of the app.yaml file.
internal/aeintegrate/aeintegrate.go:267
↓ 1 callersFunctionreadTimeSeriesAlign
readTimeSeriesAlign reads the last 20 minutes of the given metric and aligns everything on 10 minute intervals.
monitoring/snippets/time_series_align.go:34
← previousnext →2,201–2,300 of 5,023, ranked by callers