One common theme with many organizations is the need for portability across cloud providers. These teams want to deploy robust applications in multi-cloud and hybrid-cloud environments, and migrate their workloads between cloud providers without significant changes to their code.
Go Cloud is launching with blob storage, MySQL database access, runtime configuration, and an HTTP server configured with request logging, tracing, and health checking. Go Cloud offers support for Google Cloud Platform (GCP) and Amazon Web Services (AWS). We plan to work with cloud industry partners and the Go community to add support for additional cloud providers very soon
1 | // setupBucket opens an AWS bucket. |
1 | // setupBucket opens a GCS bucket. |
针对不同的云平台,相关的bucket的设置不同罢了。。
原理上,就是将对云的一些操作,集成到go-cloud里面去