nec

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

README

NEC CDI Plugin

This directory contains a prototype plugin for the composable-resource-operator that targets NEC CDI Solution.

Scope and Target Environment

NEC provides CDI Manager (CDIM) as an open-source project. In addition, NEC CDI Solution is provided as a product that is based on CDIM.

The OSS version of CDIM currently supports only a simulator and does not provide real controllable resources. For this reason, this plugin is currently implemented to work only with NEC CDI Solution.

Current Status

  • This implementation provisionally supports NEC CDI Solution only
  • It is not intended to work with the OSS-based CDIM at this stage

Details about this limitation are described here to avoid confusion.

Future Direction

Although the current implementation is product-specific, the long-term goal is to make this plugin commonly applicable to both the OSS-based CDIM and NEC CDI Solution.

Product Information

For details about NEC CDI Solution, please refer to the following page:
https://jpn.nec.com/cdi/index.html

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NECClient

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

func NewNECClient

func NewNECClient(ctx context.Context, c client.Client) (*NECClient, error)

func (*NECClient) AddResource

func (n *NECClient) AddResource(instance *v1alpha1.ComposableResource) (deviceID string, CDIDeviceID string, err error)

func (*NECClient) CheckResource

func (n *NECClient) CheckResource(instance *v1alpha1.ComposableResource) error

func (*NECClient) GetResources

func (n *NECClient) GetResources() (deviceInfoList []cdi.DeviceInfo, err error)

func (*NECClient) RemoveResource

func (n *NECClient) RemoveResource(instance *v1alpha1.ComposableResource) error

Jump to

Keyboard shortcuts

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