Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for getEndpointByID (0.26 sec)

  1. pkg/proxy/winkernel/hcnutils.go

    }
    
    func (hcnObj hcnImpl) ListEndpointsOfNetwork(networkId string) ([]hcn.HostComputeEndpoint, error) {
    	return hcn.ListEndpointsOfNetwork(networkId)
    }
    
    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)
    }
    
    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

    	klog.V(5).InfoS("Queried endpoints details", "network", networkName, "endpointInfos", endpointInfos)
    	return endpointInfos, nil
    }
    
    func (hns hns) getEndpointByID(id string) (*endpointInfo, error) {
    	hnsendpoint, err := hns.hcn.GetEndpointByID(id)
    	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/hns_test.go

    		SchemaVersion: hcn.SchemaVersion{
    			Major: 2,
    			Minor: 0,
    		},
    	}
    
    	Endpoint, err := Network.CreateEndpoint(Endpoint)
    	if err != nil {
    		t.Error(err)
    	}
    
    	endpoint, err := hns.getEndpointByID(Endpoint.Id)
    	if err != nil {
    		t.Error(err)
    	}
    	if !strings.EqualFold(endpoint.hnsID, Endpoint.Id) {
    		t.Errorf("%v does not match %v", endpoint.hnsID, Endpoint.Id)
    	}
    
    	err = Endpoint.Delete()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  4. pkg/proxy/winkernel/testing/hcnutils_mock.go

    	for _, ep := range endpointMap {
    		if ep.HostComputeNetwork == networkId {
    			hcnEPList = append(hcnEPList, *ep)
    		}
    	}
    	return hcnEPList, nil
    }
    
    func (hcnObj HcnMock) GetEndpointByID(endpointId string) (*hcn.HostComputeEndpoint, error) {
    	if ep, ok := endpointMap[endpointId]; ok {
    		return ep, nil
    	}
    	epNotFoundError := hcn.EndpointNotFoundError{EndpointID: endpointId}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 18 06:29:01 UTC 2023
    - 6.2K bytes
    - Viewed (0)
Back to top