utils

package
v0.0.0-...-0a771b7 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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