Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 98 for matchers (0.15 sec)

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

    	n := match.GetMatcherTree().GetInput().GetName()
    
    	var m map[string]*matcher.Matcher_OnMatch
    	equality := "="
    	switch v := match.GetMatcherTree().GetTreeType().(type) {
    	case *matcher.Matcher_MatcherTree_ExactMatchMap:
    		m = v.ExactMatchMap.Map
    	case *matcher.Matcher_MatcherTree_PrefixMatchMap:
    		m = v.PrefixMatchMap.Map
    		equality = "^"
    	case *matcher.Matcher_MatcherTree_CustomMatch:
    		tc := v.CustomMatch.GetTypedConfig()
    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. istioctl/pkg/checkinject/checkinject.go

    }
    
    func extractMatchedSelectorInfo(ls *metav1.LabelSelector, objLabels map[string]string) (matched bool, injLabel string) {
    	if ls == nil {
    		return true, ""
    	}
    	selector, err := metav1.LabelSelectorAsSelector(ls)
    	if err != nil {
    		return false, ""
    	}
    	matched = selector.Matches(labels.Set(objLabels))
    	if !matched {
    		return matched, ""
    	}
    	for _, me := range ls.MatchExpressions {
    		switch me.Operator {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  3. cmd/object-api-utils.go

    	etag, ok := metadata["etag"]
    	if !ok {
    		// md5Sum tag is kept for backward compatibility.
    		etag = metadata["md5Sum"]
    	}
    	// Success.
    	return etag
    }
    
    // HasPrefix - Prefix matcher string matches prefix in a platform specific way.
    // For example on windows since its case insensitive we are supposed
    // to do case insensitive checks.
    func HasPrefix(s string, prefix string) bool {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 11 11:55:34 GMT 2024
    - 35.6K bytes
    - Viewed (1)
  4. cmd/batch-expire.go

    	if err != nil {
    		return err
    	}
    	*ef = BatchJobExpireFilter(tmp)
    	ef.line, ef.col = value.Line, value.Column
    	return err
    }
    
    // Matches returns true if obj matches the filter conditions specified in ef.
    func (ef BatchJobExpireFilter) Matches(obj ObjectInfo, now time.Time) bool {
    	switch ef.Type {
    	case BatchJobExpireObject:
    		if obj.DeleteMarker {
    			return false
    		}
    	case BatchJobExpireDeleted:
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 21K bytes
    - Viewed (1)
  5. cmd/metacache-entries.go

    func (e metaCacheEntry) hasPrefix(s string) bool {
    	return strings.HasPrefix(e.name, s)
    }
    
    // matches returns if the entries have the same versions.
    // If strict is false we allow signatures to mismatch.
    func (e *metaCacheEntry) matches(other *metaCacheEntry, strict bool) (prefer *metaCacheEntry, matches bool) {
    	if e == nil && other == nil {
    		return nil, true
    	}
    	if e == nil {
    		return other, false
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:43:43 GMT 2024
    - 23.2K bytes
    - Viewed (0)
  6. istioctl/pkg/writer/ztunnel/configdump/workload.go

    type WorkloadFilter struct {
    	Address   string
    	Node      string
    	Verbose   bool
    	Namespace string
    }
    
    // Verify returns true if the passed workload matches the filter fields
    func (wf *WorkloadFilter) Verify(workload *ZtunnelWorkload) bool {
    	if wf.Address == "" && wf.Node == "" && wf.Namespace == "" {
    		return true
    	}
    
    	if wf.Namespace != "" {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 23 21:30:30 GMT 2024
    - 4K bytes
    - Viewed (0)
  7. logger/sql.go

    		}
    	}
    	return true
    }
    
    // A list of Go types that should be converted to SQL primitives
    var convertibleTypes = []reflect.Type{reflect.TypeOf(time.Time{}), reflect.TypeOf(false), reflect.TypeOf([]byte{})}
    
    // RegEx matches only numeric values
    var numericPlaceholderRe = regexp.MustCompile(`\$\d+\$`)
    
    func isNumeric(k reflect.Kind) bool {
    	switch k {
    	case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
    		return true
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Mar 21 08:00:02 GMT 2024
    - 5K bytes
    - Viewed (0)
  8. cmd/leak-detect_test.go

    	deadline := UTCNow().Add(leakDetectDeadline * time.Second)
    	for {
    		// get sack snapshot of relevant go routines.
    		leaked := initialSnapShot.CompareCurrentSnapshot()
    		// current stack snapshot matches the initial one, no leaks, return.
    		if len(leaked) == 0 {
    			return
    		}
    		// wait a test again will deadline.
    		if UTCNow().Before(deadline) {
    			time.Sleep(leakDetectPauseTimeMs * time.Millisecond)
    			continue
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 5.2K bytes
    - Viewed (0)
  9. istioctl/pkg/writer/envoy/clusters/clusters.go

    	return l.HealthStatus.GetEdsHealthStatus()
    }
    
    func retrieveFailedOutlierCheck(l *admin.HostStatus) bool {
    	return l.HealthStatus.GetFailedOutlierCheck()
    }
    
    // Verify returns true if the passed host matches the filter fields
    func (e *EndpointFilter) Verify(host *admin.HostStatus, cluster string) bool {
    	if e.Address == "" && e.Port == 0 && e.Cluster == "" && e.Status == "" {
    		return true
    	}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Nov 03 08:41:32 GMT 2022
    - 5.8K bytes
    - Viewed (0)
  10. clause/expression.go

    	builder.WriteQuoted(lte.Column)
    	builder.WriteString(" <= ")
    	builder.AddVar(builder, lte.Value)
    }
    
    func (lte Lte) NegationBuild(builder Builder) {
    	Gt(lte).Build(builder)
    }
    
    // Like whether string matches regular expression
    type Like Eq
    
    func (like Like) Build(builder Builder) {
    	builder.WriteQuoted(like.Column)
    	builder.WriteString(" LIKE ")
    	builder.AddVar(builder, like.Value)
    }
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Tue Oct 10 06:45:48 GMT 2023
    - 8.3K bytes
    - Viewed (0)
Back to top