azuredb

package
v0.43.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

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 AzureCertFetcher

type AzureCertFetcher struct {
	Client *http.Client
	// contains filtered or unexported fields
}

AzureCertFetcher is a default CertPoolProvider that can fetch CA certificates from any publicly accessible URI or File.

func NewAzureCertFetcher

func NewAzureCertFetcher(caBundleLocation string) (*AzureCertFetcher, error)

NewAzureCertFetcher constructs a new *AzureCertFetcher. See https://docs.microsoft.com/en-us/azure/mysql/howto-configure-ssl.

func NewAzureCertFetcherWithDefault

func NewAzureCertFetcherWithDefault() (*AzureCertFetcher, error)

NewAzureCertFetcherWithDefault constructs a new *AzureCertFetcher with default location URI as per below documentation. See https://docs.microsoft.com/en-us/azure/mysql/howto-configure-ssl.

func (*AzureCertFetcher) GetCertPool

func (acf *AzureCertFetcher) GetCertPool(ctx context.Context) (*x509.CertPool, error)

GetCertPool fetches the Azure CA certificate from a remote URL.

type CertPoolProvider

type CertPoolProvider interface {
	GetCertPool(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