cdi

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts ...Option) (oci.SpecModifier, error)

New creates a new CDI modifier.

Types

type Option

type Option func(*builder)

Option represents a functional option for creating a CDI mofifier.

func WithDevices

func WithDevices(devices ...string) Option

WithDevices sets the devices for the CDI modifier builder.

func WithLogger

func WithLogger(logger logger.Interface) Option

WithLogger sets the logger for the CDI modifier builder.

func WithSpec

func WithSpec(spec *specs.Spec) Option

WithSpec sets the spec for the CDI modifier builder.

func WithSpecDirs

func WithSpecDirs(specDirs ...string) Option

WithSpecDirs sets the spec directories for the CDI modifier builder.

Jump to

Keyboard shortcuts

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