tlsutil

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTLSConfigFromSecret

func GetTLSConfigFromSecret(ctx context.Context, cli client.Client, namespace, secretName string) (*tls.Config, error)

GetTLSConfigFromSecret returns *tls.Config for the given secret.

func LoadTLSConfigFromSecret

func LoadTLSConfigFromSecret(secret *corev1.Secret) (*tls.Config, error)

LoadTLSConfigFromSecret loads *tls.Config from the given secret. The secret should often contain the following keys: - "ca.crt": CA certificate - "tls.crt": TLS certificate - "tls.key": TLS private key

Types

This section is empty.

Jump to

Keyboard shortcuts

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