MCPcopy
hub / github.com/grpc/grpc-go / NewComputeEngineCredentials

Function NewComputeEngineCredentials

credentials/google/google.go:88–92  ·  view source on GitHub ↗

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.

()

Source from the content-addressed store, hash-verified

86//
87// This API is experimental.
88func NewComputeEngineCredentials() credentials.Bundle {
89 return NewDefaultCredentialsWithOptions(DefaultCredentialsOptions{
90 PerRPCCreds: oauth.NewComputeEngine(),
91 })
92}
93
94// creds implements credentials.Bundle.
95type creds struct {

Callers 5

mainFunction · 0.92
newConnFunction · 0.92
mainFunction · 0.92
createTestConnFunction · 0.92

Calls 2

NewComputeEngineFunction · 0.92

Tested by 1