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.