filewatcher

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

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