tls

package
v3.9.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadClientConfig added in v3.2.5

func LoadClientConfig(certFile, keyFile string) (*tls.Config, error)

func LoadClientConfigFromDir deprecated added in v3.2.5

func LoadClientConfigFromDir(dir string) (*tls.Config, error)

Deprecated: use LoadClientConfig.

func LoadOrGenerateConfig added in v3.2.5

func LoadOrGenerateConfig(certFile, keyFile string, logger *zap.Logger) (*tls.Config, error)

LoadOrGenerateConfig loads the TLS configuration from the given files, or generates a new one if the files do not exist.

func LoadOrGenerateConfigFromDir deprecated added in v3.2.5

func LoadOrGenerateConfigFromDir(dir string, logger *zap.Logger) (*tls.Config, error)

Deprecated: use LoadOrGenerateConfig.

func LoadServerConfig added in v3.2.5

func LoadServerConfig(certFile, keyFile string) (*tls.Config, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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