- Sort Score
- Result 10 results
- Languages All
Results 181 - 190 of 206 for index (0.04 sec)
-
pkg/test/loadbalancersim/loadbalancer/leastrequest.go
} } func (lb *unweightedLeastRequest) pick2() (*WeightedConnection, *WeightedConnection) { numConnections := len(lb.conns) index1 := lb.r.Intn(numConnections) index2 := lb.r.Intn(numConnections) if index2 == index1 { index2 = (index2 + 1) % numConnections } return lb.get(index1), lb.get(index2) } func (lb *unweightedLeastRequest) Request(onDone func()) { if len(lb.conns) == 1 { lb.doRequest(lb.get(0), onDone)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Nov 14 20:23:34 UTC 2022 - 3.4K bytes - Viewed (0) -
pkg/config/validation/validation.go
// check the overlapping match from the first prefix information for routeIndex, routePrefix := range matchHTTPRoutes { for rIndex := routeIndex + 1; rIndex < len(matchHTTPRoutes); rIndex++ { // exclude the duplicate-match cases which have been validated above if strings.Compare(matchHTTPRoutes[rIndex].Prefix, routePrefix.Prefix) == 0 { continue } // Validate former prefix match does not cover the latter one.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jun 12 04:03:33 UTC 2024 - 107.2K bytes - Viewed (0) -
pkg/config/security/security.go
if err != nil || p > 65535 { errs = multierror.Append(errs, fmt.Errorf("bad port (%s): %v", port, err)) } } return errs.ErrorOrNil() } func validateMapKey(key string) error { open := strings.Index(key, "[") if strings.HasSuffix(key, "]") && open > 0 && open < len(key)-2 { return nil } return fmt.Errorf("bad key (%s): should have format a[b]", key) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jun 07 04:43:34 UTC 2024 - 9.4K bytes - Viewed (0) -
pilot/pkg/model/telemetry_logging.go
var namespaces []string for k := range namespaceToServices { namespaces = append(namespaces, k) } // If namespace is omitted, return successfully if there is only one such host name in the service index. if len(namespaces) == 1 { svc := namespaceToServices[namespaces[0]] hostname = string(svc.Hostname) cluster = BuildSubsetKey(TrafficDirectionOutbound, "", svc.Hostname, port) return
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jun 14 04:34:30 UTC 2024 - 23K bytes - Viewed (0) -
pilot/pkg/serviceregistry/serviceentry/conversion_test.go
Namespace: namespace, CreationTimestamp: GlobalTime, }, Spec: spec, } } func convertPortNameToProtocol(name string) protocol.Instance { prefix := name i := strings.Index(name, "-") if i >= 0 { prefix = name[:i] } return protocol.Parse(prefix) } func makeService(hostname host.Name, configNamespace, address string, ports map[string]int,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 21:07:03 UTC 2024 - 39K bytes - Viewed (0) -
pilot/cmd/pilot-agent/status/server.go
if !istioNetUtil.IsRequestFromLocalhost(r) { http.Error(w, "Only requests from localhost are allowed", http.StatusForbidden) return } pprof.Index(w, r) } func (s *Server) handlePprofCmdline(w http.ResponseWriter, r *http.Request) { if !istioNetUtil.IsRequestFromLocalhost(r) { http.Error(w, "Only requests from localhost are allowed", http.StatusForbidden)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 15:07:03 UTC 2024 - 31.1K bytes - Viewed (1) -
pilot/pkg/security/authz/model/generator.go
if forTCP { return nil, fmt.Errorf("%q is HTTP only", key) } var or []*rbacpb.Principal for _, value := range values { // Use the last index of "/" since issuer may be an URL idx := strings.LastIndex(value, "/") found := idx >= 0 iss, sub := "", "" if found { iss, sub = value[:idx], value[idx+1:] } else { iss = value }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 03 18:02:42 UTC 2024 - 14.1K bytes - Viewed (0) -
pilot/pkg/model/virtualservice_test.go
Meta: config.Meta{ GroupVersionKind: gvk.VirtualService, Name: "service-wildcard-v1", Namespace: "default", }, Spec: virtualServiceSpec9, } index := virtualServiceIndex{ publicByGateway: map[string][]config.Config{ constants.IstioMeshGateway: { virtualService1, virtualService2, virtualService3, virtualService4,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sun Apr 21 17:42:54 UTC 2024 - 60.6K bytes - Viewed (0) -
pilot/pkg/networking/core/route/route_test.go
"*.example.org": exampleWildcardService, "goodbye.hello.example.org": exampleNestedWildcardService, } // note that the VS containing *.google.com doesn't have an entry in the wildcard index wildcardIndex := map[host.Name]types.NamespacedName{ "*.example.org": virtualServiceWithWildcardHost.NamespacedName(), "*.hello.example.org": virtualServiceWithNestedWildcardHost.NamespacedName(), }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 14 14:12:39 UTC 2024 - 88.1K bytes - Viewed (0) -
pkg/model/proxy.go
case SidecarProxy, Router, Waypoint, Ztunnel: return true default: return false } } // IPMode represents the IP mode of proxy. type IPMode int // IPMode constants starting with index 1. const ( IPv4 IPMode = iota + 1 IPv6 Dual ) func DiscoverIPMode(addrs []string) IPMode { if networkutil.AllIPv4(addrs) { return IPv4 } else if networkutil.AllIPv6(addrs) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Apr 25 17:18:17 UTC 2024 - 18.7K bytes - Viewed (0)