- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for MakeIP (0.2 sec)
-
pilot/pkg/serviceregistry/mock/discovery.go
MeshExternal: isMeshExternal, Ports: []*model.Port{{ Name: "https", Port: 443, Protocol: protocol.HTTPS, }}, } } // MakeIP creates a fake IP address for a service and instance version func MakeIP(service *model.Service, version int) string { // external services have no instances if service.External() { return "" } ipa, ise := netip.ParseAddr(service.DefaultAddress)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Aug 07 18:40:05 UTC 2023 - 3.7K bytes - Viewed (0) -
pilot/pkg/serviceregistry/aggregate/controller_test.go
t.Fatal("Returned Instance is incorrect") } } // Get Instances from mockAdapter2 instances = aggregateCtl.GetProxyServiceTargets(&model.Proxy{IPAddresses: []string{mock.MakeIP(mock.WorldService, 1)}}) if len(instances) != 6 { t.Fatalf("Returned GetProxyServiceTargets' amount %d is not correct", len(instances)) } for _, inst := range instances {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 15 06:28:11 UTC 2024 - 14.5K bytes - Viewed (0)