testing

package
v1.18.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StatsProvider

type StatsProvider struct {
	mock.Mock
}

StatsProvider is an autogenerated mock type for the StatsProvider type

func (*StatsProvider) GetCgroupCPUAndMemoryStats added in v1.13.0

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 added in v1.11.0

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

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

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

func (*StatsProvider) GetPodCgroupRoot added in v1.10.0

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 added in v1.13.0

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 added in v1.13.7

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

ListPodStatsAndUpdateCPUNanoCoreUsage provides a mock function with given fields:

func (*StatsProvider) ListVolumesForPod

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

ListVolumesForPod provides a mock function with given fields: podUID

func (*StatsProvider) RlimitStats added in v1.10.0

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:

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL