Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for retrieveEndpointAddress (0.21 sec)

  1. istioctl/pkg/writer/envoy/clusters/clusters.go

    	cd := clusters.Wrapper{}
    	err := json.Unmarshal(b, &cd)
    	if err != nil {
    		return fmt.Errorf("error unmarshalling config dump response from Envoy: %v", err)
    	}
    	c.clusters = &cd
    	return nil
    }
    
    func retrieveEndpointAddress(host *admin.HostStatus) string {
    	addr := host.Address.GetSocketAddress()
    	if addr != nil {
    		return addr.Address
    	}
    	if pipe := host.Address.GetPipe(); pipe != nil {
    		return "unix://" + pipe.Path
    	}
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Thu Nov 03 08:41:32 GMT 2022
    - 5.8K bytes
    - Viewed (0)
  2. istioctl/pkg/writer/envoy/configdump/endpoint.go

    func (e *EndpointFilter) Verify(ep *endpoint.LbEndpoint, cluster string) bool {
    	if e.Address == "" && e.Port == 0 && e.Cluster == "" && e.Status == "" {
    		return true
    	}
    	if e.Address != "" && !strings.EqualFold(retrieveEndpointAddress(ep), e.Address) {
    		return false
    	}
    	if e.Port != 0 && retrieveEndpointPort(ep) != e.Port {
    		return false
    	}
    	if e.Cluster != "" && !strings.EqualFold(cluster, e.Cluster) {
    		return false
    	}
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Sun Apr 21 17:42:54 GMT 2024
    - 5.6K bytes
    - Viewed (0)
Back to top