cloud

package module
v0.0.0-...-fe65b10 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2014 License: Apache-2.0 Imports: 6 Imported by: 0

README

Google Cloud for Go

Work in progress, watch the repo for notifications.

We are planning release the initial version with support for the following Cloud APIs.

  • Google Cloud Datastore
  • Google Cloud Storage
  • Google Cloud SQL
  • Google Cloud Pub/Sub
import "google.golang.org/cloud"

Further documentation and examples are available on http://godoc.org/google.golang.org/cloud

Contributing

Fork the repo, make changes, run the tests and open a pull request.

Before we can accept any pull requests we have to jump through a couple of legal hurdles, primarily a Contributor License Agreement (CLA):

  • If you are an individual writing original source code and you're sure you own the intellectual property, then you'll need to sign an individual CLA.
  • If you work for a company that wants to allow you to contribute your work, then you'll need to sign a corporate CLA.

You can sign these electronically (just scroll to the bottom). After that, we'll be able to accept your pull requests.

Documentation

Overview

Package cloud contains Google Cloud Platform APIs related types and common functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewContext

func NewContext(projID string, c *http.Client) context.Context

NewContext returns a new context that uses the provided http.Client. Provided http.Client is responsible to authorize and authenticate the requests made to the Google Cloud APIs. It mutates the client's original Transport to append the cloud package's user-agent to the outgoing requests. You can obtain the project ID from the Google Developers Console, https://console.developers.google.com.

func WithContext

func WithContext(parent context.Context, projID string, c *http.Client) context.Context

WithContext returns a new context in a similar way NewContext does, but initiates the new context with the specified parent.

func WithNamespace

func WithNamespace(ctx context.Context, namespace string) context.Context

WithNamespace returns a new context that wraps an existing contect and uses the specified namespace

func WithZone

func WithZone(ctx context.Context, zone string) context.Context

WithZone returns a new context that wraps an existing contect and uses the specified zone

Types

This section is empty.

Directories

Path Synopsis
compute
computeutil
Package computeutil provides helpers around the Google Cloud Engine API.
Package computeutil provides helpers around the Google Cloud Engine API.
metadata
Package metadata provides access to Google Compute Engine (GCE) metadata and API service accounts.
Package metadata provides access to Google Compute Engine (GCE) metadata and API service accounts.
examples
compute/compute-boot
instance is a sample application using the computeutil package.
instance is a sample application using the computeutil package.
pubsub/cmdline
Package main contains a simple command line tool for Cloud Pub/Sub Cloud Pub/Sub docs: https://cloud.google.com/pubsub/docs
Package main contains a simple command line tool for Cloud Pub/Sub Cloud Pub/Sub docs: https://cloud.google.com/pubsub/docs
storage/appenginevm
Package gcsdemo is an example Managed VM app using the Google Cloud Storage API.
Package gcsdemo is an example Managed VM app using the Google Cloud Storage API.
Package internal provides support for the cloud packages.
Package internal provides support for the cloud packages.
datastore
Package pb is a generated protocol buffer package.
Package pb is a generated protocol buffer package.
Package pubsub is a Google Cloud Pub/Sub client.
Package pubsub is a Google Cloud Pub/Sub client.
Package storage is a Google Cloud Storage client.
Package storage is a Google Cloud Storage client.

Jump to

Keyboard shortcuts

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