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)
| 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. |
| 41 | func NewCertSourceWithIAM(c *gcp.HTTPClient, t oauth2.TokenSource) *certs.RemoteCertSource { |
| 42 | return certs.NewCertSourceOpts(&c.Client, certs.RemoteOpts{EnableIAMLogin: true, TokenSource: t}) |
| 43 | } |