fswatcher

package
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 9, 2024 License: BSD-3-Clause Imports: 7 Imported by: 2

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 New

func New(cert, key string) (*Sentinel, error)

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)

func (*Sentinel) Start added in v0.4.0

func (w *Sentinel) Start(ctx context.Context) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL