deviceplugin

package
v0.0.0-...-980e5da Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct{}

func (*Server) Allocate

of the steps to make the Device available in the container.

func (*Server) GetDevicePluginOptions

func (s *Server) GetDevicePluginOptions(
	ctx context.Context,
	_ *v1beta1.Empty,
) (*v1beta1.DevicePluginOptions, error)

Manager.

func (*Server) 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 (*Server) ListAndWatch

func (s *Server) ListAndWatch(
	_ *v1beta1.Empty,
	lws v1beta1.DevicePlugin_ListAndWatchServer,
) error

returns the new list.

func (*Server) PreStartContainer

such as resetting the device before making devices available to the container.

Jump to

Keyboard shortcuts

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