swap

package
v1.31.1 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const TmpfsNoswapOption = "noswap"

Variables

This section is empty.

Functions

func IsSwapOn

func IsSwapOn() (bool, error)

IsSwapOn detects whether swap in enabled on the system by inspecting /proc/swaps. If the file does not exist, an os.NotFound error will be returned. If running on windows, swap is assumed to always be false.

func IsTmpfsNoswapOptionSupported

func IsTmpfsNoswapOptionSupported(mounter mount.Interface, mountPath string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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