package azuredb
import "gocloud.dev/azure/azuredb"
Package azuredb contains Wire providers that are common across Azure Database.
Index ¶
- type CertFetcher
- func (cf *CertFetcher) AzureCertPool(ctx context.Context) (*x509.CertPool, error)
- func (cf *CertFetcher) Fetch(ctx context.Context) ([]*x509.Certificate, error)
- type CertPoolProvider
Types ¶
type CertFetcher ¶
type CertFetcher struct { // Client is the HTTP client used to make requests. If nil, then // http.DefaultClient is used. Client *http.Client }
CertFetcher pulls the Azure CA certificates from Digicert's servers. The zero value will fetch certificates using the default HTTP client.
func (*CertFetcher) AzureCertPool ¶
AzureCertPool fetches the Azure CA certificates and places them into a pool. It is safe to call from multiple goroutines.
func (*CertFetcher) Fetch ¶
func (cf *CertFetcher) Fetch(ctx context.Context) ([]*x509.Certificate, error)
Fetch fetches the Azure CA certificates. It is safe to call from multiple goroutines.
type CertPoolProvider ¶
A CertPoolProvider returns a certificate pool that contains the Azure CA certificate.
Source Files ¶
azuredb.go
- Version
- v0.23.0
- Published
- May 15, 2021
- Platform
- js/wasm
- Imports
- 8 packages
- Last checked
- 4 hours ago –
Tools for package owners.