Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(719)

Side by Side Diff: impl/memory/info.go

Issue 2957413002: Info Memory: Implement dummy ServiceAccount() (Closed)
Patch Set: Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | impl/memory/info_test.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The LUCI Authors. All rights reserved. 1 // Copyright 2015 The LUCI Authors. All rights reserved.
2 // Use of this source code is governed under the Apache License, Version 2.0 2 // Use of this source code is governed under the Apache License, Version 2.0
3 // that can be found in the LICENSE file. 3 // that can be found in the LICENSE file.
4 4
5 package memory 5 package memory
6 6
7 import ( 7 import (
8 "fmt" 8 "fmt"
9 9
10 "github.com/luci/gae/impl/dummy" 10 "github.com/luci/gae/impl/dummy"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 } 86 }
87 87
88 func (gi *giImpl) DefaultVersionHostname() string { 88 func (gi *giImpl) DefaultVersionHostname() string {
89 return fmt.Sprintf("%s.example.com", gi.appID) 89 return fmt.Sprintf("%s.example.com", gi.appID)
90 } 90 }
91 91
92 func (gi *giImpl) IsDevAppServer() bool { 92 func (gi *giImpl) IsDevAppServer() bool {
93 return true 93 return true
94 } 94 }
95 95
96 func (gi *giImpl) ServiceAccount() (string, error) {
97 return "user@example.com", nil
iannucci 2017/06/28 22:19:51 maybe gae_service_account@example.com To distin
98 }
99
96 func (gi *giImpl) VersionID() string { 100 func (gi *giImpl) VersionID() string {
97 return curGID(gi.c).versionID 101 return curGID(gi.c).versionID
98 } 102 }
99 103
100 func (gi *giImpl) RequestID() string { 104 func (gi *giImpl) RequestID() string {
101 return curGID(gi.c).requestID 105 return curGID(gi.c).requestID
102 } 106 }
103 107
104 func (gi *giImpl) GetTestable() info.Testable { 108 func (gi *giImpl) GetTestable() info.Testable {
105 return gi 109 return gi
106 } 110 }
107 111
108 func (gi *giImpl) SetVersionID(v string) context.Context { 112 func (gi *giImpl) SetVersionID(v string) context.Context {
109 return useGID(gi.c, func(mod *globalInfoData) { 113 return useGID(gi.c, func(mod *globalInfoData) {
110 mod.versionID = v 114 mod.versionID = v
111 }) 115 })
112 } 116 }
113 117
114 func (gi *giImpl) SetRequestID(v string) context.Context { 118 func (gi *giImpl) SetRequestID(v string) context.Context {
115 return useGID(gi.c, func(mod *globalInfoData) { 119 return useGID(gi.c, func(mod *globalInfoData) {
116 mod.requestID = v 120 mod.requestID = v
117 }) 121 })
118 } 122 }
OLDNEW
« no previous file with comments | « no previous file | impl/memory/info_test.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698