Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiskCertManager ¶
type DiskCertManager struct {
// contains filtered or unexported fields
}
DiskCertManager is a certificate manager that loads certificates from disk, and watches for changes.
func New ¶
func New(config *Config, clk clock.Clock, log logrus.FieldLogger) (*DiskCertManager, error)
func (*DiskCertManager) GetTLSConfig ¶
func (m *DiskCertManager) GetTLSConfig() *tls.Config
TLSConfig returns a TLS configuration that uses the provided certificate stored on disk.
func (*DiskCertManager) WatchFileChanges ¶
func (m *DiskCertManager) WatchFileChanges(ctx context.Context)
WatchFileChanges starts a file watcher to watch for changes to the cert and key files.
Click to show internal directories.
Click to hide internal directories.