Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenCertPoolUseCA ¶ added in v0.4.1
GenCertPoolUseCA generates a x509 CertPool based on the given CA file
func GenTLSConfigUseCertMgrAndCertPool ¶ added in v0.4.1
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 ¶
type CertificateManagerRegistry ¶
CertificateManagerRegistry is a object for holding all of certificate managers
func NewCertificateManagerRegistry ¶
func NewCertificateManagerRegistry() *CertificateManagerRegistry
NewCertificateManagerRegistry creates an *CertificateManagerRegistry object
func (*CertificateManagerRegistry) New ¶
func (cmr *CertificateManagerRegistry) New(name string, cfg *config.YurtHubConfiguration) (interfaces.YurtCertificateManager, error)
New creates a YurtCertificateManager with specified name of registered certificate manager
func (*CertificateManagerRegistry) Register ¶
func (cmr *CertificateManagerRegistry) Register(name string, cm Factory)
Register register a Factory func for creating certificate manager
type Factory ¶
type Factory func(cfg *config.YurtHubConfiguration) (interfaces.YurtCertificateManager, error)
Factory is a function that returns an YurtCertificateManager. The cfg parameter provides the common info for certificate manager
Click to show internal directories.
Click to hide internal directories.