runtime

package
v0.38.1 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectAllAvailableRuntimes added in v0.22.0

func DetectAllAvailableRuntimes() []string

DetectAllAvailableRuntimes returns the available container runtimes, in preference order. KVM is deliberately excluded so container auto-detection never picks it — use DetectAllAvailableRuntimesWithKVM.

func DetectAllAvailableRuntimesWithKVM added in v0.35.0

func DetectAllAvailableRuntimesWithKVM() []string

DetectAllAvailableRuntimesWithKVM returns the available container runtimes plus "kvm" when the node can run KVM virtual machines. This is the list nodes gossip as their runtimes metadata and that placement filters on.

func DetectKVMAvailable added in v0.35.0

func DetectKVMAvailable() bool

DetectKVMAvailable reports whether this node can run KVM virtual machines.

func DetectLocalContainerRuntime

func DetectLocalContainerRuntime() string

DetectLocalContainerRuntime returns the local container runtime to use — the first available in the configured preference order, "" when none is running.

func StartBackgroundRefresh added in v0.35.0

func StartBackgroundRefresh()

StartBackgroundRefresh probes once synchronously — so boot-time consumers such as CleanupOnBoot start with data — then re-probes on an interval for the life of the process. Safe to call multiple times; only the first starts the refresher. Without it (unit tests, embedded use), reads fall back to one synchronous probe on first use.

Types

This section is empty.

Jump to

Keyboard shortcuts

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