# Functions
CreateEphemeralSuccess returns a Request that responds to the `connect.generateEphemeralCert` SQL Admin endpoint.
GenerateCertWithCommonName produces a certificate signed by the Fake Cloud SQL instance's CA with the specified common name cn.
InstanceGetSuccess returns a Request that responds to the `instance.get` SQL Admin endpoint.
NewFakeCSQLInstance returns a CloudSQLInst object for configuring mocks.
NewSQLAdminService creates a SQL Admin API service backed by a mock HTTP backend.
SelfSign produces a PEM encoded certificate that is self-signed.
SignWithClientKey produces a PEM encoded certificate signed by the parent certificate c using the server's private key and the client's public key.
StartServerProxy starts a fake server proxy and listens on the provided port on all interfaces, configured with TLS as specified by the FakeCSQLInstance.
WithCertExpiry sets the server certificate's expiration to t.
WithCertSigner configures the signing function used to generate a signed certificate.
WithClientCertSigner configures the signing function used to generate a certificate signed with the client's public key.
WithEngineVersion sets the "DB Version".
WithFirstGenBackend sets the server backend type to FIRST_GEN.
WithNoIPAddrs configures a Fake Cloud SQL instance to have no IP addresses.
WithPrivateIP sets the private IP address to addr.
WithPSC sets the PSC DnsName to addr.
WithPublicIP sets the public IP address to addr.
WithRegion sets the server's region to the provided value.
# Structs
EmptyTokenSource is an Oauth2.TokenSource that returns empty tokens.
FakeCSQLInstance represents settings for a specific Cloud SQL instance.
Request represents a HTTP request for a test Server to mock responses for.
# Type aliases
ClientSignFunc is a function that produces a certificate signed using the provided certificate, using the server's private key and the client's public key.
FakeCSQLInstanceOption is a function that configures a FakeCSQLInstance.
SignFunc is a function that signs the certificate using the provided key.