engine

package
v1.17.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBinaryPathsForRuntimes added in v1.17.0

func GetBinaryPathsForRuntimes(cfg Interface) []string

GetBinaryPathsForRuntimes returns the list of binary paths for common runtimes. The following list of runtimes is considered:

the default runtime, "runc", and "crun"

If an nvidia* runtime is set as the default runtime, this is ignored.

func GetLowLevelRuntimes added in v1.17.0

func GetLowLevelRuntimes(cfg Interface) []string

GetLowLevelRuntimes returns a predefined list low-level runtimes from the specified config. nvidia* runtimes are ignored.

Types

type Interface

type Interface interface {
	DefaultRuntime() string
	AddRuntime(string, string, bool) error
	Set(string, interface{})
	RemoveRuntime(string) error
	Save(string) (int64, error)
	GetRuntimeConfig(string) (RuntimeConfig, error)
}

Interface defines the API for a runtime config updater.

type RuntimeConfig added in v1.17.0

type RuntimeConfig interface {
	GetBinaryPath() string
}

RuntimeConfig defines the interface to query container runtime handler configuration

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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