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)
| 114 | // ServiceAccount returns a string representing the service account name, in |
| 115 | // the form of an email address (typically app_id@appspot.gserviceaccount.com). |
| 116 | func 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. |
| 128 | func SignBytes(c context.Context, bytes []byte) (keyName string, signature []byte, err error) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…