Documentation ¶
Index ¶
- type MockUnitFrameworkHandle
- func (gs *MockUnitFrameworkHandle) DisablePreemption() bool
- func (gs *MockUnitFrameworkHandle) EventRecorder() events.EventRecorder
- func (mfh *MockUnitFrameworkHandle) FindStore(storeName commonstore.StoreName) commonstore.Store
- func (gs *MockUnitFrameworkHandle) GetMaxWaitingDeletionDuration() time.Duration
- func (gs *MockUnitFrameworkHandle) GetNodeInfo(nodeName string) framework.NodeInfo
- func (gs *MockUnitFrameworkHandle) GetUnitStatus(unitKey string) unitstatus.UnitStatus
- func (gs *MockUnitFrameworkHandle) IsAssumedPod(pod *v1.Pod) (bool, error)
- func (gs *MockUnitFrameworkHandle) IsCachedPod(pod *v1.Pod) (bool, error)
- func (gs *MockUnitFrameworkHandle) PvcLister() corelister.PersistentVolumeClaimLister
- func (gs *MockUnitFrameworkHandle) SchedulerName() string
- func (gs *MockUnitFrameworkHandle) SubCluster() string
- func (gs *MockUnitFrameworkHandle) SwitchType() framework.SwitchType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockUnitFrameworkHandle ¶
type MockUnitFrameworkHandle struct { Cache cache.SchedulerCache Snapshot *cache.Snapshot }
func NewMockUnitFrameworkHandle ¶
func NewMockUnitFrameworkHandle( cache cache.SchedulerCache, snapshot *cache.Snapshot, ) *MockUnitFrameworkHandle
func (*MockUnitFrameworkHandle) DisablePreemption ¶
func (gs *MockUnitFrameworkHandle) DisablePreemption() bool
func (*MockUnitFrameworkHandle) EventRecorder ¶
func (gs *MockUnitFrameworkHandle) EventRecorder() events.EventRecorder
func (*MockUnitFrameworkHandle) FindStore ¶
func (mfh *MockUnitFrameworkHandle) FindStore(storeName commonstore.StoreName) commonstore.Store
func (*MockUnitFrameworkHandle) GetMaxWaitingDeletionDuration ¶
func (gs *MockUnitFrameworkHandle) GetMaxWaitingDeletionDuration() time.Duration
func (*MockUnitFrameworkHandle) GetNodeInfo ¶
func (gs *MockUnitFrameworkHandle) GetNodeInfo(nodeName string) framework.NodeInfo
func (*MockUnitFrameworkHandle) GetUnitStatus ¶
func (gs *MockUnitFrameworkHandle) GetUnitStatus(unitKey string) unitstatus.UnitStatus
func (*MockUnitFrameworkHandle) IsAssumedPod ¶
func (gs *MockUnitFrameworkHandle) IsAssumedPod(pod *v1.Pod) (bool, error)
func (*MockUnitFrameworkHandle) IsCachedPod ¶
func (gs *MockUnitFrameworkHandle) IsCachedPod(pod *v1.Pod) (bool, error)
func (*MockUnitFrameworkHandle) PvcLister ¶
func (gs *MockUnitFrameworkHandle) PvcLister() corelister.PersistentVolumeClaimLister
func (*MockUnitFrameworkHandle) SchedulerName ¶
func (gs *MockUnitFrameworkHandle) SchedulerName() string
func (*MockUnitFrameworkHandle) SubCluster ¶
func (gs *MockUnitFrameworkHandle) SubCluster() string
func (*MockUnitFrameworkHandle) SwitchType ¶
func (gs *MockUnitFrameworkHandle) SwitchType() framework.SwitchType
Click to show internal directories.
Click to hide internal directories.