Documentation ¶
Index ¶
- func GenCertPoolUseCA(caFile string) (*x509.CertPool, error)
- func GenRootCertPool(kubeConfig, caFile string) (*x509.CertPool, error)
- func GenTLSConfigUseCertMgrAndCA(m certificate.Manager, serverAddr, caFile string) (*tls.Config, error)
- func GenTLSConfigUseCertMgrAndCertPool(m certificate.Manager, root *x509.CertPool) (*tls.Config, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenCertPoolUseCA ¶
GenCertPoolUseCA generates a x509 CertPool based on the given CA file
func GenRootCertPool ¶
GenRootCertPool generates a x509 CertPool based on the given kubeconfig, if the kubeConfig is empty, it will creates the CertPool using the CA file
func GenTLSConfigUseCertMgrAndCA ¶
func GenTLSConfigUseCertMgrAndCA( m certificate.Manager, serverAddr, caFile string) (*tls.Config, error)
GenTGenTLSConfigUseCertMgrAndCA generates a TLS configuration based on the given certificate manager and the CA file
func GenTLSConfigUseCertMgrAndCertPool ¶
func GenTLSConfigUseCertMgrAndCertPool( m certificate.Manager, root *x509.CertPool) (*tls.Config, error)
GenTGenTLSConfigUseCertMgrAndCertPool generates a TLS configuration using the given certificate manager and x509 CertPool
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.