Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for HNSListEndpointRequest (0.23 sec)

  1. pkg/kubelet/stats/cri_stats_provider_windows.go

    type windowsNetworkStatsProvider interface {
    	HNSListEndpointRequest() ([]hcsshim.HNSEndpoint, error)
    	GetHNSEndpointStats(endpointName string) (*hcsshim.HNSEndpointStats, error)
    }
    
    // networkStats exposes the required functionality for hcsshim in this scenario
    type networkStats struct{}
    
    func (s networkStats) HNSListEndpointRequest() ([]hcsshim.HNSEndpoint, error) {
    	return hcsshim.HNSListEndpointRequest()
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Feb 18 07:03:11 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  2. pkg/kubelet/stats/cri_stats_provider_windows_test.go

    					PacketsReceived: stat.PacketsReceived,
    					PacketsSent:     stat.PacketsSent,
    				}
    			}
    		}
    	}
    
    	return &eps, nil
    }
    
    func (s fakeNetworkStatsProvider) HNSListEndpointRequest() ([]hcsshim.HNSEndpoint, error) {
    	uniqueEndpoints := map[string]*hcsshim.HNSEndpoint{}
    
    	for _, c := range s.containers {
    		for _, stat := range c.hcsStats {
    			e, found := uniqueEndpoints[stat.EndpointId]
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Feb 17 00:02:10 UTC 2024
    - 13.8K bytes
    - Viewed (0)
Back to top