filemonitor

package
v0.0.0-...-631f53b Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewKeystore

func NewKeystore(tlsCrt, tlsKey string) *keystore

NewKeystore returns a store for storing the certificate data and the ability to retrieve it safely

func NewWatch

func NewWatch(logger *logrus.Logger, pathsToWatch []string, onUpdateFn func(*logrus.Logger, fsnotify.Event)) (*watcher, error)

NewWatch sets up monitoring on a slice of paths and will execute the update function to process each event

func OLMGetCertRotationFn

func OLMGetCertRotationFn(logger *logrus.Logger, tlsCertPath, tlsKeyPath string) (getCertFn, error)

OLMGetCertRotationFn is a convenience function for OLM use only, but serves as an example for monitoring file system events

Types

This section is empty.

Jump to

Keyboard shortcuts

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