Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for filterFiles (0.3 sec)

  1. cmd/preferredimports/preferredimports.go

    	if err != nil {
    		fmt.Fprintln(os.Stderr, "ERROR(syntax)", logPrefix, err)
    		a.failed = true
    		return
    	}
    
    	for _, p := range fs {
    		// returns first error, but a.handleError deals with it
    		files := a.filterFiles(p.Files)
    		for _, file := range files {
    			replacements := make(map[string]string)
    			pathToFile := a.fset.File(file.Pos()).Name()
    			for _, imp := range file.Imports {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:44 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  2. pkg/proxy/iptables/proxier.go

    		filterLines := append(filterChains.Bytes(), filterRules.Bytes()...)
    		// Write it.
    		if err := ipt.Restore(utiliptables.TableFilter, filterLines, utiliptables.NoFlushTables, utiliptables.RestoreCounters); err != nil {
    			logger.Error(err, "Failed to execute iptables-restore", "table", utiliptables.TableFilter)
    			metrics.IPTablesRestoreFailuresTotal.Inc()
    			encounteredError = true
    		}
    	}
    	return encounteredError
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 14:39:54 UTC 2024
    - 65.1K bytes
    - Viewed (0)
  3. src/go/ast/filter.go

    // always removed. The [File.Comments] list is not changed.
    //
    // FilterFile reports whether there are any top-level declarations
    // left after filtering.
    func FilterFile(src *File, f Filter) bool {
    	return filterFile(src, f, false)
    }
    
    func filterFile(src *File, f Filter, export bool) bool {
    	j := 0
    	for _, d := range src.Decls {
    		if filterDecl(d, f, export) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  4. pkg/proxy/ipvs/proxier.go

    	proxier.iptablesData.Write(proxier.filterChains.Bytes())
    	proxier.iptablesData.Write(proxier.filterRules.Bytes())
    
    	proxier.logger.V(5).Info(
    		"Restoring iptables", "natChains", proxier.natChains,
    		"natRules", proxier.natRules, "filterChains", proxier.filterChains,
    		"filterRules", proxier.filterRules)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Apr 28 15:51:23 UTC 2024
    - 77.7K bytes
    - Viewed (0)
  5. internal/bucket/lifecycle/lifecycle.go

    		for _, otherRule := range otherRules {
    			if lc.Rules[i].ID == otherRule.ID {
    				return errLifecycleDuplicateID
    			}
    		}
    	}
    	return nil
    }
    
    // FilterRules returns the rules filtered by the status, prefix and tags
    func (lc Lifecycle) FilterRules(obj ObjectOpts) []Rule {
    	if obj.Name == "" {
    		return nil
    	}
    	var rules []Rule
    	for _, rule := range lc.Rules {
    		if rule.Status == Disabled {
    			continue
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 23 01:12:48 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  6. pkg/proxy/iptables/number_generated_rules_test.go

    			fp.syncProxyRules()
    			t.Logf("time to sync rule: %v", time.Since(now))
    			t.Logf("iptables data size: %d bytes", fp.iptablesData.Len())
    
    			if fp.filterRules.Lines() != test.expectedFilterRules {
    				t.Errorf("expected number of Filter rules: %d, got: %d", test.expectedFilterRules, fp.filterRules.Lines())
    			}
    
    			if fp.natRules.Lines() != test.expectedNatRules {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 14:39:54 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  7. internal/bucket/lifecycle/lifecycle_test.go

    				IsLatest:    true,
    				NumVersions: 1,
    			},
    			want: 0,
    			lc:   lc,
    		},
    	}
    	for i, tc := range tests {
    		t.Run(fmt.Sprintf("test-%d", i+1), func(t *testing.T) {
    			if got := tc.lc.FilterRules(tc.opts); len(got) != tc.want {
    				t.Fatalf("Expected %d rules to match but got %d", tc.want, len(got))
    			}
    			w := httptest.NewRecorder()
    			tc.lc.SetPredictionHeaders(w, tc.opts)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 23 01:12:48 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  8. subprojects/core/src/integTest/groovy/org/gradle/normalization/ConfigureRuntimeClasspathNormalizationIntegrationTest.groovy

        static final String PROPERTIES_FILTER_FLAG = "filterProperties"
        static final String META_INF_FILTER_FLAG = "filterMetaInf"
        static final String FILE_FILTER_FLAG = "filterFile"
    
        enum Api {
            RUNTIME, ANNOTATION
        }
    
        class ProjectWithRuntimeClasspathNormalization {
            final TestFile root
            final TestFile buildCacheDir
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 01 03:07:53 UTC 2023
    - 37.2K bytes
    - Viewed (0)
  9. pkg/proxy/ipvs/proxier_test.go

    		filterChainsData:      bytes.NewBuffer(nil),
    		natChains:             proxyutil.NewLineBuffer(),
    		natRules:              proxyutil.NewLineBuffer(),
    		filterChains:          proxyutil.NewLineBuffer(),
    		filterRules:           proxyutil.NewLineBuffer(),
    		netlinkHandle:         netlinkHandle,
    		ipsetList:             ipsetList,
    		nodePortAddresses:     proxyutil.NewNodePortAddresses(ipFamily, nil),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 27 01:31:57 UTC 2024
    - 186.8K bytes
    - Viewed (0)
  10. pkg/proxy/iptables/proxier_test.go

    		precomputedProbabilities: make([]string, 0, 1001),
    		iptablesData:             bytes.NewBuffer(nil),
    		existingFilterChainsData: bytes.NewBuffer(nil),
    		filterChains:             proxyutil.NewLineBuffer(),
    		filterRules:              proxyutil.NewLineBuffer(),
    		natChains:                proxyutil.NewLineBuffer(),
    		natRules:                 proxyutil.NewLineBuffer(),
    		nodeIP:                   netutils.ParseIPSloppy(testNodeIP),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 14:39:54 UTC 2024
    - 249.9K bytes
    - Viewed (0)
Back to top