samples

package module
v0.0.0-...-1fac7cf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2016 License: Apache-2.0 Imports: 0 Imported by: 0

README

Google Cloud Platform Go Samples

Build Status

This repository holds sample code written in Go that demonstrates the Google Cloud Platform.

Some samples have accompanying guides on cloud.google.com. See respective README files for details.

Contributing changes.

Entirely new samples are not accepted. Bug fixes are welcome, either as pull requests or as GitHub issues.

See CONTRIBUTING.md for details on how to contribute.

Licensing

Code in this repository is licensed under the Apache 2.0. See LICENSE.

Index

Note: samples under docs/appengine are not shown because they mostly do not run, they are just code snippets.

Path Description
appengine/bigquery This App Engine application uses its default service account to list all the BigQuery datasets accessible via the BigQuery REST API.
bigquery/syncquery Command syncquery queries a Google BigQuery dataset.
datastore/tasks A simple command-line task list manager to demonstrate using the cloud.google.com/go//datastore package.
docs/error-reporting/fluent Sample fluent demonstrates integration of fluent and Cloud Error reporting.
docs/managed_vms/analytics Sample analytics demonstrates Google Analytics calls from App Engine flexible environment.
docs/managed_vms/cloudsql Sample cloudsql demonstrates usage of Cloud SQL from App Engine flexible environment.
docs/managed_vms/datastore Sample datastore demonstrates use of the cloud.google.com/go/datastore package from App Engine flexible.
docs/managed_vms/endpoints Sample endpoints demonstrates a Cloud Endpoints API.
docs/managed_vms/endpoints/client Command client performs authenticated requests against an Endpoints API server.
docs/managed_vms/helloworld Sample helloworld is a basic App Engine flexible app.
docs/managed_vms/mailgun Sample mailgun is a demonstration on sending an e-mail from App Engine flexible environment.
docs/managed_vms/mailjet Sample mailjet is a demonstration on sending an e-mail from App Engine flexible environment.
docs/managed_vms/memcache Sample memcache demonstrates use of a memcached client from App Engine flexible environment.
docs/managed_vms/pubsub Sample pubsub demonstrates use of the cloud.google.com/go/pubsub package from App Engine flexible environment.
docs/managed_vms/sendgrid Sample sendgrid is a demonstration on sending an e-mail from App Engine flexible environment.
docs/managed_vms/static_files Package static demonstrates a static file handler for App Engine flexible environment.
docs/managed_vms/storage Sample storage demonstrates use of the cloud.google.com/go/storage package from App Engine flexible environment.
docs/managed_vms/tiny Sample tiny demonstrates overall program structure: a main package with a main function that calls appengine.Main.
docs/managed_vms/twilio Sample twilio demonstrates sending and receiving SMS, receiving calls via Twilio from App Engine flexible environment.
docs/sql/listinstances Sample listinstances lists the Cloud SQL instances for a given project ID.
docs/storage/listbuckets Command listbuckets lists the Google Cloud buckets for a given project ID.
getting-started/bookshelf Package bookshelf contains the bookshelf database and app configuration, shared by the main app module and the worker module.
getting-started/bookshelf/app Sample bookshelf is a fully-featured app demonstrating several Google Cloud APIs, including Datastore, Cloud SQL, Cloud Storage.
getting-started/bookshelf/pubsub_worker Sample pubsub_worker demonstrates the use of the Cloud Pub/Sub API to communicate between two modules.
getting-started/helloworld Sample helloworld is a basic App Engine flexible app.
language/analyze Command analyze performs sentiment, entity, and syntax analysis on a string of text via the Cloud Natural Language API.
logging/simplelog Sample simplelog writes some entries, lists them, then deletes the log.
monitoring/custommetric Command custommetric creates a custom metric and writes TimeSeries value to it.
monitoring/listresources Command listresources lists the Google Cloud Monitoring v3 Environment against an authenticated user.
pubsub/subscriptions Command subscriptions is a tool to manage Google Cloud Pub/Sub subscriptions by using the Pub/Sub API.
pubsub/topics Command topics is a tool to manage Google Cloud Pub/Sub topics by using the Pub/Sub API.
speech/caption Command caption reads an audio file and outputs the transcript for it.
storage/buckets Sample buckets creates a bucket, lists buckets and deletes a bucket using the Google Storage API.
vision/label Command label uses the Vision API's label detection capabilities to find a label based on an image's content.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
appengine
bigquery
This App Engine application uses its default service account to list all the BigQuery datasets accessible via the BigQuery REST API.
This App Engine application uses its default service account to list all the BigQuery datasets accessible via the BigQuery REST API.
bigquery
syncquery
Command syncquery queries a Google BigQuery dataset.
Command syncquery queries a Google BigQuery dataset.
datastore
tasks
A simple command-line task list manager to demonstrate using the cloud.google.com/go//datastore package.
A simple command-line task list manager to demonstrate using the cloud.google.com/go//datastore package.
docs
appengine/blobstore
[START complete_sample_application]
[START complete_sample_application]
appengine/cloudsql
Sample cloudsql demonstrates connection to a Cloud SQL instance from App Engine standard.
Sample cloudsql demonstrates connection to a Cloud SQL instance from App Engine standard.
appengine/datastore/transactions
[START using_transactions]
[START using_transactions]
appengine/logs
[START sample_code] This sample gets the app displays 5 log Records at a time, including all AppLogs, with a Next link to let the user page through the results using the Record's Offset property.
[START sample_code] This sample gets the app displays 5 log Records at a time, including all AppLogs, with a Next link to let the user page through the results using the Record's Offset property.
appengine/mail/mailjet
Sample mailjet is a demonstration on sending an e-mail from App Engine standard environment.
Sample mailjet is a demonstration on sending an e-mail from App Engine standard environment.
appengine/requests
[START requests_and_HTTP]
[START requests_and_HTTP]
appengine/taskqueue/push
[START intro]
[START intro]
appengine/tools/unittest
[START package_example_1]
[START package_example_1]
appengine/warmup
Sample warmup demonstrates usage of the /_ah/warmup handler.
Sample warmup demonstrates usage of the /_ah/warmup handler.
appengine/xmpp
[START example_sending]
[START example_sending]
error-reporting/fluent
Sample fluent demonstrates integration of fluent and Cloud Error reporting.
Sample fluent demonstrates integration of fluent and Cloud Error reporting.
managed_vms/analytics
Sample analytics demonstrates Google Analytics calls from App Engine flexible environment.
Sample analytics demonstrates Google Analytics calls from App Engine flexible environment.
managed_vms/cloudsql
Sample cloudsql demonstrates usage of Cloud SQL from App Engine flexible environment.
Sample cloudsql demonstrates usage of Cloud SQL from App Engine flexible environment.
managed_vms/datastore
Sample datastore demonstrates use of the cloud.google.com/go/datastore package from App Engine flexible.
Sample datastore demonstrates use of the cloud.google.com/go/datastore package from App Engine flexible.
managed_vms/endpoints
Sample endpoints demonstrates a Cloud Endpoints API.
Sample endpoints demonstrates a Cloud Endpoints API.
managed_vms/endpoints/client
Command client performs authenticated requests against an Endpoints API server.
Command client performs authenticated requests against an Endpoints API server.
managed_vms/helloworld
Sample helloworld is a basic App Engine flexible app.
Sample helloworld is a basic App Engine flexible app.
managed_vms/mailgun
Sample mailgun is a demonstration on sending an e-mail from App Engine flexible environment.
Sample mailgun is a demonstration on sending an e-mail from App Engine flexible environment.
managed_vms/mailjet
Sample mailjet is a demonstration on sending an e-mail from App Engine flexible environment.
Sample mailjet is a demonstration on sending an e-mail from App Engine flexible environment.
managed_vms/memcache
Sample memcache demonstrates use of a memcached client from App Engine flexible environment.
Sample memcache demonstrates use of a memcached client from App Engine flexible environment.
managed_vms/pubsub
Sample pubsub demonstrates use of the cloud.google.com/go/pubsub package from App Engine flexible environment.
Sample pubsub demonstrates use of the cloud.google.com/go/pubsub package from App Engine flexible environment.
managed_vms/sendgrid
Sample sendgrid is a demonstration on sending an e-mail from App Engine flexible environment.
Sample sendgrid is a demonstration on sending an e-mail from App Engine flexible environment.
managed_vms/static_files
Package static demonstrates a static file handler for App Engine flexible environment.
Package static demonstrates a static file handler for App Engine flexible environment.
managed_vms/storage
Sample storage demonstrates use of the cloud.google.com/go/storage package from App Engine flexible environment.
Sample storage demonstrates use of the cloud.google.com/go/storage package from App Engine flexible environment.
managed_vms/tiny
Sample tiny demonstrates overall program structure: a main package with a main function that calls appengine.Main.
Sample tiny demonstrates overall program structure: a main package with a main function that calls appengine.Main.
managed_vms/twilio
Sample twilio demonstrates sending and receiving SMS, receiving calls via Twilio from App Engine flexible environment.
Sample twilio demonstrates sending and receiving SMS, receiving calls via Twilio from App Engine flexible environment.
sql/listinstances
Sample listinstances lists the Cloud SQL instances for a given project ID.
Sample listinstances lists the Cloud SQL instances for a given project ID.
storage/listbuckets
Command listbuckets lists the Google Cloud buckets for a given project ID.
Command listbuckets lists the Google Cloud buckets for a given project ID.
getting-started
bookshelf
Package bookshelf contains the bookshelf database and app configuration, shared by the main app module and the worker module.
Package bookshelf contains the bookshelf database and app configuration, shared by the main app module and the worker module.
bookshelf/app
Sample bookshelf is a fully-featured app demonstrating several Google Cloud APIs, including Datastore, Cloud SQL, Cloud Storage.
Sample bookshelf is a fully-featured app demonstrating several Google Cloud APIs, including Datastore, Cloud SQL, Cloud Storage.
bookshelf/pubsub_worker
Sample pubsub_worker demonstrates the use of the Cloud Pub/Sub API to communicate between two modules.
Sample pubsub_worker demonstrates the use of the Cloud Pub/Sub API to communicate between two modules.
helloworld
Sample helloworld is a basic App Engine flexible app.
Sample helloworld is a basic App Engine flexible app.
internal
aeintegrate
Package aeintegrate facilitates end-to-end testing against the production Google App Engine.
Package aeintegrate facilitates end-to-end testing against the production Google App Engine.
e2e
testutil
Package testutil provides test helpers for the golang-samples repo.
Package testutil provides test helpers for the golang-samples repo.
webtest
Package webtest provides helpers for testing web applications.
Package webtest provides helpers for testing web applications.
language
analyze
Command analyze performs sentiment, entity, and syntax analysis on a string of text via the Cloud Natural Language API.
Command analyze performs sentiment, entity, and syntax analysis on a string of text via the Cloud Natural Language API.
logging
exportlogs
Sample exportlogs lists, creates, updates, and deletes log sinks.
Sample exportlogs lists, creates, updates, and deletes log sinks.
simplelog
Sample simplelog writes some entries, lists them, then deletes the log.
Sample simplelog writes some entries, lists them, then deletes the log.
monitoring
custommetric
Command custommetric creates a custom metric and writes TimeSeries value to it.
Command custommetric creates a custom metric and writes TimeSeries value to it.
listresources
Command listresources lists the Google Cloud Monitoring v3 Environment against an authenticated user.
Command listresources lists the Google Cloud Monitoring v3 Environment against an authenticated user.
pubsub
subscriptions
Command subscriptions is a tool to manage Google Cloud Pub/Sub subscriptions by using the Pub/Sub API.
Command subscriptions is a tool to manage Google Cloud Pub/Sub subscriptions by using the Pub/Sub API.
topics
Command topics is a tool to manage Google Cloud Pub/Sub topics by using the Pub/Sub API.
Command topics is a tool to manage Google Cloud Pub/Sub topics by using the Pub/Sub API.
speech
caption
Command caption reads an audio file and outputs the transcript for it.
Command caption reads an audio file and outputs the transcript for it.
captionasync
Command captionasync sends audio data to the Google Speech API and pulls the operation status and the transcript.
Command captionasync sends audio data to the Google Speech API and pulls the operation status and the transcript.
storage
buckets
Sample buckets creates a bucket, lists buckets and deletes a bucket using the Google Storage API.
Sample buckets creates a bucket, lists buckets and deletes a bucket using the Google Storage API.
vision
label
Command label uses the Vision API's label detection capabilities to find a label based on an image's content.
Command label uses the Vision API's label detection capabilities to find a label based on an image's content.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL