| OLD | NEW |
| 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 FullyQualifiedAppID() string |
| 17 GetNamespace() string | 18 GetNamespace() string |
| 18 | 19 |
| 19 Datacenter() string | 20 Datacenter() string |
| 20 DefaultVersionHostname() string | 21 DefaultVersionHostname() string |
| 21 InstanceID() string | 22 InstanceID() string |
| 22 IsDevAppServer() bool | 23 IsDevAppServer() bool |
| 23 IsOverQuota(err error) bool | 24 IsOverQuota(err error) bool |
| 24 IsTimeoutError(err error) bool | 25 IsTimeoutError(err error) bool |
| 25 ModuleHostname(module, version, instance string) (string, error) | 26 ModuleHostname(module, version, instance string) (string, error) |
| 26 ModuleName() string | 27 ModuleName() string |
| 27 RequestID() string | 28 RequestID() string |
| 28 ServerSoftware() string | 29 ServerSoftware() string |
| 29 ServiceAccount() (string, error) | 30 ServiceAccount() (string, error) |
| 30 VersionID() string | 31 VersionID() string |
| 31 | 32 |
| 32 Namespace(namespace string) (context.Context, error) | 33 Namespace(namespace string) (context.Context, error) |
| 33 | 34 |
| 34 AccessToken(scopes ...string) (token string, expiry time.Time, err error
) | 35 AccessToken(scopes ...string) (token string, expiry time.Time, err error
) |
| 35 PublicCertificates() ([]Certificate, error) | 36 PublicCertificates() ([]Certificate, error) |
| 36 SignBytes(bytes []byte) (keyName string, signature []byte, err error) | 37 SignBytes(bytes []byte) (keyName string, signature []byte, err error) |
| 37 } | 38 } |
| OLD | NEW |