Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for IsValidSubsetKey (0.26 sec)

  1. pilot/pkg/model/service.go

    	return string(direction) + "_." + strconv.Itoa(port) + "_." + subsetName + "_." + string(hostname)
    }
    
    // IsValidSubsetKey checks if a string is valid for subset key parsing.
    func IsValidSubsetKey(s string) bool {
    	return strings.Count(s, "|") == 3
    }
    
    // IsDNSSrvSubsetKey checks whether the given key is a DNSSrv key (built by BuildDNSSrvSubsetKey).
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 02:03:58 UTC 2024
    - 46.3K bytes
    - Viewed (0)
  2. pilot/pkg/networking/core/route/route.go

    	// Otherwise there are multiple destination clusters and destination host is not clear. For that case
    	// return virtual service name:port/uri as substitute.
    	if c := in.GetRoute().GetCluster(); model.IsValidSubsetKey(c) {
    		// Parse host and port from cluster name.
    		_, _, h, p := model.ParseSubsetKey(c)
    		return string(h) + ":" + strconv.Itoa(p) + path
    	}
    	return vsName + ":" + strconv.Itoa(port) + path
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 14:12:39 UTC 2024
    - 56.1K bytes
    - Viewed (0)
Back to top