github.com/timstclair/heapster@v0.20.0-alpha1/Godeps/_workspace/src/google.golang.org/appengine/internal/identity_classic.go (about)

     1  // Copyright 2015 Google Inc. All rights reserved.
     2  // Use of this source code is governed by the Apache 2.0
     3  // license that can be found in the LICENSE file.
     4  
     5  // +build appengine
     6  
     7  package internal
     8  
     9  import (
    10  	"appengine"
    11  
    12  	netcontext "golang.org/x/net/context"
    13  )
    14  
    15  func DefaultVersionHostname(ctx netcontext.Context) string {
    16  	return appengine.DefaultVersionHostname(fromContext(ctx))
    17  }
    18  
    19  func RequestID(ctx netcontext.Context) string  { return appengine.RequestID(fromContext(ctx)) }
    20  func Datacenter(_ netcontext.Context) string   { return appengine.Datacenter() }
    21  func ServerSoftware() string                   { return appengine.ServerSoftware() }
    22  func ModuleName(ctx netcontext.Context) string { return appengine.ModuleName(fromContext(ctx)) }
    23  func VersionID(ctx netcontext.Context) string  { return appengine.VersionID(fromContext(ctx)) }
    24  func InstanceID() string                       { return appengine.InstanceID() }
    25  func IsDevAppServer() bool                     { return appengine.IsDevAppServer() }
    26  
    27  func fullyQualifiedAppID(ctx netcontext.Context) string { return fromContext(ctx).FullyQualifiedAppID() }