Skip to main content

Module cdi

Module cdi 

Source
Expand description

Container Device Interface (CDI) support.

CDI is a vendor-neutral mechanism for declaring and injecting devices into OCI containers. ZLayer discovers CDI specs from standard locations (/etc/cdi/, /var/run/cdi/) and applies them to container specs as an alternative to manual device passthrough.

See: https://github.com/cncf-tags/container-device-interface

Structs§

CdiContainerEdits
Modifications to apply to the OCI container spec
CdiDevice
A device within a CDI spec
CdiDeviceNode
A device node to create in the container
CdiHook
A single OCI hook
CdiHooks
OCI lifecycle hooks
CdiMount
A mount to add to the container
CdiRegistry
Registry of all discovered CDI specs, indexed by fully-qualified device name.
CdiSpec
A parsed CDI specification file

Enums§

CdiError
Errors from CDI operations