- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for NewPortMapKey (0.38 sec)
-
pkg/controller/endpointslicemirroring/metrics/cache_test.go
) func TestNumEndpointsAndSlices(t *testing.T) { c := NewCache(int32(100)) p80 := int32(80) p443 := int32(443) pmKey80443 := endpointsliceutil.NewPortMapKey([]discovery.EndpointPort{{Port: &p80}, {Port: &p443}}) pmKey80 := endpointsliceutil.NewPortMapKey([]discovery.EndpointPort{{Port: &p80}}) spCacheEfficient := NewEndpointPortCache() spCacheEfficient.Set(pmKey80, EfficiencyInfo{Endpoints: 45, Slices: 1})
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 11 18:08:12 UTC 2023 - 2.6K bytes - Viewed (0) -
pkg/controller/endpointslicemirroring/utils.go
func newAddrTypePortMapKey(endpointPorts []discovery.EndpointPort, addrType discovery.AddressType) addrTypePortMapKey { pmk := fmt.Sprintf("%s-%s", addrType, endpointsliceutil.NewPortMapKey(endpointPorts)) return addrTypePortMapKey(pmk) } func (pk addrTypePortMapKey) addressType() discovery.AddressType { if strings.HasPrefix(string(pk), string(discovery.AddressTypeIPv6)) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 11 18:08:12 UTC 2023 - 8.8K bytes - Viewed (0)