ComputeEngineConfig should implement TokenFetcher.

This commit is contained in:
Burcu Dogan 2014-05-27 14:37:57 +02:00
parent 13179d7d8a
commit 904252a9e8
1 changed files with 7 additions and 0 deletions

View File

@ -146,3 +146,10 @@ func (c *ComputeEngineConfig) FetchToken(existing *oauth2.Token) (token *oauth2.
}
return
}
// Cache returns nil. On Google Compute Engine, access tokens are
// retrieved from the metaserver, no other persistence layer is
// required.
func (c *ComputeEngineConfig) Cache() oauth2.Cache {
return nil
}