Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for newMatcher (0.17 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 Apr 24 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 Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  3. internal/config/etcd/etcd.go

    	if !cfg.Enabled {
    		return nil, nil
    	}
    	cli, err := clientv3.New(cfg.Config)
    	if err != nil {
    		return nil, err
    	}
    	cli.KV = namespace.NewKV(cli.KV, cfg.PathPrefix)
    	cli.Watcher = namespace.NewWatcher(cli.Watcher, cfg.PathPrefix)
    	cli.Lease = namespace.NewLease(cli.Lease, cfg.PathPrefix)
    	return cli, nil
    }
    
    func parseEndpoints(endpoints string) ([]string, bool, error) {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Sep 04 19:57:37 GMT 2023
    - 4.8K bytes
    - Viewed (0)
Back to top