testing

package
v1.28.15 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package testing is a generated GoMock package.

Package testing is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockProvider added in v1.23.0

type MockProvider struct {
	// contains filtered or unexported fields
}

MockProvider is a mock of Provider interface.

func NewMockProvider added in v1.23.0

func NewMockProvider(ctrl *gomock.Controller) *MockProvider

NewMockProvider creates a new mock instance.

func (*MockProvider) EXPECT added in v1.23.0

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockProvider) GetCgroupCPUAndMemoryStats added in v1.23.0

func (m *MockProvider) GetCgroupCPUAndMemoryStats(cgroupName string, updateStats bool) (*v1alpha1.ContainerStats, error)

GetCgroupCPUAndMemoryStats mocks base method.

func (*MockProvider) GetCgroupStats added in v1.23.0

func (m *MockProvider) GetCgroupStats(cgroupName string, updateStats bool) (*v1alpha1.ContainerStats, *v1alpha1.NetworkStats, error)

GetCgroupStats mocks base method.

func (*MockProvider) GetContainerInfo added in v1.23.0

func (m *MockProvider) GetContainerInfo(ctx context.Context, podFullName string, uid types.UID, containerName string, req *v1.ContainerInfoRequest) (*v1.ContainerInfo, error)

GetContainerInfo mocks base method.

func (*MockProvider) GetNode added in v1.23.0

func (m *MockProvider) GetNode() (*v10.Node, error)

GetNode mocks base method.

func (*MockProvider) GetNodeConfig added in v1.23.0

func (m *MockProvider) GetNodeConfig() cm.NodeConfig

GetNodeConfig mocks base method.

func (*MockProvider) GetPodByCgroupfs added in v1.23.0

func (m *MockProvider) GetPodByCgroupfs(cgroupfs string) (*v10.Pod, bool)

GetPodByCgroupfs mocks base method.

func (*MockProvider) GetPodByName added in v1.23.0

func (m *MockProvider) GetPodByName(namespace, name string) (*v10.Pod, bool)

GetPodByName mocks base method.

func (*MockProvider) GetPodCgroupRoot added in v1.23.0

func (m *MockProvider) GetPodCgroupRoot() string

GetPodCgroupRoot mocks base method.

func (*MockProvider) GetPods added in v1.23.0

func (m *MockProvider) GetPods() []*v10.Pod

GetPods mocks base method.

func (*MockProvider) GetRawContainerInfo added in v1.23.0

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

GetRawContainerInfo mocks base method.

func (*MockProvider) GetRequestedContainersInfo added in v1.23.0

func (m *MockProvider) GetRequestedContainersInfo(containerName string, options v2.RequestOptions) (map[string]*v1.ContainerInfo, error)

GetRequestedContainersInfo mocks base method.

func (*MockProvider) ImageFsStats added in v1.23.0

func (m *MockProvider) ImageFsStats(ctx context.Context) (*v1alpha1.FsStats, error)

ImageFsStats mocks base method.

func (*MockProvider) ListBlockVolumesForPod added in v1.23.0

func (m *MockProvider) ListBlockVolumesForPod(podUID types.UID) (map[string]volume.BlockVolume, bool)

ListBlockVolumesForPod mocks base method.

func (*MockProvider) ListPodCPUAndMemoryStats added in v1.23.0

func (m *MockProvider) ListPodCPUAndMemoryStats(ctx context.Context) ([]v1alpha1.PodStats, error)

ListPodCPUAndMemoryStats mocks base method.

func (*MockProvider) ListPodStats added in v1.23.0

func (m *MockProvider) ListPodStats(ctx context.Context) ([]v1alpha1.PodStats, error)

ListPodStats mocks base method.

func (*MockProvider) ListPodStatsAndUpdateCPUNanoCoreUsage added in v1.23.0

func (m *MockProvider) ListPodStatsAndUpdateCPUNanoCoreUsage(ctx context.Context) ([]v1alpha1.PodStats, error)

ListPodStatsAndUpdateCPUNanoCoreUsage mocks base method.

func (*MockProvider) ListVolumesForPod added in v1.23.0

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

ListVolumesForPod mocks base method.

func (*MockProvider) RlimitStats added in v1.23.0

func (m *MockProvider) RlimitStats() (*v1alpha1.RlimitStats, error)

RlimitStats mocks base method.

func (*MockProvider) RootFsStats added in v1.23.0

func (m *MockProvider) RootFsStats() (*v1alpha1.FsStats, error)

RootFsStats mocks base method.

type MockProviderMockRecorder added in v1.23.0

type MockProviderMockRecorder struct {
	// contains filtered or unexported fields
}

MockProviderMockRecorder is the mock recorder for MockProvider.

func (*MockProviderMockRecorder) GetCgroupCPUAndMemoryStats added in v1.23.0

func (mr *MockProviderMockRecorder) GetCgroupCPUAndMemoryStats(cgroupName, updateStats interface{}) *gomock.Call

GetCgroupCPUAndMemoryStats indicates an expected call of GetCgroupCPUAndMemoryStats.

func (*MockProviderMockRecorder) GetCgroupStats added in v1.23.0

func (mr *MockProviderMockRecorder) GetCgroupStats(cgroupName, updateStats interface{}) *gomock.Call

GetCgroupStats indicates an expected call of GetCgroupStats.

func (*MockProviderMockRecorder) GetContainerInfo added in v1.23.0

func (mr *MockProviderMockRecorder) GetContainerInfo(ctx, podFullName, uid, containerName, req interface{}) *gomock.Call

GetContainerInfo indicates an expected call of GetContainerInfo.

func (*MockProviderMockRecorder) GetNode added in v1.23.0

func (mr *MockProviderMockRecorder) GetNode() *gomock.Call

GetNode indicates an expected call of GetNode.

func (*MockProviderMockRecorder) GetNodeConfig added in v1.23.0

func (mr *MockProviderMockRecorder) GetNodeConfig() *gomock.Call

GetNodeConfig indicates an expected call of GetNodeConfig.

func (*MockProviderMockRecorder) GetPodByCgroupfs added in v1.23.0

func (mr *MockProviderMockRecorder) GetPodByCgroupfs(cgroupfs interface{}) *gomock.Call

GetPodByCgroupfs indicates an expected call of GetPodByCgroupfs.

func (*MockProviderMockRecorder) GetPodByName added in v1.23.0

func (mr *MockProviderMockRecorder) GetPodByName(namespace, name interface{}) *gomock.Call

GetPodByName indicates an expected call of GetPodByName.

func (*MockProviderMockRecorder) GetPodCgroupRoot added in v1.23.0

func (mr *MockProviderMockRecorder) GetPodCgroupRoot() *gomock.Call

GetPodCgroupRoot indicates an expected call of GetPodCgroupRoot.

func (*MockProviderMockRecorder) GetPods added in v1.23.0

func (mr *MockProviderMockRecorder) GetPods() *gomock.Call

GetPods indicates an expected call of GetPods.

func (*MockProviderMockRecorder) GetRawContainerInfo added in v1.23.0

func (mr *MockProviderMockRecorder) GetRawContainerInfo(containerName, req, subcontainers interface{}) *gomock.Call

GetRawContainerInfo indicates an expected call of GetRawContainerInfo.

func (*MockProviderMockRecorder) GetRequestedContainersInfo added in v1.23.0

func (mr *MockProviderMockRecorder) GetRequestedContainersInfo(containerName, options interface{}) *gomock.Call

GetRequestedContainersInfo indicates an expected call of GetRequestedContainersInfo.

func (*MockProviderMockRecorder) ImageFsStats added in v1.23.0

func (mr *MockProviderMockRecorder) ImageFsStats(ctx interface{}) *gomock.Call

ImageFsStats indicates an expected call of ImageFsStats.

func (*MockProviderMockRecorder) ListBlockVolumesForPod added in v1.23.0

func (mr *MockProviderMockRecorder) ListBlockVolumesForPod(podUID interface{}) *gomock.Call

ListBlockVolumesForPod indicates an expected call of ListBlockVolumesForPod.

func (*MockProviderMockRecorder) ListPodCPUAndMemoryStats added in v1.23.0

func (mr *MockProviderMockRecorder) ListPodCPUAndMemoryStats(ctx interface{}) *gomock.Call

ListPodCPUAndMemoryStats indicates an expected call of ListPodCPUAndMemoryStats.

func (*MockProviderMockRecorder) ListPodStats added in v1.23.0

func (mr *MockProviderMockRecorder) ListPodStats(ctx interface{}) *gomock.Call

ListPodStats indicates an expected call of ListPodStats.

func (*MockProviderMockRecorder) ListPodStatsAndUpdateCPUNanoCoreUsage added in v1.23.0

func (mr *MockProviderMockRecorder) ListPodStatsAndUpdateCPUNanoCoreUsage(ctx interface{}) *gomock.Call

ListPodStatsAndUpdateCPUNanoCoreUsage indicates an expected call of ListPodStatsAndUpdateCPUNanoCoreUsage.

func (*MockProviderMockRecorder) ListVolumesForPod added in v1.23.0

func (mr *MockProviderMockRecorder) ListVolumesForPod(podUID interface{}) *gomock.Call

ListVolumesForPod indicates an expected call of ListVolumesForPod.

func (*MockProviderMockRecorder) RlimitStats added in v1.23.0

func (mr *MockProviderMockRecorder) RlimitStats() *gomock.Call

RlimitStats indicates an expected call of RlimitStats.

func (*MockProviderMockRecorder) RootFsStats added in v1.23.0

func (mr *MockProviderMockRecorder) RootFsStats() *gomock.Call

RootFsStats indicates an expected call of RootFsStats.

type MockSummaryProvider added in v1.23.0

type MockSummaryProvider struct {
	// contains filtered or unexported fields
}

MockSummaryProvider is a mock of SummaryProvider interface.

func NewMockSummaryProvider added in v1.23.0

func NewMockSummaryProvider(ctrl *gomock.Controller) *MockSummaryProvider

NewMockSummaryProvider creates a new mock instance.

func (*MockSummaryProvider) EXPECT added in v1.23.0

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockSummaryProvider) Get added in v1.23.0

func (m *MockSummaryProvider) Get(ctx context.Context, updateStats bool) (*v1alpha1.Summary, error)

Get mocks base method.

func (*MockSummaryProvider) GetCPUAndMemoryStats added in v1.23.0

func (m *MockSummaryProvider) GetCPUAndMemoryStats(ctx context.Context) (*v1alpha1.Summary, error)

GetCPUAndMemoryStats mocks base method.

type MockSummaryProviderMockRecorder added in v1.23.0

type MockSummaryProviderMockRecorder struct {
	// contains filtered or unexported fields
}

MockSummaryProviderMockRecorder is the mock recorder for MockSummaryProvider.

func (*MockSummaryProviderMockRecorder) Get added in v1.23.0

func (mr *MockSummaryProviderMockRecorder) Get(ctx, updateStats interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockSummaryProviderMockRecorder) GetCPUAndMemoryStats added in v1.23.0

func (mr *MockSummaryProviderMockRecorder) GetCPUAndMemoryStats(ctx interface{}) *gomock.Call

GetCPUAndMemoryStats indicates an expected call of GetCPUAndMemoryStats.

Jump to

Keyboard shortcuts

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