Documentation
¶
Overview ¶
Package filewatcher contains the functions to watch for TLS file updates for the gRPC server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileWatcher ¶
type FileWatcher struct {
// contains filtered or unexported fields
}
FileWatcher watches for changes to files and notifies the channel when a change occurs.
func NewFileWatcher ¶
func NewFileWatcher(logger logr.Logger, files []string, notifyCh chan<- struct{}) (*FileWatcher, error)
NewFileWatcher creates a new FileWatcher instance.
func (*FileWatcher) Watch ¶
func (w *FileWatcher) Watch(ctx context.Context)
Watch starts the watch for file changes.
Click to show internal directories.
Click to hide internal directories.