 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TestAllocator ¶
func TestAllocator(t *testing.T, supportedFeatures Features, newAllocator func( ctx context.Context, features Features, allocateState AllocatedState, classLister DeviceClassLister, slices []*resourceapi.ResourceSlice, celCache *cel.Cache, ) (Allocator, error))
TestAllocator runs as many of the shared tests against a specific allocator implementation as possible. Test cases which depend on features that are not supported by the implementation are silently skipped.
Types ¶
type AllocatedState ¶
type AllocatedState = internal.AllocatedState
type ConsumedCapacity ¶
type ConsumedCapacity = internal.ConsumedCapacity
type ConsumedCapacityCollection ¶
type ConsumedCapacityCollection = internal.ConsumedCapacityCollection
type DeviceClassLister ¶
type DeviceClassLister = internal.DeviceClassLister
type DeviceID ¶
func MakeDeviceID ¶
 Click to show internal directories. 
   Click to hide internal directories.