OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 package info |
| 6 |
| 7 import ( |
| 8 "time" |
| 9 |
| 10 "golang.org/x/net/context" |
| 11 ) |
| 12 |
| 13 // Interface is the interface for all of the package methods which normally |
| 14 // would be in the 'appengine' package. |
| 15 type Interface interface { |
| 16 AppID() string |
| 17 Datacenter() string |
| 18 DefaultVersionHostname() string |
| 19 InstanceID() string |
| 20 IsDevAppServer() bool |
| 21 IsOverQuota(err error) bool |
| 22 IsTimeoutError(err error) bool |
| 23 ModuleHostname(module, version, instance string) (string, error) |
| 24 ModuleName() string |
| 25 RequestID() string |
| 26 ServerSoftware() string |
| 27 ServiceAccount() (string, error) |
| 28 VersionID() string |
| 29 |
| 30 Namespace(namespace string) (context.Context, error) |
| 31 |
| 32 AccessToken(scopes ...string) (token string, expiry time.Time, err error
) |
| 33 PublicCertificates() ([]Certificate, error) |
| 34 SignBytes(bytes []byte) (keyName string, signature []byte, err error) |
| 35 } |
OLD | NEW |