- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 45 for subMono (0.19 sec)
-
src/time/time.go
return subMono(runtimeNano()-startNano, t.ext) } return Now().Sub(t) } // Until returns the duration until t. // It is shorthand for t.Sub(time.Now()). func Until(t Time) Duration { if t.wall&hasMonotonic != 0 { // Common case optimization: if t has monotonic time, then Sub will use only it. return subMono(t.ext, runtimeNano()-startNano) } return t.Sub(Now())
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 50.7K bytes - Viewed (0) -
pilot/pkg/networking/core/loadbalancer/loadbalancer_test.go
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 23 05:38:57 UTC 2024 - 39.1K bytes - Viewed (0) -
tests/integration/pilot/locality_test.go
number: 80 protocol: HTTP resolution: {{.Resolution}} endpoints: - address: {{.Local}} locality: region/zone/subzone - address: {{.Remote}} locality: notregion/notzone/notsubzone {{ if ne .NearLocal "" }} - address: {{.NearLocal}} locality: "nearregion/zone/subzone" {{ end }} --- apiVersion: networking.istio.io/v1alpha3 kind: DestinationRule metadata: name: external-service-locality
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Apr 08 22:02:59 UTC 2024 - 6.6K bytes - Viewed (0) -
pilot/pkg/serviceregistry/util/label/label.go
out := make(labels.Instance, len(in)+6) for k, v := range in { out[k] = v } region, zone, subzone := SplitLocalityLabel(locality) if len(region) > 0 { out[LabelTopologyRegion] = region } if len(zone) > 0 { out[LabelTopologyZone] = zone } if len(subzone) > 0 { out[label.TopologySubzone.Name] = subzone } if len(clusterID) > 0 { out[label.TopologyCluster.Name] = clusterID.String() }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Oct 11 03:56:40 UTC 2023 - 2.2K bytes - Viewed (0) -
pkg/model/proxy_test.go
name: "with label", label: "region/zone/subzone-1", expected: "region/zone/subzone-1", }, { name: "label with k8s label separator", label: "region" + k8sSeparator + "zone" + k8sSeparator + "subzone-2", expected: "region/zone/subzone-2", }, { name: "label with both k8s label separators and slashes", label: "region/zone/subzone.2", expected: "region/zone/subzone.2", },
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Mar 28 20:38:02 UTC 2024 - 8.2K bytes - Viewed (0) -
pilot/pkg/networking/util/util_test.go
Zone: "zone", }, }, { name: "locality with region zone and subzone", locality: "region/zone/subzone", want: &core.Locality{ Region: "region", Zone: "zone", SubZone: "subzone", }, }, { name: "locality with region zone subzone and rack", locality: "region/zone/subzone/rack", want: &core.Locality{ Region: "region", Zone: "zone",
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 29 01:17:58 UTC 2024 - 40K bytes - Viewed (0) -
pilot/pkg/serviceregistry/kube/controller/ambient/workloads.go
subzone := node.GetLabels()[label.TopologySubzone.Name] if region == "" && zone == "" && subzone == "" { return nil } return &workloadapi.Locality{ Region: region, Zone: zone, Subzone: subzone, } } func getWorkloadEntryLocality(p *networkingv1alpha3.WorkloadEntry) *workloadapi.Locality { region, zone, subzone := labelutil.SplitLocalityLabel(p.GetLocality())
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 13 16:51:29 UTC 2024 - 20.9K bytes - Viewed (0) -
istioctl/pkg/writer/ztunnel/configdump/api.go
// limitations under the License. package configdump type Locality struct { Region string `json:"region,omitempty"` Zone string `json:"zone,omitempty"` Subzone string `json:"subzone,omitempty"` } type ZtunnelWorkload struct { WorkloadIPs []string `json:"workloadIps"` Waypoint *GatewayAddress `json:"waypoint,omitempty"`
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 13 16:51:29 UTC 2024 - 5.5K bytes - Viewed (0) -
pilot/pkg/serviceregistry/kube/controller/endpoint_builder_test.go
ObjectMeta: metav1.ObjectMeta{Name: "fake", Labels: map[string]string{ NodeRegionLabelGA: loc.Region, NodeZoneLabel: loc.Zone, label.TopologySubzone.Name: loc.SubZone, }}, Spec: v1.NodeSpec{}, Status: v1.NodeStatus{}, }) nodes := kclient.New[*v1.Node](fc) fc.RunAndWait(test.NewStop(t)) cc := &Controller{ nodes: nodes,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 21:07:03 UTC 2024 - 7.8K bytes - Viewed (0) -
src/net/netip/uint128.go
func (u uint128) or(m uint128) uint128 { return uint128{u.hi | m.hi, u.lo | m.lo} } // not returns the bitwise NOT of u. func (u uint128) not() uint128 { return uint128{^u.hi, ^u.lo} } // subOne returns u - 1. func (u uint128) subOne() uint128 { lo, borrow := bits.Sub64(u.lo, 1, 0) return uint128{u.hi - borrow, lo} } // addOne returns u + 1. func (u uint128) addOne() uint128 { lo, carry := bits.Add64(u.lo, 1, 0)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 07 21:28:44 UTC 2022 - 2.2K bytes - Viewed (0)