pkg

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCDIForDevice

func GetCDIForDevice(dev string, specs map[string]*cdispec.Spec) (*cdispec.Spec, error)

GetCDIForDevice returns the CDI specification that matches the device name the user provided.

func HasDevice

func HasDevice(dev string) (bool, error)

HasDevice returns true if a device is a CDI device an error may be returned in cases where permissions may be required

func UpdateOCISpecForDevices

func UpdateOCISpecForDevices(ociconfig *spec.Spec, devs []string) error

UpdateOCISpecForDevices updates the given OCI spec based on the requested CDI devices

func UpdateOCISpecForDevicesWithSpec

func UpdateOCISpecForDevicesWithSpec(ociconfig *spec.Spec, devs []string, specs map[string]*cdispec.Spec) error

UpdateOCISpecForDevicesWithSpec updates the given OCI spec based on the requested CDI devices using the given CDI specs.

Types

This section is empty.

Directories

Path Synopsis
cdi
Package cdi has the primary purpose of providing an API for interacting with CDI and consuming CDI devices.
Package cdi has the primary purpose of providing an API for interacting with CDI and consuming CDI devices.

Jump to

Keyboard shortcuts

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