cloud

package
v0.0.0-...-f48b261 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2016 License: Apache-2.0, Apache-2.0 Imports: 5 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.

Types

This section is empty.

Directories

Path Synopsis
compute
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.
Package internal provides support for the cloud packages.
Package internal provides support for the cloud packages.
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