config

package
v0.0.0-...-bdfd36d Latest Latest
Warning

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

Go to latest
Published: May 1, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SDKConfig

type SDKConfig struct {
	// contains filtered or unexported fields
}

An SDKConfig provides access to tokens from an account already authorized via the Google Cloud SDK.

func NewSDKConfig

func NewSDKConfig() (*SDKConfig, error)

func (*SDKConfig) ProjectID

func (c *SDKConfig) ProjectID() (string, error)

ProjectID returns the project id retrieved from the Google Cloud SDK.

func (*SDKConfig) Token

func (c *SDKConfig) Token() (*oauth2.Token, error)

Token returns an oauth2.Token retrieved from the Google Cloud SDK.

Jump to

Keyboard shortcuts

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