NewComputeEngineCredentials returns a credentials bundle that is configured to work with google services. This API must only be used when running on GCE. Authentication configured by this API represents the GCE VM's default service account. This API is experimental.
()
| 86 | // |
| 87 | // This API is experimental. |
| 88 | func NewComputeEngineCredentials() credentials.Bundle { |
| 89 | return NewDefaultCredentialsWithOptions(DefaultCredentialsOptions{ |
| 90 | PerRPCCreds: oauth.NewComputeEngine(), |
| 91 | }) |
| 92 | } |
| 93 | |
| 94 | // creds implements credentials.Bundle. |
| 95 | type creds struct { |