Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for newMatcher (0.15 sec)

  1. istioctl/pkg/writer/envoy/configdump/listener.go

    		}
    		for _, fc := range chains {
    
    			name := fc.GetName()
    			matches := newMatcher(fc, l)
    			destination := getFilterType(fc.GetFilters())
    			for _, match := range matches {
    				fmt.Fprintf(w, "%v\t%v\t%v\t%v\n", lname, name, match, destination)
    			}
    		}
    	}
    	return w.Flush()
    }
    
    func newMatcher(fc *listener.FilterChain, l *listener.Listener) []string {
    	if l.FilterChainMatcher == nil {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Nov 29 12:37:14 GMT 2023
    - 18.1K bytes
    - Viewed (0)
  2. cni/pkg/util/pluginutil.go

    func (w *Watcher) Close() {
    	_ = w.watcher.Close()
    }
    
    // Creates a file watcher that watches for any changes to the directory
    func CreateFileWatcher(paths ...string) (*Watcher, error) {
    	watcher, err := fsnotify.NewWatcher()
    	if err != nil {
    		return nil, fmt.Errorf("watcher create: %v", err)
    	}
    
    	fileModified, errChan := make(chan struct{}), make(chan error)
    	go watchFiles(watcher, fileModified, errChan)
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 3.6K bytes
    - Viewed (0)
Back to top