MCPcopy Create free account

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

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

↓ 2 callersFunctionBlurOffensiveImages
BlurOffensiveImages blurs offensive images uploaded to GCS.
run/image-processing/imagemagick/imagemagick.go:66
↓ 2 callersFunctionCORSEnabledFunction
CORSEnabledFunction is an example of setting CORS headers. For more information about CORS and CORS preflight requests, see https://developer.mozilla.
functions/http/cors.go:30
↓ 2 callersFunctionCORSEnabledFunctionAuth
CORSEnabledFunctionAuth is an example of setting CORS headers with authentication enabled. For more information about CORS and CORS preflight requests
functions/http/cors_auth.go:31
↓ 2 callersFunctionCountWords
CountWords is a composite transform that counts the words of a PCollection of lines. It expects a PCollection of type string and returns a PCollection
dataflow/flex-templates/wordcount/wordcount.go:98
↓ 2 callersFunctionDefaultResConfig
DefaultResConfig returns the default reservation config for tests.
pubsublite/internal/psltest/util.go:151
↓ 2 callersFunctionDefaultSubConfig
DefaultSubConfig returns the default subscription config for tests.
pubsublite/internal/psltest/util.go:131
↓ 2 callersMethodDeploy
Deploy deploys the application to App Engine. If the deployment fails, it tries to clean up the failed deployment.
internal/aeintegrate/aeintegrate.go:132
↓ 2 callersMethodDescriptor
Deprecated: Use SampleData.ProtoReflect.Descriptor instead.
bigquery/snippets/managedwriter/exampleproto/sample_data.pb.go:152
↓ 2 callersMethodExpired
()
testing/gimmeproj/main.go:93
↓ 2 callersFunctionGetMessageService
Gets an the MessageService if already instantiated, or creates a new one
getting-started/devflowapp/services/config.go:49
↓ 2 callersMethodGetMock
(ctx context.Context, name string)
genai/tuning/tuning_examples_test.go:37
↓ 2 callersMethodGetPong
()
run/grpc-ping/pkg/api/v1/message.pb.go:155
↓ 2 callersFunctionHelloPubSub
HelloPubSub receives and processes a Pub/Sub push message.
run/pubsub/main.go:60
↓ 2 callersFunctionHelloStorage
HelloStorage receives and processes a CloudEvent containing StorageObjectData
eventarc/storage_handler/handler.go:31
↓ 2 callersFunctionListTasks
ListTasks returns all the tasks in ascending order of creation time.
datastore/tasks/list_entities.go:26
↓ 2 callersFunctionListVoices
[START tts_list_voices] ListVoices lists the available text to speech voices.
texttospeech/list_voices/list_voices.go:32
↓ 2 callersMethodLogEntries
(filter string, find string, maxAttempts int)
internal/cloudrunci/cloudrunjobs.go:300
↓ 2 callersMethodMarshalJSON
()
monitoring/alert/alert.go:164
↓ 2 callersFunctionMustCreateSubscription
MustCreateSubscription creates a Pub/Sub Lite subscription and fails the test if unsuccessful.
pubsublite/internal/psltest/util.go:120
↓ 2 callersFunctionNewBookshelf
NewBookshelf creates a new Bookshelf.
getting-started/bookshelf/bookshelf.go:73
↓ 2 callersMethodPostForm
PostForm performs a POST request to a given path.
getting-started/bookshelf/internal/webtest/webtest.go:89
↓ 2 callersMethodProtoReflect
()
bigquery/snippets/managedwriter/exampleproto/sample_data.pb.go:139
↓ 2 callersFunctionQuery
Query returns a slice of the results of a query.
bigquery/syncquery/syncquery.go:49
↓ 2 callersFunctionRetryPubSub
RetryPubSub demonstrates how to toggle using retries.
functions/functionsv2/tips/retry.go:47
↓ 2 callersFunctionRetryPubSub
RetryPubSub demonstrates how to toggle using retries.
functions/tips/retry.go:34
↓ 2 callersMethodRun
Run starts the Job in Cloud Run Jobs. This method will call Build and Create if necessary.
internal/cloudrunci/cloudrunjobs.go:167
↓ 2 callersFunctionSendUserMessage
Formats and sends a user message
getting-started/devflowapp/services/services.go:102
↓ 2 callersMethodString
()
run/grpc-server-streaming/pkg/api/v1/timeservice.pb.go:37
↓ 2 callersFunctionSynthesizeSSML
[END tts_synthesize_text] [START tts_synthesize_ssml] SynthesizeSSML synthesizes ssml and saves the output to outputFile. ssml must be well-formed ac
texttospeech/synthesize_text/synthesize_text.go:81
↓ 2 callersFunctionSynthesizeSSMLFile
[START tts_synthesize_ssml_file] SynthesizeSSMLFile synthesizes the SSML contents in ssmlFile and saves the output to outputFile. ssmlFile must be we
texttospeech/synthesize_file/synthesize_file.go:40
↓ 2 callersFunctionSynthesizeText
[START tts_synthesize_text] SynthesizeText synthesizes plain text and saves the output to outputFile.
texttospeech/synthesize_text/synthesize_text.go:33
↓ 2 callersFunctionTranslate
[END getting_started_background_translate_string] [START getting_started_background_translate] Translate translates the given message and stores the r
getting-started/background/translate.go:122
↓ 2 callersMethodURL
URL prepends the deployed application's base URL to the given path. Returns an error if the application has not been deployed.
internal/aeintegrate/aeintegrate.go:111
↓ 2 callersFunctionUniqueBucketName
UniqueBucketName returns a more unique name cloud storage bucket.
bigquery/snippets/bqtestutil/bqtestutil.go:36
↓ 2 callersMethodUpdateBook
UpdateBook updates the entry for a given book.
getting-started/bookshelf/bookshelf.go:52
↓ 2 callersFunctionVotes
Votes handles HTTP requests to alternatively show the voting app or to save a vote.
cloudsql/sqlserver/database-sql/cloudsql.go:199
↓ 2 callersFunctionVotes
Votes handles HTTP requests to alternatively show the voting app or to save a vote.
cloudsql/postgres/database-sql/cloudsql.go:211
↓ 2 callersFunctionVotes
Votes handles HTTP requests to alternatively show the voting app or to save a vote.
cloudsql/mysql/database-sql/cloudsql.go:211
↓ 2 callersFunctionWithAcceptFunc
(f func(*http.Response) bool)
internal/cloudrunci/cloudrunci.go:170
↓ 2 callersFunctionaddCustomModule
addCustomModule creates a custom module for testing purposes
securitycenter/management_api/security_health_analytics_custom_module_test.go:200
↓ 2 callersFunctionaddDatasetLabel
addDatasetLabel demonstrates adding label metadata to an existing dataset.
bigquery/snippets/dataset/bigquery_label_dataset.go:26
↓ 2 callersFunctionaddSecurityMarks
addSecurityMarks adds/updates security marks for the findingName and returns the updated marks. Specifically, it sets "key_a" an "key_b" to "value_a"
securitycenter/findings/add_security_marks.go:32
↓ 2 callersFunctionaddSecurityMarks
addSecurityMarks adds/updates security marks for the findingName and returns the updated marks. Specifically, it sets "key_a" an "key_b" to "value_a"
securitycenter/findingsv2/add_security_marks.go:32
↓ 2 callersFunctionanalyzeEntities
[START language_entities_text]
language/analyze/analyze.go:73
↓ 2 callersFunctionanalyzeEntitySentiment
[START language_entity_sentiment_text]
language/analyze/entity_sentiment.go:37
↓ 2 callersFunctionanalyzeSentiment
[END language_entities_text] [START language_sentiment_text]
language/analyze/analyze.go:89
↓ 2 callersFunctionanalyzeSyntax
[END language_sentiment_text] [START language_syntax_text]
language/analyze/analyze.go:104
↓ 2 callersMethodappYaml
appYaml returns the path of the config file.
internal/aeintegrate/aeintegrate.go:168
↓ 2 callersFunctionbackupPolicies
[END monitoring_alert_list_policies] [START monitoring_alert_backup_policies] backupPolicies writes a JSON representation of the project's alert polic
monitoring/alert/alert.go:73
↓ 2 callersFunctionbar
(scale int)
profiler/hotapp/main.go:130
↓ 2 callersFunctionbaz
(scale int)
profiler/hotapp/main.go:138
↓ 2 callersMethodbookFromForm
bookFromForm populates the fields of a Book from form values (see templates/edit.html).
getting-started/bookshelf/main.go:166
↓ 2 callersMethodbookFromRequest
bookFromRequest retrieves a book from the database given a book ID in the URL's path.
getting-started/bookshelf/main.go:124
↓ 2 callersFunctioncheckErr
checkErr expects an error under mtls_smoketest, and no error otherwise.
internal/mtls_smoketest/smoketest_test.go:33
↓ 2 callersFunctionclassifyText
[END language_syntax_text] [START language_classify_text]
language/analyze/analyze.go:123
↓ 2 callersFunctioncleanup
cleanup deletes a workflow to ensure that all resources created or utilized during the execution of the test are released.
workflows/executions/test_functions.go:97
↓ 2 callersFunctioncleanupCollection
(ctx context.Context, t *testing.T, client *firestore.Client, collection string)
firestore/collection_group_test.go:222
↓ 2 callersFunctioncleanupInstance
(projectID, instanceID string)
spanner/spanner_snippets/spanner/integration_test.go:1766
↓ 2 callersFunctionclearSecurityMarks
(ctx context.Context, client *securitycenter.Client, findingName string)
securitycenter/findingsv2/findings_test.go:94
↓ 2 callersFunctioncleeanUpTemplates
(t *testing.T, projectID, templateID string)
dlp/snippets/template/template_test.go:98
↓ 2 callersFunctioncollectionGroupSetup
collectionGroupSetup sets up a collection group to query.
firestore/collection_group_setup.go:26
↓ 2 callersFunctionconfigureConnectionPool
configureConnectionPool sets database connection pool properties. For more information, see https://golang.org/pkg/database/sql
cloudsql/postgres/database-sql/cloudsql.go:186
↓ 2 callersFunctionconfigureConnectionPool
configureConnectionPool sets database connection pool properties. For more information, see https://golang.org/pkg/database/sql
cloudsql/mysql/database-sql/cloudsql.go:186
↓ 2 callersFunctioncontains
contains searches for a string value in a string slice.
internal/cloudrunci/cloudrunci_test.go:155
↓ 2 callersFunctioncreate
(w io.Writer, projectID, topicID string)
pubsub/topics/create.go:27
↓ 2 callersFunctioncreate
(w io.Writer, projectID, topicID string)
pubsub/v1samples/topics/create.go:26
↓ 2 callersFunctioncreate
(w io.Writer, projectID, subID string, topic *pubsub.Topic)
pubsub/v1samples/subscriptions/create.go:27
↓ 2 callersFunctioncreate
(w io.Writer, projectID, topic, subscription string)
pubsub/subscriptions/create.go:27
↓ 2 callersFunctioncreateAvroSchema
createAvroSchema creates a schema resource from a JSON-formatted Avro schema file.
pubsub/v1samples/schemas/create_avro_schema.go:28
↓ 2 callersFunctioncreateAvroSchema
createAvroSchema creates a schema resource from a JSON-formatted Avro schema file.
pubsub/schemas/create_avro_schema.go:29
↓ 2 callersFunctioncreateBucket
createBucket creates a new bucket in the project.
storage/buckets/create_bucket.go:28
↓ 2 callersFunctioncreateCDNKey
createCDNKey creates a CDN key. A CDN key is used to retrieve protected media. If isMediaCDN is true, create a Media CDN key. If false, create a Cloud
media/videostitcher/create_cdn_key.go:31
↓ 2 callersFunctioncreateCa
Create Certificate Authority which is the root CA in the given CA Pool. This CA will be responsible for signing certificates within this pool.
privateca/create_ca.go:30
↓ 2 callersFunctioncreateCaPool
Create a Certificate Authority pool. All certificates created under this CA pool will follow the same issuance policy, IAM policies, etc.
privateca/create_ca_pool.go:29
↓ 2 callersFunctioncreateCertificate
Create a Certificate which is issued by the Certificate Authority present in the CA Pool. The key used to sign the certificate is created by the Cloud
privateca/create_certificate.go:30
↓ 2 callersFunctioncreateChannel
createChannel creates a channel.
media/livestream/create_channel.go:30
↓ 2 callersFunctioncreateChannel
createChannel creates a channel.
monitoring/snippets/channel_delete_test.go:54
↓ 2 callersFunctioncreateClients
(ctx context.Context, db string)
spanner/spanner_leaderboard/leaderboard.go:294
↓ 2 callersFunctioncreateDataset
createDataset demonstrates creation of a new dataset using an explicit destination location.
bigquery/snippets/dataset/bigquery_create_dataset.go:26
↓ 2 callersFunctioncreateDisk
(ctx context.Context, projectId, zone, diskName, sourceImage string)
compute/instances/create-start-instance/create_instance_test.go:32
↓ 2 callersFunctioncreateFinding
(findingID string, category string, sourceName string, orgId string)
securitycenter/muteconfig/mute_config_test.go:54
↓ 2 callersFunctioncreateFinding
(findingID string, category string, sourceName string, orgId string)
securitycenter/muteconfigv2/mute_config_test.go:54
↓ 2 callersFunctioncreateGet
[START monitoring_uptime_check_create] createGet creates an example uptime check on a GET request.
monitoring/uptime/uptime.go:35
↓ 2 callersFunctioncreateHTTPTask
createHTTPTask creates a new task with a HTTP target then adds it to a Queue.
tasks/create_http_task.go:29
↓ 2 callersFunctioncreateInspectTemplateForTest
(t *testing.T, projectID string, templateID, displayName, description string, infoTypeNames []string)
dlp/snippets/template/template_test.go:56
↓ 2 callersFunctioncreateInstance
(w io.Writer, projectID, instanceID, clusterID, zone string)
bigtable/instanceadmin/main.go:47
↓ 2 callersFunctioncreateInstanceWithCustomMachineType
createInstanceWithCustomMachineType sends an instance creation request to the Compute Engine API and waits for it to complete.
compute/instances/custom-machine-type/create_custom_machine_type.go:30
↓ 2 callersFunctioncreateJobTemplate
createJobTemplate creates a template for a job. See https://cloud.google.com/transcoder/docs/how-to/job-templates#create_job_templates for more inform
media/transcoder/create_job_template.go:30
↓ 2 callersFunctioncreateModelArmorTemplate
createModelArmorTemplate method creates a new Model Armor template with the provided settings. w io.Writer: The writer to use for logging. projectID
modelarmor/create_template.go:38
↓ 2 callersFunctioncreateMuteRule
createMuteRule: Creates a mute configuration under a given scope that will mute all new findings that match a given filter. Existing findings will not
securitycenter/muteconfig/create_mute_rule.go:31
↓ 2 callersFunctioncreateMuteRule
createMuteRule: Creates a mute configuration under a given scope that will mute all new findings that match a given filter. Existing findings will not
securitycenter/muteconfigv2/create_mute_rule.go:31
↓ 2 callersFunctioncreatePolicyTag
createPolicyTag creates a policy tag resource under a given parent taxonomy. It optionally accepts a parent ID, which can be used to create a hierarc
datacatalog/snippets/policytagmanager/create_policytag.go:31
↓ 2 callersFunctioncreateProtoSchema
createProtoSchema creates a schema resource from a schema proto file.
pubsub/v1samples/schemas/create_proto_schema.go:28
↓ 2 callersFunctioncreateProtoSchema
createProtoSchema creates a schema resource from a schema proto file.
pubsub/schemas/create_proto_schema.go:29
↓ 2 callersFunctioncreateReferenceImage
createReferenceImage creates a reference image for a product.
vision/product_search/create_reference_image.go:30
↓ 2 callersFunctioncreateRegionDisk
(ctx context.Context, projectId, region, diskName string)
compute/snapshots/snapshots_test.go:55
↓ 2 callersFunctioncreateSecondaryDisk
createSecondaryDisk creates a new secondary disk in a project in given zone. Note: secondary disk should be located in a different region, but within
compute/disks/create_secondary_disk.go:31
↓ 2 callersFunctioncreateSnapshot
createSnapshot creates a snapshot of a disk.
compute/snapshots/create_snapshot.go:29
↓ 2 callersFunctioncreateSource
createSource creates a new source for organization orgID. orgID is the numeric identifier of the organization
securitycenter/findingsv2/create_source.go:29
↓ 2 callersFunctioncreateSubWithDeadLetter
createSubWithDeadLetter creates a subscription with a dead letter policy.
pubsub/v1samples/subscriptions/dead_letter_create.go:28
← previousnext →401–500 of 5,023, ranked by callers