Documentation ¶
Index ¶
- type MockContainerManager
- func (_m *MockContainerManager) EXPECT() *MockContainerManager_Expecter
- func (_m *MockContainerManager) GetAllocatableCPUs() []int64
- func (_m *MockContainerManager) GetAllocatableDevices() []*v1.ContainerDevices
- func (_m *MockContainerManager) GetAllocatableMemory() []*v1.ContainerMemory
- func (_m *MockContainerManager) GetAllocateResourcesPodAdmitHandler() lifecycle.PodAdmitHandler
- func (_m *MockContainerManager) GetCPUs(podUID string, containerName string) []int64
- func (_m *MockContainerManager) GetCapacity(localStorageCapacityIsolation bool) corev1.ResourceList
- func (_m *MockContainerManager) GetDevicePluginResourceCapacity() (corev1.ResourceList, corev1.ResourceList, []string)
- func (_m *MockContainerManager) GetDevices(podUID string, containerName string) []*v1.ContainerDevices
- func (_m *MockContainerManager) GetDynamicResources(pod *corev1.Pod, _a1 *corev1.Container) []*v1.DynamicResource
- func (_m *MockContainerManager) GetHealthCheckers() []healthz.HealthChecker
- func (_m *MockContainerManager) GetMemory(podUID string, containerName string) []*v1.ContainerMemory
- func (_m *MockContainerManager) GetMountedSubsystems() *cm.CgroupSubsystems
- func (_m *MockContainerManager) GetNodeAllocatableAbsolute() corev1.ResourceList
- func (_m *MockContainerManager) GetNodeAllocatableReservation() corev1.ResourceList
- func (_m *MockContainerManager) GetNodeConfig() cm.NodeConfig
- func (_m *MockContainerManager) GetPluginRegistrationHandlers() map[string]cache.PluginHandler
- func (_m *MockContainerManager) GetPodCgroupRoot() string
- func (_m *MockContainerManager) GetQOSContainersInfo() cm.QOSContainersInfo
- func (_m *MockContainerManager) GetResources(ctx context.Context, pod *corev1.Pod, _a2 *corev1.Container) (*container.RunContainerOptions, error)
- func (_m *MockContainerManager) InternalContainerLifecycle() cm.InternalContainerLifecycle
- func (_m *MockContainerManager) NewPodContainerManager() cm.PodContainerManager
- func (_m *MockContainerManager) PodMightNeedToUnprepareResources(UID types.UID) bool
- func (_m *MockContainerManager) PrepareDynamicResources(_a0 context.Context, _a1 *corev1.Pod) error
- func (_m *MockContainerManager) ShouldResetExtendedResourceCapacity() bool
- func (_m *MockContainerManager) Start(_a0 context.Context, _a1 *corev1.Node, _a2 cm.ActivePodsFunc, ...) error
- func (_m *MockContainerManager) Status() cm.Status
- func (_m *MockContainerManager) SystemCgroupsLimit() corev1.ResourceList
- func (_m *MockContainerManager) UnprepareDynamicResources(_a0 context.Context, _a1 *corev1.Pod) error
- func (_m *MockContainerManager) UpdateAllocatedDevices()
- func (_m *MockContainerManager) UpdateAllocatedResourcesStatus(pod *corev1.Pod, _a1 *corev1.PodStatus)
- func (_m *MockContainerManager) UpdatePluginResources(_a0 *framework.NodeInfo, _a1 *lifecycle.PodAdmitAttributes) error
- func (_m *MockContainerManager) UpdateQOSCgroups() error
- func (_m *MockContainerManager) Updates() <-chan resourceupdates.Update
- type MockContainerManager_Expecter
- func (_e *MockContainerManager_Expecter) GetAllocatableCPUs() *MockContainerManager_GetAllocatableCPUs_Call
- func (_e *MockContainerManager_Expecter) GetAllocatableDevices() *MockContainerManager_GetAllocatableDevices_Call
- func (_e *MockContainerManager_Expecter) GetAllocatableMemory() *MockContainerManager_GetAllocatableMemory_Call
- func (_e *MockContainerManager_Expecter) GetAllocateResourcesPodAdmitHandler() *MockContainerManager_GetAllocateResourcesPodAdmitHandler_Call
- func (_e *MockContainerManager_Expecter) GetCPUs(podUID interface{}, containerName interface{}) *MockContainerManager_GetCPUs_Call
- func (_e *MockContainerManager_Expecter) GetCapacity(localStorageCapacityIsolation interface{}) *MockContainerManager_GetCapacity_Call
- func (_e *MockContainerManager_Expecter) GetDevicePluginResourceCapacity() *MockContainerManager_GetDevicePluginResourceCapacity_Call
- func (_e *MockContainerManager_Expecter) GetDevices(podUID interface{}, containerName interface{}) *MockContainerManager_GetDevices_Call
- func (_e *MockContainerManager_Expecter) GetDynamicResources(pod interface{}, _a1 interface{}) *MockContainerManager_GetDynamicResources_Call
- func (_e *MockContainerManager_Expecter) GetHealthCheckers() *MockContainerManager_GetHealthCheckers_Call
- func (_e *MockContainerManager_Expecter) GetMemory(podUID interface{}, containerName interface{}) *MockContainerManager_GetMemory_Call
- func (_e *MockContainerManager_Expecter) GetMountedSubsystems() *MockContainerManager_GetMountedSubsystems_Call
- func (_e *MockContainerManager_Expecter) GetNodeAllocatableAbsolute() *MockContainerManager_GetNodeAllocatableAbsolute_Call
- func (_e *MockContainerManager_Expecter) GetNodeAllocatableReservation() *MockContainerManager_GetNodeAllocatableReservation_Call
- func (_e *MockContainerManager_Expecter) GetNodeConfig() *MockContainerManager_GetNodeConfig_Call
- func (_e *MockContainerManager_Expecter) GetPluginRegistrationHandlers() *MockContainerManager_GetPluginRegistrationHandlers_Call
- func (_e *MockContainerManager_Expecter) GetPodCgroupRoot() *MockContainerManager_GetPodCgroupRoot_Call
- func (_e *MockContainerManager_Expecter) GetQOSContainersInfo() *MockContainerManager_GetQOSContainersInfo_Call
- func (_e *MockContainerManager_Expecter) GetResources(ctx interface{}, pod interface{}, _a2 interface{}) *MockContainerManager_GetResources_Call
- func (_e *MockContainerManager_Expecter) InternalContainerLifecycle() *MockContainerManager_InternalContainerLifecycle_Call
- func (_e *MockContainerManager_Expecter) NewPodContainerManager() *MockContainerManager_NewPodContainerManager_Call
- func (_e *MockContainerManager_Expecter) PodMightNeedToUnprepareResources(UID interface{}) *MockContainerManager_PodMightNeedToUnprepareResources_Call
- func (_e *MockContainerManager_Expecter) PrepareDynamicResources(_a0 interface{}, _a1 interface{}) *MockContainerManager_PrepareDynamicResources_Call
- func (_e *MockContainerManager_Expecter) ShouldResetExtendedResourceCapacity() *MockContainerManager_ShouldResetExtendedResourceCapacity_Call
- func (_e *MockContainerManager_Expecter) Start(_a0 interface{}, _a1 interface{}, _a2 interface{}, _a3 interface{}, ...) *MockContainerManager_Start_Call
- func (_e *MockContainerManager_Expecter) Status() *MockContainerManager_Status_Call
- func (_e *MockContainerManager_Expecter) SystemCgroupsLimit() *MockContainerManager_SystemCgroupsLimit_Call
- func (_e *MockContainerManager_Expecter) UnprepareDynamicResources(_a0 interface{}, _a1 interface{}) *MockContainerManager_UnprepareDynamicResources_Call
- func (_e *MockContainerManager_Expecter) UpdateAllocatedDevices() *MockContainerManager_UpdateAllocatedDevices_Call
- func (_e *MockContainerManager_Expecter) UpdateAllocatedResourcesStatus(pod interface{}, _a1 interface{}) *MockContainerManager_UpdateAllocatedResourcesStatus_Call
- func (_e *MockContainerManager_Expecter) UpdatePluginResources(_a0 interface{}, _a1 interface{}) *MockContainerManager_UpdatePluginResources_Call
- func (_e *MockContainerManager_Expecter) UpdateQOSCgroups() *MockContainerManager_UpdateQOSCgroups_Call
- func (_e *MockContainerManager_Expecter) Updates() *MockContainerManager_Updates_Call
- type MockContainerManager_GetAllocatableCPUs_Call
- func (_c *MockContainerManager_GetAllocatableCPUs_Call) Return(_a0 []int64) *MockContainerManager_GetAllocatableCPUs_Call
- func (_c *MockContainerManager_GetAllocatableCPUs_Call) Run(run func()) *MockContainerManager_GetAllocatableCPUs_Call
- func (_c *MockContainerManager_GetAllocatableCPUs_Call) RunAndReturn(run func() []int64) *MockContainerManager_GetAllocatableCPUs_Call
- type MockContainerManager_GetAllocatableDevices_Call
- func (_c *MockContainerManager_GetAllocatableDevices_Call) Return(_a0 []*v1.ContainerDevices) *MockContainerManager_GetAllocatableDevices_Call
- func (_c *MockContainerManager_GetAllocatableDevices_Call) Run(run func()) *MockContainerManager_GetAllocatableDevices_Call
- func (_c *MockContainerManager_GetAllocatableDevices_Call) RunAndReturn(run func() []*v1.ContainerDevices) *MockContainerManager_GetAllocatableDevices_Call
- type MockContainerManager_GetAllocatableMemory_Call
- func (_c *MockContainerManager_GetAllocatableMemory_Call) Return(_a0 []*v1.ContainerMemory) *MockContainerManager_GetAllocatableMemory_Call
- func (_c *MockContainerManager_GetAllocatableMemory_Call) Run(run func()) *MockContainerManager_GetAllocatableMemory_Call
- func (_c *MockContainerManager_GetAllocatableMemory_Call) RunAndReturn(run func() []*v1.ContainerMemory) *MockContainerManager_GetAllocatableMemory_Call
- type MockContainerManager_GetAllocateResourcesPodAdmitHandler_Call
- func (_c *MockContainerManager_GetAllocateResourcesPodAdmitHandler_Call) Return(_a0 lifecycle.PodAdmitHandler) *MockContainerManager_GetAllocateResourcesPodAdmitHandler_Call
- func (_c *MockContainerManager_GetAllocateResourcesPodAdmitHandler_Call) Run(run func()) *MockContainerManager_GetAllocateResourcesPodAdmitHandler_Call
- func (_c *MockContainerManager_GetAllocateResourcesPodAdmitHandler_Call) RunAndReturn(run func() lifecycle.PodAdmitHandler) *MockContainerManager_GetAllocateResourcesPodAdmitHandler_Call
- type MockContainerManager_GetCPUs_Call
- func (_c *MockContainerManager_GetCPUs_Call) Return(_a0 []int64) *MockContainerManager_GetCPUs_Call
- func (_c *MockContainerManager_GetCPUs_Call) Run(run func(podUID string, containerName string)) *MockContainerManager_GetCPUs_Call
- func (_c *MockContainerManager_GetCPUs_Call) RunAndReturn(run func(string, string) []int64) *MockContainerManager_GetCPUs_Call
- type MockContainerManager_GetCapacity_Call
- func (_c *MockContainerManager_GetCapacity_Call) Return(_a0 corev1.ResourceList) *MockContainerManager_GetCapacity_Call
- func (_c *MockContainerManager_GetCapacity_Call) Run(run func(localStorageCapacityIsolation bool)) *MockContainerManager_GetCapacity_Call
- func (_c *MockContainerManager_GetCapacity_Call) RunAndReturn(run func(bool) corev1.ResourceList) *MockContainerManager_GetCapacity_Call
- type MockContainerManager_GetDevicePluginResourceCapacity_Call
- func (_c *MockContainerManager_GetDevicePluginResourceCapacity_Call) Return(_a0 corev1.ResourceList, _a1 corev1.ResourceList, _a2 []string) *MockContainerManager_GetDevicePluginResourceCapacity_Call
- func (_c *MockContainerManager_GetDevicePluginResourceCapacity_Call) Run(run func()) *MockContainerManager_GetDevicePluginResourceCapacity_Call
- func (_c *MockContainerManager_GetDevicePluginResourceCapacity_Call) RunAndReturn(run func() (corev1.ResourceList, corev1.ResourceList, []string)) *MockContainerManager_GetDevicePluginResourceCapacity_Call
- type MockContainerManager_GetDevices_Call
- func (_c *MockContainerManager_GetDevices_Call) Return(_a0 []*v1.ContainerDevices) *MockContainerManager_GetDevices_Call
- func (_c *MockContainerManager_GetDevices_Call) Run(run func(podUID string, containerName string)) *MockContainerManager_GetDevices_Call
- func (_c *MockContainerManager_GetDevices_Call) RunAndReturn(run func(string, string) []*v1.ContainerDevices) *MockContainerManager_GetDevices_Call
- type MockContainerManager_GetDynamicResources_Call
- func (_c *MockContainerManager_GetDynamicResources_Call) Return(_a0 []*v1.DynamicResource) *MockContainerManager_GetDynamicResources_Call
- func (_c *MockContainerManager_GetDynamicResources_Call) Run(run func(pod *corev1.Pod, _a1 *corev1.Container)) *MockContainerManager_GetDynamicResources_Call
- func (_c *MockContainerManager_GetDynamicResources_Call) RunAndReturn(run func(*corev1.Pod, *corev1.Container) []*v1.DynamicResource) *MockContainerManager_GetDynamicResources_Call
- type MockContainerManager_GetHealthCheckers_Call
- func (_c *MockContainerManager_GetHealthCheckers_Call) Return(_a0 []healthz.HealthChecker) *MockContainerManager_GetHealthCheckers_Call
- func (_c *MockContainerManager_GetHealthCheckers_Call) Run(run func()) *MockContainerManager_GetHealthCheckers_Call
- func (_c *MockContainerManager_GetHealthCheckers_Call) RunAndReturn(run func() []healthz.HealthChecker) *MockContainerManager_GetHealthCheckers_Call
- type MockContainerManager_GetMemory_Call
- func (_c *MockContainerManager_GetMemory_Call) Return(_a0 []*v1.ContainerMemory) *MockContainerManager_GetMemory_Call
- func (_c *MockContainerManager_GetMemory_Call) Run(run func(podUID string, containerName string)) *MockContainerManager_GetMemory_Call
- func (_c *MockContainerManager_GetMemory_Call) RunAndReturn(run func(string, string) []*v1.ContainerMemory) *MockContainerManager_GetMemory_Call
- type MockContainerManager_GetMountedSubsystems_Call
- func (_c *MockContainerManager_GetMountedSubsystems_Call) Return(_a0 *cm.CgroupSubsystems) *MockContainerManager_GetMountedSubsystems_Call
- func (_c *MockContainerManager_GetMountedSubsystems_Call) Run(run func()) *MockContainerManager_GetMountedSubsystems_Call
- func (_c *MockContainerManager_GetMountedSubsystems_Call) RunAndReturn(run func() *cm.CgroupSubsystems) *MockContainerManager_GetMountedSubsystems_Call
- type MockContainerManager_GetNodeAllocatableAbsolute_Call
- func (_c *MockContainerManager_GetNodeAllocatableAbsolute_Call) Return(_a0 corev1.ResourceList) *MockContainerManager_GetNodeAllocatableAbsolute_Call
- func (_c *MockContainerManager_GetNodeAllocatableAbsolute_Call) Run(run func()) *MockContainerManager_GetNodeAllocatableAbsolute_Call
- func (_c *MockContainerManager_GetNodeAllocatableAbsolute_Call) RunAndReturn(run func() corev1.ResourceList) *MockContainerManager_GetNodeAllocatableAbsolute_Call
- type MockContainerManager_GetNodeAllocatableReservation_Call
- func (_c *MockContainerManager_GetNodeAllocatableReservation_Call) Return(_a0 corev1.ResourceList) *MockContainerManager_GetNodeAllocatableReservation_Call
- func (_c *MockContainerManager_GetNodeAllocatableReservation_Call) Run(run func()) *MockContainerManager_GetNodeAllocatableReservation_Call
- func (_c *MockContainerManager_GetNodeAllocatableReservation_Call) RunAndReturn(run func() corev1.ResourceList) *MockContainerManager_GetNodeAllocatableReservation_Call
- type MockContainerManager_GetNodeConfig_Call
- func (_c *MockContainerManager_GetNodeConfig_Call) Return(_a0 cm.NodeConfig) *MockContainerManager_GetNodeConfig_Call
- func (_c *MockContainerManager_GetNodeConfig_Call) Run(run func()) *MockContainerManager_GetNodeConfig_Call
- func (_c *MockContainerManager_GetNodeConfig_Call) RunAndReturn(run func() cm.NodeConfig) *MockContainerManager_GetNodeConfig_Call
- type MockContainerManager_GetPluginRegistrationHandlers_Call
- func (_c *MockContainerManager_GetPluginRegistrationHandlers_Call) Return(_a0 map[string]cache.PluginHandler) *MockContainerManager_GetPluginRegistrationHandlers_Call
- func (_c *MockContainerManager_GetPluginRegistrationHandlers_Call) Run(run func()) *MockContainerManager_GetPluginRegistrationHandlers_Call
- func (_c *MockContainerManager_GetPluginRegistrationHandlers_Call) RunAndReturn(run func() map[string]cache.PluginHandler) *MockContainerManager_GetPluginRegistrationHandlers_Call
- type MockContainerManager_GetPodCgroupRoot_Call
- func (_c *MockContainerManager_GetPodCgroupRoot_Call) Return(_a0 string) *MockContainerManager_GetPodCgroupRoot_Call
- func (_c *MockContainerManager_GetPodCgroupRoot_Call) Run(run func()) *MockContainerManager_GetPodCgroupRoot_Call
- func (_c *MockContainerManager_GetPodCgroupRoot_Call) RunAndReturn(run func() string) *MockContainerManager_GetPodCgroupRoot_Call
- type MockContainerManager_GetQOSContainersInfo_Call
- func (_c *MockContainerManager_GetQOSContainersInfo_Call) Return(_a0 cm.QOSContainersInfo) *MockContainerManager_GetQOSContainersInfo_Call
- func (_c *MockContainerManager_GetQOSContainersInfo_Call) Run(run func()) *MockContainerManager_GetQOSContainersInfo_Call
- func (_c *MockContainerManager_GetQOSContainersInfo_Call) RunAndReturn(run func() cm.QOSContainersInfo) *MockContainerManager_GetQOSContainersInfo_Call
- type MockContainerManager_GetResources_Call
- func (_c *MockContainerManager_GetResources_Call) Return(_a0 *container.RunContainerOptions, _a1 error) *MockContainerManager_GetResources_Call
- func (_c *MockContainerManager_GetResources_Call) Run(run func(ctx context.Context, pod *corev1.Pod, _a2 *corev1.Container)) *MockContainerManager_GetResources_Call
- func (_c *MockContainerManager_GetResources_Call) RunAndReturn(...) *MockContainerManager_GetResources_Call
- type MockContainerManager_InternalContainerLifecycle_Call
- func (_c *MockContainerManager_InternalContainerLifecycle_Call) Return(_a0 cm.InternalContainerLifecycle) *MockContainerManager_InternalContainerLifecycle_Call
- func (_c *MockContainerManager_InternalContainerLifecycle_Call) Run(run func()) *MockContainerManager_InternalContainerLifecycle_Call
- func (_c *MockContainerManager_InternalContainerLifecycle_Call) RunAndReturn(run func() cm.InternalContainerLifecycle) *MockContainerManager_InternalContainerLifecycle_Call
- type MockContainerManager_NewPodContainerManager_Call
- func (_c *MockContainerManager_NewPodContainerManager_Call) Return(_a0 cm.PodContainerManager) *MockContainerManager_NewPodContainerManager_Call
- func (_c *MockContainerManager_NewPodContainerManager_Call) Run(run func()) *MockContainerManager_NewPodContainerManager_Call
- func (_c *MockContainerManager_NewPodContainerManager_Call) RunAndReturn(run func() cm.PodContainerManager) *MockContainerManager_NewPodContainerManager_Call
- type MockContainerManager_PodMightNeedToUnprepareResources_Call
- func (_c *MockContainerManager_PodMightNeedToUnprepareResources_Call) Return(_a0 bool) *MockContainerManager_PodMightNeedToUnprepareResources_Call
- func (_c *MockContainerManager_PodMightNeedToUnprepareResources_Call) Run(run func(UID types.UID)) *MockContainerManager_PodMightNeedToUnprepareResources_Call
- func (_c *MockContainerManager_PodMightNeedToUnprepareResources_Call) RunAndReturn(run func(types.UID) bool) *MockContainerManager_PodMightNeedToUnprepareResources_Call
- type MockContainerManager_PrepareDynamicResources_Call
- func (_c *MockContainerManager_PrepareDynamicResources_Call) Return(_a0 error) *MockContainerManager_PrepareDynamicResources_Call
- func (_c *MockContainerManager_PrepareDynamicResources_Call) Run(run func(_a0 context.Context, _a1 *corev1.Pod)) *MockContainerManager_PrepareDynamicResources_Call
- func (_c *MockContainerManager_PrepareDynamicResources_Call) RunAndReturn(run func(context.Context, *corev1.Pod) error) *MockContainerManager_PrepareDynamicResources_Call
- type MockContainerManager_ShouldResetExtendedResourceCapacity_Call
- func (_c *MockContainerManager_ShouldResetExtendedResourceCapacity_Call) Return(_a0 bool) *MockContainerManager_ShouldResetExtendedResourceCapacity_Call
- func (_c *MockContainerManager_ShouldResetExtendedResourceCapacity_Call) Run(run func()) *MockContainerManager_ShouldResetExtendedResourceCapacity_Call
- func (_c *MockContainerManager_ShouldResetExtendedResourceCapacity_Call) RunAndReturn(run func() bool) *MockContainerManager_ShouldResetExtendedResourceCapacity_Call
- type MockContainerManager_Start_Call
- func (_c *MockContainerManager_Start_Call) Return(_a0 error) *MockContainerManager_Start_Call
- func (_c *MockContainerManager_Start_Call) Run(run func(_a0 context.Context, _a1 *corev1.Node, _a2 cm.ActivePodsFunc, ...)) *MockContainerManager_Start_Call
- func (_c *MockContainerManager_Start_Call) RunAndReturn(...) *MockContainerManager_Start_Call
- type MockContainerManager_Status_Call
- func (_c *MockContainerManager_Status_Call) Return(_a0 cm.Status) *MockContainerManager_Status_Call
- func (_c *MockContainerManager_Status_Call) Run(run func()) *MockContainerManager_Status_Call
- func (_c *MockContainerManager_Status_Call) RunAndReturn(run func() cm.Status) *MockContainerManager_Status_Call
- type MockContainerManager_SystemCgroupsLimit_Call
- func (_c *MockContainerManager_SystemCgroupsLimit_Call) Return(_a0 corev1.ResourceList) *MockContainerManager_SystemCgroupsLimit_Call
- func (_c *MockContainerManager_SystemCgroupsLimit_Call) Run(run func()) *MockContainerManager_SystemCgroupsLimit_Call
- func (_c *MockContainerManager_SystemCgroupsLimit_Call) RunAndReturn(run func() corev1.ResourceList) *MockContainerManager_SystemCgroupsLimit_Call
- type MockContainerManager_UnprepareDynamicResources_Call
- func (_c *MockContainerManager_UnprepareDynamicResources_Call) Return(_a0 error) *MockContainerManager_UnprepareDynamicResources_Call
- func (_c *MockContainerManager_UnprepareDynamicResources_Call) Run(run func(_a0 context.Context, _a1 *corev1.Pod)) *MockContainerManager_UnprepareDynamicResources_Call
- func (_c *MockContainerManager_UnprepareDynamicResources_Call) RunAndReturn(run func(context.Context, *corev1.Pod) error) *MockContainerManager_UnprepareDynamicResources_Call
- type MockContainerManager_UpdateAllocatedDevices_Call
- func (_c *MockContainerManager_UpdateAllocatedDevices_Call) Return() *MockContainerManager_UpdateAllocatedDevices_Call
- func (_c *MockContainerManager_UpdateAllocatedDevices_Call) Run(run func()) *MockContainerManager_UpdateAllocatedDevices_Call
- func (_c *MockContainerManager_UpdateAllocatedDevices_Call) RunAndReturn(run func()) *MockContainerManager_UpdateAllocatedDevices_Call
- type MockContainerManager_UpdateAllocatedResourcesStatus_Call
- func (_c *MockContainerManager_UpdateAllocatedResourcesStatus_Call) Return() *MockContainerManager_UpdateAllocatedResourcesStatus_Call
- func (_c *MockContainerManager_UpdateAllocatedResourcesStatus_Call) Run(run func(pod *corev1.Pod, _a1 *corev1.PodStatus)) *MockContainerManager_UpdateAllocatedResourcesStatus_Call
- func (_c *MockContainerManager_UpdateAllocatedResourcesStatus_Call) RunAndReturn(run func(*corev1.Pod, *corev1.PodStatus)) *MockContainerManager_UpdateAllocatedResourcesStatus_Call
- type MockContainerManager_UpdatePluginResources_Call
- func (_c *MockContainerManager_UpdatePluginResources_Call) Return(_a0 error) *MockContainerManager_UpdatePluginResources_Call
- func (_c *MockContainerManager_UpdatePluginResources_Call) Run(run func(_a0 *framework.NodeInfo, _a1 *lifecycle.PodAdmitAttributes)) *MockContainerManager_UpdatePluginResources_Call
- func (_c *MockContainerManager_UpdatePluginResources_Call) RunAndReturn(run func(*framework.NodeInfo, *lifecycle.PodAdmitAttributes) error) *MockContainerManager_UpdatePluginResources_Call
- type MockContainerManager_UpdateQOSCgroups_Call
- func (_c *MockContainerManager_UpdateQOSCgroups_Call) Return(_a0 error) *MockContainerManager_UpdateQOSCgroups_Call
- func (_c *MockContainerManager_UpdateQOSCgroups_Call) Run(run func()) *MockContainerManager_UpdateQOSCgroups_Call
- func (_c *MockContainerManager_UpdateQOSCgroups_Call) RunAndReturn(run func() error) *MockContainerManager_UpdateQOSCgroups_Call
- type MockContainerManager_Updates_Call
- func (_c *MockContainerManager_Updates_Call) Return(_a0 <-chan resourceupdates.Update) *MockContainerManager_Updates_Call
- func (_c *MockContainerManager_Updates_Call) Run(run func()) *MockContainerManager_Updates_Call
- func (_c *MockContainerManager_Updates_Call) RunAndReturn(run func() <-chan resourceupdates.Update) *MockContainerManager_Updates_Call
- type MockPodContainerManager
- func (_m *MockPodContainerManager) Destroy(name cm.CgroupName) error
- func (_m *MockPodContainerManager) EXPECT() *MockPodContainerManager_Expecter
- func (_m *MockPodContainerManager) EnsureExists(_a0 *v1.Pod) error
- func (_m *MockPodContainerManager) Exists(_a0 *v1.Pod) bool
- func (_m *MockPodContainerManager) GetAllPodsFromCgroups() (map[types.UID]cm.CgroupName, error)
- func (_m *MockPodContainerManager) GetPodCgroupConfig(pod *v1.Pod, resource v1.ResourceName) (*cm.ResourceConfig, error)
- func (_m *MockPodContainerManager) GetPodCgroupMemoryUsage(pod *v1.Pod) (uint64, error)
- func (_m *MockPodContainerManager) GetPodContainerName(_a0 *v1.Pod) (cm.CgroupName, string)
- func (_m *MockPodContainerManager) IsPodCgroup(cgroupfs string) (bool, types.UID)
- func (_m *MockPodContainerManager) ReduceCPULimits(name cm.CgroupName) error
- func (_m *MockPodContainerManager) SetPodCgroupConfig(pod *v1.Pod, resourceConfig *cm.ResourceConfig) error
- type MockPodContainerManager_Destroy_Call
- func (_c *MockPodContainerManager_Destroy_Call) Return(_a0 error) *MockPodContainerManager_Destroy_Call
- func (_c *MockPodContainerManager_Destroy_Call) Run(run func(name cm.CgroupName)) *MockPodContainerManager_Destroy_Call
- func (_c *MockPodContainerManager_Destroy_Call) RunAndReturn(run func(cm.CgroupName) error) *MockPodContainerManager_Destroy_Call
- type MockPodContainerManager_EnsureExists_Call
- func (_c *MockPodContainerManager_EnsureExists_Call) Return(_a0 error) *MockPodContainerManager_EnsureExists_Call
- func (_c *MockPodContainerManager_EnsureExists_Call) Run(run func(_a0 *v1.Pod)) *MockPodContainerManager_EnsureExists_Call
- func (_c *MockPodContainerManager_EnsureExists_Call) RunAndReturn(run func(*v1.Pod) error) *MockPodContainerManager_EnsureExists_Call
- type MockPodContainerManager_Exists_Call
- func (_c *MockPodContainerManager_Exists_Call) Return(_a0 bool) *MockPodContainerManager_Exists_Call
- func (_c *MockPodContainerManager_Exists_Call) Run(run func(_a0 *v1.Pod)) *MockPodContainerManager_Exists_Call
- func (_c *MockPodContainerManager_Exists_Call) RunAndReturn(run func(*v1.Pod) bool) *MockPodContainerManager_Exists_Call
- type MockPodContainerManager_Expecter
- func (_e *MockPodContainerManager_Expecter) Destroy(name interface{}) *MockPodContainerManager_Destroy_Call
- func (_e *MockPodContainerManager_Expecter) EnsureExists(_a0 interface{}) *MockPodContainerManager_EnsureExists_Call
- func (_e *MockPodContainerManager_Expecter) Exists(_a0 interface{}) *MockPodContainerManager_Exists_Call
- func (_e *MockPodContainerManager_Expecter) GetAllPodsFromCgroups() *MockPodContainerManager_GetAllPodsFromCgroups_Call
- func (_e *MockPodContainerManager_Expecter) GetPodCgroupConfig(pod interface{}, resource interface{}) *MockPodContainerManager_GetPodCgroupConfig_Call
- func (_e *MockPodContainerManager_Expecter) GetPodCgroupMemoryUsage(pod interface{}) *MockPodContainerManager_GetPodCgroupMemoryUsage_Call
- func (_e *MockPodContainerManager_Expecter) GetPodContainerName(_a0 interface{}) *MockPodContainerManager_GetPodContainerName_Call
- func (_e *MockPodContainerManager_Expecter) IsPodCgroup(cgroupfs interface{}) *MockPodContainerManager_IsPodCgroup_Call
- func (_e *MockPodContainerManager_Expecter) ReduceCPULimits(name interface{}) *MockPodContainerManager_ReduceCPULimits_Call
- func (_e *MockPodContainerManager_Expecter) SetPodCgroupConfig(pod interface{}, resourceConfig interface{}) *MockPodContainerManager_SetPodCgroupConfig_Call
- type MockPodContainerManager_GetAllPodsFromCgroups_Call
- func (_c *MockPodContainerManager_GetAllPodsFromCgroups_Call) Return(_a0 map[types.UID]cm.CgroupName, _a1 error) *MockPodContainerManager_GetAllPodsFromCgroups_Call
- func (_c *MockPodContainerManager_GetAllPodsFromCgroups_Call) Run(run func()) *MockPodContainerManager_GetAllPodsFromCgroups_Call
- func (_c *MockPodContainerManager_GetAllPodsFromCgroups_Call) RunAndReturn(run func() (map[types.UID]cm.CgroupName, error)) *MockPodContainerManager_GetAllPodsFromCgroups_Call
- type MockPodContainerManager_GetPodCgroupConfig_Call
- func (_c *MockPodContainerManager_GetPodCgroupConfig_Call) Return(_a0 *cm.ResourceConfig, _a1 error) *MockPodContainerManager_GetPodCgroupConfig_Call
- func (_c *MockPodContainerManager_GetPodCgroupConfig_Call) Run(run func(pod *v1.Pod, resource v1.ResourceName)) *MockPodContainerManager_GetPodCgroupConfig_Call
- func (_c *MockPodContainerManager_GetPodCgroupConfig_Call) RunAndReturn(run func(*v1.Pod, v1.ResourceName) (*cm.ResourceConfig, error)) *MockPodContainerManager_GetPodCgroupConfig_Call
- type MockPodContainerManager_GetPodCgroupMemoryUsage_Call
- func (_c *MockPodContainerManager_GetPodCgroupMemoryUsage_Call) Return(_a0 uint64, _a1 error) *MockPodContainerManager_GetPodCgroupMemoryUsage_Call
- func (_c *MockPodContainerManager_GetPodCgroupMemoryUsage_Call) Run(run func(pod *v1.Pod)) *MockPodContainerManager_GetPodCgroupMemoryUsage_Call
- func (_c *MockPodContainerManager_GetPodCgroupMemoryUsage_Call) RunAndReturn(run func(*v1.Pod) (uint64, error)) *MockPodContainerManager_GetPodCgroupMemoryUsage_Call
- type MockPodContainerManager_GetPodContainerName_Call
- func (_c *MockPodContainerManager_GetPodContainerName_Call) Return(_a0 cm.CgroupName, _a1 string) *MockPodContainerManager_GetPodContainerName_Call
- func (_c *MockPodContainerManager_GetPodContainerName_Call) Run(run func(_a0 *v1.Pod)) *MockPodContainerManager_GetPodContainerName_Call
- func (_c *MockPodContainerManager_GetPodContainerName_Call) RunAndReturn(run func(*v1.Pod) (cm.CgroupName, string)) *MockPodContainerManager_GetPodContainerName_Call
- type MockPodContainerManager_IsPodCgroup_Call
- func (_c *MockPodContainerManager_IsPodCgroup_Call) Return(_a0 bool, _a1 types.UID) *MockPodContainerManager_IsPodCgroup_Call
- func (_c *MockPodContainerManager_IsPodCgroup_Call) Run(run func(cgroupfs string)) *MockPodContainerManager_IsPodCgroup_Call
- func (_c *MockPodContainerManager_IsPodCgroup_Call) RunAndReturn(run func(string) (bool, types.UID)) *MockPodContainerManager_IsPodCgroup_Call
- type MockPodContainerManager_ReduceCPULimits_Call
- func (_c *MockPodContainerManager_ReduceCPULimits_Call) Return(_a0 error) *MockPodContainerManager_ReduceCPULimits_Call
- func (_c *MockPodContainerManager_ReduceCPULimits_Call) Run(run func(name cm.CgroupName)) *MockPodContainerManager_ReduceCPULimits_Call
- func (_c *MockPodContainerManager_ReduceCPULimits_Call) RunAndReturn(run func(cm.CgroupName) error) *MockPodContainerManager_ReduceCPULimits_Call
- type MockPodContainerManager_SetPodCgroupConfig_Call
- func (_c *MockPodContainerManager_SetPodCgroupConfig_Call) Return(_a0 error) *MockPodContainerManager_SetPodCgroupConfig_Call
- func (_c *MockPodContainerManager_SetPodCgroupConfig_Call) Run(run func(pod *v1.Pod, resourceConfig *cm.ResourceConfig)) *MockPodContainerManager_SetPodCgroupConfig_Call
- func (_c *MockPodContainerManager_SetPodCgroupConfig_Call) RunAndReturn(run func(*v1.Pod, *cm.ResourceConfig) error) *MockPodContainerManager_SetPodCgroupConfig_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockContainerManager ¶
MockContainerManager is an autogenerated mock type for the ContainerManager type
func NewMockContainerManager ¶
func NewMockContainerManager(t interface { mock.TestingT Cleanup(func()) }) *MockContainerManager
NewMockContainerManager creates a new instance of MockContainerManager. 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 (*MockContainerManager) EXPECT ¶
func (_m *MockContainerManager) EXPECT() *MockContainerManager_Expecter
func (*MockContainerManager) GetAllocatableCPUs ¶
func (_m *MockContainerManager) GetAllocatableCPUs() []int64
GetAllocatableCPUs provides a mock function with given fields:
func (*MockContainerManager) GetAllocatableDevices ¶
func (_m *MockContainerManager) GetAllocatableDevices() []*v1.ContainerDevices
GetAllocatableDevices provides a mock function with given fields:
func (*MockContainerManager) GetAllocatableMemory ¶
func (_m *MockContainerManager) GetAllocatableMemory() []*v1.ContainerMemory
GetAllocatableMemory provides a mock function with given fields:
func (*MockContainerManager) GetAllocateResourcesPodAdmitHandler ¶
func (_m *MockContainerManager) GetAllocateResourcesPodAdmitHandler() lifecycle.PodAdmitHandler
GetAllocateResourcesPodAdmitHandler provides a mock function with given fields:
func (*MockContainerManager) GetCPUs ¶
func (_m *MockContainerManager) GetCPUs(podUID string, containerName string) []int64
GetCPUs provides a mock function with given fields: podUID, containerName
func (*MockContainerManager) GetCapacity ¶
func (_m *MockContainerManager) GetCapacity(localStorageCapacityIsolation bool) corev1.ResourceList
GetCapacity provides a mock function with given fields: localStorageCapacityIsolation
func (*MockContainerManager) GetDevicePluginResourceCapacity ¶
func (_m *MockContainerManager) GetDevicePluginResourceCapacity() (corev1.ResourceList, corev1.ResourceList, []string)
GetDevicePluginResourceCapacity provides a mock function with given fields:
func (*MockContainerManager) GetDevices ¶
func (_m *MockContainerManager) GetDevices(podUID string, containerName string) []*v1.ContainerDevices
GetDevices provides a mock function with given fields: podUID, containerName
func (*MockContainerManager) GetDynamicResources ¶
func (_m *MockContainerManager) GetDynamicResources(pod *corev1.Pod, _a1 *corev1.Container) []*v1.DynamicResource
GetDynamicResources provides a mock function with given fields: pod, _a1
func (*MockContainerManager) GetHealthCheckers ¶
func (_m *MockContainerManager) GetHealthCheckers() []healthz.HealthChecker
GetHealthCheckers provides a mock function with given fields:
func (*MockContainerManager) GetMemory ¶
func (_m *MockContainerManager) GetMemory(podUID string, containerName string) []*v1.ContainerMemory
GetMemory provides a mock function with given fields: podUID, containerName
func (*MockContainerManager) GetMountedSubsystems ¶
func (_m *MockContainerManager) GetMountedSubsystems() *cm.CgroupSubsystems
GetMountedSubsystems provides a mock function with given fields:
func (*MockContainerManager) GetNodeAllocatableAbsolute ¶
func (_m *MockContainerManager) GetNodeAllocatableAbsolute() corev1.ResourceList
GetNodeAllocatableAbsolute provides a mock function with given fields:
func (*MockContainerManager) GetNodeAllocatableReservation ¶
func (_m *MockContainerManager) GetNodeAllocatableReservation() corev1.ResourceList
GetNodeAllocatableReservation provides a mock function with given fields:
func (*MockContainerManager) GetNodeConfig ¶
func (_m *MockContainerManager) GetNodeConfig() cm.NodeConfig
GetNodeConfig provides a mock function with given fields:
func (*MockContainerManager) GetPluginRegistrationHandlers ¶
func (_m *MockContainerManager) GetPluginRegistrationHandlers() map[string]cache.PluginHandler
GetPluginRegistrationHandlers provides a mock function with given fields:
func (*MockContainerManager) GetPodCgroupRoot ¶
func (_m *MockContainerManager) GetPodCgroupRoot() string
GetPodCgroupRoot provides a mock function with given fields:
func (*MockContainerManager) GetQOSContainersInfo ¶
func (_m *MockContainerManager) GetQOSContainersInfo() cm.QOSContainersInfo
GetQOSContainersInfo provides a mock function with given fields:
func (*MockContainerManager) GetResources ¶
func (_m *MockContainerManager) GetResources(ctx context.Context, pod *corev1.Pod, _a2 *corev1.Container) (*container.RunContainerOptions, error)
GetResources provides a mock function with given fields: ctx, pod, _a2
func (*MockContainerManager) InternalContainerLifecycle ¶
func (_m *MockContainerManager) InternalContainerLifecycle() cm.InternalContainerLifecycle
InternalContainerLifecycle provides a mock function with given fields:
func (*MockContainerManager) NewPodContainerManager ¶
func (_m *MockContainerManager) NewPodContainerManager() cm.PodContainerManager
NewPodContainerManager provides a mock function with given fields:
func (*MockContainerManager) PodMightNeedToUnprepareResources ¶
func (_m *MockContainerManager) PodMightNeedToUnprepareResources(UID types.UID) bool
PodMightNeedToUnprepareResources provides a mock function with given fields: UID
func (*MockContainerManager) PrepareDynamicResources ¶
PrepareDynamicResources provides a mock function with given fields: _a0, _a1
func (*MockContainerManager) ShouldResetExtendedResourceCapacity ¶
func (_m *MockContainerManager) ShouldResetExtendedResourceCapacity() bool
ShouldResetExtendedResourceCapacity provides a mock function with given fields:
func (*MockContainerManager) Start ¶
func (_m *MockContainerManager) Start(_a0 context.Context, _a1 *corev1.Node, _a2 cm.ActivePodsFunc, _a3 cm.GetNodeFunc, _a4 config.SourcesReady, _a5 status.PodStatusProvider, _a6 cri.RuntimeService, _a7 bool) error
Start provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4, _a5, _a6, _a7
func (*MockContainerManager) Status ¶
func (_m *MockContainerManager) Status() cm.Status
Status provides a mock function with given fields:
func (*MockContainerManager) SystemCgroupsLimit ¶
func (_m *MockContainerManager) SystemCgroupsLimit() corev1.ResourceList
SystemCgroupsLimit provides a mock function with given fields:
func (*MockContainerManager) UnprepareDynamicResources ¶
func (_m *MockContainerManager) UnprepareDynamicResources(_a0 context.Context, _a1 *corev1.Pod) error
UnprepareDynamicResources provides a mock function with given fields: _a0, _a1
func (*MockContainerManager) UpdateAllocatedDevices ¶
func (_m *MockContainerManager) UpdateAllocatedDevices()
UpdateAllocatedDevices provides a mock function with given fields:
func (*MockContainerManager) UpdateAllocatedResourcesStatus ¶
func (_m *MockContainerManager) UpdateAllocatedResourcesStatus(pod *corev1.Pod, _a1 *corev1.PodStatus)
UpdateAllocatedResourcesStatus provides a mock function with given fields: pod, _a1
func (*MockContainerManager) UpdatePluginResources ¶
func (_m *MockContainerManager) UpdatePluginResources(_a0 *framework.NodeInfo, _a1 *lifecycle.PodAdmitAttributes) error
UpdatePluginResources provides a mock function with given fields: _a0, _a1
func (*MockContainerManager) UpdateQOSCgroups ¶
func (_m *MockContainerManager) UpdateQOSCgroups() error
UpdateQOSCgroups provides a mock function with given fields:
func (*MockContainerManager) Updates ¶
func (_m *MockContainerManager) Updates() <-chan resourceupdates.Update
Updates provides a mock function with given fields:
type MockContainerManager_Expecter ¶
type MockContainerManager_Expecter struct {
// contains filtered or unexported fields
}
func (*MockContainerManager_Expecter) GetAllocatableCPUs ¶
func (_e *MockContainerManager_Expecter) GetAllocatableCPUs() *MockContainerManager_GetAllocatableCPUs_Call
GetAllocatableCPUs is a helper method to define mock.On call
func (*MockContainerManager_Expecter) GetAllocatableDevices ¶
func (_e *MockContainerManager_Expecter) GetAllocatableDevices() *MockContainerManager_GetAllocatableDevices_Call
GetAllocatableDevices is a helper method to define mock.On call
func (*MockContainerManager_Expecter) GetAllocatableMemory ¶
func (_e *MockContainerManager_Expecter) GetAllocatableMemory() *MockContainerManager_GetAllocatableMemory_Call
GetAllocatableMemory is a helper method to define mock.On call
func (*MockContainerManager_Expecter) GetAllocateResourcesPodAdmitHandler ¶
func (_e *MockContainerManager_Expecter) GetAllocateResourcesPodAdmitHandler() *MockContainerManager_GetAllocateResourcesPodAdmitHandler_Call
GetAllocateResourcesPodAdmitHandler is a helper method to define mock.On call
func (*MockContainerManager_Expecter) GetCPUs ¶
func (_e *MockContainerManager_Expecter) GetCPUs(podUID interface{}, containerName interface{}) *MockContainerManager_GetCPUs_Call
GetCPUs is a helper method to define mock.On call
- podUID string
- containerName string
func (*MockContainerManager_Expecter) GetCapacity ¶
func (_e *MockContainerManager_Expecter) GetCapacity(localStorageCapacityIsolation interface{}) *MockContainerManager_GetCapacity_Call
GetCapacity is a helper method to define mock.On call
- localStorageCapacityIsolation bool
func (*MockContainerManager_Expecter) GetDevicePluginResourceCapacity ¶
func (_e *MockContainerManager_Expecter) GetDevicePluginResourceCapacity() *MockContainerManager_GetDevicePluginResourceCapacity_Call
GetDevicePluginResourceCapacity is a helper method to define mock.On call
func (*MockContainerManager_Expecter) GetDevices ¶
func (_e *MockContainerManager_Expecter) GetDevices(podUID interface{}, containerName interface{}) *MockContainerManager_GetDevices_Call
GetDevices is a helper method to define mock.On call
- podUID string
- containerName string
func (*MockContainerManager_Expecter) GetDynamicResources ¶
func (_e *MockContainerManager_Expecter) GetDynamicResources(pod interface{}, _a1 interface{}) *MockContainerManager_GetDynamicResources_Call
GetDynamicResources is a helper method to define mock.On call
- pod *corev1.Pod
- _a1 *corev1.Container
func (*MockContainerManager_Expecter) GetHealthCheckers ¶
func (_e *MockContainerManager_Expecter) GetHealthCheckers() *MockContainerManager_GetHealthCheckers_Call
GetHealthCheckers is a helper method to define mock.On call
func (*MockContainerManager_Expecter) GetMemory ¶
func (_e *MockContainerManager_Expecter) GetMemory(podUID interface{}, containerName interface{}) *MockContainerManager_GetMemory_Call
GetMemory is a helper method to define mock.On call
- podUID string
- containerName string
func (*MockContainerManager_Expecter) GetMountedSubsystems ¶
func (_e *MockContainerManager_Expecter) GetMountedSubsystems() *MockContainerManager_GetMountedSubsystems_Call
GetMountedSubsystems is a helper method to define mock.On call
func (*MockContainerManager_Expecter) GetNodeAllocatableAbsolute ¶
func (_e *MockContainerManager_Expecter) GetNodeAllocatableAbsolute() *MockContainerManager_GetNodeAllocatableAbsolute_Call
GetNodeAllocatableAbsolute is a helper method to define mock.On call
func (*MockContainerManager_Expecter) GetNodeAllocatableReservation ¶
func (_e *MockContainerManager_Expecter) GetNodeAllocatableReservation() *MockContainerManager_GetNodeAllocatableReservation_Call
GetNodeAllocatableReservation is a helper method to define mock.On call
func (*MockContainerManager_Expecter) GetNodeConfig ¶
func (_e *MockContainerManager_Expecter) GetNodeConfig() *MockContainerManager_GetNodeConfig_Call
GetNodeConfig is a helper method to define mock.On call
func (*MockContainerManager_Expecter) GetPluginRegistrationHandlers ¶
func (_e *MockContainerManager_Expecter) GetPluginRegistrationHandlers() *MockContainerManager_GetPluginRegistrationHandlers_Call
GetPluginRegistrationHandlers is a helper method to define mock.On call
func (*MockContainerManager_Expecter) GetPodCgroupRoot ¶
func (_e *MockContainerManager_Expecter) GetPodCgroupRoot() *MockContainerManager_GetPodCgroupRoot_Call
GetPodCgroupRoot is a helper method to define mock.On call
func (*MockContainerManager_Expecter) GetQOSContainersInfo ¶
func (_e *MockContainerManager_Expecter) GetQOSContainersInfo() *MockContainerManager_GetQOSContainersInfo_Call
GetQOSContainersInfo is a helper method to define mock.On call
func (*MockContainerManager_Expecter) GetResources ¶
func (_e *MockContainerManager_Expecter) GetResources(ctx interface{}, pod interface{}, _a2 interface{}) *MockContainerManager_GetResources_Call
GetResources is a helper method to define mock.On call
- ctx context.Context
- pod *corev1.Pod
- _a2 *corev1.Container
func (*MockContainerManager_Expecter) InternalContainerLifecycle ¶
func (_e *MockContainerManager_Expecter) InternalContainerLifecycle() *MockContainerManager_InternalContainerLifecycle_Call
InternalContainerLifecycle is a helper method to define mock.On call
func (*MockContainerManager_Expecter) NewPodContainerManager ¶
func (_e *MockContainerManager_Expecter) NewPodContainerManager() *MockContainerManager_NewPodContainerManager_Call
NewPodContainerManager is a helper method to define mock.On call
func (*MockContainerManager_Expecter) PodMightNeedToUnprepareResources ¶
func (_e *MockContainerManager_Expecter) PodMightNeedToUnprepareResources(UID interface{}) *MockContainerManager_PodMightNeedToUnprepareResources_Call
PodMightNeedToUnprepareResources is a helper method to define mock.On call
- UID types.UID
func (*MockContainerManager_Expecter) PrepareDynamicResources ¶
func (_e *MockContainerManager_Expecter) PrepareDynamicResources(_a0 interface{}, _a1 interface{}) *MockContainerManager_PrepareDynamicResources_Call
PrepareDynamicResources is a helper method to define mock.On call
- _a0 context.Context
- _a1 *corev1.Pod
func (*MockContainerManager_Expecter) ShouldResetExtendedResourceCapacity ¶
func (_e *MockContainerManager_Expecter) ShouldResetExtendedResourceCapacity() *MockContainerManager_ShouldResetExtendedResourceCapacity_Call
ShouldResetExtendedResourceCapacity is a helper method to define mock.On call
func (*MockContainerManager_Expecter) Start ¶
func (_e *MockContainerManager_Expecter) Start(_a0 interface{}, _a1 interface{}, _a2 interface{}, _a3 interface{}, _a4 interface{}, _a5 interface{}, _a6 interface{}, _a7 interface{}) *MockContainerManager_Start_Call
Start is a helper method to define mock.On call
- _a0 context.Context
- _a1 *corev1.Node
- _a2 cm.ActivePodsFunc
- _a3 cm.GetNodeFunc
- _a4 config.SourcesReady
- _a5 status.PodStatusProvider
- _a6 cri.RuntimeService
- _a7 bool
func (*MockContainerManager_Expecter) Status ¶
func (_e *MockContainerManager_Expecter) Status() *MockContainerManager_Status_Call
Status is a helper method to define mock.On call
func (*MockContainerManager_Expecter) SystemCgroupsLimit ¶
func (_e *MockContainerManager_Expecter) SystemCgroupsLimit() *MockContainerManager_SystemCgroupsLimit_Call
SystemCgroupsLimit is a helper method to define mock.On call
func (*MockContainerManager_Expecter) UnprepareDynamicResources ¶
func (_e *MockContainerManager_Expecter) UnprepareDynamicResources(_a0 interface{}, _a1 interface{}) *MockContainerManager_UnprepareDynamicResources_Call
UnprepareDynamicResources is a helper method to define mock.On call
- _a0 context.Context
- _a1 *corev1.Pod
func (*MockContainerManager_Expecter) UpdateAllocatedDevices ¶
func (_e *MockContainerManager_Expecter) UpdateAllocatedDevices() *MockContainerManager_UpdateAllocatedDevices_Call
UpdateAllocatedDevices is a helper method to define mock.On call
func (*MockContainerManager_Expecter) UpdateAllocatedResourcesStatus ¶
func (_e *MockContainerManager_Expecter) UpdateAllocatedResourcesStatus(pod interface{}, _a1 interface{}) *MockContainerManager_UpdateAllocatedResourcesStatus_Call
UpdateAllocatedResourcesStatus is a helper method to define mock.On call
- pod *corev1.Pod
- _a1 *corev1.PodStatus
func (*MockContainerManager_Expecter) UpdatePluginResources ¶
func (_e *MockContainerManager_Expecter) UpdatePluginResources(_a0 interface{}, _a1 interface{}) *MockContainerManager_UpdatePluginResources_Call
UpdatePluginResources is a helper method to define mock.On call
- _a0 *framework.NodeInfo
- _a1 *lifecycle.PodAdmitAttributes
func (*MockContainerManager_Expecter) UpdateQOSCgroups ¶
func (_e *MockContainerManager_Expecter) UpdateQOSCgroups() *MockContainerManager_UpdateQOSCgroups_Call
UpdateQOSCgroups is a helper method to define mock.On call
func (*MockContainerManager_Expecter) Updates ¶
func (_e *MockContainerManager_Expecter) Updates() *MockContainerManager_Updates_Call
Updates is a helper method to define mock.On call
type MockContainerManager_GetAllocatableCPUs_Call ¶
MockContainerManager_GetAllocatableCPUs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllocatableCPUs'
func (*MockContainerManager_GetAllocatableCPUs_Call) Return ¶
func (_c *MockContainerManager_GetAllocatableCPUs_Call) Return(_a0 []int64) *MockContainerManager_GetAllocatableCPUs_Call
func (*MockContainerManager_GetAllocatableCPUs_Call) Run ¶
func (_c *MockContainerManager_GetAllocatableCPUs_Call) Run(run func()) *MockContainerManager_GetAllocatableCPUs_Call
func (*MockContainerManager_GetAllocatableCPUs_Call) RunAndReturn ¶
func (_c *MockContainerManager_GetAllocatableCPUs_Call) RunAndReturn(run func() []int64) *MockContainerManager_GetAllocatableCPUs_Call
type MockContainerManager_GetAllocatableDevices_Call ¶
MockContainerManager_GetAllocatableDevices_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllocatableDevices'
func (*MockContainerManager_GetAllocatableDevices_Call) Return ¶
func (_c *MockContainerManager_GetAllocatableDevices_Call) Return(_a0 []*v1.ContainerDevices) *MockContainerManager_GetAllocatableDevices_Call
func (*MockContainerManager_GetAllocatableDevices_Call) Run ¶
func (_c *MockContainerManager_GetAllocatableDevices_Call) Run(run func()) *MockContainerManager_GetAllocatableDevices_Call
func (*MockContainerManager_GetAllocatableDevices_Call) RunAndReturn ¶
func (_c *MockContainerManager_GetAllocatableDevices_Call) RunAndReturn(run func() []*v1.ContainerDevices) *MockContainerManager_GetAllocatableDevices_Call
type MockContainerManager_GetAllocatableMemory_Call ¶
MockContainerManager_GetAllocatableMemory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllocatableMemory'
func (*MockContainerManager_GetAllocatableMemory_Call) Return ¶
func (_c *MockContainerManager_GetAllocatableMemory_Call) Return(_a0 []*v1.ContainerMemory) *MockContainerManager_GetAllocatableMemory_Call
func (*MockContainerManager_GetAllocatableMemory_Call) Run ¶
func (_c *MockContainerManager_GetAllocatableMemory_Call) Run(run func()) *MockContainerManager_GetAllocatableMemory_Call
func (*MockContainerManager_GetAllocatableMemory_Call) RunAndReturn ¶
func (_c *MockContainerManager_GetAllocatableMemory_Call) RunAndReturn(run func() []*v1.ContainerMemory) *MockContainerManager_GetAllocatableMemory_Call
type MockContainerManager_GetAllocateResourcesPodAdmitHandler_Call ¶
MockContainerManager_GetAllocateResourcesPodAdmitHandler_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllocateResourcesPodAdmitHandler'
func (*MockContainerManager_GetAllocateResourcesPodAdmitHandler_Call) RunAndReturn ¶
func (_c *MockContainerManager_GetAllocateResourcesPodAdmitHandler_Call) RunAndReturn(run func() lifecycle.PodAdmitHandler) *MockContainerManager_GetAllocateResourcesPodAdmitHandler_Call
type MockContainerManager_GetCPUs_Call ¶
MockContainerManager_GetCPUs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCPUs'
func (*MockContainerManager_GetCPUs_Call) Return ¶
func (_c *MockContainerManager_GetCPUs_Call) Return(_a0 []int64) *MockContainerManager_GetCPUs_Call
func (*MockContainerManager_GetCPUs_Call) Run ¶
func (_c *MockContainerManager_GetCPUs_Call) Run(run func(podUID string, containerName string)) *MockContainerManager_GetCPUs_Call
func (*MockContainerManager_GetCPUs_Call) RunAndReturn ¶
func (_c *MockContainerManager_GetCPUs_Call) RunAndReturn(run func(string, string) []int64) *MockContainerManager_GetCPUs_Call
type MockContainerManager_GetCapacity_Call ¶
MockContainerManager_GetCapacity_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCapacity'
func (*MockContainerManager_GetCapacity_Call) Return ¶
func (_c *MockContainerManager_GetCapacity_Call) Return(_a0 corev1.ResourceList) *MockContainerManager_GetCapacity_Call
func (*MockContainerManager_GetCapacity_Call) Run ¶
func (_c *MockContainerManager_GetCapacity_Call) Run(run func(localStorageCapacityIsolation bool)) *MockContainerManager_GetCapacity_Call
func (*MockContainerManager_GetCapacity_Call) RunAndReturn ¶
func (_c *MockContainerManager_GetCapacity_Call) RunAndReturn(run func(bool) corev1.ResourceList) *MockContainerManager_GetCapacity_Call
type MockContainerManager_GetDevicePluginResourceCapacity_Call ¶
MockContainerManager_GetDevicePluginResourceCapacity_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDevicePluginResourceCapacity'
func (*MockContainerManager_GetDevicePluginResourceCapacity_Call) Return ¶
func (_c *MockContainerManager_GetDevicePluginResourceCapacity_Call) Return(_a0 corev1.ResourceList, _a1 corev1.ResourceList, _a2 []string) *MockContainerManager_GetDevicePluginResourceCapacity_Call
func (*MockContainerManager_GetDevicePluginResourceCapacity_Call) Run ¶
func (_c *MockContainerManager_GetDevicePluginResourceCapacity_Call) Run(run func()) *MockContainerManager_GetDevicePluginResourceCapacity_Call
func (*MockContainerManager_GetDevicePluginResourceCapacity_Call) RunAndReturn ¶
func (_c *MockContainerManager_GetDevicePluginResourceCapacity_Call) RunAndReturn(run func() (corev1.ResourceList, corev1.ResourceList, []string)) *MockContainerManager_GetDevicePluginResourceCapacity_Call
type MockContainerManager_GetDevices_Call ¶
MockContainerManager_GetDevices_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDevices'
func (*MockContainerManager_GetDevices_Call) Return ¶
func (_c *MockContainerManager_GetDevices_Call) Return(_a0 []*v1.ContainerDevices) *MockContainerManager_GetDevices_Call
func (*MockContainerManager_GetDevices_Call) Run ¶
func (_c *MockContainerManager_GetDevices_Call) Run(run func(podUID string, containerName string)) *MockContainerManager_GetDevices_Call
func (*MockContainerManager_GetDevices_Call) RunAndReturn ¶
func (_c *MockContainerManager_GetDevices_Call) RunAndReturn(run func(string, string) []*v1.ContainerDevices) *MockContainerManager_GetDevices_Call
type MockContainerManager_GetDynamicResources_Call ¶
MockContainerManager_GetDynamicResources_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDynamicResources'
func (*MockContainerManager_GetDynamicResources_Call) Return ¶
func (_c *MockContainerManager_GetDynamicResources_Call) Return(_a0 []*v1.DynamicResource) *MockContainerManager_GetDynamicResources_Call
func (*MockContainerManager_GetDynamicResources_Call) Run ¶
func (_c *MockContainerManager_GetDynamicResources_Call) Run(run func(pod *corev1.Pod, _a1 *corev1.Container)) *MockContainerManager_GetDynamicResources_Call
func (*MockContainerManager_GetDynamicResources_Call) RunAndReturn ¶
func (_c *MockContainerManager_GetDynamicResources_Call) RunAndReturn(run func(*corev1.Pod, *corev1.Container) []*v1.DynamicResource) *MockContainerManager_GetDynamicResources_Call
type MockContainerManager_GetHealthCheckers_Call ¶
MockContainerManager_GetHealthCheckers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetHealthCheckers'
func (*MockContainerManager_GetHealthCheckers_Call) Return ¶
func (_c *MockContainerManager_GetHealthCheckers_Call) Return(_a0 []healthz.HealthChecker) *MockContainerManager_GetHealthCheckers_Call
func (*MockContainerManager_GetHealthCheckers_Call) Run ¶
func (_c *MockContainerManager_GetHealthCheckers_Call) Run(run func()) *MockContainerManager_GetHealthCheckers_Call
func (*MockContainerManager_GetHealthCheckers_Call) RunAndReturn ¶
func (_c *MockContainerManager_GetHealthCheckers_Call) RunAndReturn(run func() []healthz.HealthChecker) *MockContainerManager_GetHealthCheckers_Call
type MockContainerManager_GetMemory_Call ¶
MockContainerManager_GetMemory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMemory'
func (*MockContainerManager_GetMemory_Call) Return ¶
func (_c *MockContainerManager_GetMemory_Call) Return(_a0 []*v1.ContainerMemory) *MockContainerManager_GetMemory_Call
func (*MockContainerManager_GetMemory_Call) Run ¶
func (_c *MockContainerManager_GetMemory_Call) Run(run func(podUID string, containerName string)) *MockContainerManager_GetMemory_Call
func (*MockContainerManager_GetMemory_Call) RunAndReturn ¶
func (_c *MockContainerManager_GetMemory_Call) RunAndReturn(run func(string, string) []*v1.ContainerMemory) *MockContainerManager_GetMemory_Call
type MockContainerManager_GetMountedSubsystems_Call ¶
MockContainerManager_GetMountedSubsystems_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMountedSubsystems'
func (*MockContainerManager_GetMountedSubsystems_Call) Return ¶
func (_c *MockContainerManager_GetMountedSubsystems_Call) Return(_a0 *cm.CgroupSubsystems) *MockContainerManager_GetMountedSubsystems_Call
func (*MockContainerManager_GetMountedSubsystems_Call) Run ¶
func (_c *MockContainerManager_GetMountedSubsystems_Call) Run(run func()) *MockContainerManager_GetMountedSubsystems_Call
func (*MockContainerManager_GetMountedSubsystems_Call) RunAndReturn ¶
func (_c *MockContainerManager_GetMountedSubsystems_Call) RunAndReturn(run func() *cm.CgroupSubsystems) *MockContainerManager_GetMountedSubsystems_Call
type MockContainerManager_GetNodeAllocatableAbsolute_Call ¶
MockContainerManager_GetNodeAllocatableAbsolute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetNodeAllocatableAbsolute'
func (*MockContainerManager_GetNodeAllocatableAbsolute_Call) Run ¶
func (_c *MockContainerManager_GetNodeAllocatableAbsolute_Call) Run(run func()) *MockContainerManager_GetNodeAllocatableAbsolute_Call
func (*MockContainerManager_GetNodeAllocatableAbsolute_Call) RunAndReturn ¶
func (_c *MockContainerManager_GetNodeAllocatableAbsolute_Call) RunAndReturn(run func() corev1.ResourceList) *MockContainerManager_GetNodeAllocatableAbsolute_Call
type MockContainerManager_GetNodeAllocatableReservation_Call ¶
MockContainerManager_GetNodeAllocatableReservation_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetNodeAllocatableReservation'
func (*MockContainerManager_GetNodeAllocatableReservation_Call) Run ¶
func (_c *MockContainerManager_GetNodeAllocatableReservation_Call) Run(run func()) *MockContainerManager_GetNodeAllocatableReservation_Call
func (*MockContainerManager_GetNodeAllocatableReservation_Call) RunAndReturn ¶
func (_c *MockContainerManager_GetNodeAllocatableReservation_Call) RunAndReturn(run func() corev1.ResourceList) *MockContainerManager_GetNodeAllocatableReservation_Call
type MockContainerManager_GetNodeConfig_Call ¶
MockContainerManager_GetNodeConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetNodeConfig'
func (*MockContainerManager_GetNodeConfig_Call) Return ¶
func (_c *MockContainerManager_GetNodeConfig_Call) Return(_a0 cm.NodeConfig) *MockContainerManager_GetNodeConfig_Call
func (*MockContainerManager_GetNodeConfig_Call) Run ¶
func (_c *MockContainerManager_GetNodeConfig_Call) Run(run func()) *MockContainerManager_GetNodeConfig_Call
func (*MockContainerManager_GetNodeConfig_Call) RunAndReturn ¶
func (_c *MockContainerManager_GetNodeConfig_Call) RunAndReturn(run func() cm.NodeConfig) *MockContainerManager_GetNodeConfig_Call
type MockContainerManager_GetPluginRegistrationHandlers_Call ¶
MockContainerManager_GetPluginRegistrationHandlers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPluginRegistrationHandlers'
func (*MockContainerManager_GetPluginRegistrationHandlers_Call) Run ¶
func (_c *MockContainerManager_GetPluginRegistrationHandlers_Call) Run(run func()) *MockContainerManager_GetPluginRegistrationHandlers_Call
func (*MockContainerManager_GetPluginRegistrationHandlers_Call) RunAndReturn ¶
func (_c *MockContainerManager_GetPluginRegistrationHandlers_Call) RunAndReturn(run func() map[string]cache.PluginHandler) *MockContainerManager_GetPluginRegistrationHandlers_Call
type MockContainerManager_GetPodCgroupRoot_Call ¶
MockContainerManager_GetPodCgroupRoot_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPodCgroupRoot'
func (*MockContainerManager_GetPodCgroupRoot_Call) Return ¶
func (_c *MockContainerManager_GetPodCgroupRoot_Call) Return(_a0 string) *MockContainerManager_GetPodCgroupRoot_Call
func (*MockContainerManager_GetPodCgroupRoot_Call) Run ¶
func (_c *MockContainerManager_GetPodCgroupRoot_Call) Run(run func()) *MockContainerManager_GetPodCgroupRoot_Call
func (*MockContainerManager_GetPodCgroupRoot_Call) RunAndReturn ¶
func (_c *MockContainerManager_GetPodCgroupRoot_Call) RunAndReturn(run func() string) *MockContainerManager_GetPodCgroupRoot_Call
type MockContainerManager_GetQOSContainersInfo_Call ¶
MockContainerManager_GetQOSContainersInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetQOSContainersInfo'
func (*MockContainerManager_GetQOSContainersInfo_Call) Run ¶
func (_c *MockContainerManager_GetQOSContainersInfo_Call) Run(run func()) *MockContainerManager_GetQOSContainersInfo_Call
func (*MockContainerManager_GetQOSContainersInfo_Call) RunAndReturn ¶
func (_c *MockContainerManager_GetQOSContainersInfo_Call) RunAndReturn(run func() cm.QOSContainersInfo) *MockContainerManager_GetQOSContainersInfo_Call
type MockContainerManager_GetResources_Call ¶
MockContainerManager_GetResources_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetResources'
func (*MockContainerManager_GetResources_Call) Return ¶
func (_c *MockContainerManager_GetResources_Call) Return(_a0 *container.RunContainerOptions, _a1 error) *MockContainerManager_GetResources_Call
func (*MockContainerManager_GetResources_Call) Run ¶
func (_c *MockContainerManager_GetResources_Call) Run(run func(ctx context.Context, pod *corev1.Pod, _a2 *corev1.Container)) *MockContainerManager_GetResources_Call
func (*MockContainerManager_GetResources_Call) RunAndReturn ¶
func (_c *MockContainerManager_GetResources_Call) RunAndReturn(run func(context.Context, *corev1.Pod, *corev1.Container) (*container.RunContainerOptions, error)) *MockContainerManager_GetResources_Call
type MockContainerManager_InternalContainerLifecycle_Call ¶
MockContainerManager_InternalContainerLifecycle_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InternalContainerLifecycle'
func (*MockContainerManager_InternalContainerLifecycle_Call) Run ¶
func (_c *MockContainerManager_InternalContainerLifecycle_Call) Run(run func()) *MockContainerManager_InternalContainerLifecycle_Call
func (*MockContainerManager_InternalContainerLifecycle_Call) RunAndReturn ¶
func (_c *MockContainerManager_InternalContainerLifecycle_Call) RunAndReturn(run func() cm.InternalContainerLifecycle) *MockContainerManager_InternalContainerLifecycle_Call
type MockContainerManager_NewPodContainerManager_Call ¶
MockContainerManager_NewPodContainerManager_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewPodContainerManager'
func (*MockContainerManager_NewPodContainerManager_Call) Run ¶
func (_c *MockContainerManager_NewPodContainerManager_Call) Run(run func()) *MockContainerManager_NewPodContainerManager_Call
func (*MockContainerManager_NewPodContainerManager_Call) RunAndReturn ¶
func (_c *MockContainerManager_NewPodContainerManager_Call) RunAndReturn(run func() cm.PodContainerManager) *MockContainerManager_NewPodContainerManager_Call
type MockContainerManager_PodMightNeedToUnprepareResources_Call ¶
MockContainerManager_PodMightNeedToUnprepareResources_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PodMightNeedToUnprepareResources'
func (*MockContainerManager_PodMightNeedToUnprepareResources_Call) Run ¶
func (_c *MockContainerManager_PodMightNeedToUnprepareResources_Call) Run(run func(UID types.UID)) *MockContainerManager_PodMightNeedToUnprepareResources_Call
func (*MockContainerManager_PodMightNeedToUnprepareResources_Call) RunAndReturn ¶
func (_c *MockContainerManager_PodMightNeedToUnprepareResources_Call) RunAndReturn(run func(types.UID) bool) *MockContainerManager_PodMightNeedToUnprepareResources_Call
type MockContainerManager_PrepareDynamicResources_Call ¶
MockContainerManager_PrepareDynamicResources_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PrepareDynamicResources'
func (*MockContainerManager_PrepareDynamicResources_Call) Return ¶
func (_c *MockContainerManager_PrepareDynamicResources_Call) Return(_a0 error) *MockContainerManager_PrepareDynamicResources_Call
func (*MockContainerManager_PrepareDynamicResources_Call) Run ¶
func (_c *MockContainerManager_PrepareDynamicResources_Call) Run(run func(_a0 context.Context, _a1 *corev1.Pod)) *MockContainerManager_PrepareDynamicResources_Call
func (*MockContainerManager_PrepareDynamicResources_Call) RunAndReturn ¶
func (_c *MockContainerManager_PrepareDynamicResources_Call) RunAndReturn(run func(context.Context, *corev1.Pod) error) *MockContainerManager_PrepareDynamicResources_Call
type MockContainerManager_ShouldResetExtendedResourceCapacity_Call ¶
MockContainerManager_ShouldResetExtendedResourceCapacity_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ShouldResetExtendedResourceCapacity'
func (*MockContainerManager_ShouldResetExtendedResourceCapacity_Call) RunAndReturn ¶
func (_c *MockContainerManager_ShouldResetExtendedResourceCapacity_Call) RunAndReturn(run func() bool) *MockContainerManager_ShouldResetExtendedResourceCapacity_Call
type MockContainerManager_Start_Call ¶
MockContainerManager_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'
func (*MockContainerManager_Start_Call) Return ¶
func (_c *MockContainerManager_Start_Call) Return(_a0 error) *MockContainerManager_Start_Call
func (*MockContainerManager_Start_Call) Run ¶
func (_c *MockContainerManager_Start_Call) Run(run func(_a0 context.Context, _a1 *corev1.Node, _a2 cm.ActivePodsFunc, _a3 cm.GetNodeFunc, _a4 config.SourcesReady, _a5 status.PodStatusProvider, _a6 cri.RuntimeService, _a7 bool)) *MockContainerManager_Start_Call
func (*MockContainerManager_Start_Call) RunAndReturn ¶
func (_c *MockContainerManager_Start_Call) RunAndReturn(run func(context.Context, *corev1.Node, cm.ActivePodsFunc, cm.GetNodeFunc, config.SourcesReady, status.PodStatusProvider, cri.RuntimeService, bool) error) *MockContainerManager_Start_Call
type MockContainerManager_Status_Call ¶
MockContainerManager_Status_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Status'
func (*MockContainerManager_Status_Call) Return ¶
func (_c *MockContainerManager_Status_Call) Return(_a0 cm.Status) *MockContainerManager_Status_Call
func (*MockContainerManager_Status_Call) Run ¶
func (_c *MockContainerManager_Status_Call) Run(run func()) *MockContainerManager_Status_Call
func (*MockContainerManager_Status_Call) RunAndReturn ¶
func (_c *MockContainerManager_Status_Call) RunAndReturn(run func() cm.Status) *MockContainerManager_Status_Call
type MockContainerManager_SystemCgroupsLimit_Call ¶
MockContainerManager_SystemCgroupsLimit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SystemCgroupsLimit'
func (*MockContainerManager_SystemCgroupsLimit_Call) Return ¶
func (_c *MockContainerManager_SystemCgroupsLimit_Call) Return(_a0 corev1.ResourceList) *MockContainerManager_SystemCgroupsLimit_Call
func (*MockContainerManager_SystemCgroupsLimit_Call) Run ¶
func (_c *MockContainerManager_SystemCgroupsLimit_Call) Run(run func()) *MockContainerManager_SystemCgroupsLimit_Call
func (*MockContainerManager_SystemCgroupsLimit_Call) RunAndReturn ¶
func (_c *MockContainerManager_SystemCgroupsLimit_Call) RunAndReturn(run func() corev1.ResourceList) *MockContainerManager_SystemCgroupsLimit_Call
type MockContainerManager_UnprepareDynamicResources_Call ¶
MockContainerManager_UnprepareDynamicResources_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UnprepareDynamicResources'
func (*MockContainerManager_UnprepareDynamicResources_Call) Run ¶
func (_c *MockContainerManager_UnprepareDynamicResources_Call) Run(run func(_a0 context.Context, _a1 *corev1.Pod)) *MockContainerManager_UnprepareDynamicResources_Call
func (*MockContainerManager_UnprepareDynamicResources_Call) RunAndReturn ¶
func (_c *MockContainerManager_UnprepareDynamicResources_Call) RunAndReturn(run func(context.Context, *corev1.Pod) error) *MockContainerManager_UnprepareDynamicResources_Call
type MockContainerManager_UpdateAllocatedDevices_Call ¶
MockContainerManager_UpdateAllocatedDevices_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateAllocatedDevices'
func (*MockContainerManager_UpdateAllocatedDevices_Call) Run ¶
func (_c *MockContainerManager_UpdateAllocatedDevices_Call) Run(run func()) *MockContainerManager_UpdateAllocatedDevices_Call
func (*MockContainerManager_UpdateAllocatedDevices_Call) RunAndReturn ¶
func (_c *MockContainerManager_UpdateAllocatedDevices_Call) RunAndReturn(run func()) *MockContainerManager_UpdateAllocatedDevices_Call
type MockContainerManager_UpdateAllocatedResourcesStatus_Call ¶
MockContainerManager_UpdateAllocatedResourcesStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateAllocatedResourcesStatus'
func (*MockContainerManager_UpdateAllocatedResourcesStatus_Call) Run ¶
func (_c *MockContainerManager_UpdateAllocatedResourcesStatus_Call) Run(run func(pod *corev1.Pod, _a1 *corev1.PodStatus)) *MockContainerManager_UpdateAllocatedResourcesStatus_Call
func (*MockContainerManager_UpdateAllocatedResourcesStatus_Call) RunAndReturn ¶
func (_c *MockContainerManager_UpdateAllocatedResourcesStatus_Call) RunAndReturn(run func(*corev1.Pod, *corev1.PodStatus)) *MockContainerManager_UpdateAllocatedResourcesStatus_Call
type MockContainerManager_UpdatePluginResources_Call ¶
MockContainerManager_UpdatePluginResources_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdatePluginResources'
func (*MockContainerManager_UpdatePluginResources_Call) Return ¶
func (_c *MockContainerManager_UpdatePluginResources_Call) Return(_a0 error) *MockContainerManager_UpdatePluginResources_Call
func (*MockContainerManager_UpdatePluginResources_Call) Run ¶
func (_c *MockContainerManager_UpdatePluginResources_Call) Run(run func(_a0 *framework.NodeInfo, _a1 *lifecycle.PodAdmitAttributes)) *MockContainerManager_UpdatePluginResources_Call
func (*MockContainerManager_UpdatePluginResources_Call) RunAndReturn ¶
func (_c *MockContainerManager_UpdatePluginResources_Call) RunAndReturn(run func(*framework.NodeInfo, *lifecycle.PodAdmitAttributes) error) *MockContainerManager_UpdatePluginResources_Call
type MockContainerManager_UpdateQOSCgroups_Call ¶
MockContainerManager_UpdateQOSCgroups_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateQOSCgroups'
func (*MockContainerManager_UpdateQOSCgroups_Call) Return ¶
func (_c *MockContainerManager_UpdateQOSCgroups_Call) Return(_a0 error) *MockContainerManager_UpdateQOSCgroups_Call
func (*MockContainerManager_UpdateQOSCgroups_Call) Run ¶
func (_c *MockContainerManager_UpdateQOSCgroups_Call) Run(run func()) *MockContainerManager_UpdateQOSCgroups_Call
func (*MockContainerManager_UpdateQOSCgroups_Call) RunAndReturn ¶
func (_c *MockContainerManager_UpdateQOSCgroups_Call) RunAndReturn(run func() error) *MockContainerManager_UpdateQOSCgroups_Call
type MockContainerManager_Updates_Call ¶
MockContainerManager_Updates_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Updates'
func (*MockContainerManager_Updates_Call) Return ¶
func (_c *MockContainerManager_Updates_Call) Return(_a0 <-chan resourceupdates.Update) *MockContainerManager_Updates_Call
func (*MockContainerManager_Updates_Call) Run ¶
func (_c *MockContainerManager_Updates_Call) Run(run func()) *MockContainerManager_Updates_Call
func (*MockContainerManager_Updates_Call) RunAndReturn ¶
func (_c *MockContainerManager_Updates_Call) RunAndReturn(run func() <-chan resourceupdates.Update) *MockContainerManager_Updates_Call
type MockPodContainerManager ¶
MockPodContainerManager is an autogenerated mock type for the PodContainerManager type
func NewMockPodContainerManager ¶
func NewMockPodContainerManager(t interface { mock.TestingT Cleanup(func()) }) *MockPodContainerManager
NewMockPodContainerManager creates a new instance of MockPodContainerManager. 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 (*MockPodContainerManager) Destroy ¶
func (_m *MockPodContainerManager) Destroy(name cm.CgroupName) error
Destroy provides a mock function with given fields: name
func (*MockPodContainerManager) EXPECT ¶
func (_m *MockPodContainerManager) EXPECT() *MockPodContainerManager_Expecter
func (*MockPodContainerManager) EnsureExists ¶
func (_m *MockPodContainerManager) EnsureExists(_a0 *v1.Pod) error
EnsureExists provides a mock function with given fields: _a0
func (*MockPodContainerManager) Exists ¶
func (_m *MockPodContainerManager) Exists(_a0 *v1.Pod) bool
Exists provides a mock function with given fields: _a0
func (*MockPodContainerManager) GetAllPodsFromCgroups ¶
func (_m *MockPodContainerManager) GetAllPodsFromCgroups() (map[types.UID]cm.CgroupName, error)
GetAllPodsFromCgroups provides a mock function with given fields:
func (*MockPodContainerManager) GetPodCgroupConfig ¶
func (_m *MockPodContainerManager) GetPodCgroupConfig(pod *v1.Pod, resource v1.ResourceName) (*cm.ResourceConfig, error)
GetPodCgroupConfig provides a mock function with given fields: pod, resource
func (*MockPodContainerManager) GetPodCgroupMemoryUsage ¶
func (_m *MockPodContainerManager) GetPodCgroupMemoryUsage(pod *v1.Pod) (uint64, error)
GetPodCgroupMemoryUsage provides a mock function with given fields: pod
func (*MockPodContainerManager) GetPodContainerName ¶
func (_m *MockPodContainerManager) GetPodContainerName(_a0 *v1.Pod) (cm.CgroupName, string)
GetPodContainerName provides a mock function with given fields: _a0
func (*MockPodContainerManager) IsPodCgroup ¶
func (_m *MockPodContainerManager) IsPodCgroup(cgroupfs string) (bool, types.UID)
IsPodCgroup provides a mock function with given fields: cgroupfs
func (*MockPodContainerManager) ReduceCPULimits ¶
func (_m *MockPodContainerManager) ReduceCPULimits(name cm.CgroupName) error
ReduceCPULimits provides a mock function with given fields: name
func (*MockPodContainerManager) SetPodCgroupConfig ¶
func (_m *MockPodContainerManager) SetPodCgroupConfig(pod *v1.Pod, resourceConfig *cm.ResourceConfig) error
SetPodCgroupConfig provides a mock function with given fields: pod, resourceConfig
type MockPodContainerManager_Destroy_Call ¶
MockPodContainerManager_Destroy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Destroy'
func (*MockPodContainerManager_Destroy_Call) Return ¶
func (_c *MockPodContainerManager_Destroy_Call) Return(_a0 error) *MockPodContainerManager_Destroy_Call
func (*MockPodContainerManager_Destroy_Call) Run ¶
func (_c *MockPodContainerManager_Destroy_Call) Run(run func(name cm.CgroupName)) *MockPodContainerManager_Destroy_Call
func (*MockPodContainerManager_Destroy_Call) RunAndReturn ¶
func (_c *MockPodContainerManager_Destroy_Call) RunAndReturn(run func(cm.CgroupName) error) *MockPodContainerManager_Destroy_Call
type MockPodContainerManager_EnsureExists_Call ¶
MockPodContainerManager_EnsureExists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EnsureExists'
func (*MockPodContainerManager_EnsureExists_Call) Return ¶
func (_c *MockPodContainerManager_EnsureExists_Call) Return(_a0 error) *MockPodContainerManager_EnsureExists_Call
func (*MockPodContainerManager_EnsureExists_Call) Run ¶
func (_c *MockPodContainerManager_EnsureExists_Call) Run(run func(_a0 *v1.Pod)) *MockPodContainerManager_EnsureExists_Call
func (*MockPodContainerManager_EnsureExists_Call) RunAndReturn ¶
func (_c *MockPodContainerManager_EnsureExists_Call) RunAndReturn(run func(*v1.Pod) error) *MockPodContainerManager_EnsureExists_Call
type MockPodContainerManager_Exists_Call ¶
MockPodContainerManager_Exists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Exists'
func (*MockPodContainerManager_Exists_Call) Return ¶
func (_c *MockPodContainerManager_Exists_Call) Return(_a0 bool) *MockPodContainerManager_Exists_Call
func (*MockPodContainerManager_Exists_Call) Run ¶
func (_c *MockPodContainerManager_Exists_Call) Run(run func(_a0 *v1.Pod)) *MockPodContainerManager_Exists_Call
func (*MockPodContainerManager_Exists_Call) RunAndReturn ¶
func (_c *MockPodContainerManager_Exists_Call) RunAndReturn(run func(*v1.Pod) bool) *MockPodContainerManager_Exists_Call
type MockPodContainerManager_Expecter ¶
type MockPodContainerManager_Expecter struct {
// contains filtered or unexported fields
}
func (*MockPodContainerManager_Expecter) Destroy ¶
func (_e *MockPodContainerManager_Expecter) Destroy(name interface{}) *MockPodContainerManager_Destroy_Call
Destroy is a helper method to define mock.On call
- name cm.CgroupName
func (*MockPodContainerManager_Expecter) EnsureExists ¶
func (_e *MockPodContainerManager_Expecter) EnsureExists(_a0 interface{}) *MockPodContainerManager_EnsureExists_Call
EnsureExists is a helper method to define mock.On call
- _a0 *v1.Pod
func (*MockPodContainerManager_Expecter) Exists ¶
func (_e *MockPodContainerManager_Expecter) Exists(_a0 interface{}) *MockPodContainerManager_Exists_Call
Exists is a helper method to define mock.On call
- _a0 *v1.Pod
func (*MockPodContainerManager_Expecter) GetAllPodsFromCgroups ¶
func (_e *MockPodContainerManager_Expecter) GetAllPodsFromCgroups() *MockPodContainerManager_GetAllPodsFromCgroups_Call
GetAllPodsFromCgroups is a helper method to define mock.On call
func (*MockPodContainerManager_Expecter) GetPodCgroupConfig ¶
func (_e *MockPodContainerManager_Expecter) GetPodCgroupConfig(pod interface{}, resource interface{}) *MockPodContainerManager_GetPodCgroupConfig_Call
GetPodCgroupConfig is a helper method to define mock.On call
- pod *v1.Pod
- resource v1.ResourceName
func (*MockPodContainerManager_Expecter) GetPodCgroupMemoryUsage ¶
func (_e *MockPodContainerManager_Expecter) GetPodCgroupMemoryUsage(pod interface{}) *MockPodContainerManager_GetPodCgroupMemoryUsage_Call
GetPodCgroupMemoryUsage is a helper method to define mock.On call
- pod *v1.Pod
func (*MockPodContainerManager_Expecter) GetPodContainerName ¶
func (_e *MockPodContainerManager_Expecter) GetPodContainerName(_a0 interface{}) *MockPodContainerManager_GetPodContainerName_Call
GetPodContainerName is a helper method to define mock.On call
- _a0 *v1.Pod
func (*MockPodContainerManager_Expecter) IsPodCgroup ¶
func (_e *MockPodContainerManager_Expecter) IsPodCgroup(cgroupfs interface{}) *MockPodContainerManager_IsPodCgroup_Call
IsPodCgroup is a helper method to define mock.On call
- cgroupfs string
func (*MockPodContainerManager_Expecter) ReduceCPULimits ¶
func (_e *MockPodContainerManager_Expecter) ReduceCPULimits(name interface{}) *MockPodContainerManager_ReduceCPULimits_Call
ReduceCPULimits is a helper method to define mock.On call
- name cm.CgroupName
func (*MockPodContainerManager_Expecter) SetPodCgroupConfig ¶
func (_e *MockPodContainerManager_Expecter) SetPodCgroupConfig(pod interface{}, resourceConfig interface{}) *MockPodContainerManager_SetPodCgroupConfig_Call
SetPodCgroupConfig is a helper method to define mock.On call
- pod *v1.Pod
- resourceConfig *cm.ResourceConfig
type MockPodContainerManager_GetAllPodsFromCgroups_Call ¶
MockPodContainerManager_GetAllPodsFromCgroups_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllPodsFromCgroups'
func (*MockPodContainerManager_GetAllPodsFromCgroups_Call) Return ¶
func (_c *MockPodContainerManager_GetAllPodsFromCgroups_Call) Return(_a0 map[types.UID]cm.CgroupName, _a1 error) *MockPodContainerManager_GetAllPodsFromCgroups_Call
func (*MockPodContainerManager_GetAllPodsFromCgroups_Call) Run ¶
func (_c *MockPodContainerManager_GetAllPodsFromCgroups_Call) Run(run func()) *MockPodContainerManager_GetAllPodsFromCgroups_Call
func (*MockPodContainerManager_GetAllPodsFromCgroups_Call) RunAndReturn ¶
func (_c *MockPodContainerManager_GetAllPodsFromCgroups_Call) RunAndReturn(run func() (map[types.UID]cm.CgroupName, error)) *MockPodContainerManager_GetAllPodsFromCgroups_Call
type MockPodContainerManager_GetPodCgroupConfig_Call ¶
MockPodContainerManager_GetPodCgroupConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPodCgroupConfig'
func (*MockPodContainerManager_GetPodCgroupConfig_Call) Return ¶
func (_c *MockPodContainerManager_GetPodCgroupConfig_Call) Return(_a0 *cm.ResourceConfig, _a1 error) *MockPodContainerManager_GetPodCgroupConfig_Call
func (*MockPodContainerManager_GetPodCgroupConfig_Call) Run ¶
func (_c *MockPodContainerManager_GetPodCgroupConfig_Call) Run(run func(pod *v1.Pod, resource v1.ResourceName)) *MockPodContainerManager_GetPodCgroupConfig_Call
func (*MockPodContainerManager_GetPodCgroupConfig_Call) RunAndReturn ¶
func (_c *MockPodContainerManager_GetPodCgroupConfig_Call) RunAndReturn(run func(*v1.Pod, v1.ResourceName) (*cm.ResourceConfig, error)) *MockPodContainerManager_GetPodCgroupConfig_Call
type MockPodContainerManager_GetPodCgroupMemoryUsage_Call ¶
MockPodContainerManager_GetPodCgroupMemoryUsage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPodCgroupMemoryUsage'
func (*MockPodContainerManager_GetPodCgroupMemoryUsage_Call) Return ¶
func (_c *MockPodContainerManager_GetPodCgroupMemoryUsage_Call) Return(_a0 uint64, _a1 error) *MockPodContainerManager_GetPodCgroupMemoryUsage_Call
func (*MockPodContainerManager_GetPodCgroupMemoryUsage_Call) Run ¶
func (_c *MockPodContainerManager_GetPodCgroupMemoryUsage_Call) Run(run func(pod *v1.Pod)) *MockPodContainerManager_GetPodCgroupMemoryUsage_Call
func (*MockPodContainerManager_GetPodCgroupMemoryUsage_Call) RunAndReturn ¶
func (_c *MockPodContainerManager_GetPodCgroupMemoryUsage_Call) RunAndReturn(run func(*v1.Pod) (uint64, error)) *MockPodContainerManager_GetPodCgroupMemoryUsage_Call
type MockPodContainerManager_GetPodContainerName_Call ¶
MockPodContainerManager_GetPodContainerName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPodContainerName'
func (*MockPodContainerManager_GetPodContainerName_Call) Return ¶
func (_c *MockPodContainerManager_GetPodContainerName_Call) Return(_a0 cm.CgroupName, _a1 string) *MockPodContainerManager_GetPodContainerName_Call
func (*MockPodContainerManager_GetPodContainerName_Call) Run ¶
func (_c *MockPodContainerManager_GetPodContainerName_Call) Run(run func(_a0 *v1.Pod)) *MockPodContainerManager_GetPodContainerName_Call
func (*MockPodContainerManager_GetPodContainerName_Call) RunAndReturn ¶
func (_c *MockPodContainerManager_GetPodContainerName_Call) RunAndReturn(run func(*v1.Pod) (cm.CgroupName, string)) *MockPodContainerManager_GetPodContainerName_Call
type MockPodContainerManager_IsPodCgroup_Call ¶
MockPodContainerManager_IsPodCgroup_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsPodCgroup'
func (*MockPodContainerManager_IsPodCgroup_Call) Return ¶
func (_c *MockPodContainerManager_IsPodCgroup_Call) Return(_a0 bool, _a1 types.UID) *MockPodContainerManager_IsPodCgroup_Call
func (*MockPodContainerManager_IsPodCgroup_Call) Run ¶
func (_c *MockPodContainerManager_IsPodCgroup_Call) Run(run func(cgroupfs string)) *MockPodContainerManager_IsPodCgroup_Call
func (*MockPodContainerManager_IsPodCgroup_Call) RunAndReturn ¶
func (_c *MockPodContainerManager_IsPodCgroup_Call) RunAndReturn(run func(string) (bool, types.UID)) *MockPodContainerManager_IsPodCgroup_Call
type MockPodContainerManager_ReduceCPULimits_Call ¶
MockPodContainerManager_ReduceCPULimits_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReduceCPULimits'
func (*MockPodContainerManager_ReduceCPULimits_Call) Return ¶
func (_c *MockPodContainerManager_ReduceCPULimits_Call) Return(_a0 error) *MockPodContainerManager_ReduceCPULimits_Call
func (*MockPodContainerManager_ReduceCPULimits_Call) Run ¶
func (_c *MockPodContainerManager_ReduceCPULimits_Call) Run(run func(name cm.CgroupName)) *MockPodContainerManager_ReduceCPULimits_Call
func (*MockPodContainerManager_ReduceCPULimits_Call) RunAndReturn ¶
func (_c *MockPodContainerManager_ReduceCPULimits_Call) RunAndReturn(run func(cm.CgroupName) error) *MockPodContainerManager_ReduceCPULimits_Call
type MockPodContainerManager_SetPodCgroupConfig_Call ¶
MockPodContainerManager_SetPodCgroupConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetPodCgroupConfig'
func (*MockPodContainerManager_SetPodCgroupConfig_Call) Return ¶
func (_c *MockPodContainerManager_SetPodCgroupConfig_Call) Return(_a0 error) *MockPodContainerManager_SetPodCgroupConfig_Call
func (*MockPodContainerManager_SetPodCgroupConfig_Call) Run ¶
func (_c *MockPodContainerManager_SetPodCgroupConfig_Call) Run(run func(pod *v1.Pod, resourceConfig *cm.ResourceConfig)) *MockPodContainerManager_SetPodCgroupConfig_Call
func (*MockPodContainerManager_SetPodCgroupConfig_Call) RunAndReturn ¶
func (_c *MockPodContainerManager_SetPodCgroupConfig_Call) RunAndReturn(run func(*v1.Pod, *cm.ResourceConfig) error) *MockPodContainerManager_SetPodCgroupConfig_Call