MCPcopy Create free account

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

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

FunctioncaseEditorServiceUI
(t *testing.T)
run/testing/markdown_preview_editor.e2e_test.go:64
FunctioncheckDatastoreMode
[END gae_go_capabilities_lookup] [START gae_go_capabilities_mode]
docs/appengine/capabilities/capability.go:38
FunctionclassifyTextFromGCS
[END language_syntax_gcs] [START language_classify_gcs]
language/snippets/snippet.go:80
FunctioncommitStats
(w io.Writer, db string)
spanner/spanner_snippets/spanner/spanner_commit_stats.go:27
Functionconfirm
(_ http.ResponseWriter, r *http.Request)
docs/appengine/mail/mail.go:34
FunctionconstructCAB
constructCAB shows how to initialize a Credential Access Boundary for downscoping tokens.
auth/downscoping/initialize_CAB.go:22
FunctionconstructFeaturedJob
[START job_featured_job] constructFeaturedJob constructs a job as featured/promoted one.
jobs/v3/howto/featured_job_search_sample.go:30
FunctionconstructJobWithCustomAttributes
[START job_custom_attribute_job] constructJobWithCustomAttributes constructs a job with custom attributes.
jobs/v3/howto/custom_attribute_sample.go:30
FunctioncopyBackup
copyBackup copies an existing backup to a given instance in same or different region, or in same or different project.
spanner/spanner_snippets/spanner/spanner_copy_backup.go:31
FunctioncreateBackup
(ctx context.Context, w io.Writer, db, backupID string, versionTime time.Time)
spanner/spanner_snippets/spanner/spanner_create_backup.go:31
FunctioncreateChainedQuery
(client *firestore.Client)
firestore/query.go:100
FunctioncreateClientWithKey
()
translate/snippets/snippet.go:28
FunctioncreateClientWithQueryOptions
(w io.Writer, database string)
spanner/spanner_snippets/spanner/spanner_create_client_with_query_options.go:30
FunctioncreateClients
(w io.Writer, db string)
spanner/spanner_snippets/spanner/spanner_create_clients.go:28
FunctioncreateCollectionReference
(client *firestore.Client)
firestore/retrieve_data_reference_collection.go:23
FunctioncreateDatabase
[START spanner_create_database]
spanner/spanner_snippets/snippet.go:77
FunctioncreateDatabase
(ctx context.Context, w io.Writer, db string)
spanner/spanner_snippets/spanner/spanner_create_database.go:28
FunctioncreateDatabaseWithPropertyGraph
(ctx context.Context, w io.Writer, dbId string)
spanner/spanner_snippets/spanner/spanner_create_database_with_property_graph.go:29
FunctioncreateDatabaseWithRetentionPeriod
(ctx context.Context, w io.Writer, db string)
spanner/spanner_snippets/spanner/spanner_create_database_with_retention_period.go:28
FunctioncreateDiskFromDisk
createDiskFromDisk creates a new disk with the contents of an already existitng disk. Type, and size and zone may differ.
compute/disks/create_disk_from_disk.go:30
FunctioncreateDiskFromKmsEncryptedDisk
Creates a zonal non-boot persistent disk in a project with the copy of data from an existing disk. The encryption key must be the same for the source
compute/disks/clone_kms_encrypted_disk.go:31
FunctioncreateDocReference
(client *firestore.Client)
firestore/retrieve_data_reference_document.go:23
FunctioncreateDocReferenceFromString
(client *firestore.Client)
firestore/retrieve_data_reference_document_path.go:23
FunctioncreateDownscopedToken
createDownscopedToken would be run on the token broker in order to generate a downscoped access token that only grants access to objects whose name be
auth/downscoping/token_broker.go:31
FunctioncreateFullBackupSchedule
(w io.Writer, dbName string, scheduleId string)
spanner/spanner_snippets/spanner/spanner_create_full_backup_schedule.go:30
MethodcreateHandler
[END getting_started_bookshelf_storage] createHandler adds a book to the database.
getting-started/bookshelf/main.go:235
FunctioncreateImageFromImage
Creates a disk image from an existing image
compute/disk-images/create_disk_from_image.go:28
FunctioncreateIncrementalBackupSchedule
(w io.Writer, dbName string, scheduleId string)
spanner/spanner_snippets/spanner/spanner_create_incremental_backup_schedule.go:30
FunctioncreateInstance
(w io.Writer, projectID, instanceID string)
spanner/spanner_snippets/spanner/spanner_create_instance.go:27
FunctioncreateInstancePartition
Example of creating an instance partition with Go. projectID is the ID of the project that the new instance partition will be in. instanceID is the ID
spanner/spanner_snippets/spanner/spanner_create_instance_partition.go:31
FunctioncreateInstanceWithAsymmetricAutoscalingConfig
createInstanceWithAsymmetricAutoscalingConfig is a code snippet to show an example of creating an asymmetric autoscaling enabled instance in Go. proj
spanner/spanner_snippets/spanner/spanner_create_instance_with_asymmetric_autoscaling.go:33
FunctioncreateInstanceWithAutoscalingConfig
Example of creating an autoscaling instance with Go. projectID is the ID of the project that the new instance will be in. instanceID is the ID of the
spanner/spanner_snippets/spanner/spanner_create_instance_with_autoscaling_config.go:31
FunctioncreateInstanceWithProcessingUnits
(w io.Writer, projectID, instanceID string)
spanner/spanner_snippets/spanner/spanner_create_instance_with_processing_units.go:28
FunctioncreateInstanceWithoutDefaultBackupSchedule
createInstanceWithoutDefaultBackupSchedule creates instance with default backup schedule disabled.
spanner/spanner_snippets/spanner/spanner_create_instance_without_default_backup_schedule.go:28
FunctioncreateInvalidChainedQuery
(client *firestore.Client)
firestore/query.go:111
FunctioncreateInvalidRangeQuery
(client *firestore.Client)
firestore/query.go:132
FunctioncreateInvalidRangeWithOrderByQuery
(client *firestore.Client)
firestore/query.go:195
FunctioncreateKmsEncryptedDisk
createKmsEncryptedDisk creates a new disk in a project in given zone. If you do not provide diskLink or imageLink, an empty disk will be created.
compute/disks/create_kms_encrypted_disk.go:30
FunctioncreateModelArmorTemplateWithBasicSDP
createModelArmorTemplateWithBasicSDP method creates a new Model Armor template with basic SDP settings. w io.Writer: The writer to use for logging. p
modelarmor/create_template_with_basic_sdp.go:37
FunctioncreateMultipleOrderByQuery
(client *firestore.Client)
firestore/query.go:170
FunctioncreateMultipleStartAtQuery
(client *firestore.Client)
firestore/query.go:245
FunctioncreateOrderByNameDescLimitQuery
(client *firestore.Client)
firestore/query.go:161
FunctioncreateOrderByNameLimitQuery
(client *firestore.Client)
firestore/query.go:143
FunctioncreateOrderByNameLimitToLastQuery
(client *firestore.Client)
firestore/query.go:152
FunctioncreateQuery
(client *firestore.Client)
firestore/query.go:73
FunctioncreateQueryTwo
(client *firestore.Client)
firestore/query.go:80
FunctioncreateRangeQuery
(client *firestore.Client)
firestore/query.go:121
FunctioncreateRangeWithOrderByAndLimitQuery
(client *firestore.Client)
firestore/query.go:177
FunctioncreateRangeWithOrderByQuery
(client *firestore.Client)
firestore/query.go:186
FunctioncreateSequence
(w io.Writer, db string)
spanner/spanner_snippets/spanner/spanner_create_sequence.go:30
FunctioncreateSimpleEndtAtQuery
(client *firestore.Client)
firestore/query.go:213
FunctioncreateSimpleQueries
(client *firestore.Client)
firestore/query.go:87
FunctioncreateSimpleStartAtQuery
(client *firestore.Client)
firestore/query.go:206
FunctioncreateSubcollectionReference
(client *firestore.Client)
firestore/retrieve_data_reference_subcollection.go:23
FunctioncreateTableDocumentsWithHistoryTable
(ctx context.Context, w io.Writer, db string)
spanner/spanner_snippets/spanner/spanner_create_table_documents_with_history_table.go:26
FunctioncreateTableDocumentsWithTimestamp
(ctx context.Context, w io.Writer, db string)
spanner/spanner_snippets/spanner/spanner_create_table_documents_with_timestamp.go:26
FunctioncreateTableWithDatatypes
Creates a Cloud Spanner table comprised of columns for each supported data type See https://cloud.google.com/spanner/docs/data-types
spanner/spanner_snippets/spanner/spanner_create_table_with_datatypes.go:30
FunctioncreateTableWithForeignKeyDeleteCascade
(w io.Writer, db string)
spanner/spanner_snippets/spanner/spanner_create_table_with_foreign_key_delete_cascade.go:28
FunctioncreateTableWithTimestamp
(w io.Writer, db string)
spanner/spanner_snippets/spanner/spanner_create_table_with_timestamp_column.go:28
FunctioncreateTuningJob
createTuningJob creates a supervised tuning job using training and validation datasets.
genai/tuning/tuning_create_job.go:29
FunctiondatasetIAMPolicy
datasetIAMPolicy gets the dataset's IAM policy.
healthcare/dataset_iam_get.go:27
Functiondecapsulate
decapsulate decapsulates the given ciphertext using a saved private key of purpose KEY_ENCAPSULATION stored in KMS.
kms/decapsulate.go:31
FunctiondeleteBackup
(ctx context.Context, w io.Writer, db, backupID string)
spanner/spanner_snippets/spanner/spanner_delete_backup.go:29
FunctiondeleteBackupSchedule
(w io.Writer, dbName string, scheduleId string)
spanner/spanner_snippets/spanner/spanner_delete_backup_schedule.go:28
FunctiondeleteByFilter
Deletes ALL disk snapshots in the project that match the filter
compute/snapshots/delete_snapshots_by_filter.go:29
FunctiondeleteCryptoKey
deleteCryptoKey deletes a crypto key. This action is permanent and cannot be undone. Once the key is deleted, it will no longer exist.
kms/delete_key.go:28
FunctiondeleteCryptoKeyVersion
deleteCryptoKeyVersion deletes a crypto key version. This action is permanent and cannot be undone. Once the key version is deleted, it will no longer
kms/delete_key_version.go:28
FunctiondeleteGraphData
(w io.Writer, db string)
spanner/spanner_snippets/spanner/spanner_delete_graph_data.go:26
FunctiondeleteGraphDataWithDml
(w io.Writer, db string)
spanner/spanner_snippets/spanner/spanner_dml_delete_graph_data.go:27
FunctiondeleteHandler
[END gae_search_retrieving_documents_by_doc_ids] [START gae_search_deleting_documents_from_an_index]
docs/appengine/search/search.go:97
MethoddeleteHandler
deleteHandler deletes a given book.
getting-started/bookshelf/main.go:270
FunctiondeleteUsingDML
(w io.Writer, db string)
spanner/spanner_snippets/spanner/spanner_dml_standard_delete.go:27
FunctiondeleteUsingDMLReturning
(w io.Writer, db string)
spanner/spanner_snippets/spanner/spanner_dml_delete_returning.go:28
FunctiondeleteUsingPartitionedDML
(w io.Writer, db string)
spanner/spanner_snippets/spanner/spanner_dml_partitioned_delete.go:27
FunctiondemoHandler
Handler for the incoming requests.
docs/error-reporting/fluent/main.go:75
MethoddetailHandler
detailHandler displays the details of a given book.
getting-started/bookshelf/main.go:138
FunctiondetectCropHints
[END vision_image_property_detection] [START vision_crop_hint_detection] detectCropHints gets suggested croppings the Vision API for an image at the g
vision/detect/detect.go:303
FunctiondetectCropHintsURI
[END vision_image_property_detection_gcs] [START vision_crop_hint_detection_gcs] detectCropHints gets suggested croppings the Vision API for an image
vision/detect/detect.go:800
FunctiondetectDocumentText
[END vision_text_detection] [START vision_fulltext_detection] detectDocumentText gets the full document text from the Vision API for an image at the g
vision/detect/detect.go:203
FunctiondetectDocumentTextURI
[END vision_text_detection_gcs] [START vision_fulltext_detection_gcs] detectDocumentText gets the full document text from the Vision API for an image
vision/detect/detect.go:718
FunctiondetectFaces
[START vision_face_detection] detectFaces gets faces from the Vision API for an image at the given file path.
vision/detect/detect.go:41
FunctiondetectFacesURI
[START vision_face_detection_gcs] detectFaces gets faces from the Vision API for an image at the given file path.
vision/detect/detect.go:593
FunctiondetectLabels
[END vision_face_detection] [START vision_label_detection] detectLabels gets labels from the Vision API for an image at the given file path.
vision/detect/detect.go:83
FunctiondetectLabelsURI
[END vision_face_detection_gcs] [START vision_label_detection_gcs] detectLabels gets labels from the Vision API for an image at the given file path.
vision/detect/detect.go:625
FunctiondetectLandmarks
[END vision_label_detection] [START vision_landmark_detection] detectLandmarks gets landmarks from the Vision API for an image at the given file path.
vision/detect/detect.go:123
FunctiondetectLandmarksURI
[END vision_label_detection_gcs] [START vision_landmark_detection_gcs] detectLandmarks gets landmarks from the Vision API for an image at the given fi
vision/detect/detect.go:656
FunctiondetectLanguage
[END translate_translate_text] [START translate_detect_language]
translate/snippets/snippet.go:74
FunctiondetectLogos
[END vision_web_detection_include_geo] [START vision_logo_detection] detectLogos gets logos from the Vision API for an image at the given file path.
vision/detect/detect.go:481
FunctiondetectLogosURI
[END vision_web_detection_include_geo_gcs] [START vision_logo_detection_gcs] detectLogos gets logos from the Vision API for an image at the given file
vision/detect/detect.go:942
FunctiondetectProperties
[END vision_fulltext_detection] [START vision_image_property_detection] detectProperties gets image properties from the Vision API for an image at the
vision/detect/detect.go:263
FunctiondetectPropertiesURI
[END vision_fulltext_detection_gcs] [START vision_image_property_detection_gcs] detectProperties gets image properties from the Vision API for an imag
vision/detect/detect.go:769
FunctiondetectSafeSearch
[END vision_crop_hint_detection] [START vision_safe_search_detection] detectSafeSearch gets image properties from the Vision API for an image at the g
vision/detect/detect.go:341
FunctiondetectSafeSearchURI
[END vision_crop_hint_detection_gcs] [START vision_safe_search_detection_gcs] detectSafeSearch gets image properties from the Vision API for an image
vision/detect/detect.go:829
FunctiondetectText
[END vision_landmark_detection] [START vision_text_detection] detectText gets text from the Vision API for an image at the given file path.
vision/detect/detect.go:163
FunctiondetectTextURI
[END vision_landmark_detection_gcs] [START vision_text_detection_gcs] detectText gets text from the Vision API for an image at the given file path.
vision/detect/detect.go:687
FunctiondetectWeb
[END vision_safe_search_detection] [START vision_web_detection] detectWeb gets image properties from the Vision API for an image at the given file pat
vision/detect/detect.go:379
FunctiondetectWebGeo
[END vision_web_detection] [START vision_web_detection_include_geo] detectWebGeo detects geographic metadata from the Vision API for an image at the g
vision/detect/detect.go:437
FunctiondetectWebGeoURI
[END vision_web_detection_gcs] [START vision_web_detection_include_geo_gcs] detectWebGeo detects geographic metadata from the Vision API for an image
vision/detect/detect.go:907
FunctiondetectWebURI
[END vision_safe_search_detection_gcs] [START vision_web_detection_gcs] detectWeb gets image properties from the Vision API for an image at the given
vision/detect/detect.go:858
FunctiondirectedReadOptions
Shows how to run a query with directed read options. Only one of ExcludeReplicas or IncludeReplicas can be set Each accepts a list of ReplicaSelect
spanner/spanner_snippets/spanner/spanner_directed_read_options.go:48
← previousnext →4,301–4,400 of 5,023, ranked by callers