Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for LbEps (0.41 sec)

  1. pilot/test/xdstest/endpoints.go

    )
    
    type LbEpInfo struct {
    	Address string
    	// nolint: structcheck
    	Weight uint32
    }
    
    type LocLbEpInfo struct {
    	LbEps  []LbEpInfo
    	Weight uint32
    }
    
    func (i LocLbEpInfo) GetAddrs() []string {
    	addrs := make([]string, 0)
    	for _, ep := range i.LbEps {
    		addrs = append(addrs, ep.Address)
    	}
    	return addrs
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 01:17:58 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  2. pilot/pkg/xds/endpoints/ep_filters_test.go

    			locLbEpInfo := &testcase.want[i]
    			// HBONE endpoints are not included for SNI-DNAT clusters
    			locLbEpInfo.LbEps = slices.Filter(locLbEpInfo.LbEps, func(e xdstest.LbEpInfo) bool {
    				return e.Address != "10.0.0.3"
    			})
    			var weight uint32
    			for _, e := range locLbEpInfo.LbEps {
    				weight += e.Weight
    			}
    			locLbEpInfo.Weight = weight
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 01:17:58 UTC 2024
    - 26.8K bytes
    - Viewed (0)
  3. pilot/pkg/xds/mesh_network_test.go

    			},
    			expectations: map[string][]xdstest.LocLbEpInfo{
    				"": {xdstest.LocLbEpInfo{
    					LbEps: []xdstest.LbEpInfo{
    						{Address: "1.2.3.4", Weight: 1},
    						{Address: "2.2.2.2", Weight: 2},
    					},
    					Weight: 3,
    				}},
    				"v1": {xdstest.LocLbEpInfo{
    					LbEps: []xdstest.LbEpInfo{
    						{Address: "1.2.3.4", Weight: 1},
    						{Address: "2.2.2.2", Weight: 2},
    					},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 27 16:59:05 UTC 2024
    - 24.6K bytes
    - Viewed (0)
Back to top