Documentation ¶
Overview ¶
Package serviceaccount provides support for making OAuth2-authorized HTTP requests from Google Compute Engine instances using service accounts.
See: https://developers.google.com/compute/docs/authentication
Example usage:
client, err := serviceaccount.NewClient(&serviceaccount.Options{}) if err != nil { c.Errorf("failed to create service account client: %q", err) return err } client.Post("https://www.googleapis.com/compute/...", ...) client.Post("https://www.googleapis.com/bigquery/...", ...)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct { // Underlying transport of service account Client. // If nil, http.DefaultTransport is used. Transport http.RoundTripper // Service account name. // If empty, "default" is used. Account string }
Options configures a service account Client.
Click to show internal directories.
Click to hide internal directories.