device_plugin_manager

package
v1.20.9 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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