A library and tools for open cloud development in Go.
Clone or download
jba mempubsub: remove broker (#998)
As discussed in #970, simplify mempubsub by getting rid of Broker
and named topics.
Latest commit ad882e2 Dec 18, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github github: retry issue and pull request templates (#539) Oct 12, 2018
aws runtimevar: drop Client types in favor of direct constructors (#976) Dec 17, 2018
blob all: add a go-cloud useragent to GCP requests (#971) Dec 17, 2018
gcp runtimevar: drop Client types in favor of direct constructors (#976) Dec 17, 2018
health all: change import paths (#955) Dec 13, 2018
internal mempubsub: remove broker (#998) Dec 18, 2018
mysql all: change import paths (#955) Dec 13, 2018
postgres all: change import paths (#955) Dec 13, 2018
requestlog all: change import paths (#955) Dec 13, 2018
runtimevar all: add a go-cloud useragent to GCP requests (#971) Dec 17, 2018
samples all: order cloud client before resource name (#989) Dec 17, 2018
server all: add a go-cloud useragent to GCP requests (#971) Dec 17, 2018
tests all: update remaining references to gocloud.dev (#959) Dec 13, 2018
wire wire: add back README.md (#968) Dec 14, 2018
.gitignore internal/contributebot: update readme's deployment steps (#444) Sep 14, 2018
.travis.yml all: change import paths (#955) Dec 13, 2018
AUTHORS CONTRIBUTORS: update Steve's email address (#912) Dec 7, 2018
CODE_OF_CONDUCT.md CODE_OF_CONDUCT: add notice (#79) Jun 8, 2018
CONTRIBUTING.md CONTRIBUTING: update code review workflow and contributions for frequ… Nov 28, 2018
CONTRIBUTORS CONTRIBUTORS: update Steve's email address (#912) Dec 7, 2018
LICENSE Initial commit Mar 21, 2018
README.md README: fix reference to old import path in installation (#962) Dec 14, 2018
doc.go all: change import paths (#955) Dec 13, 2018
go.mod all: change import paths (#955) Dec 13, 2018
go.sum tests: run "wire diff" in addition to "wire check" (#880) Dec 4, 2018
logo-gopherblue.png README: add logo (#537) Oct 12, 2018

README.md

The Go Cloud Project

Write once, run on any cloud ☁️

Build Status godoc Coverage Status

The Go Cloud Project is an initiative that will allow application developers to seamlessly deploy cloud applications on any combination of cloud providers. It does this by providing stable, idiomatic interfaces for common uses like storage and databases. Think database/sql for cloud products.

Imagine writing this to read from blob storage (like Google Cloud Storage or S3):

blobReader, err := bucket.NewReader(context.Background(), "my-blob", nil)

and being able to run that code on any cloud you want, avoiding all the ceremony of cloud-specific authorization, tracing, SDKs and all the other code required to make an application portable across cloud platforms.

The project works well with a code generator called Wire. It creates human-readable code that only imports the cloud SDKs for providers you use. This allows Go Cloud to grow to support any number of cloud providers, without increasing compile times or binary sizes, and avoiding any side effects from init() functions.

You can learn more about the project from our announcement blog post, or our talk at Next 2018:

Video: Building Go Applications for the Open Cloud (Cloud Next '18)

Installation instructions

go get gocloud.dev
go get github.com/google/wire/cmd/wire

Go Cloud builds at the latest stable release of Go. Previous Go versions may compile but are not supported.

Samples

samples/tutorial shows how to get started with the project by using blob storage.

samples/guestbook contains an example guestbook application (just like it's 1999!) that can be run locally, on Google Cloud Platform or on Amazon Web Services. The instructions take about 5 minutes to follow if running locally. If you want to see the guestbook app running on cloud resources, it will take about 30 minutes to follow, and uses Terraform to automatically provision the resources needed.

Project status

This project is in alpha and is not yet suitable for production.

While in alpha, the API is subject to breaking changes.

Current features

Go Cloud provides generic APIs for:

  • Unstructured binary (blob) storage
  • Variables that change at runtime (configuration)
  • Connecting to MySQL databases
  • Server startup and diagnostics: request logging, tracing, and health checking

Contributing

Thank you for your interest in contributing to Go Cloud! ❤️

Everyone is welcome to contribute to Go Cloud, whether it's in the form of code, documentation, bug reports, feature requests, or anything else. We encourage you to experiment with Go Cloud and make contributions to help evolve it to meet your needs!

The GitHub repository at google/go-cloud currently contains Google Cloud Platform and Amazon Web Services implementations as examples to prove everything is working. Unfortunately, we cannot support every cloud provider directly from the project.

If you create a repository that implements the Go Cloud interfaces for other cloud providers, let us know! We would be happy to link to it here and give you a heads-up before making any breaking changes.

See the contributing guide for more details.

Community

You can contact us on the go-cloud mailing list.

This project is covered by the Go Code of Conduct.