kubernetes: k8s.io/kubernetes/pkg/kubelet/server/stats/testing Index | Files

package testing

import "k8s.io/kubernetes/pkg/kubelet/server/stats/testing"

Index

Package Files

mock_stats_provider.go

type StatsProvider Uses

type StatsProvider struct {
    mock.Mock
}

StatsProvider is an autogenerated mock type for the StatsProvider type

func (*StatsProvider) GetCgroupCPUAndMemoryStats Uses

func (_m *StatsProvider) GetCgroupCPUAndMemoryStats(cgroupName string, updateStats bool) (*v1alpha1.ContainerStats, error)

GetCgroupCPUAndMemoryStats provides a mock function with given fields: cgroupName, updateStats

func (*StatsProvider) GetCgroupStats Uses

func (_m *StatsProvider) GetCgroupStats(cgroupName string, updateStats bool) (*v1alpha1.ContainerStats, *v1alpha1.NetworkStats, error)

GetCgroupStats provides a mock function with given fields: cgroupName, updateStats

func (*StatsProvider) GetContainerInfo Uses

func (_m *StatsProvider) GetContainerInfo(podFullName string, uid types.UID, containerName string, req *v1.ContainerInfoRequest) (*v1.ContainerInfo, error)

GetContainerInfo provides a mock function with given fields: podFullName, uid, containerName, req

func (*StatsProvider) GetNode Uses

func (_m *StatsProvider) GetNode() (*corev1.Node, error)

GetNode provides a mock function with given fields:

func (*StatsProvider) GetNodeConfig Uses

func (_m *StatsProvider) GetNodeConfig() cm.NodeConfig

GetNodeConfig provides a mock function with given fields:

func (*StatsProvider) GetPodByCgroupfs Uses

func (_m *StatsProvider) GetPodByCgroupfs(cgroupfs string) (*corev1.Pod, bool)

GetPodByCgroupfs provides the pod that maps to the specified cgroup, as well as whether the pod was found.

func (*StatsProvider) GetPodByName Uses

func (_m *StatsProvider) GetPodByName(namespace string, name string) (*corev1.Pod, bool)

GetPodByName provides a mock function with given fields: namespace, name

func (*StatsProvider) GetPodCgroupRoot Uses

func (_m *StatsProvider) GetPodCgroupRoot() string

GetPodCgroupRoot provides a mock function with given fields:

func (*StatsProvider) GetPods Uses

func (_m *StatsProvider) GetPods() []*corev1.Pod

GetPods provides a mock function with given fields:

func (*StatsProvider) GetRawContainerInfo Uses

func (_m *StatsProvider) GetRawContainerInfo(containerName string, req *v1.ContainerInfoRequest, subcontainers bool) (map[string]*v1.ContainerInfo, error)

GetRawContainerInfo provides a mock function with given fields: containerName, req, subcontainers

func (*StatsProvider) ImageFsStats Uses

func (_m *StatsProvider) ImageFsStats() (*v1alpha1.FsStats, error)

ImageFsStats provides a mock function with given fields:

func (*StatsProvider) ListPodCPUAndMemoryStats Uses

func (_m *StatsProvider) ListPodCPUAndMemoryStats() ([]v1alpha1.PodStats, error)

ListPodCPUAndMemoryStats provides a mock function with given fields:

func (*StatsProvider) ListPodStats Uses

func (_m *StatsProvider) ListPodStats() ([]v1alpha1.PodStats, error)

ListPodStats provides a mock function with given fields:

func (*StatsProvider) ListPodStatsAndUpdateCPUNanoCoreUsage Uses

func (_m *StatsProvider) ListPodStatsAndUpdateCPUNanoCoreUsage() ([]v1alpha1.PodStats, error)

ListPodStatsAndUpdateCPUNanoCoreUsage provides a mock function with given fields:

func (*StatsProvider) ListVolumesForPod Uses

func (_m *StatsProvider) ListVolumesForPod(podUID types.UID) (map[string]volume.Volume, bool)

ListVolumesForPod provides a mock function with given fields: podUID

func (*StatsProvider) RlimitStats Uses

func (_m *StatsProvider) RlimitStats() (*v1alpha1.RlimitStats, error)

RlimitStats provides a mock function with given fields:

func (*StatsProvider) RootFsStats Uses

func (_m *StatsProvider) RootFsStats() (*v1alpha1.FsStats, error)

RootFsStats provides a mock function with given fields:

Package testing imports 7 packages (graph). Updated 2019-04-06. Refresh now. Tools for package owners.