Documentation
¶
Overview ¶
Package testing is a generated GoMock package.
Package testing is a generated GoMock package.
Index ¶
- type MockProvider
- func (m *MockProvider) EXPECT() *MockProviderMockRecorder
- func (m *MockProvider) GetCgroupCPUAndMemoryStats(cgroupName string, updateStats bool) (*v1alpha1.ContainerStats, error)
- func (m *MockProvider) GetCgroupStats(cgroupName string, updateStats bool) (*v1alpha1.ContainerStats, *v1alpha1.NetworkStats, error)
- func (m *MockProvider) GetContainerInfo(ctx context.Context, podFullName string, uid types.UID, containerName string, ...) (*v1.ContainerInfo, error)
- func (m *MockProvider) GetNode() (*v10.Node, error)
- func (m *MockProvider) GetNodeConfig() cm.NodeConfig
- func (m *MockProvider) GetPodByCgroupfs(cgroupfs string) (*v10.Pod, bool)
- func (m *MockProvider) GetPodByName(namespace, name string) (*v10.Pod, bool)
- func (m *MockProvider) GetPodCgroupRoot() string
- func (m *MockProvider) GetPods() []*v10.Pod
- func (m *MockProvider) GetRawContainerInfo(containerName string, req *v1.ContainerInfoRequest, subcontainers bool) (map[string]*v1.ContainerInfo, error)
- func (m *MockProvider) GetRequestedContainersInfo(containerName string, options v2.RequestOptions) (map[string]*v1.ContainerInfo, error)
- func (m *MockProvider) ImageFsStats(ctx context.Context) (*v1alpha1.FsStats, error)
- func (m *MockProvider) ListBlockVolumesForPod(podUID types.UID) (map[string]volume.BlockVolume, bool)
- func (m *MockProvider) ListPodCPUAndMemoryStats(ctx context.Context) ([]v1alpha1.PodStats, error)
- func (m *MockProvider) ListPodStats(ctx context.Context) ([]v1alpha1.PodStats, error)
- func (m *MockProvider) ListPodStatsAndUpdateCPUNanoCoreUsage(ctx context.Context) ([]v1alpha1.PodStats, error)
- func (m *MockProvider) ListVolumesForPod(podUID types.UID) (map[string]volume.Volume, bool)
- func (m *MockProvider) RlimitStats() (*v1alpha1.RlimitStats, error)
- func (m *MockProvider) RootFsStats() (*v1alpha1.FsStats, error)
- type MockProviderMockRecorder
- func (mr *MockProviderMockRecorder) GetCgroupCPUAndMemoryStats(cgroupName, updateStats interface{}) *gomock.Call
- func (mr *MockProviderMockRecorder) GetCgroupStats(cgroupName, updateStats interface{}) *gomock.Call
- func (mr *MockProviderMockRecorder) GetContainerInfo(ctx, podFullName, uid, containerName, req interface{}) *gomock.Call
- func (mr *MockProviderMockRecorder) GetNode() *gomock.Call
- func (mr *MockProviderMockRecorder) GetNodeConfig() *gomock.Call
- func (mr *MockProviderMockRecorder) GetPodByCgroupfs(cgroupfs interface{}) *gomock.Call
- func (mr *MockProviderMockRecorder) GetPodByName(namespace, name interface{}) *gomock.Call
- func (mr *MockProviderMockRecorder) GetPodCgroupRoot() *gomock.Call
- func (mr *MockProviderMockRecorder) GetPods() *gomock.Call
- func (mr *MockProviderMockRecorder) GetRawContainerInfo(containerName, req, subcontainers interface{}) *gomock.Call
- func (mr *MockProviderMockRecorder) GetRequestedContainersInfo(containerName, options interface{}) *gomock.Call
- func (mr *MockProviderMockRecorder) ImageFsStats(ctx interface{}) *gomock.Call
- func (mr *MockProviderMockRecorder) ListBlockVolumesForPod(podUID interface{}) *gomock.Call
- func (mr *MockProviderMockRecorder) ListPodCPUAndMemoryStats(ctx interface{}) *gomock.Call
- func (mr *MockProviderMockRecorder) ListPodStats(ctx interface{}) *gomock.Call
- func (mr *MockProviderMockRecorder) ListPodStatsAndUpdateCPUNanoCoreUsage(ctx interface{}) *gomock.Call
- func (mr *MockProviderMockRecorder) ListVolumesForPod(podUID interface{}) *gomock.Call
- func (mr *MockProviderMockRecorder) RlimitStats() *gomock.Call
- func (mr *MockProviderMockRecorder) RootFsStats() *gomock.Call
- type MockSummaryProvider
- type MockSummaryProviderMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockProvider ¶
type MockProvider struct {
// contains filtered or unexported fields
}
MockProvider is a mock of Provider interface.
func NewMockProvider ¶
func NewMockProvider(ctrl *gomock.Controller) *MockProvider
NewMockProvider creates a new mock instance.
func (*MockProvider) EXPECT ¶
func (m *MockProvider) EXPECT() *MockProviderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockProvider) GetCgroupCPUAndMemoryStats ¶
func (m *MockProvider) GetCgroupCPUAndMemoryStats(cgroupName string, updateStats bool) (*v1alpha1.ContainerStats, error)
GetCgroupCPUAndMemoryStats mocks base method.
func (*MockProvider) GetCgroupStats ¶
func (m *MockProvider) GetCgroupStats(cgroupName string, updateStats bool) (*v1alpha1.ContainerStats, *v1alpha1.NetworkStats, error)
GetCgroupStats mocks base method.
func (*MockProvider) GetContainerInfo ¶
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 ¶
func (m *MockProvider) GetNode() (*v10.Node, error)
GetNode mocks base method.
func (*MockProvider) GetNodeConfig ¶
func (m *MockProvider) GetNodeConfig() cm.NodeConfig
GetNodeConfig mocks base method.
func (*MockProvider) GetPodByCgroupfs ¶
func (m *MockProvider) GetPodByCgroupfs(cgroupfs string) (*v10.Pod, bool)
GetPodByCgroupfs mocks base method.
func (*MockProvider) GetPodByName ¶
func (m *MockProvider) GetPodByName(namespace, name string) (*v10.Pod, bool)
GetPodByName mocks base method.
func (*MockProvider) GetPodCgroupRoot ¶
func (m *MockProvider) GetPodCgroupRoot() string
GetPodCgroupRoot mocks base method.
func (*MockProvider) GetPods ¶
func (m *MockProvider) GetPods() []*v10.Pod
GetPods mocks base method.
func (*MockProvider) GetRawContainerInfo ¶
func (m *MockProvider) GetRawContainerInfo(containerName string, req *v1.ContainerInfoRequest, subcontainers bool) (map[string]*v1.ContainerInfo, error)
GetRawContainerInfo mocks base method.
func (*MockProvider) GetRequestedContainersInfo ¶
func (m *MockProvider) GetRequestedContainersInfo(containerName string, options v2.RequestOptions) (map[string]*v1.ContainerInfo, error)
GetRequestedContainersInfo mocks base method.
func (*MockProvider) ImageFsStats ¶
ImageFsStats mocks base method.
func (*MockProvider) ListBlockVolumesForPod ¶
func (m *MockProvider) ListBlockVolumesForPod(podUID types.UID) (map[string]volume.BlockVolume, bool)
ListBlockVolumesForPod mocks base method.
func (*MockProvider) ListPodCPUAndMemoryStats ¶
ListPodCPUAndMemoryStats mocks base method.
func (*MockProvider) ListPodStats ¶
ListPodStats mocks base method.
func (*MockProvider) ListPodStatsAndUpdateCPUNanoCoreUsage ¶
func (m *MockProvider) ListPodStatsAndUpdateCPUNanoCoreUsage(ctx context.Context) ([]v1alpha1.PodStats, error)
ListPodStatsAndUpdateCPUNanoCoreUsage mocks base method.
func (*MockProvider) ListVolumesForPod ¶
ListVolumesForPod mocks base method.
func (*MockProvider) RlimitStats ¶
func (m *MockProvider) RlimitStats() (*v1alpha1.RlimitStats, error)
RlimitStats mocks base method.
func (*MockProvider) RootFsStats ¶
func (m *MockProvider) RootFsStats() (*v1alpha1.FsStats, error)
RootFsStats mocks base method.
type MockProviderMockRecorder ¶
type MockProviderMockRecorder struct {
// contains filtered or unexported fields
}
MockProviderMockRecorder is the mock recorder for MockProvider.
func (*MockProviderMockRecorder) GetCgroupCPUAndMemoryStats ¶
func (mr *MockProviderMockRecorder) GetCgroupCPUAndMemoryStats(cgroupName, updateStats interface{}) *gomock.Call
GetCgroupCPUAndMemoryStats indicates an expected call of GetCgroupCPUAndMemoryStats.
func (*MockProviderMockRecorder) GetCgroupStats ¶
func (mr *MockProviderMockRecorder) GetCgroupStats(cgroupName, updateStats interface{}) *gomock.Call
GetCgroupStats indicates an expected call of GetCgroupStats.
func (*MockProviderMockRecorder) GetContainerInfo ¶
func (mr *MockProviderMockRecorder) GetContainerInfo(ctx, podFullName, uid, containerName, req interface{}) *gomock.Call
GetContainerInfo indicates an expected call of GetContainerInfo.
func (*MockProviderMockRecorder) GetNode ¶
func (mr *MockProviderMockRecorder) GetNode() *gomock.Call
GetNode indicates an expected call of GetNode.
func (*MockProviderMockRecorder) GetNodeConfig ¶
func (mr *MockProviderMockRecorder) GetNodeConfig() *gomock.Call
GetNodeConfig indicates an expected call of GetNodeConfig.
func (*MockProviderMockRecorder) GetPodByCgroupfs ¶
func (mr *MockProviderMockRecorder) GetPodByCgroupfs(cgroupfs interface{}) *gomock.Call
GetPodByCgroupfs indicates an expected call of GetPodByCgroupfs.
func (*MockProviderMockRecorder) GetPodByName ¶
func (mr *MockProviderMockRecorder) GetPodByName(namespace, name interface{}) *gomock.Call
GetPodByName indicates an expected call of GetPodByName.
func (*MockProviderMockRecorder) GetPodCgroupRoot ¶
func (mr *MockProviderMockRecorder) GetPodCgroupRoot() *gomock.Call
GetPodCgroupRoot indicates an expected call of GetPodCgroupRoot.
func (*MockProviderMockRecorder) GetPods ¶
func (mr *MockProviderMockRecorder) GetPods() *gomock.Call
GetPods indicates an expected call of GetPods.
func (*MockProviderMockRecorder) GetRawContainerInfo ¶
func (mr *MockProviderMockRecorder) GetRawContainerInfo(containerName, req, subcontainers interface{}) *gomock.Call
GetRawContainerInfo indicates an expected call of GetRawContainerInfo.
func (*MockProviderMockRecorder) GetRequestedContainersInfo ¶
func (mr *MockProviderMockRecorder) GetRequestedContainersInfo(containerName, options interface{}) *gomock.Call
GetRequestedContainersInfo indicates an expected call of GetRequestedContainersInfo.
func (*MockProviderMockRecorder) ImageFsStats ¶
func (mr *MockProviderMockRecorder) ImageFsStats(ctx interface{}) *gomock.Call
ImageFsStats indicates an expected call of ImageFsStats.
func (*MockProviderMockRecorder) ListBlockVolumesForPod ¶
func (mr *MockProviderMockRecorder) ListBlockVolumesForPod(podUID interface{}) *gomock.Call
ListBlockVolumesForPod indicates an expected call of ListBlockVolumesForPod.
func (*MockProviderMockRecorder) ListPodCPUAndMemoryStats ¶
func (mr *MockProviderMockRecorder) ListPodCPUAndMemoryStats(ctx interface{}) *gomock.Call
ListPodCPUAndMemoryStats indicates an expected call of ListPodCPUAndMemoryStats.
func (*MockProviderMockRecorder) ListPodStats ¶
func (mr *MockProviderMockRecorder) ListPodStats(ctx interface{}) *gomock.Call
ListPodStats indicates an expected call of ListPodStats.
func (*MockProviderMockRecorder) ListPodStatsAndUpdateCPUNanoCoreUsage ¶
func (mr *MockProviderMockRecorder) ListPodStatsAndUpdateCPUNanoCoreUsage(ctx interface{}) *gomock.Call
ListPodStatsAndUpdateCPUNanoCoreUsage indicates an expected call of ListPodStatsAndUpdateCPUNanoCoreUsage.
func (*MockProviderMockRecorder) ListVolumesForPod ¶
func (mr *MockProviderMockRecorder) ListVolumesForPod(podUID interface{}) *gomock.Call
ListVolumesForPod indicates an expected call of ListVolumesForPod.
func (*MockProviderMockRecorder) RlimitStats ¶
func (mr *MockProviderMockRecorder) RlimitStats() *gomock.Call
RlimitStats indicates an expected call of RlimitStats.
func (*MockProviderMockRecorder) RootFsStats ¶
func (mr *MockProviderMockRecorder) RootFsStats() *gomock.Call
RootFsStats indicates an expected call of RootFsStats.
type MockSummaryProvider ¶
type MockSummaryProvider struct {
// contains filtered or unexported fields
}
MockSummaryProvider is a mock of SummaryProvider interface.
func NewMockSummaryProvider ¶
func NewMockSummaryProvider(ctrl *gomock.Controller) *MockSummaryProvider
NewMockSummaryProvider creates a new mock instance.
func (*MockSummaryProvider) EXPECT ¶
func (m *MockSummaryProvider) EXPECT() *MockSummaryProviderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSummaryProvider) GetCPUAndMemoryStats ¶
GetCPUAndMemoryStats mocks base method.
type MockSummaryProviderMockRecorder ¶
type MockSummaryProviderMockRecorder struct {
// contains filtered or unexported fields
}
MockSummaryProviderMockRecorder is the mock recorder for MockSummaryProvider.
func (*MockSummaryProviderMockRecorder) Get ¶
func (mr *MockSummaryProviderMockRecorder) Get(ctx, updateStats interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockSummaryProviderMockRecorder) GetCPUAndMemoryStats ¶
func (mr *MockSummaryProviderMockRecorder) GetCPUAndMemoryStats(ctx interface{}) *gomock.Call
GetCPUAndMemoryStats indicates an expected call of GetCPUAndMemoryStats.