Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CmWatcher ¶
type CmWatcher struct { // Path to ConfigMap file to watch Path string // used for tests NotifyCounter *testutil.CallCounter // contains filtered or unexported fields }
func NewCmWatcher ¶
func NewCmWatcher(path string, onFileEvent OnFileEvent, fr obs.FlightRecorder) (*CmWatcher, error)
NewCmWatcher() creates a new ConfigMap file watcher, which looks for changes to the file and invokes onFileEvent
func NewCmWatcherForTest ¶
func NewCmWatcherForTest(path string, onFileEvent OnFileEvent, fr obs.FlightRecorder) (*CmWatcher, error)
type OnFileEvent ¶
Click to show internal directories.
Click to hide internal directories.