Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for SubsetOf (0.13 sec)

  1. src/cmd/compile/internal/types2/typeset.go

    // hasTerms reports whether the type set has specific type terms.
    func (s *_TypeSet) hasTerms() bool { return !s.terms.isEmpty() && !s.terms.isAll() }
    
    // subsetOf reports whether s1 ⊆ s2.
    func (s1 *_TypeSet) subsetOf(s2 *_TypeSet) bool { return s1.terms.subsetOf(s2.terms) }
    
    // TODO(gri) TypeSet.is and TypeSet.underIs should probably also go into termlist.go
    
    // is calls f with the specific type terms of s and reports whether
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  2. src/go/types/typeset.go

    // hasTerms reports whether the type set has specific type terms.
    func (s *_TypeSet) hasTerms() bool { return !s.terms.isEmpty() && !s.terms.isAll() }
    
    // subsetOf reports whether s1 ⊆ s2.
    func (s1 *_TypeSet) subsetOf(s2 *_TypeSet) bool { return s1.terms.subsetOf(s2.terms) }
    
    // TODO(gri) TypeSet.is and TypeSet.underIs should probably also go into termlist.go
    
    // is calls f with the specific type terms of s and reports whether
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  3. pilot/pkg/networking/core/tls.go

    	}
    
    	gatewayMatch := len(match.Gateways) == 0
    	for _, gateway := range match.Gateways {
    		gatewayMatch = gatewayMatch || gateways.Contains(gateway)
    	}
    
    	labelMatch := labels.Instance(match.SourceLabels).SubsetOf(proxyLabels)
    
    	portMatch := match.Port == 0 || match.Port == uint32(port)
    
    	nsMatch := match.SourceNamespace == "" || match.SourceNamespace == proxyNamespace
    
    	return gatewayMatch && labelMatch && portMatch && nsMatch
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 17:09:02 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  4. pilot/pkg/model/authentication.go

    					if should {
    						configs = append(configs, cfg)
    					}
    				case gvk.PeerAuthentication:
    					selector := labels.Instance(cfg.Spec.(*v1beta1.PeerAuthentication).GetSelector().GetMatchLabels())
    					if selector.SubsetOf(workloadLabels) {
    						configs = append(configs, cfg)
    					}
    				default:
    					log.Warnf("Not support authentication type %q", cfg.GroupVersionKind)
    					continue
    				}
    			}
    		}
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  5. pilot/pkg/model/sidecar.go

    		// In this scenario it should be determined by exact lookup.
    		if !hIsWildCarded && !importedHost.IsWildCarded() {
    			continue
    		}
    		// Check if the hostnames match per usual hostname matching rules
    		if h.SubsetOf(importedHost) {
    			return true
    		}
    	}
    	return false
    }
    
    // VSMatches checks if the hostClassification(sidecar egress hosts) matches the VirtualService's host
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 05 20:32:23 UTC 2024
    - 38.4K bytes
    - Viewed (0)
  6. pilot/pkg/serviceregistry/kube/controller/network.go

    		c.RLock()
    		nodeSelector := c.nodeSelectorsForServices[svc.Hostname]
    		c.RUnlock()
    		// update external address
    		var nodeAddresses []string
    		for _, n := range c.nodeInfoMap {
    			if nodeSelector.SubsetOf(n.labels) {
    				nodeAddresses = append(nodeAddresses, n.address)
    			}
    		}
    		if svc.Attributes.ClusterExternalAddresses == nil {
    			svc.Attributes.ClusterExternalAddresses = &model.AddressMap{}
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 22:23:22 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/instantiate.go

    	// of T types (i.e., the V type set must be a subset of the T type set).
    	// Interfaces V with empty type sets were already excluded above.
    	if Vi != nil {
    		if !Vi.typeSet().subsetOf(Ti.typeSet()) {
    			// TODO(gri) report which type is missing
    			if cause != nil {
    				*cause = check.sprintf("%s does not %s %s", V, verb, T)
    			}
    			return false
    		}
    		return checkComparability()
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  8. pilot/pkg/serviceregistry/kube/controller/ambient/workloads.go

    		}
    		if pol.Namespace != ns {
    			return false
    		}
    		sel := pol.Spec.Selector
    		if sel == nil {
    			return true // No selector matches everything
    		}
    		return labels.Instance(sel.MatchLabels).SubsetOf(matchLabels)
    	}))
    }
    
    func constructServicesFromWorkloadEntry(p *networkingv1alpha3.WorkloadEntry, services []model.ServiceInfo) map[string]*workloadapi.PortList {
    	res := map[string]*workloadapi.PortList{}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 16:51:29 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  9. src/go/types/instantiate.go

    	// of T types (i.e., the V type set must be a subset of the T type set).
    	// Interfaces V with empty type sets were already excluded above.
    	if Vi != nil {
    		if !Vi.typeSet().subsetOf(Ti.typeSet()) {
    			// TODO(gri) report which type is missing
    			if cause != nil {
    				*cause = check.sprintf("%s does not %s %s", V, verb, T)
    			}
    			return false
    		}
    		return checkComparability()
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  10. pilot/pkg/simulation/traffic.go

    		return fc.GetServerNames() == nil
    	}, func(fc *listener.FilterChainMatch) bool {
    		sni := host.Name(input.Sni)
    		for _, s := range fc.GetServerNames() {
    			if sni.SubsetOf(host.Name(s)) {
    				return true
    			}
    		}
    		return false
    	})
    	chains = filter("TransportProtocol", chains, func(fc *listener.FilterChainMatch) bool {
    		return fc.GetTransportProtocol() == ""
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 19.4K bytes
    - Viewed (0)
Back to top