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

Side by Side Diff: impl/dummy/dummy.go

Issue 2062613002: Add TrimmedAppID to info service. (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/gae@master
Patch Set: Created 4 years, 6 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
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 dummy 5 package dummy
6 6
7 import ( 7 import (
8 "fmt" 8 "fmt"
9 "runtime" 9 "runtime"
10 "strings" 10 "strings"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 func (ds) AllocateIDs(*datastore.Key, int) (int64, error) { 76 func (ds) AllocateIDs(*datastore.Key, int) (int64, error) {
77 panic(ni()) 77 panic(ni())
78 } 78 }
79 func (ds) PutMulti([]*datastore.Key, []datastore.PropertyMap, datastore.PutMulti CB) error { 79 func (ds) PutMulti([]*datastore.Key, []datastore.PropertyMap, datastore.PutMulti CB) error {
80 panic(ni()) 80 panic(ni())
81 } 81 }
82 func (ds) GetMulti([]*datastore.Key, datastore.MultiMetaGetter, datastore.GetMul tiCB) error { 82 func (ds) GetMulti([]*datastore.Key, datastore.MultiMetaGetter, datastore.GetMul tiCB) error {
83 panic(ni()) 83 panic(ni())
84 } 84 }
85 func (ds) DeleteMulti([]*datastore.Key, datastore.DeleteMultiCB) error { panic(n i()) } 85 func (ds) DeleteMulti([]*datastore.Key, datastore.DeleteMultiCB) error { panic(n i()) }
86 func (ds) NewQuery(string) datastore.Query { panic(n i()) }
87 func (ds) DecodeCursor(string) (datastore.Cursor, error) { panic(n i()) } 86 func (ds) DecodeCursor(string) (datastore.Cursor, error) { panic(n i()) }
88 func (ds) Count(*datastore.FinalizedQuery) (int64, error) { panic(n i()) } 87 func (ds) Count(*datastore.FinalizedQuery) (int64, error) { panic(n i()) }
89 func (ds) Run(*datastore.FinalizedQuery, datastore.RawRunCB) error { panic(n i()) } 88 func (ds) Run(*datastore.FinalizedQuery, datastore.RawRunCB) error { panic(n i()) }
90 func (ds) RunInTransaction(func(context.Context) error, *datastore.TransactionOp tions) error { 89 func (ds) RunInTransaction(func(context.Context) error, *datastore.TransactionOp tions) error {
91 panic(ni()) 90 panic(ni())
92 } 91 }
93 func (ds) Testable() datastore.Testable { return nil } 92 func (ds) Testable() datastore.Testable { return nil }
94 93
95 var dummyDSInst = ds{} 94 var dummyDSInst = ds{}
96 95
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 func (i) GetNamespace() (string, bool) { return "dummy-namespace", true } 146 func (i) GetNamespace() (string, bool) { return "dummy-namespace", true }
148 func (i) ModuleHostname(module, version, instance string) (string, error) { panic(ni()) } 147 func (i) ModuleHostname(module, version, instance string) (string, error) { panic(ni()) }
149 func (i) ModuleName() string { panic(ni()) } 148 func (i) ModuleName() string { panic(ni()) }
150 func (i) DefaultVersionHostname() string { panic(ni()) } 149 func (i) DefaultVersionHostname() string { panic(ni()) }
151 func (i) PublicCertificates() ([]info.Certificate, error) { panic(ni()) } 150 func (i) PublicCertificates() ([]info.Certificate, error) { panic(ni()) }
152 func (i) RequestID() string { panic(ni()) } 151 func (i) RequestID() string { panic(ni()) }
153 func (i) ServiceAccount() (string, error) { panic(ni()) } 152 func (i) ServiceAccount() (string, error) { panic(ni()) }
154 func (i) SignBytes(bytes []byte) (keyName string, signature []byte, err error) { panic(ni()) } 153 func (i) SignBytes(bytes []byte) (keyName string, signature []byte, err error) { panic(ni()) }
155 func (i) VersionID() string { panic(ni()) } 154 func (i) VersionID() string { panic(ni()) }
156 func (i) Namespace(namespace string) (context.Context, error) { panic(ni()) } 155 func (i) Namespace(namespace string) (context.Context, error) { panic(ni()) }
157 func (i) MustNamespace(namespace string) context.Context { panic(ni()) }
158 func (i) Datacenter() string { panic(ni()) } 156 func (i) Datacenter() string { panic(ni()) }
159 func (i) InstanceID() string { panic(ni()) } 157 func (i) InstanceID() string { panic(ni()) }
160 func (i) IsDevAppServer() bool { panic(ni()) } 158 func (i) IsDevAppServer() bool { panic(ni()) }
161 func (i) ServerSoftware() string { panic(ni()) } 159 func (i) ServerSoftware() string { panic(ni()) }
162 func (i) IsCapabilityDisabled(err error) bool { panic(ni()) } 160 func (i) IsCapabilityDisabled(err error) bool { panic(ni()) }
163 func (i) IsOverQuota(err error) bool { panic(ni()) } 161 func (i) IsOverQuota(err error) bool { panic(ni()) }
164 func (i) IsTimeoutError(err error) bool { panic(ni()) } 162 func (i) IsTimeoutError(err error) bool { panic(ni()) }
165 func (i) Testable() info.Testable { panic(ni()) } 163 func (i) Testable() info.Testable { panic(ni()) }
166 164
167 var dummyInfoInst = i{} 165 var dummyInfoInst = i{}
168 166
169 // Info returns a dummy info.Interface implementation suitable for embedding. 167 // Info returns a dummy info.RawInterface implementation suitable for embedding.
170 // Every method panics with a message containing the name of the method which 168 // Every method panics with a message containing the name of the method which
171 // was unimplemented. 169 // was unimplemented.
172 func Info() info.Interface { return dummyInfoInst } 170 func Info() info.RawInterface { return dummyInfoInst }
173 171
174 ////////////////////////////////////// u /////////////////////////////////////// 172 ////////////////////////////////////// u ///////////////////////////////////////
175 173
176 type u struct{} 174 type u struct{}
177 175
178 func (u) Current() *user.User { panic(ni()) } 176 func (u) Current() *user.User { panic(ni()) }
179 func (u) CurrentOAuth(...string) (*user.User, error) { panic(ni()) } 177 func (u) CurrentOAuth(...string) (*user.User, error) { panic(ni()) }
180 func (u) IsAdmin() bool { panic(ni()) } 178 func (u) IsAdmin() bool { panic(ni()) }
181 func (u) LoginURL(string) (string, error) { panic(ni()) } 179 func (u) LoginURL(string) (string, error) { panic(ni()) }
182 func (u) LoginURLFederated(string, string) (string, error) { panic(ni()) } 180 func (u) LoginURLFederated(string, string) (string, error) { panic(ni()) }
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 func (mod) DefaultVersion(module string) (string, error) { panic( ni()) } 215 func (mod) DefaultVersion(module string) (string, error) { panic( ni()) }
218 func (mod) Start(module, version string) error { panic( ni()) } 216 func (mod) Start(module, version string) error { panic( ni()) }
219 func (mod) Stop(module, version string) error { panic( ni()) } 217 func (mod) Stop(module, version string) error { panic( ni()) }
220 218
221 var dummyModuleInst = mod{} 219 var dummyModuleInst = mod{}
222 220
223 // Module returns a dummy module.Interface implementation suitable for 221 // Module returns a dummy module.Interface implementation suitable for
224 // embedding. Every method panics with a message containing the name of the 222 // embedding. Every method panics with a message containing the name of the
225 // method which was unimplemented. 223 // method which was unimplemented.
226 func Module() module.Interface { return dummyModuleInst } 224 func Module() module.Interface { return dummyModuleInst }
OLDNEW
« no previous file with comments | « filter/featureBreaker/gi.go ('k') | impl/memory/info.go » ('j') | service/info/wrapper.go » ('J')

Powered by Google App Engine
This is Rietveld 408576698