GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — java-docs-samples/functions at main · GoogleCloudPlatform/java-docs-samples

Expand file tree

/

functions

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

functions

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
concepts
concepts
 
 
firebase
firebase
 
 
helloworld
helloworld
 
 
http
http
 
 
imagemagick
imagemagick
 
 
logging
logging
 
 
ocr
ocr
 
 
pubsub
pubsub
 
 
slack
slack
 
 
spanner
spanner
 
 
v2
v2
 
 
README.md
README.md
 
 

README.md

Outline

Google Cloud Platform logo

Google Cloud Functions Java Samples

Cloud Run functions is a lightweight, event-based, asynchronous compute solution that allows you to create small, single-purpose functions that respond to Cloud events without the need to manage a server or a runtime environment.

There are two versions of Cloud Run functions:

  • Cloud Run functions, formerly known as Cloud Functions (2nd gen), which deploys your function as services on Cloud Run, allowing you to trigger them using Eventarc and Pub/Sub. Cloud Run functions are created using gcloud functions or gcloud run. Samples for Cloud Run functions can be found in the functions/v2 folder.
  • Cloud Run functions (1st gen), formerly known as Cloud Functions (1st gen), the original version of functions with limited event triggers and configurability. Cloud Run functions (1st gen) are created using gcloud functions --no-gen2. Samples for Cloud Run functions (1st generation) can be found in the current functions/ folder.

Samples

  • Hello World
  • Concepts
  • Datastore
  • Firebase
  • Cloud Pub/Sub
  • HTTP
  • Logging & Monitoring
  • Slack
  • OCR tutorial
  • ImageMagick

Running Functions Locally

The Java Functions Framework Maven plugin (com.google.cloud.functions:function-maven-plugin) allows you to run Java Cloud Functions code on your local machine for local development and testing purposes. Use the following Maven command to run a function locally:

mvn function:run -Drun.functionTarget=your.package.yourFunction
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.