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§
- CdiContainer
Edits - Modifications to apply to the OCI container spec
- CdiDevice
- A device within a CDI spec
- CdiDevice
Node - 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
Constants§
- CDI_
SPEC_ DIRS_ ENV - Environment variable that overrides the default CDI spec search path.
Functions§
- vendor_
to_ cdi_ kind - Map a
GpuSpec.vendorshort name to a CDI kind.