Documentation ¶
Overview ¶
Package fswatcher implements the Certinel interface by watching for filesystem change events using the cross-platform fsnotify package.
This implementation watches the directory of the configured certificate to properly notice replacements and symlink updates, this allows fswatcher to be used within Kubernetes watching a certificate updated from a mounted ConfigMap or Secret.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Sentinel ¶ added in v0.4.0
type Sentinel struct {
// contains filtered or unexported fields
}
Sentinel watches for filesystem change events that effect the watched certificate.
func (*Sentinel) GetCertificate ¶ added in v0.4.0
func (w *Sentinel) GetCertificate(chi *tls.ClientHelloInfo) (*tls.Certificate, error)
func (*Sentinel) GetClientCertificate ¶ added in v0.4.0
func (w *Sentinel) GetClientCertificate(cri *tls.CertificateRequestInfo) (*tls.Certificate, error)
Click to show internal directories.
Click to hide internal directories.