tls

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TLSEnabledMsg   string = "TLS authentication is enabled"
	TLSDisabledMsg  string = "TLS authentication is disabled"
	MTLSEnabledMsg  string = "Mutual TLS authentication is enabled"
	MTLSDisabledMsg string = "Mutual TLS authentication is disabled"
)

Variables

View Source
var CACertFileSuffix = ".crt"

Functions

func GetClientTLSConfig

func GetClientTLSConfig(clientLog *zerolog.Logger) (*tls.Config, error)

GetClientTLSConfig returns the client config for tls connection between the manager and the connectors.

func GetHTTPClient added in v1.3.0

func GetHTTPClient(log *zerolog.Logger) *retryablehttp.Client

GetHTTPClient returns an object of type *retryablehttp.Client.

func GetServerConfig

func GetServerConfig(serverLog *zerolog.Logger) (*tls.Config, error)

GetServerConfig returns the server config for tls connection between the manager and the connectors.

Types

This section is empty.

Jump to

Keyboard shortcuts

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