azuredb

package
v0.37.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 8 Imported by: 4

Documentation

Overview

Package azuredb contains Wire providers that are common across Azure Database.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertFetcher added in v0.16.0

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 added in v0.16.0

func (cf *CertFetcher) AzureCertPool(ctx context.Context) (*x509.CertPool, error)

AzureCertPool fetches the Azure CA certificates and places them into a pool. It is safe to call from multiple goroutines.

func (*CertFetcher) Fetch added in v0.16.0

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

type CertPoolProvider interface {
	AzureCertPool(context.Context) (*x509.CertPool, error)
}

A CertPoolProvider returns a certificate pool that contains the Azure CA certificate.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL