Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,739 for matchtag (0.13 sec)

  1. src/cmd/go/internal/imports/build.go

    		l = l[:n-1]
    	}
    	n := len(l)
    	if n >= 2 && KnownOS[l[n-2]] && KnownArch[l[n-1]] {
    		return matchTag(l[n-2], tags, true) && matchTag(l[n-1], tags, true)
    	}
    	if n >= 1 && KnownOS[l[n-1]] {
    		return matchTag(l[n-1], tags, true)
    	}
    	if n >= 1 && KnownArch[l[n-1]] {
    		return matchTag(l[n-1], tags, true)
    	}
    	return true
    }
    
    var KnownOS = map[string]bool{
    	"aix":       true,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 30 18:50:57 UTC 2023
    - 10.4K bytes
    - Viewed (0)
  2. src/cmd/go/internal/modindex/build.go

    		if allTags != nil {
    			// In case we short-circuit on l[n-1].
    			allTags[l[n-2]] = true
    		}
    		return ctxt.matchTag(l[n-1], allTags) && ctxt.matchTag(l[n-2], allTags)
    	}
    	if n >= 1 && (knownOS[l[n-1]] || knownArch[l[n-1]]) {
    		return ctxt.matchTag(l[n-1], allTags)
    	}
    	return true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 25 17:39:23 UTC 2023
    - 26.8K bytes
    - Viewed (0)
  3. src/cmd/dist/buildtag.go

    	if i == 0 {
    		panic(fmt.Sprintf("syntax error near %#q", rune(p.x[i])))
    	}
    	tag := p.x[:i]
    	p.x = p.x[i:]
    	p.t = exprToken{
    		tok: "tag",
    		prefix: func(p *exprParser) val {
    			p.next()
    			return val(matchtag(tag))
    		},
    	}
    }
    
    func validtag(c byte) bool {
    	return 'A' <= c && c <= 'Z' || 'a' <= c && c <= 'z' || '0' <= c && c <= '9' || c == '.' || c == '_'
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 03:35:04 UTC 2021
    - 3K bytes
    - Viewed (0)
  4. src/go/build/build.go

    		if allTags != nil {
    			// In case we short-circuit on l[n-1].
    			allTags[l[n-2]] = true
    		}
    		return ctxt.matchTag(l[n-1], allTags) && ctxt.matchTag(l[n-2], allTags)
    	}
    	if n >= 1 && (knownOS[l[n-1]] || knownArch[l[n-1]]) {
    		return ctxt.matchTag(l[n-1], allTags)
    	}
    	return true
    }
    
    // ToolDir is the directory containing build tools.
    var ToolDir = getToolDir()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62.3K bytes
    - Viewed (0)
  5. src/cmd/dist/build.go

    	"hurd":      true,
    	"illumos":   true,
    	"ios":       true,
    	"linux":     true,
    	"netbsd":    true,
    	"openbsd":   true,
    	"solaris":   true,
    }
    
    // matchtag reports whether the tag matches this build.
    func matchtag(tag string) bool {
    	switch tag {
    	case "gc", "cmd_go_bootstrap", "go1.1":
    		return true
    	case "linux":
    		return goos == "linux" || goos == "android"
    	case "solaris":
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 18:34:40 UTC 2024
    - 54K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/matching/matching.go

    			if name == matchedName {
    				return true, matchResource, matchKind, nil
    			}
    		}
    	}
    
    	// if match policy is undefined or exact, don't perform fuzzy matching
    	// note that defaulting to fuzzy matching is set by the API
    	if matchPolicy == nil || *matchPolicy == v1.Exact {
    		return false, schema.GroupVersionResource{}, schema.GroupVersionKind{}, nil
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  7. pilot/pkg/networking/core/tls_test.go

    				namespace: "bar",
    			},
    			true,
    		},
    	}
    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    			if got := matchTLS(tt.args.match, tt.args.proxyLabels, tt.args.gateways, tt.args.port, tt.args.namespace); got != tt.want {
    				t.Errorf("matchTLS() = %v, want %v", got, tt.want)
    			}
    		})
    	}
    }
    
    func TestMatchTCP(t *testing.T) {
    	type args struct {
    		match       *v1alpha3.L4MatchAttributes
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 17:09:02 UTC 2024
    - 3K bytes
    - Viewed (0)
  8. src/cmd/covdata/covdata.go

    var pkgpatflag = flag.String("pkg", "", "Restrict output to package(s) matching specified package pattern.")
    var cpuprofileflag = flag.String("cpuprofile", "", "Write CPU profile to specified file")
    var memprofileflag = flag.String("memprofile", "", "Write memory profile to specified file")
    var memprofilerateflag = flag.Int("memprofilerate", 0, "Set memprofile sampling rate to value")
    
    var matchpkg func(name string) bool
    
    var atExitFuncs []func()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  9. pilot/pkg/networking/core/tls.go

    // bound, etc. All these can be checked statically, since we are generating the configuration for a proxy
    // with predefined labels, on a specific port.
    func matchTLS(match *v1alpha3.TLSMatchAttributes, proxyLabels labels.Instance, gateways sets.String, port int, proxyNamespace string) bool {
    	if match == nil {
    		return true
    	}
    
    	gatewayMatch := len(match.Gateways) == 0
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 17:09:02 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  10. src/regexp/regexp.go

    	if err != nil {
    		return nil, err
    	}
    	matchcap := prog.NumCap
    	if matchcap < 2 {
    		matchcap = 2
    	}
    	regexp := &Regexp{
    		expr:        expr,
    		prog:        prog,
    		onepass:     compileOnePass(prog),
    		numSubexp:   maxCap,
    		subexpNames: capNames,
    		cond:        prog.StartCond(),
    		longest:     longest,
    		matchcap:    matchcap,
    		minInputLen: minInputLen(re),
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:50:01 UTC 2024
    - 38.5K bytes
    - Viewed (0)
Back to top