sysctl

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package systcl contains utility functions to read and write sysctl configuration on Linux.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureSysctlNetValue

func EnsureSysctlNetValue(sysctl string, value int) error

EnsureSysctlNetValue checks if the specified sysctl net.* parameter is already set to the provided value, and if not, it makes it so.

func GetSysctlNet

func GetSysctlNet(sysctl string) (int, error)

GetSysctlNet returns the value for sysctl net.* settings

func SetSysctlNet

func SetSysctlNet(sysctl string, newVal int) error

SetSysctlNet sets the specified sysctl net.* parameter to the new value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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