customdeviceplugin

package
v0.5.42 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomDevicePlugin

type CustomDevicePlugin interface {
	// DeviceNames returns a list of all possible names for this device
	DeviceNames() []string

	GetAssociatedDeviceTopologyHints(ctx context.Context, request *pluginapi.AssociatedDeviceRequest) (*pluginapi.AssociatedDeviceHintsResponse, error)

	UpdateAllocatableAssociatedDevices(ctx context.Context, request *pluginapi.UpdateAllocatableAssociatedDevicesRequest) (*pluginapi.UpdateAllocatableAssociatedDevicesResponse, error)

	// DefaultPreAllocateResourceName returns the default resource name that must be allocated first before this device is allocated
	DefaultPreAllocateResourceName() string

	AllocateAssociatedDevice(
		ctx context.Context, resReq *pluginapi.ResourceRequest, deviceReq *pluginapi.DeviceRequest, accompanyResourceName string,
	) (*pluginapi.AssociatedDeviceAllocationResponse, error)
}

func NewCustomDevicePluginStub

func NewCustomDevicePluginStub(base *baseplugin.BasePlugin) CustomDevicePlugin

func NewCustomDevicePluginStub2

func NewCustomDevicePluginStub2(base *baseplugin.BasePlugin) CustomDevicePlugin

type CustomDevicePluginStub

type CustomDevicePluginStub struct {
	*baseplugin.BasePlugin
}

func (CustomDevicePluginStub) AllocateAssociatedDevice

func (CustomDevicePluginStub) DefaultPreAllocateResourceName

func (c CustomDevicePluginStub) DefaultPreAllocateResourceName() string

func (CustomDevicePluginStub) DeviceNames

func (c CustomDevicePluginStub) DeviceNames() []string

type CustomDevicePluginStub2

type CustomDevicePluginStub2 struct {
	*baseplugin.BasePlugin
}

func (CustomDevicePluginStub2) AllocateAssociatedDevice

func (CustomDevicePluginStub2) DefaultPreAllocateResourceName

func (c CustomDevicePluginStub2) DefaultPreAllocateResourceName() string

func (CustomDevicePluginStub2) DeviceNames

func (c CustomDevicePluginStub2) DeviceNames() []string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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