testdeviceplugin

package
v1.32.1 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DevicePlugin

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

func NewDevicePlugin

func NewDevicePlugin(errorInjector func(string) error) *DevicePlugin

func (*DevicePlugin) Calls

func (dp *DevicePlugin) Calls() []string

func (*DevicePlugin) RegisterDevicePlugin

func (dp *DevicePlugin) RegisterDevicePlugin(ctx context.Context, uniqueName, resourceName string, devices []kubeletdevicepluginv1beta1.Device) error

func (*DevicePlugin) Stop

func (dp *DevicePlugin) Stop()

func (*DevicePlugin) UpdateDevices

func (dp *DevicePlugin) UpdateDevices(devices []kubeletdevicepluginv1beta1.Device)

func (*DevicePlugin) WasCalled

func (dp *DevicePlugin) WasCalled(method string) bool

Jump to

Keyboard shortcuts

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