Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for getEndpointByName (0.21 sec)

  1. pkg/proxy/winkernel/hcnutils.go

    }
    
    func (hcnObj hcnImpl) GetEndpointByID(endpointId string) (*hcn.HostComputeEndpoint, error) {
    	return hcn.GetEndpointByID(endpointId)
    }
    
    func (hcnObj hcnImpl) GetEndpointByName(endpointName string) (*hcn.HostComputeEndpoint, error) {
    	return hcn.GetEndpointByName(endpointName)
    }
    
    func (hcnObj hcnImpl) CreateEndpoint(network *hcn.HostComputeNetwork, endpoint *hcn.HostComputeEndpoint) (*hcn.HostComputeEndpoint, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 08 03:08:46 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  2. pkg/proxy/winkernel/hns.go

    				hns:        hns,
    			}, nil
    		}
    	}
    	return nil, fmt.Errorf("Endpoint %v not found on network %s", ip, networkName)
    }
    func (hns hns) getEndpointByName(name string) (*endpointInfo, error) {
    	hnsendpoint, err := hns.hcn.GetEndpointByName(name)
    	if err != nil {
    		return nil, err
    	}
    	return &endpointInfo{ //TODO: fill out PA
    		ip:         hnsendpoint.IpConfigurations[0].IpAddress,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 09 21:21:12 UTC 2023
    - 15K bytes
    - Viewed (0)
  3. pkg/proxy/winkernel/testing/hcnutils_mock.go

    	if ep, ok := endpointMap[endpointId]; ok {
    		return ep, nil
    	}
    	epNotFoundError := hcn.EndpointNotFoundError{EndpointID: endpointId}
    	return nil, epNotFoundError
    }
    
    func (hcnObj HcnMock) GetEndpointByName(endpointName string) (*hcn.HostComputeEndpoint, error) {
    	if ep, ok := endpointMap[endpointName]; ok {
    		return ep, nil
    	}
    	epNotFoundError := hcn.EndpointNotFoundError{EndpointName: endpointName}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 18 06:29:01 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  4. pkg/proxy/winkernel/hns_test.go

    		t.Errorf("%v does not match %v", endpoint.ip, Endpoint.IpConfigurations[0].IpAddress)
    	}
    
    	endpoint2, err := hns.getEndpointByName(Endpoint.Name)
    	if err != nil {
    		t.Error(err)
    	}
    	diff := cmp.Diff(endpoint, endpoint2)
    	if diff != "" {
    		t.Errorf("getEndpointByName(%s) returned a different endpoint. Diff: %s ", Endpoint.Name, diff)
    	}
    
    	err = Endpoint.Delete()
    	if err != nil {
    		t.Error(err)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  5. pkg/proxy/winkernel/proxier.go

    	}()
    
    	hnsNetworkName := proxier.network.name
    	hns := proxier.hns
    
    	var gatewayHnsendpoint *endpointInfo
    	if proxier.forwardHealthCheckVip {
    		gatewayHnsendpoint, _ = hns.getEndpointByName(proxier.rootHnsEndpointName)
    	}
    
    	prevNetworkID := proxier.network.id
    	updatedNetwork, err := hns.getNetworkByName(hnsNetworkName)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 13:25:06 UTC 2024
    - 59K bytes
    - Viewed (0)
Back to top