Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for getVersionInfo (0.27 sec)

  1. pkg/kubelet/winstats/winstats.go

    	client winNodeStatsClient
    }
    
    type winNodeStatsClient interface {
    	startMonitoring() error
    	getNodeMetrics() (nodeMetrics, error)
    	getNodeInfo() nodeInfo
    	getMachineInfo() (*cadvisorapi.MachineInfo, error)
    	getVersionInfo() (*cadvisorapi.VersionInfo, error)
    }
    
    type nodeMetrics struct {
    	cpuUsageCoreNanoSeconds   uint64
    	cpuUsageNanoCores         uint64
    	memoryPrivWorkingSetBytes uint64
    	memoryCommittedBytes      uint64
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 5.2K bytes
    - Viewed (0)
  2. pkg/kubelet/winstats/winstats_test.go

    		NumCores:       4,
    		MemoryCapacity: 1.6e+10,
    		MachineID:      "somehostname",
    		SystemUUID:     "E6C8AC43-582B-3575-4E1F-6DA170888906",
    	}, nil
    }
    
    func (f fakeWinNodeStatsClient) getVersionInfo() (*cadvisorapi.VersionInfo, error) {
    	return &cadvisorapi.VersionInfo{
    		KernelVersion: "v42",
    	}, nil
    }
    
    func TestWinContainerInfos(t *testing.T) {
    	c := getClient(t)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 13 12:08:15 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  3. pkg/kubelet/winstats/perfcounter_nodestats_test.go

    }
    
    func TestGetVersionInfo(t *testing.T) {
    	client := perfCounterNodeStatsClient{
    		nodeInfo: nodeInfo{
    			kernelVersion:  "foo",
    			osImageVersion: "lish",
    		},
    	}
    
    	info, _ := client.getVersionInfo()
    	expected := &cadvisorapi.VersionInfo{
    		KernelVersion:      "foo",
    		ContainerOsVersion: "lish",
    	}
    	assert.Equal(t, expected, info)
    }
    
    func TestCollectMetricsData(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 26 18:37:21 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  4. pkg/kubelet/cadvisor/cadvisor_linux.go

    	return cc.GetContainerInfoV2(name, options)
    }
    
    func (cc *cadvisorClient) VersionInfo() (*cadvisorapi.VersionInfo, error) {
    	return cc.GetVersionInfo()
    }
    
    func (cc *cadvisorClient) MachineInfo() (*cadvisorapi.MachineInfo, error) {
    	return cc.GetMachineInfo()
    }
    
    func (cc *cadvisorClient) ImagesFsInfo() (cadvisorapiv2.FsInfo, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 22:07:20 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  5. pkg/kubelet/winstats/perfcounter_nodestats.go

    func getActiveProcessorCount(groupNumber uint16) int {
    	r0, _, _ := syscall.Syscall(procGetActiveProcessorCount.Addr(), 1, uintptr(groupNumber), 0, 0)
    	return int(r0)
    }
    
    func (p *perfCounterNodeStatsClient) getVersionInfo() (*cadvisorapi.VersionInfo, error) {
    	return &cadvisorapi.VersionInfo{
    		KernelVersion:      p.nodeInfo.kernelVersion,
    		ContainerOsVersion: p.nodeInfo.osImageVersion,
    	}, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 26 18:37:21 UTC 2024
    - 9.2K bytes
    - Viewed (0)
Back to top