package cloudsql
import "gocloud.dev/gcp/cloudsql"
Package cloudsql contains Wire providers that are common across Google Cloud SQL.
Index ¶
- Variables
- func NewCertSource(c *gcp.HTTPClient) *certs.RemoteCertSource
- func NewCertSourceWithIAM(c *gcp.HTTPClient, t oauth2.TokenSource) *certs.RemoteCertSource
Variables ¶
var CertSourceSet = wire.NewSet( NewCertSource, wire.Bind(new(proxy.CertSource), new(*certs.RemoteCertSource)))
CertSourceSet is a Wire provider set that binds a Cloud SQL proxy certificate source from an GCP-authenticated HTTP client.
Functions ¶
func NewCertSource ¶
func NewCertSource(c *gcp.HTTPClient) *certs.RemoteCertSource
NewCertSource creates a local certificate source that uses the given HTTP client. The client is assumed to make authenticated requests.
func NewCertSourceWithIAM ¶
func NewCertSourceWithIAM(c *gcp.HTTPClient, t oauth2.TokenSource) *certs.RemoteCertSource
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.
Source Files ¶
cloudsql.go
- Version
- v0.41.0 (latest)
- Published
- Mar 30, 2025
- Platform
- linux/amd64
- Imports
- 5 packages
- Last checked
- 1 month ago –
Tools for package owners.