Documentation ¶
Index ¶
- func GetCDIForDevice(dev string, specs map[string]*cdispec.Spec) (*cdispec.Spec, error)
- func HasDevice(dev string) (bool, error)
- func UpdateOCISpecForDevices(ociconfig *spec.Spec, devs []string) error
- func UpdateOCISpecForDevicesWithSpec(ociconfig *spec.Spec, devs []string, specs map[string]*cdispec.Spec) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCDIForDevice ¶
GetCDIForDevice returns the CDI specification that matches the device name the user provided.
func HasDevice ¶
HasDevice returns true if a device is a CDI device an error may be returned in cases where permissions may be required
func UpdateOCISpecForDevices ¶
UpdateOCISpecForDevices updates the given OCI spec based on the requested CDI devices
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.