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

Side by Side Diff: service/info/interface.go

Issue 1253263002: Make rawdatastore API safer for writing filters. (Closed) Base URL: https://github.com/luci/gae.git@master
Patch Set: fix comments Created 5 years, 4 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 | « impl/prod/raw_datastore_type_converter.go ('k') | service/rawdatastore/checkfilter.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 Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package info 5 package info
6 6
7 import ( 7 import (
8 "time" 8 "time"
9 9
10 "golang.org/x/net/context" 10 "golang.org/x/net/context"
11 ) 11 )
12 12
13 // Interface is the interface for all of the package methods which normally 13 // Interface is the interface for all of the package methods which normally
14 // would be in the 'appengine' package. 14 // would be in the 'appengine' package.
15 type Interface interface { 15 type Interface interface {
16 AppID() string 16 AppID() string
17 GetNamespace() string
18
17 Datacenter() string 19 Datacenter() string
18 DefaultVersionHostname() string 20 DefaultVersionHostname() string
19 InstanceID() string 21 InstanceID() string
20 IsDevAppServer() bool 22 IsDevAppServer() bool
21 IsOverQuota(err error) bool 23 IsOverQuota(err error) bool
22 IsTimeoutError(err error) bool 24 IsTimeoutError(err error) bool
23 ModuleHostname(module, version, instance string) (string, error) 25 ModuleHostname(module, version, instance string) (string, error)
24 ModuleName() string 26 ModuleName() string
25 RequestID() string 27 RequestID() string
26 ServerSoftware() string 28 ServerSoftware() string
27 ServiceAccount() (string, error) 29 ServiceAccount() (string, error)
28 VersionID() string 30 VersionID() string
29 31
30 Namespace(namespace string) (context.Context, error) 32 Namespace(namespace string) (context.Context, error)
31 33
32 AccessToken(scopes ...string) (token string, expiry time.Time, err error ) 34 AccessToken(scopes ...string) (token string, expiry time.Time, err error )
33 PublicCertificates() ([]Certificate, error) 35 PublicCertificates() ([]Certificate, error)
34 SignBytes(bytes []byte) (keyName string, signature []byte, err error) 36 SignBytes(bytes []byte) (keyName string, signature []byte, err error)
35 } 37 }
OLDNEW
« no previous file with comments | « impl/prod/raw_datastore_type_converter.go ('k') | service/rawdatastore/checkfilter.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698