Documentation ¶ Overview ¶ This package provides authentication utilities for Google Compute Engine (GCE) Index ¶ func VerifyAuthScope(expectedScope string) error type AuthToken func GetAuthToken() (AuthToken, error) 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. Source Files ¶ View all Source files auth.go Click to show internal directories. Click to hide internal directories.