Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for NewFsnotifyWatcher (0.34 sec)

  1. pkg/util/filesystem/watcher.go

    	eventHandler FSEventHandler
    	errorHandler FSErrorHandler
    }
    
    var _ FSWatcher = &fsnotifyWatcher{}
    
    // NewFsnotifyWatcher returns an implementation of FSWatcher that continuously listens for
    // fsnotify events and calls the event handler as soon as an event is received.
    func NewFsnotifyWatcher() FSWatcher {
    	return &fsnotifyWatcher{}
    }
    
    func (w *fsnotifyWatcher) AddWatch(path string) error {
    	return w.watcher.Add(path)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 14 23:09:15 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  2. pkg/volume/flexvolume/probe.go

    // GetDynamicPluginProber creates dynamic plugin prober
    func GetDynamicPluginProber(pluginDir string, runner exec.Interface) volume.DynamicPluginProber {
    	return &flexVolumeProber{
    		pluginDir: pluginDir,
    		watcher:   utilfs.NewFsnotifyWatcher(),
    		factory:   pluginFactory{},
    		runner:    runner,
    		fs:        &utilfs.DefaultFs{},
    	}
    }
    
    func (prober *flexVolumeProber) Init() error {
    	prober.testAndSetProbeAllNeeded(true)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 28 11:14:00 UTC 2023
    - 9K bytes
    - Viewed (0)
  3. cmd/kube-proxy/app/server.go

    	})
    	to.VModule = append(to.VModule, vmodule...)
    	return err
    }
    
    // Creates a new filesystem watcher and adds watches for the config file.
    func (o *Options) initWatcher() error {
    	fswatcher := filesystem.NewFsnotifyWatcher()
    	err := fswatcher.Init(o.eventHandler, o.errorHandler)
    	if err != nil {
    		return err
    	}
    	err = fswatcher.AddWatch(o.ConfigFile)
    	if err != nil {
    		return err
    	}
    	o.watcher = fswatcher
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 26 13:27:41 UTC 2024
    - 46.8K bytes
    - Viewed (0)
Back to top