From 904252a9e8c8da6b30d37c2c7c0f402f2ec53fcb Mon Sep 17 00:00:00 2001 From: Burcu Dogan Date: Tue, 27 May 2014 14:37:57 +0200 Subject: [PATCH] ComputeEngineConfig should implement TokenFetcher. --- google/google.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/google/google.go b/google/google.go index 72d26fc..5229a83 100644 --- a/google/google.go +++ b/google/google.go @@ -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 +}