gce

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2015 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

This package provides authentication utilities for Google Compute Engine (GCE)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func VerifyAuthScope

func VerifyAuthScope(expectedScope string) error

Checks that the required auth scope is present.

Types

type AuthToken

type AuthToken struct {
	// The actual token.
	AccessToken string `json:"access_token"`

	// Number of seconds in which the token will expire
	ExpiresIn int `json:"expires_in"`

	// Type of token.
	TokenType string `json:"token_type"`
}

func GetAuthToken

func GetAuthToken() (AuthToken, error)

Get a token for performing GCE requests.

Jump to

Keyboard shortcuts

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