Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 } |
| OLD | NEW |