MCPcopy Create free account
hub / github.com/golang/appengine / ServiceAccount

Function ServiceAccount

identity.go:116–125  ·  view source on GitHub ↗

ServiceAccount returns a string representing the service account name, in the form of an email address (typically app_id@appspot.gserviceaccount.com).

(c context.Context)

Source from the content-addressed store, hash-verified

114// ServiceAccount returns a string representing the service account name, in
115// the form of an email address (typically app_id@appspot.gserviceaccount.com).
116func ServiceAccount(c context.Context) (string, error) {
117 req := &pb.GetServiceAccountNameRequest{}
118 res := &pb.GetServiceAccountNameResponse{}
119
120 err := internal.Call(c, "app_identity_service", "GetServiceAccountName", req, res)
121 if err != nil {
122 return "", err
123 }
124 return res.GetServiceAccountName(), err
125}
126
127// SignBytes signs bytes using a private key unique to your application.
128func SignBytes(c context.Context, bytes []byte) (keyName string, signature []byte, err error) {

Callers

nothing calls this directly

Calls 2

GetServiceAccountNameMethod · 0.95
CallFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…