Documentation ¶
Index ¶
- type MockProvider
- func (_m *MockProvider) EXPECT() *MockProvider_Expecter
- 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) GetNode() (*v1.Node, error)
- func (_m *MockProvider) GetNodeConfig() cm.NodeConfig
- func (_m *MockProvider) GetPodByCgroupfs(cgroupfs string) (*v1.Pod, bool)
- func (_m *MockProvider) GetPodByName(namespace string, name string) (*v1.Pod, bool)
- func (_m *MockProvider) GetPodCgroupRoot() string
- func (_m *MockProvider) GetPods() []*v1.Pod
- func (_m *MockProvider) GetRequestedContainersInfo(containerName string, options v2.RequestOptions) (map[string]*infov1.ContainerInfo, error)
- func (_m *MockProvider) ImageFsStats(ctx context.Context) (*v1alpha1.FsStats, *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 MockProvider_Expecter
- func (_e *MockProvider_Expecter) GetCgroupCPUAndMemoryStats(cgroupName interface{}, updateStats interface{}) *MockProvider_GetCgroupCPUAndMemoryStats_Call
- func (_e *MockProvider_Expecter) GetCgroupStats(cgroupName interface{}, updateStats interface{}) *MockProvider_GetCgroupStats_Call
- func (_e *MockProvider_Expecter) GetNode() *MockProvider_GetNode_Call
- func (_e *MockProvider_Expecter) GetNodeConfig() *MockProvider_GetNodeConfig_Call
- func (_e *MockProvider_Expecter) GetPodByCgroupfs(cgroupfs interface{}) *MockProvider_GetPodByCgroupfs_Call
- func (_e *MockProvider_Expecter) GetPodByName(namespace interface{}, name interface{}) *MockProvider_GetPodByName_Call
- func (_e *MockProvider_Expecter) GetPodCgroupRoot() *MockProvider_GetPodCgroupRoot_Call
- func (_e *MockProvider_Expecter) GetPods() *MockProvider_GetPods_Call
- func (_e *MockProvider_Expecter) GetRequestedContainersInfo(containerName interface{}, options interface{}) *MockProvider_GetRequestedContainersInfo_Call
- func (_e *MockProvider_Expecter) ImageFsStats(ctx interface{}) *MockProvider_ImageFsStats_Call
- func (_e *MockProvider_Expecter) ListBlockVolumesForPod(podUID interface{}) *MockProvider_ListBlockVolumesForPod_Call
- func (_e *MockProvider_Expecter) ListPodCPUAndMemoryStats(ctx interface{}) *MockProvider_ListPodCPUAndMemoryStats_Call
- func (_e *MockProvider_Expecter) ListPodStats(ctx interface{}) *MockProvider_ListPodStats_Call
- func (_e *MockProvider_Expecter) ListPodStatsAndUpdateCPUNanoCoreUsage(ctx interface{}) *MockProvider_ListPodStatsAndUpdateCPUNanoCoreUsage_Call
- func (_e *MockProvider_Expecter) ListVolumesForPod(podUID interface{}) *MockProvider_ListVolumesForPod_Call
- func (_e *MockProvider_Expecter) RlimitStats() *MockProvider_RlimitStats_Call
- func (_e *MockProvider_Expecter) RootFsStats() *MockProvider_RootFsStats_Call
- type MockProvider_GetCgroupCPUAndMemoryStats_Call
- func (_c *MockProvider_GetCgroupCPUAndMemoryStats_Call) Return(_a0 *v1alpha1.ContainerStats, _a1 error) *MockProvider_GetCgroupCPUAndMemoryStats_Call
- func (_c *MockProvider_GetCgroupCPUAndMemoryStats_Call) Run(run func(cgroupName string, updateStats bool)) *MockProvider_GetCgroupCPUAndMemoryStats_Call
- func (_c *MockProvider_GetCgroupCPUAndMemoryStats_Call) RunAndReturn(run func(string, bool) (*v1alpha1.ContainerStats, error)) *MockProvider_GetCgroupCPUAndMemoryStats_Call
- type MockProvider_GetCgroupStats_Call
- func (_c *MockProvider_GetCgroupStats_Call) Return(_a0 *v1alpha1.ContainerStats, _a1 *v1alpha1.NetworkStats, _a2 error) *MockProvider_GetCgroupStats_Call
- func (_c *MockProvider_GetCgroupStats_Call) Run(run func(cgroupName string, updateStats bool)) *MockProvider_GetCgroupStats_Call
- func (_c *MockProvider_GetCgroupStats_Call) RunAndReturn(...) *MockProvider_GetCgroupStats_Call
- type MockProvider_GetNodeConfig_Call
- func (_c *MockProvider_GetNodeConfig_Call) Return(_a0 cm.NodeConfig) *MockProvider_GetNodeConfig_Call
- func (_c *MockProvider_GetNodeConfig_Call) Run(run func()) *MockProvider_GetNodeConfig_Call
- func (_c *MockProvider_GetNodeConfig_Call) RunAndReturn(run func() cm.NodeConfig) *MockProvider_GetNodeConfig_Call
- type MockProvider_GetNode_Call
- type MockProvider_GetPodByCgroupfs_Call
- func (_c *MockProvider_GetPodByCgroupfs_Call) Return(_a0 *v1.Pod, _a1 bool) *MockProvider_GetPodByCgroupfs_Call
- func (_c *MockProvider_GetPodByCgroupfs_Call) Run(run func(cgroupfs string)) *MockProvider_GetPodByCgroupfs_Call
- func (_c *MockProvider_GetPodByCgroupfs_Call) RunAndReturn(run func(string) (*v1.Pod, bool)) *MockProvider_GetPodByCgroupfs_Call
- type MockProvider_GetPodByName_Call
- func (_c *MockProvider_GetPodByName_Call) Return(_a0 *v1.Pod, _a1 bool) *MockProvider_GetPodByName_Call
- func (_c *MockProvider_GetPodByName_Call) Run(run func(namespace string, name string)) *MockProvider_GetPodByName_Call
- func (_c *MockProvider_GetPodByName_Call) RunAndReturn(run func(string, string) (*v1.Pod, bool)) *MockProvider_GetPodByName_Call
- type MockProvider_GetPodCgroupRoot_Call
- func (_c *MockProvider_GetPodCgroupRoot_Call) Return(_a0 string) *MockProvider_GetPodCgroupRoot_Call
- func (_c *MockProvider_GetPodCgroupRoot_Call) Run(run func()) *MockProvider_GetPodCgroupRoot_Call
- func (_c *MockProvider_GetPodCgroupRoot_Call) RunAndReturn(run func() string) *MockProvider_GetPodCgroupRoot_Call
- type MockProvider_GetPods_Call
- type MockProvider_GetRequestedContainersInfo_Call
- func (_c *MockProvider_GetRequestedContainersInfo_Call) Return(_a0 map[string]*infov1.ContainerInfo, _a1 error) *MockProvider_GetRequestedContainersInfo_Call
- func (_c *MockProvider_GetRequestedContainersInfo_Call) Run(run func(containerName string, options v2.RequestOptions)) *MockProvider_GetRequestedContainersInfo_Call
- func (_c *MockProvider_GetRequestedContainersInfo_Call) RunAndReturn(run func(string, v2.RequestOptions) (map[string]*infov1.ContainerInfo, error)) *MockProvider_GetRequestedContainersInfo_Call
- type MockProvider_ImageFsStats_Call
- func (_c *MockProvider_ImageFsStats_Call) Return(imageFs *v1alpha1.FsStats, containerFs *v1alpha1.FsStats, callErr error) *MockProvider_ImageFsStats_Call
- func (_c *MockProvider_ImageFsStats_Call) Run(run func(ctx context.Context)) *MockProvider_ImageFsStats_Call
- func (_c *MockProvider_ImageFsStats_Call) RunAndReturn(run func(context.Context) (*v1alpha1.FsStats, *v1alpha1.FsStats, error)) *MockProvider_ImageFsStats_Call
- type MockProvider_ListBlockVolumesForPod_Call
- func (_c *MockProvider_ListBlockVolumesForPod_Call) Return(_a0 map[string]volume.BlockVolume, _a1 bool) *MockProvider_ListBlockVolumesForPod_Call
- func (_c *MockProvider_ListBlockVolumesForPod_Call) Run(run func(podUID types.UID)) *MockProvider_ListBlockVolumesForPod_Call
- func (_c *MockProvider_ListBlockVolumesForPod_Call) RunAndReturn(run func(types.UID) (map[string]volume.BlockVolume, bool)) *MockProvider_ListBlockVolumesForPod_Call
- type MockProvider_ListPodCPUAndMemoryStats_Call
- func (_c *MockProvider_ListPodCPUAndMemoryStats_Call) Return(_a0 []v1alpha1.PodStats, _a1 error) *MockProvider_ListPodCPUAndMemoryStats_Call
- func (_c *MockProvider_ListPodCPUAndMemoryStats_Call) Run(run func(ctx context.Context)) *MockProvider_ListPodCPUAndMemoryStats_Call
- func (_c *MockProvider_ListPodCPUAndMemoryStats_Call) RunAndReturn(run func(context.Context) ([]v1alpha1.PodStats, error)) *MockProvider_ListPodCPUAndMemoryStats_Call
- type MockProvider_ListPodStatsAndUpdateCPUNanoCoreUsage_Call
- func (_c *MockProvider_ListPodStatsAndUpdateCPUNanoCoreUsage_Call) Return(_a0 []v1alpha1.PodStats, _a1 error) *MockProvider_ListPodStatsAndUpdateCPUNanoCoreUsage_Call
- func (_c *MockProvider_ListPodStatsAndUpdateCPUNanoCoreUsage_Call) Run(run func(ctx context.Context)) *MockProvider_ListPodStatsAndUpdateCPUNanoCoreUsage_Call
- func (_c *MockProvider_ListPodStatsAndUpdateCPUNanoCoreUsage_Call) RunAndReturn(run func(context.Context) ([]v1alpha1.PodStats, error)) *MockProvider_ListPodStatsAndUpdateCPUNanoCoreUsage_Call
- type MockProvider_ListPodStats_Call
- func (_c *MockProvider_ListPodStats_Call) Return(_a0 []v1alpha1.PodStats, _a1 error) *MockProvider_ListPodStats_Call
- func (_c *MockProvider_ListPodStats_Call) Run(run func(ctx context.Context)) *MockProvider_ListPodStats_Call
- func (_c *MockProvider_ListPodStats_Call) RunAndReturn(run func(context.Context) ([]v1alpha1.PodStats, error)) *MockProvider_ListPodStats_Call
- type MockProvider_ListVolumesForPod_Call
- func (_c *MockProvider_ListVolumesForPod_Call) Return(_a0 map[string]volume.Volume, _a1 bool) *MockProvider_ListVolumesForPod_Call
- func (_c *MockProvider_ListVolumesForPod_Call) Run(run func(podUID types.UID)) *MockProvider_ListVolumesForPod_Call
- func (_c *MockProvider_ListVolumesForPod_Call) RunAndReturn(run func(types.UID) (map[string]volume.Volume, bool)) *MockProvider_ListVolumesForPod_Call
- type MockProvider_RlimitStats_Call
- func (_c *MockProvider_RlimitStats_Call) Return(_a0 *v1alpha1.RlimitStats, _a1 error) *MockProvider_RlimitStats_Call
- func (_c *MockProvider_RlimitStats_Call) Run(run func()) *MockProvider_RlimitStats_Call
- func (_c *MockProvider_RlimitStats_Call) RunAndReturn(run func() (*v1alpha1.RlimitStats, error)) *MockProvider_RlimitStats_Call
- type MockProvider_RootFsStats_Call
- func (_c *MockProvider_RootFsStats_Call) Return(_a0 *v1alpha1.FsStats, _a1 error) *MockProvider_RootFsStats_Call
- func (_c *MockProvider_RootFsStats_Call) Run(run func()) *MockProvider_RootFsStats_Call
- func (_c *MockProvider_RootFsStats_Call) RunAndReturn(run func() (*v1alpha1.FsStats, error)) *MockProvider_RootFsStats_Call
- type MockSummaryProvider
- type MockSummaryProvider_Expecter
- type MockSummaryProvider_GetCPUAndMemoryStats_Call
- func (_c *MockSummaryProvider_GetCPUAndMemoryStats_Call) Return(_a0 *v1alpha1.Summary, _a1 error) *MockSummaryProvider_GetCPUAndMemoryStats_Call
- func (_c *MockSummaryProvider_GetCPUAndMemoryStats_Call) Run(run func(ctx context.Context)) *MockSummaryProvider_GetCPUAndMemoryStats_Call
- func (_c *MockSummaryProvider_GetCPUAndMemoryStats_Call) RunAndReturn(run func(context.Context) (*v1alpha1.Summary, error)) *MockSummaryProvider_GetCPUAndMemoryStats_Call
- type MockSummaryProvider_Get_Call
- func (_c *MockSummaryProvider_Get_Call) Return(_a0 *v1alpha1.Summary, _a1 error) *MockSummaryProvider_Get_Call
- func (_c *MockSummaryProvider_Get_Call) Run(run func(ctx context.Context, updateStats bool)) *MockSummaryProvider_Get_Call
- func (_c *MockSummaryProvider_Get_Call) RunAndReturn(run func(context.Context, bool) (*v1alpha1.Summary, error)) *MockSummaryProvider_Get_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockProvider ¶ added in v1.23.0
MockProvider is an autogenerated mock type for the Provider type
func NewMockProvider ¶ added in v1.23.0
func NewMockProvider(t interface { mock.TestingT Cleanup(func()) }) *MockProvider
NewMockProvider creates a new instance of MockProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockProvider) EXPECT ¶ added in v1.23.0
func (_m *MockProvider) EXPECT() *MockProvider_Expecter
func (*MockProvider) GetCgroupCPUAndMemoryStats ¶ added in v1.23.0
func (_m *MockProvider) GetCgroupCPUAndMemoryStats(cgroupName string, updateStats bool) (*v1alpha1.ContainerStats, error)
GetCgroupCPUAndMemoryStats provides a mock function with given fields: cgroupName, updateStats
func (*MockProvider) GetCgroupStats ¶ added in v1.23.0
func (_m *MockProvider) GetCgroupStats(cgroupName string, updateStats bool) (*v1alpha1.ContainerStats, *v1alpha1.NetworkStats, error)
GetCgroupStats provides a mock function with given fields: cgroupName, updateStats
func (*MockProvider) GetNode ¶ added in v1.23.0
func (_m *MockProvider) GetNode() (*v1.Node, error)
GetNode provides a mock function with given fields:
func (*MockProvider) GetNodeConfig ¶ added in v1.23.0
func (_m *MockProvider) GetNodeConfig() cm.NodeConfig
GetNodeConfig provides a mock function with given fields:
func (*MockProvider) GetPodByCgroupfs ¶ added in v1.23.0
func (_m *MockProvider) GetPodByCgroupfs(cgroupfs string) (*v1.Pod, bool)
GetPodByCgroupfs provides a mock function with given fields: cgroupfs
func (*MockProvider) GetPodByName ¶ added in v1.23.0
GetPodByName provides a mock function with given fields: namespace, name
func (*MockProvider) GetPodCgroupRoot ¶ added in v1.23.0
func (_m *MockProvider) GetPodCgroupRoot() string
GetPodCgroupRoot provides a mock function with given fields:
func (*MockProvider) GetPods ¶ added in v1.23.0
func (_m *MockProvider) GetPods() []*v1.Pod
GetPods provides a mock function with given fields:
func (*MockProvider) GetRequestedContainersInfo ¶ added in v1.23.0
func (_m *MockProvider) GetRequestedContainersInfo(containerName string, options v2.RequestOptions) (map[string]*infov1.ContainerInfo, error)
GetRequestedContainersInfo provides a mock function with given fields: containerName, options
func (*MockProvider) ImageFsStats ¶ added in v1.23.0
func (_m *MockProvider) ImageFsStats(ctx context.Context) (*v1alpha1.FsStats, *v1alpha1.FsStats, error)
ImageFsStats provides a mock function with given fields: ctx
func (*MockProvider) ListBlockVolumesForPod ¶ added in v1.23.0
func (_m *MockProvider) ListBlockVolumesForPod(podUID types.UID) (map[string]volume.BlockVolume, bool)
ListBlockVolumesForPod provides a mock function with given fields: podUID
func (*MockProvider) ListPodCPUAndMemoryStats ¶ added in v1.23.0
ListPodCPUAndMemoryStats provides a mock function with given fields: ctx
func (*MockProvider) ListPodStats ¶ added in v1.23.0
ListPodStats provides a mock function with given fields: ctx
func (*MockProvider) ListPodStatsAndUpdateCPUNanoCoreUsage ¶ added in v1.23.0
func (_m *MockProvider) ListPodStatsAndUpdateCPUNanoCoreUsage(ctx context.Context) ([]v1alpha1.PodStats, error)
ListPodStatsAndUpdateCPUNanoCoreUsage provides a mock function with given fields: ctx
func (*MockProvider) ListVolumesForPod ¶ added in v1.23.0
ListVolumesForPod provides a mock function with given fields: podUID
func (*MockProvider) RlimitStats ¶ added in v1.23.0
func (_m *MockProvider) RlimitStats() (*v1alpha1.RlimitStats, error)
RlimitStats provides a mock function with given fields:
func (*MockProvider) RootFsStats ¶ added in v1.23.0
func (_m *MockProvider) RootFsStats() (*v1alpha1.FsStats, error)
RootFsStats provides a mock function with given fields:
type MockProvider_Expecter ¶ added in v1.31.0
type MockProvider_Expecter struct {
// contains filtered or unexported fields
}
func (*MockProvider_Expecter) GetCgroupCPUAndMemoryStats ¶ added in v1.31.0
func (_e *MockProvider_Expecter) GetCgroupCPUAndMemoryStats(cgroupName interface{}, updateStats interface{}) *MockProvider_GetCgroupCPUAndMemoryStats_Call
GetCgroupCPUAndMemoryStats is a helper method to define mock.On call
- cgroupName string
- updateStats bool
func (*MockProvider_Expecter) GetCgroupStats ¶ added in v1.31.0
func (_e *MockProvider_Expecter) GetCgroupStats(cgroupName interface{}, updateStats interface{}) *MockProvider_GetCgroupStats_Call
GetCgroupStats is a helper method to define mock.On call
- cgroupName string
- updateStats bool
func (*MockProvider_Expecter) GetNode ¶ added in v1.31.0
func (_e *MockProvider_Expecter) GetNode() *MockProvider_GetNode_Call
GetNode is a helper method to define mock.On call
func (*MockProvider_Expecter) GetNodeConfig ¶ added in v1.31.0
func (_e *MockProvider_Expecter) GetNodeConfig() *MockProvider_GetNodeConfig_Call
GetNodeConfig is a helper method to define mock.On call
func (*MockProvider_Expecter) GetPodByCgroupfs ¶ added in v1.31.0
func (_e *MockProvider_Expecter) GetPodByCgroupfs(cgroupfs interface{}) *MockProvider_GetPodByCgroupfs_Call
GetPodByCgroupfs is a helper method to define mock.On call
- cgroupfs string
func (*MockProvider_Expecter) GetPodByName ¶ added in v1.31.0
func (_e *MockProvider_Expecter) GetPodByName(namespace interface{}, name interface{}) *MockProvider_GetPodByName_Call
GetPodByName is a helper method to define mock.On call
- namespace string
- name string
func (*MockProvider_Expecter) GetPodCgroupRoot ¶ added in v1.31.0
func (_e *MockProvider_Expecter) GetPodCgroupRoot() *MockProvider_GetPodCgroupRoot_Call
GetPodCgroupRoot is a helper method to define mock.On call
func (*MockProvider_Expecter) GetPods ¶ added in v1.31.0
func (_e *MockProvider_Expecter) GetPods() *MockProvider_GetPods_Call
GetPods is a helper method to define mock.On call
func (*MockProvider_Expecter) GetRequestedContainersInfo ¶ added in v1.31.0
func (_e *MockProvider_Expecter) GetRequestedContainersInfo(containerName interface{}, options interface{}) *MockProvider_GetRequestedContainersInfo_Call
GetRequestedContainersInfo is a helper method to define mock.On call
- containerName string
- options v2.RequestOptions
func (*MockProvider_Expecter) ImageFsStats ¶ added in v1.31.0
func (_e *MockProvider_Expecter) ImageFsStats(ctx interface{}) *MockProvider_ImageFsStats_Call
ImageFsStats is a helper method to define mock.On call
- ctx context.Context
func (*MockProvider_Expecter) ListBlockVolumesForPod ¶ added in v1.31.0
func (_e *MockProvider_Expecter) ListBlockVolumesForPod(podUID interface{}) *MockProvider_ListBlockVolumesForPod_Call
ListBlockVolumesForPod is a helper method to define mock.On call
- podUID types.UID
func (*MockProvider_Expecter) ListPodCPUAndMemoryStats ¶ added in v1.31.0
func (_e *MockProvider_Expecter) ListPodCPUAndMemoryStats(ctx interface{}) *MockProvider_ListPodCPUAndMemoryStats_Call
ListPodCPUAndMemoryStats is a helper method to define mock.On call
- ctx context.Context
func (*MockProvider_Expecter) ListPodStats ¶ added in v1.31.0
func (_e *MockProvider_Expecter) ListPodStats(ctx interface{}) *MockProvider_ListPodStats_Call
ListPodStats is a helper method to define mock.On call
- ctx context.Context
func (*MockProvider_Expecter) ListPodStatsAndUpdateCPUNanoCoreUsage ¶ added in v1.31.0
func (_e *MockProvider_Expecter) ListPodStatsAndUpdateCPUNanoCoreUsage(ctx interface{}) *MockProvider_ListPodStatsAndUpdateCPUNanoCoreUsage_Call
ListPodStatsAndUpdateCPUNanoCoreUsage is a helper method to define mock.On call
- ctx context.Context
func (*MockProvider_Expecter) ListVolumesForPod ¶ added in v1.31.0
func (_e *MockProvider_Expecter) ListVolumesForPod(podUID interface{}) *MockProvider_ListVolumesForPod_Call
ListVolumesForPod is a helper method to define mock.On call
- podUID types.UID
func (*MockProvider_Expecter) RlimitStats ¶ added in v1.31.0
func (_e *MockProvider_Expecter) RlimitStats() *MockProvider_RlimitStats_Call
RlimitStats is a helper method to define mock.On call
func (*MockProvider_Expecter) RootFsStats ¶ added in v1.31.0
func (_e *MockProvider_Expecter) RootFsStats() *MockProvider_RootFsStats_Call
RootFsStats is a helper method to define mock.On call
type MockProvider_GetCgroupCPUAndMemoryStats_Call ¶ added in v1.31.0
MockProvider_GetCgroupCPUAndMemoryStats_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCgroupCPUAndMemoryStats'
func (*MockProvider_GetCgroupCPUAndMemoryStats_Call) Return ¶ added in v1.31.0
func (_c *MockProvider_GetCgroupCPUAndMemoryStats_Call) Return(_a0 *v1alpha1.ContainerStats, _a1 error) *MockProvider_GetCgroupCPUAndMemoryStats_Call
func (*MockProvider_GetCgroupCPUAndMemoryStats_Call) Run ¶ added in v1.31.0
func (_c *MockProvider_GetCgroupCPUAndMemoryStats_Call) Run(run func(cgroupName string, updateStats bool)) *MockProvider_GetCgroupCPUAndMemoryStats_Call
func (*MockProvider_GetCgroupCPUAndMemoryStats_Call) RunAndReturn ¶ added in v1.31.0
func (_c *MockProvider_GetCgroupCPUAndMemoryStats_Call) RunAndReturn(run func(string, bool) (*v1alpha1.ContainerStats, error)) *MockProvider_GetCgroupCPUAndMemoryStats_Call
type MockProvider_GetCgroupStats_Call ¶ added in v1.31.0
MockProvider_GetCgroupStats_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCgroupStats'
func (*MockProvider_GetCgroupStats_Call) Return ¶ added in v1.31.0
func (_c *MockProvider_GetCgroupStats_Call) Return(_a0 *v1alpha1.ContainerStats, _a1 *v1alpha1.NetworkStats, _a2 error) *MockProvider_GetCgroupStats_Call
func (*MockProvider_GetCgroupStats_Call) Run ¶ added in v1.31.0
func (_c *MockProvider_GetCgroupStats_Call) Run(run func(cgroupName string, updateStats bool)) *MockProvider_GetCgroupStats_Call
func (*MockProvider_GetCgroupStats_Call) RunAndReturn ¶ added in v1.31.0
func (_c *MockProvider_GetCgroupStats_Call) RunAndReturn(run func(string, bool) (*v1alpha1.ContainerStats, *v1alpha1.NetworkStats, error)) *MockProvider_GetCgroupStats_Call
type MockProvider_GetNodeConfig_Call ¶ added in v1.31.0
MockProvider_GetNodeConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetNodeConfig'
func (*MockProvider_GetNodeConfig_Call) Return ¶ added in v1.31.0
func (_c *MockProvider_GetNodeConfig_Call) Return(_a0 cm.NodeConfig) *MockProvider_GetNodeConfig_Call
func (*MockProvider_GetNodeConfig_Call) Run ¶ added in v1.31.0
func (_c *MockProvider_GetNodeConfig_Call) Run(run func()) *MockProvider_GetNodeConfig_Call
func (*MockProvider_GetNodeConfig_Call) RunAndReturn ¶ added in v1.31.0
func (_c *MockProvider_GetNodeConfig_Call) RunAndReturn(run func() cm.NodeConfig) *MockProvider_GetNodeConfig_Call
type MockProvider_GetNode_Call ¶ added in v1.31.0
MockProvider_GetNode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetNode'
func (*MockProvider_GetNode_Call) Return ¶ added in v1.31.0
func (_c *MockProvider_GetNode_Call) Return(_a0 *v1.Node, _a1 error) *MockProvider_GetNode_Call
func (*MockProvider_GetNode_Call) Run ¶ added in v1.31.0
func (_c *MockProvider_GetNode_Call) Run(run func()) *MockProvider_GetNode_Call
func (*MockProvider_GetNode_Call) RunAndReturn ¶ added in v1.31.0
func (_c *MockProvider_GetNode_Call) RunAndReturn(run func() (*v1.Node, error)) *MockProvider_GetNode_Call
type MockProvider_GetPodByCgroupfs_Call ¶ added in v1.31.0
MockProvider_GetPodByCgroupfs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPodByCgroupfs'
func (*MockProvider_GetPodByCgroupfs_Call) Return ¶ added in v1.31.0
func (_c *MockProvider_GetPodByCgroupfs_Call) Return(_a0 *v1.Pod, _a1 bool) *MockProvider_GetPodByCgroupfs_Call
func (*MockProvider_GetPodByCgroupfs_Call) Run ¶ added in v1.31.0
func (_c *MockProvider_GetPodByCgroupfs_Call) Run(run func(cgroupfs string)) *MockProvider_GetPodByCgroupfs_Call
func (*MockProvider_GetPodByCgroupfs_Call) RunAndReturn ¶ added in v1.31.0
func (_c *MockProvider_GetPodByCgroupfs_Call) RunAndReturn(run func(string) (*v1.Pod, bool)) *MockProvider_GetPodByCgroupfs_Call
type MockProvider_GetPodByName_Call ¶ added in v1.31.0
MockProvider_GetPodByName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPodByName'
func (*MockProvider_GetPodByName_Call) Return ¶ added in v1.31.0
func (_c *MockProvider_GetPodByName_Call) Return(_a0 *v1.Pod, _a1 bool) *MockProvider_GetPodByName_Call
func (*MockProvider_GetPodByName_Call) Run ¶ added in v1.31.0
func (_c *MockProvider_GetPodByName_Call) Run(run func(namespace string, name string)) *MockProvider_GetPodByName_Call
func (*MockProvider_GetPodByName_Call) RunAndReturn ¶ added in v1.31.0
func (_c *MockProvider_GetPodByName_Call) RunAndReturn(run func(string, string) (*v1.Pod, bool)) *MockProvider_GetPodByName_Call
type MockProvider_GetPodCgroupRoot_Call ¶ added in v1.31.0
MockProvider_GetPodCgroupRoot_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPodCgroupRoot'
func (*MockProvider_GetPodCgroupRoot_Call) Return ¶ added in v1.31.0
func (_c *MockProvider_GetPodCgroupRoot_Call) Return(_a0 string) *MockProvider_GetPodCgroupRoot_Call
func (*MockProvider_GetPodCgroupRoot_Call) Run ¶ added in v1.31.0
func (_c *MockProvider_GetPodCgroupRoot_Call) Run(run func()) *MockProvider_GetPodCgroupRoot_Call
func (*MockProvider_GetPodCgroupRoot_Call) RunAndReturn ¶ added in v1.31.0
func (_c *MockProvider_GetPodCgroupRoot_Call) RunAndReturn(run func() string) *MockProvider_GetPodCgroupRoot_Call
type MockProvider_GetPods_Call ¶ added in v1.31.0
MockProvider_GetPods_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPods'
func (*MockProvider_GetPods_Call) Return ¶ added in v1.31.0
func (_c *MockProvider_GetPods_Call) Return(_a0 []*v1.Pod) *MockProvider_GetPods_Call
func (*MockProvider_GetPods_Call) Run ¶ added in v1.31.0
func (_c *MockProvider_GetPods_Call) Run(run func()) *MockProvider_GetPods_Call
func (*MockProvider_GetPods_Call) RunAndReturn ¶ added in v1.31.0
func (_c *MockProvider_GetPods_Call) RunAndReturn(run func() []*v1.Pod) *MockProvider_GetPods_Call
type MockProvider_GetRequestedContainersInfo_Call ¶ added in v1.31.0
MockProvider_GetRequestedContainersInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRequestedContainersInfo'
func (*MockProvider_GetRequestedContainersInfo_Call) Return ¶ added in v1.31.0
func (_c *MockProvider_GetRequestedContainersInfo_Call) Return(_a0 map[string]*infov1.ContainerInfo, _a1 error) *MockProvider_GetRequestedContainersInfo_Call
func (*MockProvider_GetRequestedContainersInfo_Call) Run ¶ added in v1.31.0
func (_c *MockProvider_GetRequestedContainersInfo_Call) Run(run func(containerName string, options v2.RequestOptions)) *MockProvider_GetRequestedContainersInfo_Call
func (*MockProvider_GetRequestedContainersInfo_Call) RunAndReturn ¶ added in v1.31.0
func (_c *MockProvider_GetRequestedContainersInfo_Call) RunAndReturn(run func(string, v2.RequestOptions) (map[string]*infov1.ContainerInfo, error)) *MockProvider_GetRequestedContainersInfo_Call
type MockProvider_ImageFsStats_Call ¶ added in v1.31.0
MockProvider_ImageFsStats_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ImageFsStats'
func (*MockProvider_ImageFsStats_Call) Return ¶ added in v1.31.0
func (_c *MockProvider_ImageFsStats_Call) Return(imageFs *v1alpha1.FsStats, containerFs *v1alpha1.FsStats, callErr error) *MockProvider_ImageFsStats_Call
func (*MockProvider_ImageFsStats_Call) Run ¶ added in v1.31.0
func (_c *MockProvider_ImageFsStats_Call) Run(run func(ctx context.Context)) *MockProvider_ImageFsStats_Call
func (*MockProvider_ImageFsStats_Call) RunAndReturn ¶ added in v1.31.0
func (_c *MockProvider_ImageFsStats_Call) RunAndReturn(run func(context.Context) (*v1alpha1.FsStats, *v1alpha1.FsStats, error)) *MockProvider_ImageFsStats_Call
type MockProvider_ListBlockVolumesForPod_Call ¶ added in v1.31.0
MockProvider_ListBlockVolumesForPod_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListBlockVolumesForPod'
func (*MockProvider_ListBlockVolumesForPod_Call) Return ¶ added in v1.31.0
func (_c *MockProvider_ListBlockVolumesForPod_Call) Return(_a0 map[string]volume.BlockVolume, _a1 bool) *MockProvider_ListBlockVolumesForPod_Call
func (*MockProvider_ListBlockVolumesForPod_Call) Run ¶ added in v1.31.0
func (_c *MockProvider_ListBlockVolumesForPod_Call) Run(run func(podUID types.UID)) *MockProvider_ListBlockVolumesForPod_Call
func (*MockProvider_ListBlockVolumesForPod_Call) RunAndReturn ¶ added in v1.31.0
func (_c *MockProvider_ListBlockVolumesForPod_Call) RunAndReturn(run func(types.UID) (map[string]volume.BlockVolume, bool)) *MockProvider_ListBlockVolumesForPod_Call
type MockProvider_ListPodCPUAndMemoryStats_Call ¶ added in v1.31.0
MockProvider_ListPodCPUAndMemoryStats_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListPodCPUAndMemoryStats'
func (*MockProvider_ListPodCPUAndMemoryStats_Call) Return ¶ added in v1.31.0
func (_c *MockProvider_ListPodCPUAndMemoryStats_Call) Return(_a0 []v1alpha1.PodStats, _a1 error) *MockProvider_ListPodCPUAndMemoryStats_Call
func (*MockProvider_ListPodCPUAndMemoryStats_Call) Run ¶ added in v1.31.0
func (_c *MockProvider_ListPodCPUAndMemoryStats_Call) Run(run func(ctx context.Context)) *MockProvider_ListPodCPUAndMemoryStats_Call
func (*MockProvider_ListPodCPUAndMemoryStats_Call) RunAndReturn ¶ added in v1.31.0
func (_c *MockProvider_ListPodCPUAndMemoryStats_Call) RunAndReturn(run func(context.Context) ([]v1alpha1.PodStats, error)) *MockProvider_ListPodCPUAndMemoryStats_Call
type MockProvider_ListPodStatsAndUpdateCPUNanoCoreUsage_Call ¶ added in v1.31.0
MockProvider_ListPodStatsAndUpdateCPUNanoCoreUsage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListPodStatsAndUpdateCPUNanoCoreUsage'
func (*MockProvider_ListPodStatsAndUpdateCPUNanoCoreUsage_Call) Return ¶ added in v1.31.0
func (_c *MockProvider_ListPodStatsAndUpdateCPUNanoCoreUsage_Call) Return(_a0 []v1alpha1.PodStats, _a1 error) *MockProvider_ListPodStatsAndUpdateCPUNanoCoreUsage_Call
func (*MockProvider_ListPodStatsAndUpdateCPUNanoCoreUsage_Call) Run ¶ added in v1.31.0
func (_c *MockProvider_ListPodStatsAndUpdateCPUNanoCoreUsage_Call) Run(run func(ctx context.Context)) *MockProvider_ListPodStatsAndUpdateCPUNanoCoreUsage_Call
func (*MockProvider_ListPodStatsAndUpdateCPUNanoCoreUsage_Call) RunAndReturn ¶ added in v1.31.0
func (_c *MockProvider_ListPodStatsAndUpdateCPUNanoCoreUsage_Call) RunAndReturn(run func(context.Context) ([]v1alpha1.PodStats, error)) *MockProvider_ListPodStatsAndUpdateCPUNanoCoreUsage_Call
type MockProvider_ListPodStats_Call ¶ added in v1.31.0
MockProvider_ListPodStats_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListPodStats'
func (*MockProvider_ListPodStats_Call) Return ¶ added in v1.31.0
func (_c *MockProvider_ListPodStats_Call) Return(_a0 []v1alpha1.PodStats, _a1 error) *MockProvider_ListPodStats_Call
func (*MockProvider_ListPodStats_Call) Run ¶ added in v1.31.0
func (_c *MockProvider_ListPodStats_Call) Run(run func(ctx context.Context)) *MockProvider_ListPodStats_Call
func (*MockProvider_ListPodStats_Call) RunAndReturn ¶ added in v1.31.0
func (_c *MockProvider_ListPodStats_Call) RunAndReturn(run func(context.Context) ([]v1alpha1.PodStats, error)) *MockProvider_ListPodStats_Call
type MockProvider_ListVolumesForPod_Call ¶ added in v1.31.0
MockProvider_ListVolumesForPod_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListVolumesForPod'
func (*MockProvider_ListVolumesForPod_Call) Return ¶ added in v1.31.0
func (_c *MockProvider_ListVolumesForPod_Call) Return(_a0 map[string]volume.Volume, _a1 bool) *MockProvider_ListVolumesForPod_Call
func (*MockProvider_ListVolumesForPod_Call) Run ¶ added in v1.31.0
func (_c *MockProvider_ListVolumesForPod_Call) Run(run func(podUID types.UID)) *MockProvider_ListVolumesForPod_Call
func (*MockProvider_ListVolumesForPod_Call) RunAndReturn ¶ added in v1.31.0
func (_c *MockProvider_ListVolumesForPod_Call) RunAndReturn(run func(types.UID) (map[string]volume.Volume, bool)) *MockProvider_ListVolumesForPod_Call
type MockProvider_RlimitStats_Call ¶ added in v1.31.0
MockProvider_RlimitStats_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RlimitStats'
func (*MockProvider_RlimitStats_Call) Return ¶ added in v1.31.0
func (_c *MockProvider_RlimitStats_Call) Return(_a0 *v1alpha1.RlimitStats, _a1 error) *MockProvider_RlimitStats_Call
func (*MockProvider_RlimitStats_Call) Run ¶ added in v1.31.0
func (_c *MockProvider_RlimitStats_Call) Run(run func()) *MockProvider_RlimitStats_Call
func (*MockProvider_RlimitStats_Call) RunAndReturn ¶ added in v1.31.0
func (_c *MockProvider_RlimitStats_Call) RunAndReturn(run func() (*v1alpha1.RlimitStats, error)) *MockProvider_RlimitStats_Call
type MockProvider_RootFsStats_Call ¶ added in v1.31.0
MockProvider_RootFsStats_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RootFsStats'
func (*MockProvider_RootFsStats_Call) Return ¶ added in v1.31.0
func (_c *MockProvider_RootFsStats_Call) Return(_a0 *v1alpha1.FsStats, _a1 error) *MockProvider_RootFsStats_Call
func (*MockProvider_RootFsStats_Call) Run ¶ added in v1.31.0
func (_c *MockProvider_RootFsStats_Call) Run(run func()) *MockProvider_RootFsStats_Call
func (*MockProvider_RootFsStats_Call) RunAndReturn ¶ added in v1.31.0
func (_c *MockProvider_RootFsStats_Call) RunAndReturn(run func() (*v1alpha1.FsStats, error)) *MockProvider_RootFsStats_Call
type MockSummaryProvider ¶ added in v1.23.0
MockSummaryProvider is an autogenerated mock type for the SummaryProvider type
func NewMockSummaryProvider ¶ added in v1.23.0
func NewMockSummaryProvider(t interface { mock.TestingT Cleanup(func()) }) *MockSummaryProvider
NewMockSummaryProvider creates a new instance of MockSummaryProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockSummaryProvider) EXPECT ¶ added in v1.23.0
func (_m *MockSummaryProvider) EXPECT() *MockSummaryProvider_Expecter
func (*MockSummaryProvider) Get ¶ added in v1.23.0
func (_m *MockSummaryProvider) Get(ctx context.Context, updateStats bool) (*v1alpha1.Summary, error)
Get provides a mock function with given fields: ctx, updateStats
func (*MockSummaryProvider) GetCPUAndMemoryStats ¶ added in v1.23.0
GetCPUAndMemoryStats provides a mock function with given fields: ctx
type MockSummaryProvider_Expecter ¶ added in v1.31.0
type MockSummaryProvider_Expecter struct {
// contains filtered or unexported fields
}
func (*MockSummaryProvider_Expecter) Get ¶ added in v1.31.0
func (_e *MockSummaryProvider_Expecter) Get(ctx interface{}, updateStats interface{}) *MockSummaryProvider_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- updateStats bool
func (*MockSummaryProvider_Expecter) GetCPUAndMemoryStats ¶ added in v1.31.0
func (_e *MockSummaryProvider_Expecter) GetCPUAndMemoryStats(ctx interface{}) *MockSummaryProvider_GetCPUAndMemoryStats_Call
GetCPUAndMemoryStats is a helper method to define mock.On call
- ctx context.Context
type MockSummaryProvider_GetCPUAndMemoryStats_Call ¶ added in v1.31.0
MockSummaryProvider_GetCPUAndMemoryStats_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCPUAndMemoryStats'
func (*MockSummaryProvider_GetCPUAndMemoryStats_Call) Return ¶ added in v1.31.0
func (_c *MockSummaryProvider_GetCPUAndMemoryStats_Call) Return(_a0 *v1alpha1.Summary, _a1 error) *MockSummaryProvider_GetCPUAndMemoryStats_Call
func (*MockSummaryProvider_GetCPUAndMemoryStats_Call) Run ¶ added in v1.31.0
func (_c *MockSummaryProvider_GetCPUAndMemoryStats_Call) Run(run func(ctx context.Context)) *MockSummaryProvider_GetCPUAndMemoryStats_Call
func (*MockSummaryProvider_GetCPUAndMemoryStats_Call) RunAndReturn ¶ added in v1.31.0
func (_c *MockSummaryProvider_GetCPUAndMemoryStats_Call) RunAndReturn(run func(context.Context) (*v1alpha1.Summary, error)) *MockSummaryProvider_GetCPUAndMemoryStats_Call
type MockSummaryProvider_Get_Call ¶ added in v1.31.0
MockSummaryProvider_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*MockSummaryProvider_Get_Call) Return ¶ added in v1.31.0
func (_c *MockSummaryProvider_Get_Call) Return(_a0 *v1alpha1.Summary, _a1 error) *MockSummaryProvider_Get_Call
func (*MockSummaryProvider_Get_Call) Run ¶ added in v1.31.0
func (_c *MockSummaryProvider_Get_Call) Run(run func(ctx context.Context, updateStats bool)) *MockSummaryProvider_Get_Call
func (*MockSummaryProvider_Get_Call) RunAndReturn ¶ added in v1.31.0
func (_c *MockSummaryProvider_Get_Call) RunAndReturn(run func(context.Context, bool) (*v1alpha1.Summary, error)) *MockSummaryProvider_Get_Call