Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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.