Documentation ¶
Index ¶
- type DevicePluginManager
- func (m *DevicePluginManager) Allocate(ex *comtypes.ExtendedResource, deviceIds []string) (map[string]string, error)
- func (m *DevicePluginManager) ListAndWatch(ex *comtypes.ExtendedResource) ([]string, error)
- func (m *DevicePluginManager) PreStartContainer(ex *comtypes.ExtendedResource, deviceIds []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DevicePluginManager ¶
type DevicePluginManager struct { }
func NewDevicePluginManager ¶
func NewDevicePluginManager() *DevicePluginManager
new DevicePluginManager function
func (*DevicePluginManager) Allocate ¶
func (m *DevicePluginManager) Allocate(ex *comtypes.ExtendedResource, deviceIds []string) (map[string]string, error)
request deviceplugin to allocate extended resources before create container call the function
func (*DevicePluginManager) ListAndWatch ¶
func (m *DevicePluginManager) ListAndWatch(ex *comtypes.ExtendedResource) ([]string, error)
request device plugin to listandwatch device list ids return deviceIds, examples: ["cpuset0","cpuset1","cpuset2"...]
func (*DevicePluginManager) PreStartContainer ¶
func (m *DevicePluginManager) PreStartContainer(ex *comtypes.ExtendedResource, deviceIds []string) error
request deviceplugin to allocate extended resources before create container call the function
Click to show internal directories.
Click to hide internal directories.