Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertificateManager ¶
type CertificateManager interface {
GetCertificate(sni string) (*tls.Certificate, error)
}
CertificateManager represents the certificate-management functionality required of a multiple-host proxy
type FileSystemCertificateManager ¶
type FileSystemCertificateManager struct {
// contains filtered or unexported fields
}
FileSystemCertificateManager is an implementation of the CertificateManager iface that gets certificates from disk
func NewFileSystemCertificateManager ¶
func NewFileSystemCertificateManager(certPathFmt, keyPathFmt string) *FileSystemCertificateManager
NewFileSystemCertificateManager is the FileSystemCertificateManager constructor
func (*FileSystemCertificateManager) GetCertificate ¶
func (fs *FileSystemCertificateManager) GetCertificate(sni string) (*tls.Certificate, error)
GetCertificate returns the *tls.Certificate for a given SNI
Click to show internal directories.
Click to hide internal directories.