testing

package
v1.9.3 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 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) (*v1alpha1.ContainerStats, *v1alpha1.NetworkStats, error)

GetCgroupStats provides a mock function with given fields: cgroupName

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) GetPodByName

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

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

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) 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