tls

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2023 License: Apache-2.0, MIT, MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClusterClientTLSConfig

func GetClusterClientTLSConfig(c kubernetes.Interface, namespace, tcName string, timemot time.Duration) (*tls.Config, error)

GetClusterClientClientTLSConfig GetDmClientTLSConfig return *tls.Config for given tidb cluster clinet

func GetClusterTLSConfig

func GetClusterTLSConfig(c kubernetes.Interface, namespace, tcName, component string, timemot time.Duration) (*tls.Config, error)

GetClusterTLSConfig GetDmClientTLSConfig return *tls.Config for given tidb cluster

func GetDmClientTLSConfig

func GetDmClientTLSConfig(c kubernetes.Interface, namespace, dcName string, timemot time.Duration) (*tls.Config, error)

GetDmClientTLSConfig return *tls.Config for given DM clinet

func GetTiDBClientTLSConfig

func GetTiDBClientTLSConfig(c kubernetes.Interface, namespace, tcName string, timemot time.Duration) (*tls.Config, error)

GetTiDBClientTLSConfig GetDmClientTLSConfig return *tls.Config for given tidb client

func GetTiDBServerTLSConfig

func GetTiDBServerTLSConfig(c kubernetes.Interface, namespace, tcName string, timemot time.Duration) (*tls.Config, error)

GetTiDBServerTLSConfig GetDmClientTLSConfig return *tls.Config for given tidb client

func LoadTLSConfigFromSecret

func LoadTLSConfigFromSecret(secret *corev1.Secret) (*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