Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeviceInfo ¶ added in v0.22.0
type DeviceInfo struct {
// contains filtered or unexported fields
}
DeviceInfo is a subset of deviceplugin.DeviceInfo It's a lighter version of the full DeviceInfo as it is used to store fractional devices.
func NewDeviceInfo ¶
func NewDeviceInfo(nodes []pluginapi.DeviceSpec, mounts []pluginapi.Mount, envs map[string]string) *DeviceInfo
NewDeviceInfo creates a new DeviceInfo.
type DeviceInfoMap ¶
type DeviceInfoMap map[string]*DeviceInfo
DeviceInfoMap is a map of device infos. deviceId -> *DeviceInfo.
func NewDeviceInfoMap ¶
func NewDeviceInfoMap() DeviceInfoMap
NewDeviceInfoMap creates a new DeviceInfoMap.
type ResourceManager ¶
type ResourceManager interface { CreateFractionalResourceResponse(*pluginapi.AllocateRequest) (*pluginapi.AllocateResponse, error) GetPreferredFractionalAllocation(*pluginapi.PreferredAllocationRequest) (*pluginapi.PreferredAllocationResponse, error) SetDevInfos(DeviceInfoMap) }
ResourceManager interface for the fractional resource handling.
func NewResourceManager ¶
func NewResourceManager(skipID, fullResourceName string) (ResourceManager, error)
NewResourceManager creates a new resource manager.
Click to show internal directories.
Click to hide internal directories.