MCPcopy Create free account

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

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

↓ 12 callersFunctiongetProduct
getProduct gets a product.
vision/product_search/get_product.go:30
↓ 12 callersFunctionmakeRange
(start, end, step int)
compute/instances/custom-machine-type/helper_class.go:41
↓ 11 callersMethodToken
()
auth/downscoping/token_consumer.go:42
↓ 11 callersMethodappErrorf
(r *http.Request, err error, format string, v ...interface{})
getting-started/bookshelf/main.go:327
↓ 11 callersFunctiondeleteDisk
deleteDisk deletes a disk from a project.
compute/disks/delete_disk.go:28
↓ 11 callersFunctiondeleteJob
deleteJob deletes a previously-created job. See https://cloud.google.com/transcoder/docs/how-to/jobs#delete_jobs for more information.
media/transcoder/delete_job.go:30
↓ 11 callersFunctiondeleteRegionalDisk
deleteRegionalDisk permanently deletes a regional disk.
compute/disks/delete_regional_disk.go:28
↓ 11 callersFunctiongetJobState
getJobState gets the state for a previously-created job. See https://cloud.google.com/transcoder/docs/how-to/jobs#check_job_status for more informatio
media/transcoder/get_job_state.go:30
↓ 11 callersFunctiontestRegionalSecretVersion
(tb testing.TB, parent string, payload []byte)
secretmanager/secretmanager_test.go:188
↓ 11 callersFunctiontestSecretVersion
(tb testing.TB, parent string, payload []byte)
secretmanager/secretmanager_test.go:171
↓ 10 callersMethodEditImage
( ctx context.Context, model string, prompt string, referenceImages []genai.ReferenceImage, config *genai
genai/image_generation/image_generation_examples_test.go:100
↓ 10 callersMethodReset
()
profiler/shakesapp/shakesapp/shakesapp.pb.go:76
↓ 10 callersFunctioncreateTestVodConfig
(vodConfigID string, t *testing.T)
media/videostitcher/stitcher_test.go:357
↓ 10 callersFunctioncreateTopic
(ctx context.Context, client *pubsub.Client, topicName string)
pubsub/topics/topics_test.go:438
↓ 10 callersFunctiondeleteDataset
deleteDataset deletes the given dataset.
healthcare/dataset_delete.go:27
↓ 10 callersFunctiondeleteInstance
(ctx context.Context, projectId, zone, instanceName string)
compute/instances/create-start-instance/utils_test.go:24
↓ 10 callersFunctiondeleteTestVodConfig
(vodConfigName string, t *testing.T)
media/videostitcher/stitcher_test.go:386
↓ 10 callersFunctiongetJob
getJob gets a previously-created job. See https://cloud.google.com/transcoder/docs/how-to/jobs#check_job_status for more information.
media/transcoder/get_job.go:29
↓ 10 callersFunctionsetup
Run before each test. Creates a set of useful variables
container_registry/container_analysis/samples_test.go:46
↓ 10 callersFunctionteardown
Run after each test Removes any unneeded resources allocated for test
container_registry/container_analysis/samples_test.go:75
↓ 10 callersFunctiontestCleanupParameterVersion
testCleanupParameterVersion deletes the specified parameter version in the GCP project. It fails the test if the parameter version deletion fails.
parametermanager/parametermanager_test.go:162
↓ 10 callersFunctiontestCleanupParameterVersion
testCleanupParameterVersion deletes the specified parameter version in the GCP project. It fails the test if the parameter version deletion fails.
parametermanager/regional_samples/regional_parametermanager_test.go:189
↓ 10 callersFunctiontestLocation
(tb testing.TB)
secretmanager/regional_samples/regional_secretmanager_test.go:41
↓ 10 callersFunctiontestModelArmorTemplate
testModelArmorTemplate creates a new Model Armor template with default filter settings for use in integration tests. Returns the created template.
modelarmor/modelarmor_test.go:146
↓ 9 callersMethodGet
()
healthcare/dicomweb_study_search.go:32
↓ 9 callersMethodGet
Get performs a GET request to a given path.
getting-started/bookshelf/internal/webtest/webtest.go:79
↓ 9 callersMethodNewRequest
NewRequest creates a new http.Request for the deployed service.
internal/cloudrunci/cloudrunci.go:223
↓ 9 callersMethodRecv
()
run/grpc-server-streaming/pkg/api/v1/timeservice.pb.go:170
↓ 9 callersFunctioncreateProduct
createProduct creates a product.
vision/product_search/create_product.go:30
↓ 9 callersFunctiongetUUID64
()
media/videostitcher/stitcher_test.go:266
↓ 9 callersFunctiontestCleanup
testCleanup is used for cleaning the dataset and its content once test is done
bigquery/bigquery_access_quickstart/test_functions.go:48
↓ 9 callersFunctiontestClient
testClient creates a BigQuery client in order to avoid repeatedly creating customers in the common way
bigquery/bigquery_access_quickstart/test_functions.go:33
↓ 9 callersFunctiontestPrefix
testPrefix creates a prefix that serves as an identifier when creating a resource in order to isolate possible conflicts in concurrent tests.
bigquery/bigquery_access_quickstart/test_functions.go:28
↓ 8 callersMethodGet
Get issues a GET request against the base URL of the deployed application.
internal/aeintegrate/aeintegrate.go:101
↓ 8 callersMethodPredict
(ctx context.Context, req *aiplatformpb.PredictRequest, opts ...gax.CallOption)
vertexai/gemma2/gemma2_test.go:62
↓ 8 callersMethodRequest
Request issues an HTTP request to the deployed service.
internal/cloudrunci/cloudrunci.go:214
↓ 8 callersMethodServeHTTP
(w http.ResponseWriter, r *http.Request)
bigtable/usercounter/main.go:174
↓ 8 callersMethodValidate
()
internal/cloudrunci/platform.go:27
↓ 8 callersMethodVersion
revision returns the revision that the service will be deployed to. NOTE: Until traffic splitting is available, this will be used as the service name.
internal/cloudrunci/cloudrunci.go:300
↓ 8 callersFunctioncalculateImageHash
(filename string)
dlp/snippets/redact/redact_test.go:24
↓ 8 callersFunctioncreateRegionalDisk
createRegionalDisk creates a new empty regional disk
compute/disks/create_regional.go:29
↓ 8 callersFunctiondeleteIPAddress
(ctx context.Context, projectID, region, addressName string)
compute/address/address_test.go:208
↓ 8 callersFunctiondeleteInput
deleteInput deletes a previously-created input endpoint.
media/livestream/delete_input.go:28
↓ 8 callersFunctiondeleteReservation
Deletes the reservation for given project and zone
compute/reservations/delete_reservation.go:28
↓ 8 callersFunctiondeleteTestCDNKey
(CDNKeyName string, t *testing.T)
media/videostitcher/stitcher_test.go:504
↓ 8 callersFunctiongetRandomSharedModule
()
securitycenter/management_api/event_threat_detection/event_threat_detection_custom_module_test.go:123
↓ 8 callersFunctionjobSucceeded
(projectID, region, jobName string)
batch/testutils.go:26
↓ 8 callersFunctionlistProductsInProductSet
listProductsInProductSet lists products in a product set.
vision/product_search/list_products_in_product_set.go:31
↓ 8 callersFunctionmustRunSample
(t *testing.T, f sampleFuncWithContext, dbName, errMsg string)
spanner/spanner_snippets/spanner/integration_test.go:1512
↓ 8 callersFunctionprintRow
[END bigtable_reads_filter] [START bigtable_reads_print]
bigtable/reads/reads.go:263
↓ 8 callersFunctionpubsubTopic
(t *testing.T)
securitycenter/notificationsv2/notifications_test.go:49
↓ 8 callersFunctionsanitizeUserPrompt
sanitizeUserPrompt sanitizes a user prompt based on the project, location, and template settings. w io.Writer: The writer to use for logging. project
modelarmor/sanitize_user_prompt.go:38
↓ 8 callersFunctionsetup
(t *testing.T)
securitycenter/assets/assets_test.go:154
↓ 8 callersFunctiontestCleanupRegionalSecret
(tb testing.TB, name string)
secretmanager/regional_samples/regional_secretmanager_test.go:105
↓ 8 callersFunctionuploadFile
uploadFile uploads an object.
storage/objects/upload_file.go:29
↓ 7 callersFunctionTestBucket
TestBucket creates a new bucket with the given prefix and registers a cleanup function to delete the bucket and any objects it contains when the test
internal/testutil/storage_cleaner.go:33
↓ 7 callersFunctioncreateKey
(t *testing.T, projectID, keyFileName string)
dlp/snippets/deid/deid_test.go:115
↓ 7 callersFunctioncreateKeyRing
(t *testing.T, projectID string)
dlp/snippets/deid/deid_test.go:86
↓ 7 callersFunctioncreateTestLiveConfig
(slateID, liveConfigID string, t *testing.T)
media/videostitcher/stitcher_test.go:409
↓ 7 callersFunctiondeleteOccurrence
deleteOccurrence removes an existing Occurrence from the server.
container_registry/container_analysis/delete_occurrence.go:28
↓ 7 callersFunctiondeleteTestKey
Deactivate and delete the given key. Should operate as a teardown method.
storage/service_account/hmac/hmac_test.go:231
↓ 7 callersFunctiondeleteTestLiveConfig
(liveConfigName string, t *testing.T)
media/videostitcher/stitcher_test.go:441
↓ 7 callersFunctiondestroyKey
(t *testing.T, projectID, key string)
dlp/snippets/deid/deid_test.go:160
↓ 7 callersFunctiongetOrCreateSub
getOrCreateSub gets a subscription or creates it if it doesn't exist.
pubsub/v1samples/subscriptions/subscription_test.go:1100
↓ 7 callersFunctiongetSampleProjectId
(t *testing.T)
spanner/spanner_snippets/spanner/integration_test.go:1714
↓ 7 callersFunctionorgID
(t *testing.T)
securitycenter/notifications/notifications_test.go:32
↓ 7 callersFunctionsanitizeModelResponse
sanitizeModelResponse method sanitizes a model response based on the project, location, and template settings. w io.Writer: The writer to use for log
modelarmor/sanitize_model_response.go:39
↓ 7 callersFunctionsetup
setup initializes variables in this file with entityNames to use for testing.
securitycenter/bigqueryv2/bigquery_test.go:36
↓ 7 callersFunctiontestAllFilterTemplate
testAllFilterTemplate creates a new ModelArmor template with all filters enabled. It returns the template ID and filter config for cleanup.
modelarmor/modelarmor_test.go:195
↓ 7 callersFunctiontestParameterVersion
testParameterVersion creates a version of a parameter with the given payload in the specified GCP project. It returns the created parameter version an
parametermanager/parametermanager_test.go:107
↓ 7 callersFunctiontestParameterVersion
testParameterVersion creates a version of a parameter with the given payload in the specified GCP project. It returns the created parameter version an
parametermanager/regional_samples/regional_parametermanager_test.go:129
↓ 7 callersFunctiontestRegionalClient
(tb testing.TB)
secretmanager/regional_samples/regional_secretmanager_test.go:52
↓ 6 callersMethodBuild
Build builds a container image if one has not already been built. If service.Image is specified and this is directly called, it could overwrite an exi
internal/cloudrunci/cloudrunci.go:333
↓ 6 callersMethodCreateKeyRing
CreateKeyRing creates a new key ring and returns the full resource name.
kms/kms_helpers_test.go:175
↓ 6 callersFunctionDeleteExpiredBuckets
DeleteExpiredBuckets deletes old testing buckets that weren't cleaned previously.
internal/testutil/storage_cleaner.go:139
↓ 6 callersFunctionMustCreateTopic
MustCreateTopic creates a Pub/Sub Lite topic and fails the test if unsuccessful.
pubsublite/internal/psltest/util.go:95
↓ 6 callersMethodParsedURL
ParsedURL retrieves the parsed URL of the service. This URL is stored on the service struct for repeated retrieval.
internal/cloudrunci/cloudrunci.go:259
↓ 6 callersMethodSendMessage
Send a message to a user
getting-started/devflowapp/services/services.go:33
↓ 6 callersMethodVariable
Variable retrieves an environment variable assignment as a string.
internal/cloudrunci/envvars.go:39
↓ 6 callersFunctioncreateConsistencyGroup
createConsistencyGroup creates a new consistency group for a project in a given region.
compute/disks/consistency_group_create.go:29
↓ 6 callersFunctioncreateNotificationConfig
(w io.Writer, orgID string, pubsubTopic string, notificationConfigID string)
securitycenter/notificationsv2/create_notification_config.go:27
↓ 6 callersFunctioncreateOccurrence
createsOccurrence creates and returns a new Occurrence of a previously created vulnerability Note.
container_registry/container_analysis/create_occurrence.go:28
↓ 6 callersFunctioncreateSubscription
createSubscription creates a subscription it if it doesn't exist.
pubsub/subscriptions/subscription_test.go:666
↓ 6 callersFunctiondeleteChannel
deleteChannel deletes a previously-created channel.
media/livestream/delete_channel.go:28
↓ 6 callersFunctiondeleteConsistencyGroup
deleteConsistencyGroup deletes consistency group for a project in a given region.
compute/disks/consistency_group_delete.go:28
↓ 6 callersFunctiondeleteInstance
(ctx context.Context, projectId, zone, instanceName string)
compute/instances/custom-machine-type/custom_machine_type_test.go:31
↓ 6 callersFunctiondeleteNotificationConfig
(w io.Writer, orgID string, notificationConfigID string)
securitycenter/notificationsv2/delete_notification_config.go:27
↓ 6 callersFunctiondisableFloorSettings
disableFloorSettings disables floor setting enforcement. It sends an update request to Model Armor to turn off enforcement using the given floorSettin
modelarmor/modelarmor_test.go:70
↓ 6 callersFunctiongetDataset
getDataset gets a dataset.
healthcare/dataset_get.go:27
↓ 6 callersFunctiongetInstance
( ctx context.Context, projectID, zone, instanceName string, )
compute/instances/custom-machine-type/custom_machine_type_test.go:50
↓ 6 callersFunctiongetProductSet
getProductSet gets a product set.
vision/product_search/get_product_set.go:30
↓ 6 callersFunctiongetRandomSharedModule
()
securitycenter/management_api/security_health_analytics_custom_module_test.go:165
↓ 6 callersFunctionlistIPAddresses
(ctx context.Context, projectID, region string)
compute/address/address_test.go:137
↓ 6 callersFunctionlistJobs
listJobs lists jobs matching the given optional filter and optional jobType.
dlp/snippets/jobs/list.go:29
↓ 6 callersFunctionlistProducts
listProducts lists products.
vision/product_search/list_products.go:31
↓ 6 callersFunctionprocessItem
(depth int)
profiler/hotmid/main.go:66
↓ 6 callersFunctionpublishMsgs
(ctx context.Context, t *pubsub.Topic, numMsgs int)
pubsub/v1samples/subscriptions/subscription_test.go:1063
↓ 6 callersFunctionsetupAdmin
(t *testing.T)
pubsublite/admin/pubsublite_admin_test.go:51
↓ 6 callersFunctiontestClient
testClient initializes and returns a new Model Armor API client and context targeting the endpoint based on the specified location.
modelarmor/modelarmor_test.go:128
↓ 6 callersFunctionwriteTestGCSFile
writeTestGCSFile deletes the GCS test bucket and uploads a test video file to it.
media/transcoder/transcoder_test.go:205
← previousnext →101–200 of 5,023, ranked by callers