testing

package
v1.33.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockContainerManager

type MockContainerManager struct {
	mock.Mock
}

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 (*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

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

func (_m *MockContainerManager) PrepareDynamicResources(_a0 context.Context, _a1 *corev1.Pod) error

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

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

GetAllocatableCPUs is a helper method to define mock.On call

func (*MockContainerManager_Expecter) GetAllocatableDevices

GetAllocatableDevices is a helper method to define mock.On call

func (*MockContainerManager_Expecter) GetAllocatableMemory

GetAllocatableMemory is a helper method to define mock.On call

func (*MockContainerManager_Expecter) GetAllocateResourcesPodAdmitHandler

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

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

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

GetMountedSubsystems is a helper method to define mock.On call

func (*MockContainerManager_Expecter) GetNodeAllocatableAbsolute

GetNodeAllocatableAbsolute is a helper method to define mock.On call

func (*MockContainerManager_Expecter) GetNodeAllocatableReservation

GetNodeAllocatableReservation is a helper method to define mock.On call

func (*MockContainerManager_Expecter) GetNodeConfig

GetNodeConfig is a helper method to define mock.On call

func (*MockContainerManager_Expecter) GetPluginRegistrationHandlers

GetPluginRegistrationHandlers is a helper method to define mock.On call

func (*MockContainerManager_Expecter) GetPodCgroupRoot

GetPodCgroupRoot is a helper method to define mock.On call

func (*MockContainerManager_Expecter) GetQOSContainersInfo

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

InternalContainerLifecycle is a helper method to define mock.On call

func (*MockContainerManager_Expecter) NewPodContainerManager

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

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

Status is a helper method to define mock.On call

func (*MockContainerManager_Expecter) SystemCgroupsLimit

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

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

UpdateQOSCgroups is a helper method to define mock.On call

func (*MockContainerManager_Expecter) Updates

Updates is a helper method to define mock.On call

type MockContainerManager_GetAllocatableCPUs_Call

type MockContainerManager_GetAllocatableCPUs_Call struct {
	*mock.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 (*MockContainerManager_GetAllocatableCPUs_Call) Run

func (*MockContainerManager_GetAllocatableCPUs_Call) RunAndReturn

type MockContainerManager_GetAllocatableDevices_Call

type MockContainerManager_GetAllocatableDevices_Call struct {
	*mock.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 (*MockContainerManager_GetAllocatableDevices_Call) Run

func (*MockContainerManager_GetAllocatableDevices_Call) RunAndReturn

type MockContainerManager_GetAllocatableMemory_Call

type MockContainerManager_GetAllocatableMemory_Call struct {
	*mock.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 (*MockContainerManager_GetAllocatableMemory_Call) Run

func (*MockContainerManager_GetAllocatableMemory_Call) RunAndReturn

type MockContainerManager_GetAllocateResourcesPodAdmitHandler_Call

type MockContainerManager_GetAllocateResourcesPodAdmitHandler_Call struct {
	*mock.Call
}

MockContainerManager_GetAllocateResourcesPodAdmitHandler_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllocateResourcesPodAdmitHandler'

func (*MockContainerManager_GetAllocateResourcesPodAdmitHandler_Call) Run

func (*MockContainerManager_GetAllocateResourcesPodAdmitHandler_Call) RunAndReturn

type MockContainerManager_GetCPUs_Call

type MockContainerManager_GetCPUs_Call struct {
	*mock.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 (*MockContainerManager_GetCPUs_Call) Run

func (_c *MockContainerManager_GetCPUs_Call) Run(run func(podUID string, containerName string)) *MockContainerManager_GetCPUs_Call

func (*MockContainerManager_GetCPUs_Call) RunAndReturn

type MockContainerManager_GetCapacity_Call

type MockContainerManager_GetCapacity_Call struct {
	*mock.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 (*MockContainerManager_GetCapacity_Call) Run

func (_c *MockContainerManager_GetCapacity_Call) Run(run func(localStorageCapacityIsolation bool)) *MockContainerManager_GetCapacity_Call

func (*MockContainerManager_GetCapacity_Call) RunAndReturn

type MockContainerManager_GetDevicePluginResourceCapacity_Call

type MockContainerManager_GetDevicePluginResourceCapacity_Call struct {
	*mock.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 (*MockContainerManager_GetDevicePluginResourceCapacity_Call) Run

func (*MockContainerManager_GetDevicePluginResourceCapacity_Call) RunAndReturn

type MockContainerManager_GetDevices_Call

type MockContainerManager_GetDevices_Call struct {
	*mock.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 (*MockContainerManager_GetDevices_Call) Run

func (*MockContainerManager_GetDevices_Call) RunAndReturn

type MockContainerManager_GetDynamicResources_Call

type MockContainerManager_GetDynamicResources_Call struct {
	*mock.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 (*MockContainerManager_GetDynamicResources_Call) Run

func (*MockContainerManager_GetDynamicResources_Call) RunAndReturn

type MockContainerManager_GetHealthCheckers_Call

type MockContainerManager_GetHealthCheckers_Call struct {
	*mock.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 (*MockContainerManager_GetHealthCheckers_Call) Run

func (*MockContainerManager_GetHealthCheckers_Call) RunAndReturn

type MockContainerManager_GetMemory_Call

type MockContainerManager_GetMemory_Call struct {
	*mock.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 (*MockContainerManager_GetMemory_Call) Run

func (*MockContainerManager_GetMemory_Call) RunAndReturn

type MockContainerManager_GetMountedSubsystems_Call

type MockContainerManager_GetMountedSubsystems_Call struct {
	*mock.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 (*MockContainerManager_GetMountedSubsystems_Call) Run

func (*MockContainerManager_GetMountedSubsystems_Call) RunAndReturn

type MockContainerManager_GetNodeAllocatableAbsolute_Call

type MockContainerManager_GetNodeAllocatableAbsolute_Call struct {
	*mock.Call
}

MockContainerManager_GetNodeAllocatableAbsolute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetNodeAllocatableAbsolute'

func (*MockContainerManager_GetNodeAllocatableAbsolute_Call) Return

func (*MockContainerManager_GetNodeAllocatableAbsolute_Call) Run

func (*MockContainerManager_GetNodeAllocatableAbsolute_Call) RunAndReturn

type MockContainerManager_GetNodeAllocatableReservation_Call

type MockContainerManager_GetNodeAllocatableReservation_Call struct {
	*mock.Call
}

MockContainerManager_GetNodeAllocatableReservation_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetNodeAllocatableReservation'

func (*MockContainerManager_GetNodeAllocatableReservation_Call) Return

func (*MockContainerManager_GetNodeAllocatableReservation_Call) Run

func (*MockContainerManager_GetNodeAllocatableReservation_Call) RunAndReturn

type MockContainerManager_GetNodeConfig_Call

type MockContainerManager_GetNodeConfig_Call struct {
	*mock.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 (*MockContainerManager_GetNodeConfig_Call) Run

func (*MockContainerManager_GetNodeConfig_Call) RunAndReturn

type MockContainerManager_GetPluginRegistrationHandlers_Call

type MockContainerManager_GetPluginRegistrationHandlers_Call struct {
	*mock.Call
}

MockContainerManager_GetPluginRegistrationHandlers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPluginRegistrationHandlers'

func (*MockContainerManager_GetPluginRegistrationHandlers_Call) Return

func (*MockContainerManager_GetPluginRegistrationHandlers_Call) Run

func (*MockContainerManager_GetPluginRegistrationHandlers_Call) RunAndReturn

type MockContainerManager_GetPodCgroupRoot_Call

type MockContainerManager_GetPodCgroupRoot_Call struct {
	*mock.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 (*MockContainerManager_GetPodCgroupRoot_Call) Run

func (*MockContainerManager_GetPodCgroupRoot_Call) RunAndReturn

type MockContainerManager_GetQOSContainersInfo_Call

type MockContainerManager_GetQOSContainersInfo_Call struct {
	*mock.Call
}

MockContainerManager_GetQOSContainersInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetQOSContainersInfo'

func (*MockContainerManager_GetQOSContainersInfo_Call) Return

func (*MockContainerManager_GetQOSContainersInfo_Call) Run

func (*MockContainerManager_GetQOSContainersInfo_Call) RunAndReturn

type MockContainerManager_GetResources_Call

type MockContainerManager_GetResources_Call struct {
	*mock.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 (*MockContainerManager_GetResources_Call) Run

type MockContainerManager_InternalContainerLifecycle_Call

type MockContainerManager_InternalContainerLifecycle_Call struct {
	*mock.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 (*MockContainerManager_InternalContainerLifecycle_Call) RunAndReturn

type MockContainerManager_NewPodContainerManager_Call

type MockContainerManager_NewPodContainerManager_Call struct {
	*mock.Call
}

MockContainerManager_NewPodContainerManager_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewPodContainerManager'

func (*MockContainerManager_NewPodContainerManager_Call) Return

func (*MockContainerManager_NewPodContainerManager_Call) Run

func (*MockContainerManager_NewPodContainerManager_Call) RunAndReturn

type MockContainerManager_PodMightNeedToUnprepareResources_Call

type MockContainerManager_PodMightNeedToUnprepareResources_Call struct {
	*mock.Call
}

MockContainerManager_PodMightNeedToUnprepareResources_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PodMightNeedToUnprepareResources'

func (*MockContainerManager_PodMightNeedToUnprepareResources_Call) Return

func (*MockContainerManager_PodMightNeedToUnprepareResources_Call) Run

func (*MockContainerManager_PodMightNeedToUnprepareResources_Call) RunAndReturn

type MockContainerManager_PrepareDynamicResources_Call

type MockContainerManager_PrepareDynamicResources_Call struct {
	*mock.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 (*MockContainerManager_PrepareDynamicResources_Call) Run

func (*MockContainerManager_PrepareDynamicResources_Call) RunAndReturn

type MockContainerManager_ShouldResetExtendedResourceCapacity_Call

type MockContainerManager_ShouldResetExtendedResourceCapacity_Call struct {
	*mock.Call
}

MockContainerManager_ShouldResetExtendedResourceCapacity_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ShouldResetExtendedResourceCapacity'

func (*MockContainerManager_ShouldResetExtendedResourceCapacity_Call) Return

func (*MockContainerManager_ShouldResetExtendedResourceCapacity_Call) Run

func (*MockContainerManager_ShouldResetExtendedResourceCapacity_Call) RunAndReturn

type MockContainerManager_Start_Call

type MockContainerManager_Start_Call struct {
	*mock.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 (*MockContainerManager_Start_Call) Run

type MockContainerManager_Status_Call

type MockContainerManager_Status_Call struct {
	*mock.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 (*MockContainerManager_Status_Call) Run

func (*MockContainerManager_Status_Call) RunAndReturn

type MockContainerManager_SystemCgroupsLimit_Call

type MockContainerManager_SystemCgroupsLimit_Call struct {
	*mock.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 (*MockContainerManager_SystemCgroupsLimit_Call) Run

func (*MockContainerManager_SystemCgroupsLimit_Call) RunAndReturn

type MockContainerManager_UnprepareDynamicResources_Call

type MockContainerManager_UnprepareDynamicResources_Call struct {
	*mock.Call
}

MockContainerManager_UnprepareDynamicResources_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UnprepareDynamicResources'

func (*MockContainerManager_UnprepareDynamicResources_Call) Return

func (*MockContainerManager_UnprepareDynamicResources_Call) Run

func (*MockContainerManager_UnprepareDynamicResources_Call) RunAndReturn

type MockContainerManager_UpdateAllocatedDevices_Call

type MockContainerManager_UpdateAllocatedDevices_Call struct {
	*mock.Call
}

MockContainerManager_UpdateAllocatedDevices_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateAllocatedDevices'

func (*MockContainerManager_UpdateAllocatedDevices_Call) Return

func (*MockContainerManager_UpdateAllocatedDevices_Call) Run

func (*MockContainerManager_UpdateAllocatedDevices_Call) RunAndReturn

type MockContainerManager_UpdateAllocatedResourcesStatus_Call

type MockContainerManager_UpdateAllocatedResourcesStatus_Call struct {
	*mock.Call
}

MockContainerManager_UpdateAllocatedResourcesStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateAllocatedResourcesStatus'

func (*MockContainerManager_UpdateAllocatedResourcesStatus_Call) Return

func (*MockContainerManager_UpdateAllocatedResourcesStatus_Call) Run

func (*MockContainerManager_UpdateAllocatedResourcesStatus_Call) RunAndReturn

type MockContainerManager_UpdatePluginResources_Call

type MockContainerManager_UpdatePluginResources_Call struct {
	*mock.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 (*MockContainerManager_UpdatePluginResources_Call) Run

func (*MockContainerManager_UpdatePluginResources_Call) RunAndReturn

type MockContainerManager_UpdateQOSCgroups_Call

type MockContainerManager_UpdateQOSCgroups_Call struct {
	*mock.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 (*MockContainerManager_UpdateQOSCgroups_Call) Run

func (*MockContainerManager_UpdateQOSCgroups_Call) RunAndReturn

type MockContainerManager_Updates_Call

type MockContainerManager_Updates_Call struct {
	*mock.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 (*MockContainerManager_Updates_Call) Run

func (*MockContainerManager_Updates_Call) RunAndReturn

type MockPodContainerManager

type MockPodContainerManager struct {
	mock.Mock
}

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 (*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

type MockPodContainerManager_Destroy_Call struct {
	*mock.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 (*MockPodContainerManager_Destroy_Call) Run

func (*MockPodContainerManager_Destroy_Call) RunAndReturn

type MockPodContainerManager_EnsureExists_Call

type MockPodContainerManager_EnsureExists_Call struct {
	*mock.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 (*MockPodContainerManager_EnsureExists_Call) Run

func (*MockPodContainerManager_EnsureExists_Call) RunAndReturn

type MockPodContainerManager_Exists_Call

type MockPodContainerManager_Exists_Call struct {
	*mock.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 (*MockPodContainerManager_Exists_Call) Run

func (*MockPodContainerManager_Exists_Call) RunAndReturn

type MockPodContainerManager_Expecter

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

func (*MockPodContainerManager_Expecter) Destroy

Destroy is a helper method to define mock.On call

  • name cm.CgroupName

func (*MockPodContainerManager_Expecter) EnsureExists

EnsureExists is a helper method to define mock.On call

  • _a0 *v1.Pod

func (*MockPodContainerManager_Expecter) Exists

Exists is a helper method to define mock.On call

  • _a0 *v1.Pod

func (*MockPodContainerManager_Expecter) GetAllPodsFromCgroups

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

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

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

type MockPodContainerManager_GetAllPodsFromCgroups_Call struct {
	*mock.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 (*MockPodContainerManager_GetAllPodsFromCgroups_Call) Run

func (*MockPodContainerManager_GetAllPodsFromCgroups_Call) RunAndReturn

type MockPodContainerManager_GetPodCgroupConfig_Call

type MockPodContainerManager_GetPodCgroupConfig_Call struct {
	*mock.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 (*MockPodContainerManager_GetPodCgroupConfig_Call) Run

func (*MockPodContainerManager_GetPodCgroupConfig_Call) RunAndReturn

type MockPodContainerManager_GetPodCgroupMemoryUsage_Call

type MockPodContainerManager_GetPodCgroupMemoryUsage_Call struct {
	*mock.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 (*MockPodContainerManager_GetPodCgroupMemoryUsage_Call) Run

func (*MockPodContainerManager_GetPodCgroupMemoryUsage_Call) RunAndReturn

type MockPodContainerManager_GetPodContainerName_Call

type MockPodContainerManager_GetPodContainerName_Call struct {
	*mock.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 (*MockPodContainerManager_GetPodContainerName_Call) Run

func (*MockPodContainerManager_GetPodContainerName_Call) RunAndReturn

type MockPodContainerManager_IsPodCgroup_Call

type MockPodContainerManager_IsPodCgroup_Call struct {
	*mock.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 (*MockPodContainerManager_IsPodCgroup_Call) Run

func (*MockPodContainerManager_IsPodCgroup_Call) RunAndReturn

type MockPodContainerManager_ReduceCPULimits_Call

type MockPodContainerManager_ReduceCPULimits_Call struct {
	*mock.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 (*MockPodContainerManager_ReduceCPULimits_Call) Run

func (*MockPodContainerManager_ReduceCPULimits_Call) RunAndReturn

type MockPodContainerManager_SetPodCgroupConfig_Call

type MockPodContainerManager_SetPodCgroupConfig_Call struct {
	*mock.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 (*MockPodContainerManager_SetPodCgroupConfig_Call) Run

func (*MockPodContainerManager_SetPodCgroupConfig_Call) RunAndReturn

Jump to

Keyboard shortcuts

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