package
0.3.1
Repository: https://github.com/u2takey/go-utils.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

New returns a new Interface for accessing sysctl.

# Constants

KernelPanic refers to the sysctl variable responsible for defining the timeout after a panic for the kernel to reboot.
KernelPanicOnOops refers to the sysctl variable responsible for defining the kernel behavior when an oops or BUG is encountered.
KernelPanicOnOopsAlways represents that kernel panics on kernel oops.
KernelPanicRebootTimeout is the timeout seconds after a panic for the kernel to reboot.
RootMaxBytes refers to the sysctl variable responsible for defining the maximum number of bytes of data that the root user (UID 0 in the root user namespace) can hold in the payloads of the keys owned by root.
RootMaxBytesSetting is the maximum number of bytes of data that the root user (UID 0 in the root user namespace) can hold in the payloads of the keys owned by root.
RootMaxKeys refers to the sysctl variable responsible for defining the maximum number of keys that the root user (UID 0 in the root user namespace) may own.
RootMaxKeysSetting is the maximum number of keys that the root user (UID 0 in the root user namespace) may own.
VMOvercommitMemory refers to the sysctl variable responsible for defining the memory over-commit policy used by kernel.
VMOvercommitMemoryAlways represents that kernel performs no memory over-commit handling.
VMPanicOnOOM refers to the sysctl variable responsible for defining the OOM behavior used by kernel.
VMPanicOnOOMInvokeOOMKiller represents that kernel calls the oom_killer function when OOM occurs.

# Interfaces

Interface is an injectable interface for running sysctl commands.