Documentation ¶
Index ¶
- type StatsProvider
- func (_m *StatsProvider) GetCgroupCPUAndMemoryStats(cgroupName string, updateStats bool) (*v1alpha1.ContainerStats, error)
- func (_m *StatsProvider) GetCgroupStats(cgroupName string, updateStats bool) (*v1alpha1.ContainerStats, *v1alpha1.NetworkStats, error)
- func (_m *StatsProvider) GetContainerInfo(podFullName string, uid types.UID, containerName string, ...) (*v1.ContainerInfo, error)
- func (_m *StatsProvider) GetNode() (*corev1.Node, error)
- func (_m *StatsProvider) GetNodeConfig() cm.NodeConfig
- func (_m *StatsProvider) GetPodByCgroupfs(cgroupfs string) (*corev1.Pod, bool)
- func (_m *StatsProvider) GetPodByName(namespace string, name string) (*corev1.Pod, bool)
- func (_m *StatsProvider) GetPodCgroupRoot() string
- func (_m *StatsProvider) GetPods() []*corev1.Pod
- func (_m *StatsProvider) GetRawContainerInfo(containerName string, req *v1.ContainerInfoRequest, subcontainers bool) (map[string]*v1.ContainerInfo, error)
- func (_m *StatsProvider) ImageFsStats() (*v1alpha1.FsStats, error)
- func (_m *StatsProvider) ListPodCPUAndMemoryStats() ([]v1alpha1.PodStats, error)
- func (_m *StatsProvider) ListPodStats() ([]v1alpha1.PodStats, error)
- func (_m *StatsProvider) ListPodStatsAndUpdateCPUNanoCoreUsage() ([]v1alpha1.PodStats, error)
- func (_m *StatsProvider) ListVolumesForPod(podUID types.UID) (map[string]volume.Volume, bool)
- func (_m *StatsProvider) RlimitStats() (*v1alpha1.RlimitStats, error)
- func (_m *StatsProvider) RootFsStats() (*v1alpha1.FsStats, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StatsProvider ¶
StatsProvider is an autogenerated mock type for the StatsProvider type
func (*StatsProvider) GetCgroupCPUAndMemoryStats ¶
func (_m *StatsProvider) GetCgroupCPUAndMemoryStats(cgroupName string, updateStats bool) (*v1alpha1.ContainerStats, error)
GetCgroupCPUAndMemoryStats provides a mock function with given fields: cgroupName, updateStats
func (*StatsProvider) GetCgroupStats ¶
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 ¶
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 ¶
func (_m *StatsProvider) GetNode() (*corev1.Node, error)
GetNode provides a mock function with given fields:
func (*StatsProvider) GetNodeConfig ¶
func (_m *StatsProvider) GetNodeConfig() cm.NodeConfig
GetNodeConfig provides a mock function with given fields:
func (*StatsProvider) GetPodByCgroupfs ¶
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 ¶
GetPodByName provides a mock function with given fields: namespace, name
func (*StatsProvider) GetPodCgroupRoot ¶
func (_m *StatsProvider) GetPodCgroupRoot() string
GetPodCgroupRoot provides a mock function with given fields:
func (*StatsProvider) GetPods ¶
func (_m *StatsProvider) GetPods() []*corev1.Pod
GetPods provides a mock function with given fields:
func (*StatsProvider) GetRawContainerInfo ¶
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 ¶
func (_m *StatsProvider) ImageFsStats() (*v1alpha1.FsStats, error)
ImageFsStats provides a mock function with given fields:
func (*StatsProvider) ListPodCPUAndMemoryStats ¶
func (_m *StatsProvider) ListPodCPUAndMemoryStats() ([]v1alpha1.PodStats, error)
ListPodCPUAndMemoryStats provides a mock function with given fields:
func (*StatsProvider) ListPodStats ¶
func (_m *StatsProvider) ListPodStats() ([]v1alpha1.PodStats, error)
ListPodStats provides a mock function with given fields:
func (*StatsProvider) ListPodStatsAndUpdateCPUNanoCoreUsage ¶
func (_m *StatsProvider) ListPodStatsAndUpdateCPUNanoCoreUsage() ([]v1alpha1.PodStats, error)
ListPodStatsAndUpdateCPUNanoCoreUsage provides a mock function with given fields:
func (*StatsProvider) ListVolumesForPod ¶
ListVolumesForPod provides a mock function with given fields: podUID
func (*StatsProvider) RlimitStats ¶
func (_m *StatsProvider) RlimitStats() (*v1alpha1.RlimitStats, error)
RlimitStats provides a mock function with given fields:
func (*StatsProvider) RootFsStats ¶
func (_m *StatsProvider) RootFsStats() (*v1alpha1.FsStats, error)
RootFsStats provides a mock function with given fields: