MCPcopy Create free account
hub / github.com/google/go-cloud / NewCertSourceWithIAM

Function NewCertSourceWithIAM

gcp/cloudsql/cloudsql.go:41–43  ·  view source on GitHub ↗

NewCertSourceWithIAM creates a local certificate source, including Token source for token information used in cert creation, that uses the given HTTP client. The client is assumed to make authenticated requests.

(c *gcp.HTTPClient, t oauth2.TokenSource)

Source from the content-addressed store, hash-verified

39// NewCertSourceWithIAM creates a local certificate source, including Token source for token information used in
40// cert creation, that uses the given HTTP client. The client is assumed to make authenticated requests.
41func NewCertSourceWithIAM(c *gcp.HTTPClient, t oauth2.TokenSource) *certs.RemoteCertSource {
42 return certs.NewCertSourceOpts(&c.Client, certs.RemoteOpts{EnableIAMLogin: true, TokenSource: t})
43}

Callers 1

OpenPostgresURLMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected