- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for ipAllocs (0.1 sec)
-
pkg/registry/core/service/storage/storage.go
var secondaryIPFamily api.IPFamily = "" // sentinel value if len(ipAllocs) > 1 { secondaryIPFamily = otherFamily(serviceIPFamily) } genericStore := &REST{ Store: store, primaryIPFamily: primaryIPFamily, secondaryIPFamily: secondaryIPFamily, alloc: makeAlloc(serviceIPFamily, ipAllocs, portAlloc), endpoints: endpoints, pods: pods,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 11 13:09:33 UTC 2024 - 22.3K bytes - Viewed (0) -
src/net/netip/netip_test.go
} for _, test := range tests { prefix := test.ip + test.slash t.Run(prefix, func(t *testing.T) { ipAllocs := int(testing.AllocsPerRun(5, func() { ParseAddr(test.ip) })) prefixAllocs := int(testing.AllocsPerRun(5, func() { ParsePrefix(prefix) })) if got := prefixAllocs - ipAllocs; got != 0 { t.Errorf("allocs=%d, want 0", got) } }) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 17:10:01 UTC 2024 - 54.3K bytes - Viewed (0) -
pkg/registry/core/service/storage/storage_test.go
ResourcePrefix: "services", } ipAllocs := map[api.IPFamily]ipallocator.Interface{} for _, fam := range ipFamilies { switch fam { case api.IPv4Protocol: _, cidr, _ := netutils.ParseCIDRSloppy("10.0.0.0/16") ipAllocs[fam] = makeIPAllocator(cidr) case api.IPv6Protocol: _, cidr, _ := netutils.ParseCIDRSloppy("2000::/108") ipAllocs[fam] = makeIPAllocator(cidr) default:
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 440.2K bytes - Viewed (0)