plugin

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	Devices() rm.Devices
	Start(string) error
	Stop() error
}

Interface defines the API for the plugin package

func New added in v0.17.0

func New(infolib info.Interface, nvmllib nvml.Interface, devicelib device.Interface, opts ...Option) ([]Interface, error)

New a new set of plugins with the supplied options.

type Option added in v0.17.0

type Option func(*options)

Option is a function that configures a options

func WithCDIHandler added in v0.17.0

func WithCDIHandler(handler cdi.Interface) Option

WithCDIHandler sets the CDI handler for the options

func WithConfig added in v0.17.0

func WithConfig(config *spec.Config) Option

WithConfig sets the config reference for the options

func WithDeviceListStrategies added in v0.17.0

func WithDeviceListStrategies(deviceListStrategies spec.DeviceListStrategies) Option

WithDeviceListStrategies sets the device list strategies.

func WithFailOnInitError added in v0.17.0

func WithFailOnInitError(failOnInitError bool) Option

WithFailOnInitError sets whether the options should fail on initialization errors

func WithImexChannels added in v0.17.0

func WithImexChannels(imexChannels imex.Channels) Option

WithImexChannels sets the imex channels for the manager.

func WithInfoLib added in v0.17.0

func WithInfoLib(infolib info.Interface) Option

WithInfoLib sets the info lib for the options.

func WithNVML added in v0.17.0

func WithNVML(nvmllib nvml.Interface) Option

WithNVML sets the NVML handler for the options

Jump to

Keyboard shortcuts

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