testing

package
v1.12.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2018 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) 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) ListPodStats

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

ListPodStats 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