Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for GetEndpointHost (0.14 sec)

  1. pilot/pkg/networking/util/util_test.go

    						},
    					},
    				},
    			},
    			want: "fd00:10:96::7fc7",
    		},
    	}
    
    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    			if got := GetEndpointHost(tt.endpoint); got != tt.want {
    				t.Errorf("GetEndpointHost got %v, want %v", got, tt.want)
    			}
    		})
    	}
    }
    
    func TestCidrRangeSliceEqual(t *testing.T) {
    	tests := []struct {
    		name   string
    		first  []*core.CidrRange
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 01:17:58 UTC 2024
    - 40K bytes
    - Viewed (0)
  2. pilot/pkg/networking/util/util.go

    				AddressNameSpecifier: &core.EnvoyInternalAddress_ServerListenerName{
    					ServerListenerName: name,
    				},
    				EndpointId: identifier,
    			},
    		},
    	}
    }
    
    func GetEndpointHost(e *endpoint.LbEndpoint) string {
    	addr := e.GetEndpoint().GetAddress()
    	if host := addr.GetSocketAddress().GetAddress(); host != "" {
    		return host
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 28.5K bytes
    - Viewed (0)
Back to top