plugin

package
v0.4.18-0.2024100201 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NUMACellDevicePlugin

type NUMACellDevicePlugin struct {
	// contains filtered or unexported fields
}

NUMACellDevicePlugin is an implementation of DevicePlugin that is capable of exposing devices to containers.

func (*NUMACellDevicePlugin) Allocate

Allocate allocates a set of devices to be used by container runtime environment.

func (NUMACellDevicePlugin) GetDevicePluginOptions

GetDevicePluginOptions returns options to be communicated with Device Manager

func (NUMACellDevicePlugin) GetPreferredAllocation

GetPreferredAllocation returns a preferred set of devices to allocate from a list of available ones. The resulting preferred allocation is not guaranteed to be the allocation ultimately performed by the devicemanager. It is only designed to help the devicemanager make a more informed allocation decision when possible.

func (*NUMACellDevicePlugin) ListAndWatch

ListAndWatch sends gRPC stream of devices.

func (NUMACellDevicePlugin) PreStartContainer

PreStartContainer is called, if indicated by Device Plugin during registeration phase, before each container start. Device plugin can run device specific operations such as reseting the device before making devices available to the container

type NUMACellLister

type NUMACellLister struct {
	// contains filtered or unexported fields
}

NUMACellLister is the object responsible for discovering initial pool of devices and their allocation.

func NewNUMACellLister

func NewNUMACellLister(topoInfo *topology.Info, deviceCount int) NUMACellLister

func (NUMACellLister) Discover

func (ncl NUMACellLister) Discover(pluginListCh chan dpm.PluginNameList)

Discovery discovers all NUMA cells within the system.

func (NUMACellLister) GetResourceNamespace

func (ncl NUMACellLister) GetResourceNamespace() string

func (NUMACellLister) NewPlugin

func (ncl NUMACellLister) NewPlugin(deviceID string) dpm.PluginInterface

NewPlugin initializes new device plugin with NUMACell specific attributes.

Jump to

Keyboard shortcuts

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