- Notifications
You must be signed in to change notification settings - Fork3
Repository for various custom samples for Cloud Code
License
meteatamel/cloud-code-custom-templates
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This repository contains some starter Cloud Functions and Cloud Run templatesfor Cloud Code for VS Code for different languages. Each template includesminimal starter code for HTTP or CloudEvent triggered Cloud Functions or CloudRun services that use the recommended libraries (CloudEventsSDK andGoogle CloudEventslibraries) for each language.They also includes lightweightgcloud
based scripts to quickly test serviceslocally, deploy to the cloud, and test in the cloud.
Cloud Code comes with some default Cloud Run and Cloud Functions templates(hosted incloud-code-samplesrepo) but they're limited:
- Only four languages are supported (Node.js, Python, Go, and Java) in CloudFunctions templates and deployment. I’ve especially missed the NET support.
- Templates for Cloud Run and Cloud Functions are only for HTTP triggeredservices. No templates for event triggered services.
- Testing only works against deployed HTTP triggered services. No testingsupport for locally running services or event triggered services.
You can use these templates in standalone Cloud Code for VS Code or the CloudCode in the editor of Cloud Shell in the browser.
To use these templates as starter projects:
- Click on
Cloud Code
in VS Code. - Select
New Application
->Custom Application
->Import Sample from Repo
- Point to this repository.
- Choose a template as a starter project and follow the instructions in the
README.md
of the template.
.NET:
- .NET: Cloud Functions - hello-http - AnHTTP triggered .NET Cloud Functions template.
- .NET: Cloud Functions - hello-gcs - ACloud Storage triggered .NET Cloud Functions template.
- .NET: Cloud Functions - hello-pubsub - APub/Sub triggered .NET Cloud Functions template.
- .NET: Cloud Functions - hello-auditlog - AnAuditLog triggered .NET Cloud Functions template.
Java:
- Java: Cloud Functions - hello-http - AnHTTP triggered Java Cloud Functions template.
- Java: Cloud Functions - hello-gcs - ACloud Storage triggered Java Cloud Functions template.
- Java: Cloud Functions - hello-pubsub - APub/Sub triggered Java Cloud Functions template.
- Java: Cloud Functions - hello-auditlog - AnAuditLog triggered Java Cloud Functions template.
Node.js:
- Node.js: Cloud Functions - hello-http - AnHTTP triggered Node.js Cloud Functions template.
- Node.js: Cloud Functions - hello-gcs - ACloud Storage triggered Node.js Cloud Functions template.
- Node.js: Cloud Functions - hello-pubsub - APub/Sub triggered Node.js Cloud Functions template.
- Node.js: Cloud Functions - hello-auditlog - AnAuditLog triggered Node.js Cloud Functions template.
Python:
- Python: Cloud Functions - hello-http - AnHTTP triggered Python Cloud Functions template.
- Python: Cloud Functions - hello-gcs - ACloud Storage triggered Python Cloud Functions template.
- Python: Cloud Functions - hello-pubsub - APub/Sub triggered Python Cloud Functions template.
- Python: Cloud Functions - hello-auditlog - AnAuditLog triggered Python Cloud Functions template.
.NET:
- .NET: Cloud Run - hello-http - An HTTP triggered .NETCloud Run template.
- .NET: Cloud Run - hello-gcs - A Cloud Storage triggered.NET Cloud Run template.
- .NET: Cloud Run - hello-pubsub - A Pub/Sub triggered.NET Cloud Run template.
- .NET: Cloud Run - hello-auditlog - An AuditLogtriggered .NET Cloud Run template.
Java:
- Java: Cloud Run - hello-http - An HTTP triggered JavaCloud Run template.
- Java: Cloud Run - hello-gcs - A Cloud Storage triggeredJava Cloud Run template.
- Java: Cloud Run - hello-pubsub - A Pub/Sub triggeredJava Cloud Run template.
- Java: Cloud Run - hello-auditlog - An AuditLogtriggered Java Cloud Run template.
Node.js:
- Node.js: Cloud Run - hello-http - An HTTP triggered Node.jsCloud Run template.
- Node.js: Cloud Run - hello-gcs - A Cloud Storage triggeredNode.js Cloud Run template.
- Node.js: Cloud Run - hello-pubsub - A Pub/Sub triggeredNode.js Cloud Run template.
- Node.js: Cloud Run - hello-auditlog - An AuditLogtriggered Node.js Cloud Run template.
Python:
- Python: Cloud Run - hello-http - An HTTP triggeredPython Cloud Run template.
- Python: Cloud Run - hello-gcs - A Cloud Storage triggeredPython Cloud Run template.
- Python: Cloud Run - hello-pubsub - A Pub/Sub triggeredPython Cloud Run template.
- Python: Cloud Run - hello-auditlog - An AuditLogtriggered Python Cloud Run template.
This is not an official Google product.
About
Repository for various custom samples for Cloud Code
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.