MCPcopy Create free account

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

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

↓ 3 callersMethodHost
Host returns the host:port of the service to facilitate new gRPC connections.
internal/cloudrunci/cloudrunci.go:249
↓ 3 callersMethodLease
(d time.Duration)
testing/gimmeproj/main.go:74
↓ 3 callersFunctionListIntents
[START dialogflow_list_intents]
dialogflow/intent_management/intent_management.go:28
↓ 3 callersMethodListTopics
(ctx context.Context, req *managedkafkapb.ListTopicsRequest)
internal/managedkafka/fake/fake.go:139
↓ 3 callersFunctionMarkDone
MarkDone marks the task done with the given ID.
datastore/tasks/update_entity.go:26
↓ 3 callersFunctionNewServiceFromEnv
NewServiceFromEnv creates a new Service instance from environment variables.
run/markdown-preview/editor/service.go:43
↓ 3 callersMethodSayHello
Sends a greeting
endpoints/getting-started-grpc/helloworld/helloworld.pb.go:79
↓ 3 callersMethodStreamTime
(ctx context.Context, in *Request, opts ...grpc.CallOption)
run/grpc-server-streaming/pkg/api/v1/timeservice.pb.go:143
↓ 3 callersMethodString
()
run/grpc-ping/pkg/api/v1/message.pb.go:78
↓ 3 callersFunctionaddProductToProductSet
addProductToProductSet adds a product to a product set.
vision/product_search/add_product_to_product_set.go:30
↓ 3 callersFunctionaddSecurityMarks
addSecurityMarks adds/updates the security marks for the assetName. Specifically, it sets "key_a" and "key_b" to "value_a" and "value_b" respectively.
securitycenter/securitymarksv2/add_security_marks.go:31
↓ 3 callersFunctionassertNotContains
(t *testing.T, out string, sub string)
spanner/spanner_snippets/spanner/integration_test.go:1748
↓ 3 callersFunctioncache
()
run/service-health/main.go:225
↓ 3 callersFunctioncheck
[END gae_unittest_utility_example_1]
docs/appengine/tools/unittest/aetest.go:39
↓ 3 callersFunctioncheckGraphviz
(t *testing.T)
run/system_package/graphviz_test.go:108
↓ 3 callersFunctioncleanUpTrigger
(t *testing.T, projectID, triggerID string)
dlp/snippets/trigger/trigger_test.go:105
↓ 3 callersFunctioncreateBaseReservation
Creates the reservation with accelerated image
compute/reservations/create_base_reservation.go:29
↓ 3 callersFunctioncreateCompany
createCompany creates a company as given.
jobs/v4/howto/create_company_sample.go:28
↓ 3 callersFunctioncreateCustomMachineType
(zone, cpuSeries string, memoryMb, coreCount int, tl typeLimit)
compute/instances/custom-machine-type/helper_class.go:159
↓ 3 callersFunctioncreateCustomMetric
createCustomMetric creates a custom metric specified by the metric type.
monitoring/snippets/metric_create.go:32
↓ 3 callersFunctioncreateInstance
createInstance sends an instance creation request to the Compute Engine API and waits for it to complete.
compute/create_instance.go:29
↓ 3 callersFunctioncreateJob
createJob create a job as given.
jobs/v4/howto/create_job_sample.go:28
↓ 3 callersFunctioncreatePost
createPost creates an example uptime check on a POST request.
monitoring/uptime/uptime.go:74
↓ 3 callersFunctioncreateRegionalSecondaryDisk
createRegionalSecondaryDisk creates a new secondary disk in a project in given region. Note: secondary disk should be located in a different region, b
compute/disks/create_secondary_disk_regional.go:31
↓ 3 callersFunctioncreateRegionalTemplate
createRegionalTemplate creates a new instance template in a specific region with the provided name.
compute/instance-templates/create-instance-templates/create_regional_template.go:29
↓ 3 callersFunctioncreateReservation
Creates the reservation from given template in particular zone
compute/reservations/create_reservation.go:29
↓ 3 callersFunctioncreateTestInstance
(t *testing.T, projectID string, instanceConfigName string)
spanner/spanner_snippets/spanner/integration_test.go:1522
↓ 3 callersFunctioncreateTestLiveSession
(liveConfigID string, t *testing.T)
media/videostitcher/stitcher_test.go:526
↓ 3 callersFunctioncreateTopicWithSchema
(w io.Writer, projectID, topicID, schemaID string, encoding pubsub.SchemaEncoding)
pubsub/v1samples/schemas/create_topic_with_schema.go:26
↓ 3 callersFunctioncreateTriggerForTest
(t *testing.T, projectID, triggerID, displayName, description, bucketName string, infoTypeNames []string)
dlp/snippets/trigger/trigger_test.go:28
↓ 3 callersFunctiondeidentifyFPE
deidentifyFPE deidentifies the input with FPE (Format Preserving Encryption). keyFileName is the file name with the KMS wrapped key and cryptoKeyName
dlp/snippets/deid/deid_fpe.go:34
↓ 3 callersFunctiondeidentifyFreeTextWithFPEUsingSurrogate
deidentifyFreeTextWithFPEUsingSurrogate de-identifies free text with FPE by using a surrogate
dlp/snippets/deid/deid_free_text_with_fpe_using_surrogate.go:28
↓ 3 callersFunctiondeleteBucket
deleteBucket deletes the bucket.
storage/buckets/delete_bucket.go:28
↓ 3 callersFunctiondeleteCaPerm
Helper function to permanently remove CAs without 30d grace period
privateca/privateca_test.go:117
↓ 3 callersFunctiondeleteCaPool
Delete the CA pool as mentioned by the ca_pool_name. Before deleting the pool, all CAs in the pool MUST BE deleted.
privateca/delete_ca_pool.go:29
↓ 3 callersFunctiondeleteCluster
(ctx context.Context, projectID, region, clusterName string)
dataproc/quickstart/quickstart_test.go:89
↓ 3 callersFunctiondeleteDisk
(ctx context.Context, projectId, zone, diskName string)
compute/instances/create-start-instance/create_instance_test.go:55
↓ 3 callersFunctiondeleteInstance
(projectID, zone, instanceName string)
compute/address/address_test.go:110
↓ 3 callersFunctiondeleteInstanceTemplate
deleteInstanceTemplate deletes an instance template.
compute/instance-templates/create-instance-templates/delete_instance_template.go:28
↓ 3 callersFunctiondeleteJobTemplate
deleteJobTemplate deletes a previously-created template for a job. See https://cloud.google.com/transcoder/docs/how-to/job-templates#delete_job_templa
media/transcoder/delete_job_template.go:30
↓ 3 callersFunctiondeleteMetric
deleteMetric deletes the given metric. name should be of the form "projects/PROJECT_ID/metricDescriptors/METRIC_TYPE".
monitoring/snippets/metric_delete.go:30
↓ 3 callersFunctiondeleteReferenceImage
deleteReferenceImage deletes a reference image from a product.
vision/product_search/delete_reference_image.go:30
↓ 3 callersFunctiondeleteRegionalTemplate
deleteRegionalTemplate deletes an instance template in specific region.
compute/instance-templates/create-instance-templates/delete_regional_template.go:28
↓ 3 callersFunctiondeleteTemplate
(project, templateName string)
compute/reservations/reservations_test.go:84
↓ 3 callersMethoddeployCmd
()
internal/cloudrunci/cloudrunci.go:387
↓ 3 callersFunctiondiagramHandler
[START cloudrun_system_package_handler] diagramHandler renders a diagram using HTTP request parameters and the dot command.
run/system_package/graphviz.go:59
↓ 3 callersFunctiondoSomething
(k *datastore.Key, p Person)
docs/appengine/datastore/queries/queries.go:219
↓ 3 callersFunctiondone
(ctx context.Context, projectID string)
testing/gimmeproj/main.go:251
↓ 3 callersFunctiongetField
(ctx context.Context, client *firestore.Client, collection, doc, field string)
firestore/save_test.go:120
↓ 3 callersFunctiongetPolicy
getPolicy gets the project's IAM policy
iam/quickstart/quickstart.go:140
↓ 3 callersFunctiongetRetentionPolicy
getRetentionPolicy gets bucket retention policy.
storage/buckets/get_retention_policy.go:28
↓ 3 callersFunctiongetSignature
(base []byte, secret []byte)
functions/functionsv2/slack/search.go:160
↓ 3 callersFunctiongetSignature
(base []byte, secret []byte)
functions/slack/search.go:165
↓ 3 callersFunctiongetUnwrappedKey
(t *testing.T)
dlp/snippets/deid/deid_test.go:72
↓ 3 callersFunctionhandleError
handleError handles internal errors.
dialogflow/basic_webhook/webhook.go:91
↓ 3 callersFunctionlistDisks
listDisks lists disks in a project zone.
compute/disks/list.go:28
↓ 3 callersFunctionlistInstances
()
run/service-health/main.go:408
↓ 3 callersMethodload
load pushes a collection of trainers into a mongoDB instance
compute/quickstart/compute_quickstart_sample.go:113
↓ 3 callersFunctionmustConnect
mustConnect creates a connection to the database based on environment variables. Setting one of INSTANCE_HOST or INSTANCE_CONNECTION_NAME will establi
cloudsql/sqlserver/database-sql/cloudsql.go:139
↓ 3 callersFunctionmustConnect
mustConnect creates a connection to the database based on environment variables. Setting one of INSTANCE_HOST, INSTANCE_UNIX_SOCKET, or INSTANCE_CONNE
cloudsql/postgres/database-sql/cloudsql.go:136
↓ 3 callersFunctionmustConnect
mustConnect creates a connection to the database based on environment variables. Setting one of INSTANCE_HOST, INSTANCE_UNIX_SOCKET, or INSTANCE_CONNE
cloudsql/mysql/database-sql/cloudsql.go:136
↓ 3 callersFunctionmustGetenv
(k string)
appengine_flexible/go115_and_earlier/pubsub/pubsub.go:85
↓ 3 callersFunctionnewFirestoreDB
[START getting_started_bookshelf_firestore] newFirestoreDB creates a new BookDatabase backed by Cloud Firestore. See the firestore package for details
getting-started/bookshelf/db_firestore.go:41
↓ 3 callersFunctionparseTemplate
parseTemplate applies a given file to the body of the base template.
getting-started/bookshelf/template.go:26
↓ 3 callersFunctionpubsubTopic
(t *testing.T)
securitycenter/notifications/notifications_test.go:48
↓ 3 callersFunctionrandomFailure
Throw an error based on fail rate
run/jobs/main.go:108
↓ 3 callersFunctionreadLogs
(t *testing.T, startTime string)
functions/helloworld/hello_cloud_storage_system_test.go:97
↓ 3 callersFunctionreleaseRegionalStaticExternal
releaseRegionalStaticExternal releases a static regional external IP address.
compute/address/release_static_external.go:28
↓ 3 callersFunctionreserveNewGlobalExternal
reserveNewGlobalExternal reserves a new global external IP address in Google Cloud Platform.
compute/address/reserve_new_external.go:82
↓ 3 callersFunctionresetFloorSettings
resetFloorSettings resets floor settings for project, folder, and organization.
modelarmor/modelarmor_test.go:104
↓ 3 callersFunctionrevokeCertificate
Revoke an issued certificate. Once revoked, the certificate will become invalid and will expire post its lifetime.
privateca/revoke_certificate.go:29
↓ 3 callersFunctionriskNumerical
riskNumerical computes the numerical risk of the given column.
dlp/snippets/jobs/jobs_test.go:64
↓ 3 callersFunctionrun
(ctx context.Context, adminClient *database.DatabaseAdminClient, dataClient *spanner.Client, w io.Writer, cmd
spanner/spanner_leaderboard/leaderboard.go:308
↓ 3 callersFunctionrunBackupSample
(ctx context.Context, t *testing.T, f backupSampleFunc, dbName, backupID, errMsg string)
spanner/spanner_snippets/spanner/integration_test.go:1446
↓ 3 callersFunctionrunBackupSampleWithRetry
(ctx context.Context, t *testing.T, f backupSampleFunc, dbName, backupID, errMsg string, maxAttempts int)
spanner/spanner_snippets/spanner/integration_test.go:1462
↓ 3 callersFunctionrunCreateInstanceSample
(t *testing.T, f instanceSampleFunc)
spanner/spanner_snippets/spanner/integration_test.go:147
↓ 3 callersFunctionrunInstanceSample
(t *testing.T, f instanceSampleFunc, projectID, instanceID, errMsg string)
spanner/spanner_snippets/spanner/integration_test.go:1493
↓ 3 callersFunctionsetup
(ctx context.Context)
functions/ocr/app/setup.go:72
↓ 3 callersFunctionsetup
(ctx context.Context)
functions/functionsv2/ocr/app/setup.go:68
↓ 3 callersFunctionsetup
(t *testing.T)
securitycenter/securitymarksv2/assets_test.go:154
↓ 3 callersFunctionsetup
(t *testing.T)
securitycenter/iamv2/iam_policies_test.go:38
↓ 3 callersFunctionsetupTests
(t *testing.T)
functions/ocr/app/ocr_test.go:44
↓ 3 callersFunctionsetupTests
(t *testing.T)
functions/functionsv2/ocr/app/ocr_test.go:45
↓ 3 callersFunctiontestCleanupKeyVersions
testCleanupKeyVersions deletes the specified key version in the GCP project. It fails the test if the key version deletion fails.
parametermanager/parametermanager_test.go:185
↓ 3 callersFunctiontestCleanupKeyVersions
testCleanupKeyVersions deletes the specified key version in the GCP project. It fails the test if the key version deletion fails.
parametermanager/regional_samples/regional_parametermanager_test.go:325
↓ 3 callersFunctiontestContext
()
internal/testutil/testutil.go:84
↓ 3 callersFunctiontestCreateKeyHSM
testCreateKeyHSM creates a HSM key in the specified key ring in the GCP project. It fails the test if the key creation fails.
parametermanager/parametermanager_test.go:243
↓ 3 callersFunctiontestCreateKeyHSM
testCreateKeyHSM creates a HSM key in the specified key ring in the GCP project. It fails the test if the key creation fails.
parametermanager/regional_samples/regional_parametermanager_test.go:384
↓ 3 callersFunctiontestCreateKeyRing
testCreateKeyRing creates a key ring in the specified GCP project. It fails the test if the key ring creation fails.
parametermanager/parametermanager_test.go:208
↓ 3 callersFunctiontestCreateKeyRing
testCreateKeyRing creates a key ring in the specified GCP project. It fails the test if the key ring creation fails.
parametermanager/regional_samples/regional_parametermanager_test.go:348
↓ 3 callersFunctiontestFolderID
testFolderID returns the folder ID.
modelarmor/modelarmor_test.go:62
↓ 3 callersFunctiontestModelArmorAdvancedSDPTemplate
testModelArmorAdvancedSDPTemplate creates Model Armor template with Advanced SDP configuration.
modelarmor/modelarmor_test.go:415
↓ 3 callersFunctiontestModelArmorEmptyTemplate
testModelArmorEmptyTemplate creates a new ModelArmor template for use in tests. It returns the empty template or an error.
modelarmor/modelarmor_test.go:270
↓ 3 callersFunctiontestOrganizationID
testOrganizationID returns the organization ID.
modelarmor/modelarmor_test.go:56
↓ 3 callersFunctionupdateFHIRResource
updateFHIRResource updates an FHIR resource to be active or not.
healthcare/fhir_resource_update.go:29
↓ 3 callersFunctionusage
(msg string)
logging/exportlogs/exportlogs.go:62
↓ 3 callersFunctionusage
(msg string)
logging/simplelog/simplelog.go:66
↓ 3 callersFunctionusage
(msg string)
language/analyze/analyze.go:65
↓ 3 callersMethodvalidate
version returns the version that the app will be deployed to.
internal/aeintegrate/aeintegrate.go:119
↓ 3 callersFunctionwriteHealth
(newHealth bool, instanceId string)
run/service-health/main.go:520
← previousnext →301–400 of 5,023, ranked by callers