sysctl

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2020 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadSystemProperty

func ReadSystemProperty(prop *SystemProperty) ([]byte, error)

ReadSystemProperty reads a value from a key under /proc/sys.

func WriteSystemProperty

func WriteSystemProperty(prop *SystemProperty) error

WriteSystemProperty writes a value to a key under /proc/sys.

Types

type SystemProperty

type SystemProperty struct {
	Key   string
	Value string
}

SystemProperty represents a kernel system property.

func (*SystemProperty) Path

func (prop *SystemProperty) Path() string

Path returns the path to the systctl file under /proc/sys.

Jump to

Keyboard shortcuts

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