Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrepareHttpClient ¶
func PrepareHttpClient(cfg *httpbroker.Config) *http.Client
PrepareHttpClient creates a http client with given http config
func PrepareMtlsClient ¶
func PrepareMtlsClient(cfg *httpbroker.Config, cache CertificateCache, secretName string) *http.Client
PrepareMtlsClient creates a secured MTLS http client with given certificate cache
Types ¶
type CertificateCache ¶
type CertificateCache interface {
Get() map[string]*tls.Certificate
}
CertificateCache is an interface which provides a certificate which is dynamically reloaded when its Get method is called
Click to show internal directories.
Click to hide internal directories.