Documentation ¶
Index ¶
- func GenCertPoolUseCA(caFile string) (*x509.CertPool, error)
- func GenCertPoolUseCAData(caData []byte) (*x509.CertPool, error)
- func GenRootCertPool(kubeConfig, caFile string) (*x509.CertPool, error)
- func GenTLSConfigUseCertMgrAndCA(m certificate.Manager, serverAddr, caFile string) (*tls.Config, error)
- func GenTLSConfigUseCurrentCertAndCertPool(current func() *tls.Certificate, root *x509.CertPool, mode string) (*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 GenCertPoolUseCAData ¶ added in v1.5.0
GenCertPoolUseCAData generates a x509 CertPool based on the given CA data
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)
GenTLSConfigUseCertMgrAndCA generates a TLS configuration based on the given certificate manager and the CA file
func GenTLSConfigUseCurrentCertAndCertPool ¶ added in v1.2.0
func GenTLSConfigUseCurrentCertAndCertPool( current func() *tls.Certificate, root *x509.CertPool, mode string) (*tls.Config, error)
GenTLSConfigUseCurrentCertAndCertPool generates a TLS configuration using the given current certificate and x509 CertPool
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.