rm

package
v0.26.1 Latest Latest
Warning

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

Go to latest
Published: May 3, 2023 License: Apache-2.0 Imports: 28 Imported by: 0

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.

Jump to

Keyboard shortcuts

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