modifier

package
v1.19.0-rc.5 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: Apache-2.0 Imports: 19 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 is a factory method for creating a modifier Factory.

Types

type Factory

type Factory struct {
	// contains filtered or unexported fields
}

func (*Factory) Modify

func (f *Factory) Modify(s *specs.Spec) error

Modify creates the configured modifier and applies it to the supplied OCI specification.

type Option

type Option func(*Factory)

func WithConfig

func WithConfig(cfg *config.Config) Option

func WithDriver

func WithDriver(driver *root.Driver) Option

func WithHookCreator

func WithHookCreator(hookCreator discover.HookCreator) Option

func WithImage

func WithImage(image *image.CUDA) Option

func WithLogger

func WithLogger(logger logger.Interface) Option

func WithRuntimeMode

func WithRuntimeMode(runtimeMode info.RuntimeMode) Option

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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