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
getSavedQuery
(w io.Writer, projectId, savedQueryID string)
asset/quickstart/get-saved-query/get_saved_query.go:30
↓ 1 callers
Function
getSchema
(w io.Writer, projectID, schemaID string)
pubsub/v1samples/schemas/get_schema.go:26
↓ 1 callers
Function
getSchema
(w io.Writer, projectID, schemaID string)
pubsub/schemas/get_schema.go:27
↓ 1 callers
Function
getSchemaRevision
(w io.Writer, projectID, schemaID string)
pubsub/v1samples/schemas/get_schema_revision.go:26
↓ 1 callers
Function
getSchemaRevision
(w io.Writer, projectID, schemaID string)
pubsub/schemas/get_schema_revision.go:27
↓ 1 callers
Function
getSecret
getSecret gets information about the given secret. This only returns metadata about the secret container, not any secret material.
secretmanager/get_secret.go:29
↓ 1 callers
Function
getSecretVersion
getSecretVersion gets information about the given secret version. It does not include the payload data.
secretmanager/get_secret_version.go:29
↓ 1 callers
Function
getSecurityCenterService
getSecurityCenterService retrieves a specific Security Center service by its name.
securitycenter/management_api/security_center_service/get_security_center_service.go:29
↓ 1 callers
Function
getSecurityHealthAnalyticsCustomModule
getSecurityHealthAnalyticsCustomModule retrieves a specific custom module by its name.
securitycenter/management_api/get_security_health_analytics_custom_module.go:29
↓ 1 callers
Function
getServiceAccount
getServiceAccount demonstrates how to interrogate a project to get the service account identity for the BigQuery project. It's often used in conjunct
bigquery/snippets_preview/project/bigquery_get_service_account.go:30
↓ 1 callers
Function
getServiceAccount
getServiceAccount gets the default Cloud Storage service account email address.
storage/service_account/service_account.go:28
↓ 1 callers
Function
getSink
getSink retrieves the metadata for a Cloud Logging Sink.
logging/get_sink.go:27
↓ 1 callers
Function
getSlate
getSlate gets a previously-created slate.
media/videostitcher/get_slate.go:29
↓ 1 callers
Function
getSnapshot
getSnapshot prints a name of a disk snapshot in the specified project.
compute/snapshots/get_snapshot.go:28
↓ 1 callers
Function
getSnapshotSchedule
getSnapshotSchedule gets a snapshot schedule.
compute/snapshots/get_snapshot_schedule.go:28
↓ 1 callers
Function
getSoftDeletePolicy
getSoftDeletePolicy retrieves and outputs the soft delete policy for a bucket.
storage/buckets/get_soft_delete_policy.go:28
↓ 1 callers
Function
getSource
getSource retrieves a source by its resource name and print it to w. sourceName is the full resource name of the source to be updated.
securitycenter/findings/get_source.go:29
↓ 1 callers
Function
getSource
getSource retrieves a source by its resource name and print it to w. sourceName is the full resource name of the source to be updated.
securitycenter/findingsv2/get_source.go:29
↓ 1 callers
Function
getSourceIamPolicy
getSourceIamPolicy prints the policy for sourceName to w and return it. sourceName is the full resource name of the source with the policy of interest
securitycenter/findings/get_source_iam.go:29
↓ 1 callers
Function
getSourceIamPolicy
getSourceIamPolicy prints the policy for sourceName to w and return it. sourceName is the full resource name of the source with the policy of interest
securitycenter/iamv2/get_iam_policies.go:29
↓ 1 callers
Function
getSubscription
(w io.Writer, projectID, region, location, subID string)
pubsublite/admin/get_subscription.go:26
↓ 1 callers
Function
getSupportedLanguages
getSupportedLanguages gets a list of supported language codes.
translate/v3/get_supported_languages.go:29
↓ 1 callers
Function
getSupportedLanguagesForTarget
getSupportedLanguagesForTarget gets a list of supported language codes with target language names.
translate/v3/get_supported_languages_for_target.go:29
↓ 1 callers
Function
getTable
getTable demonstrates fetching table information.
bigquery/snippets_preview/table/bigquery_get_table.go:29
↓ 1 callers
Function
getTask
Retrieves the information about the specified job, most importantly its status
batch/get_task.go:28
↓ 1 callers
Function
getTaxonomy
getTaxonomy prints information about a given taxonomy.
datacatalog/snippets/policytagmanager/get_taxonomy.go:28
↓ 1 callers
Function
getTopic
(w io.Writer, projectID, region, location, topicID string)
pubsublite/admin/get_topic.go:26
↓ 1 callers
Function
getTopic
(w io.Writer, projectID, region, clusterID, topicID string, opts ...option.ClientOption)
managedkafka/topics/get_topic.go:29
↓ 1 callers
Function
getTuningJobMock
(w io.Writer, tuningJobName string)
genai/tuning/tuning_examples_test.go:99
↓ 1 callers
Function
getUsageExportBucket
getUsageExportBucket retrieves the Compute Engine usage export bucket for the Cloud project. Replaces the empty value returned by the API with the def
compute/get_usage_export_bucket.go:29
↓ 1 callers
Function
getVersionTime
(t *testing.T, dbName string)
spanner/spanner_snippets/spanner/integration_test.go:83
↓ 1 callers
Function
getView
getView demonstrates fetching the metadata from a BigQuery logical view and printing it to an io.Writer.
bigquery/snippets/table/bigquery_get_view.go:27
↓ 1 callers
Function
getVodAdTagDetail
getVodAdTagDetail gets the specified ad tag detail for a video on demand (VOD) session.
media/videostitcher/get_vod_ad_tag_detail.go:29
↓ 1 callers
Function
getVodConfig
getVodConfig gets a previously-created VOD config.
media/videostitcher/get_vod_config.go:29
↓ 1 callers
Function
getVodSession
getVodSession gets a VOD session by ID.
media/videostitcher/get_vod_session.go:29
↓ 1 callers
Function
getVodStitchDetail
getVodStitchDetail gets the specified stitch detail for a video on demand (VOD) session.
media/videostitcher/get_vod_stitch_detail.go:29
↓ 1 callers
Function
grantAccessToDataset
grantAccessToDataset creates a new ACL conceding the READER role to the group "example-analyst-group@google.com" For more information on the types of
bigquery/bigquery_access_quickstart/grant_access_to_dataset.go:29
↓ 1 callers
Function
greaterThanFunction
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_comparison.go:44
↓ 1 callers
Function
greaterThanOrEqualToFunction
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_comparison.go:63
↓ 1 callers
Function
greeting
greeting is a Typed Cloud Function.
functions/typed/greeting/greeting.go:31
↓ 1 callers
Function
groupFindings
groupFindings groups findings by category.
securitycenter/findingsv2/group_findings.go:29
↓ 1 callers
Function
groupFindingsByState
(w io.Writer, sourceName string)
securitycenter/findingsv2/group_findings_state.go:28
↓ 1 callers
Function
groupFindingsWithFilter
groupFindingsWithFilter groups findings by category with a filter.
securitycenter/findingsv2/group_filtered_findings.go:29
↓ 1 callers
Function
handle
(w http.ResponseWriter, r *http.Request)
monitoring/prometheus/main.go:57
↓ 1 callers
Function
handle
(w http.ResponseWriter, r *http.Request)
monitoring/opencensus/main.go:98
↓ 1 callers
Function
handleAddDoc
handleAddDoc adds a document to the index.
bigtable/search/search.go:280
↓ 1 callers
Function
handleCheckMessages
Checks messages sent to a user. The identity of the user is found in the HTTP request parametes.
getting-started/devflowapp/devflowapp.go:34
↓ 1 callers
Function
handleContent
handleContent fetches the content of a document from the Bigtable and returns it.
bigtable/search/search.go:163
↓ 1 callers
Function
handleCopy
handleCopy copies data from one table to another.
bigtable/search/search.go:444
↓ 1 callers
Function
handleDefault
Handle a HTTP request for the root URL
getting-started/devflowapp/devflowapp.go:51
↓ 1 callers
Function
handleReset
handleReset deletes the table if it exists, creates it again, and creates its column families.
bigtable/search/search.go:358
↓ 1 callers
Function
handleSearch
handleSearch responds to search queries, returning links and snippets for matching documents.
bigtable/search/search.go:191
↓ 1 callers
Function
handleSend
Handle a HTTP request to send a message to a user. The identify of the sender and recipient and retrieved from HTTP request parametes.
getting-started/devflowapp/devflowapp.go:63
↓ 1 callers
Function
handler
(w http.ResponseWriter, r *http.Request)
run/helloworld/main.go:45
↓ 1 callers
Function
handler
(w http.ResponseWriter, r *http.Request)
run/custom-metrics/main.go:49
↓ 1 callers
Function
handler
[END cloudrun_sigterm_handler]
run/sigterm-handler/main.go:78
↓ 1 callers
Function
handlerWithSpanContext
handlerWithSpanContext adds attributes from the span context [START opentelemetry_instrumentation_spancontext_logger]
opentelemetry/instrumentation/app/logger.go:26
↓ 1 callers
Method
hashedContent
hashedContent gets the SHA256 checksum for verification of the JWT.
appengine/go11x/pubsub/authenicated_push/main_test.go:141
↓ 1 callers
Function
heavyComputation
[END cloudrun_tips_global_scope] [END functions_tips_scopes]
functions/tips/scope.go:48
↓ 1 callers
Function
helloAuditLog
helloAuditLog receives a CloudEvent containing an AuditLogEntry, and logs a few fields.
functions/functionsv2/helloauditlog/hello_auditlog.go:48
↓ 1 callers
Function
helloGet
helloGet is an HTTP Cloud Function.
functions/functionsv2/helloworld/hello_world.go:32
↓ 1 callers
Function
helloHandler
(w http.ResponseWriter, r *http.Request)
run/hello-broken/main.go:46
↓ 1 callers
Function
helloPubSub
helloPubSub consumes a CloudEvent message and extracts the Pub/Sub message.
functions/functionsv2/hellopubsub/hello_pubsub.go:48
↓ 1 callers
Function
helloStorage
helloStorage consumes a CloudEvent message and logs details about the changed object.
functions/functionsv2/hellostorage/hello_storage.go:37
↓ 1 callers
Function
histogramSearch
[START job_histogram_search] histogramSearch searches for jobs with histogram facets.
jobs/v3/howto/histogram_search_sample.go:29
↓ 1 callers
Function
histogramSearch
histogramSearch searches for jobs with histogram queries.
jobs/v4/howto/histogram_search_sample.go:28
↓ 1 callers
Function
iamAddMember
iamAddMember adds a new IAM member to the Cloud KMS key
kms/iam_add_member.go:27
↓ 1 callers
Function
iamGetPolicy
iamGetPolicy retrieves and prints the Cloud IAM policy associated with the Cloud KMS key.
kms/iam_get_policy.go:28
↓ 1 callers
Function
iamGrantAccess
iamGrantAccess grants the given member access to the secret.
secretmanager/iam_grant_access.go:27
↓ 1 callers
Function
iamRemoveMember
iamRemoveMember removes the IAM member from the Cloud KMS key, if they exist.
kms/iam_remove_member.go:27
↓ 1 callers
Function
iamRevokeAccess
iamRevokeAccess revokes the given member's access on the secret.
secretmanager/iam_revoke_access.go:27
↓ 1 callers
Function
importAvro
importAvro demonstrates loading Apache Avro data from Cloud Storage into a table.
bigquery/snippets/loadingdata/bigquery_load_table_gcs_avro.go:26
↓ 1 callers
Function
importAvroTruncate
importAvroTruncate demonstrates loading Apache Avro data from Cloud Storage into a table and overwriting/truncating existing data in the table.
bigquery/snippets/loadingdata/bigquery_load_table_gcs_avro_truncate.go:27
↓ 1 callers
Function
importCSVAutodetectSchema
importCSVAutodetectSchema demonstrates loading data from CSV data in Cloud Storage and using schema autodetection to identify the available columns.
bigquery/snippets/loadingdata/bigquery_load_table_gcs_csv_autodetect.go:27
↓ 1 callers
Function
importCSVExplicitSchema
importCSVExplicitSchema demonstrates loading CSV data from Cloud Storage into a BigQuery table and providing an explicit schema for the data.
bigquery/snippets/loadingdata/bigquery_load_table_gcs_csv.go:27
↓ 1 callers
Function
importCSVFromFile
importCSVFromFile demonstrates loading data into a BigQuery table using a file on the local filesystem.
bigquery/snippets/loadingdata/bigquery_load_from_file.go:27
↓ 1 callers
Function
importCSVTruncate
importCSVTruncate demonstrates loading data from CSV data in Cloud Storage and overwriting/truncating data in the existing table.
bigquery/snippets/loadingdata/bigquery_load_table_gcs_csv_truncate.go:27
↓ 1 callers
Function
importClusteredTable
importClusteredTable demonstrates creating a table from a load job and defining partitioning and clustering properties.
bigquery/snippets/loadingdata/bigquery_load_table_clustered.go:27
↓ 1 callers
Function
importDataImageClassification
importDataImageClassification imports data to an existing dataset.
aiplatform/snippets/import_data_image_classification.go:32
↓ 1 callers
Function
importFHIRResource
importsFHIRResource imports an FHIR resource.
healthcare/fhir_resource_import.go:28
↓ 1 callers
Function
importJSONAutodetectSchema
importJSONAutodetectSchema demonstrates loading data from newline-delimited JSON data in Cloud Storage and using schema autodetection to identify the
bigquery/snippets/loadingdata/bigquery_load_table_gcs_json_autodetect.go:27
↓ 1 callers
Function
importJSONExplicitSchema
importJSONExplicitSchema demonstrates loading newline-delimited JSON data from Cloud Storage into a BigQuery table and providing an explicit schema fo
bigquery/snippets/loadingdata/bigquery_load_table_gcs_json.go:27
↓ 1 callers
Function
importJSONTruncate
importJSONTruncate demonstrates loading data from newline-delimeted JSON data in Cloud Storage and overwriting/truncating data in the existing table.
bigquery/snippets/loadingdata/bigquery_load_table_gcs_json_truncate.go:27
↓ 1 callers
Function
importJSONWithCMEK
importJSONWithCMEK demonstrates loading newline-delimited JSON from Cloud Storage, and protecting the data with a customer-managed encryption key.
bigquery/snippets/loadingdata/bigquery_load_table_gcs_json_cmek.go:27
↓ 1 callers
Function
importManuallyWrappedKey
importManuallyWrappedKey wraps key material and imports it into KMS.
kms/import_manually_wrapped_key.go:36
↓ 1 callers
Function
importORC
importORC demonstrates loading Apache ORC data from Cloud Storage into a table.
bigquery/snippets/loadingdata/bigquery_load_table_gcs_orc.go:26
↓ 1 callers
Function
importORCTruncate
importORCTruncate demonstrates loading Apache ORC data from Cloud Storage into a table and overwriting/truncating existing data in the table.
bigquery/snippets/loadingdata/bigquery_load_table_gcs_orc_truncate.go:27
↓ 1 callers
Function
importParquet
importParquet demonstrates loading Apache Parquet data from Cloud Storage into a table.
bigquery/snippets/loadingdata/bigquery_load_table_gcs_parquet.go:26
↓ 1 callers
Function
importParquetTruncate
importParquetTruncate demonstrates loading Apache Parquet data from Cloud Storage into a table and overwriting/truncating existing data in the table.
bigquery/snippets/loadingdata/bigquery_load_table_gcs_parquet_truncate.go:27
↓ 1 callers
Function
importPartitionedTable
importPartitionedTable demonstrates specifing time partitioning for a BigQuery table when loading CSV data from Cloud Storage.
bigquery/snippets/loadingdata/bigquery_load_table_partitioned.go:29
↓ 1 callers
Function
importProductSets
[END vision_product_search_tutorial_import] importProductSets creates a product set using information in a csv file on GCS.
vision/product_search/import_product_sets.go:34
↓ 1 callers
Function
importWithHivePartitioning
importWithHivePartitioning demonstrates loading data into a BigQuery managed table that includes data from a hive-based partition file layout.
bigquery/snippets/loadingdata/bigquery_load_table_gcs_hivepartitioning.go:27
↓ 1 callers
Method
index
[END getting_started_auth_setup] [START getting_started_auth_front_controller] index responds to requests with our greeting.
getting-started/authenticating-users/main.go:86
↓ 1 callers
Method
index
[END getting_started_background_app_main] [START getting_started_background_app_list] index lists the current translations.
getting-started/background/index/main.go:111
↓ 1 callers
Function
indexGet
indexGet gets an index.
datastore/admin/datastore_admin_index_get.go:28
↓ 1 callers
Function
indexList
indexList lists the indexes.
datastore/admin/datastore_admin_index_list.go:29
↓ 1 callers
Function
infoTransaction
(ctx context.Context, client *firestore.Client)
firestore/save_transaction_document_update_conditional.go:27
↓ 1 callers
Function
infoTypes
infoTypes returns the info types in the given language and matching the given filter.
dlp/snippets/metadata/info_types.go:28
↓ 1 callers
Function
ingestHL7V2Message
ingestHL7V2Message ingests an HL7V2 message.
healthcare/hl7v2_message_ingest.go:29
↓ 1 callers
Method
initAdminService
initAdminService populates p.adminService and checks that the user is authenticated and project ID is valid.
internal/aeintegrate/aeintegrate.go:293
← previous
next →
1,801–1,900 of 5,023, ranked by callers