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

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

Issue 1871943003: Add Info Testable interface, implement for memory. (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/gae@master
Patch Set: Fall through in filter. Created 4 years, 8 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/info.go ('k') | no next file » | 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"
(...skipping 18 matching lines...) Expand all
29 ServerSoftware() string 29 ServerSoftware() string
30 ServiceAccount() (string, error) 30 ServiceAccount() (string, error)
31 VersionID() string 31 VersionID() string
32 32
33 Namespace(namespace string) (context.Context, error) 33 Namespace(namespace string) (context.Context, error)
34 MustNamespace(namespace string) context.Context 34 MustNamespace(namespace string) context.Context
35 35
36 AccessToken(scopes ...string) (token string, expiry time.Time, err error ) 36 AccessToken(scopes ...string) (token string, expiry time.Time, err error )
37 PublicCertificates() ([]Certificate, error) 37 PublicCertificates() ([]Certificate, error)
38 SignBytes(bytes []byte) (keyName string, signature []byte, err error) 38 SignBytes(bytes []byte) (keyName string, signature []byte, err error)
39
40 // Testable returns this Interface's Testable interface. Testing will re turn
41 // nil if testing is not supported in this implementation.
42 Testable() Testable
39 } 43 }
44
45 // Testable is an additional set of functions for testing instrumentation.
46 type Testable interface {
47 SetVersionID(string) context.Context
48 SetRequestID(string) context.Context
49 }
OLDNEW
« no previous file with comments | « impl/prod/info.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698