sysctl

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2020 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BulkModify

func BulkModify(sysctlAdjustments map[string]string) (originalSysctl map[string]string, err error)

BulkModify changes the settings according to the given sysctlAdjustments, returns the original value and error

Types

type Interface

type Interface interface {
	// GetSysctl returns the value for the specified sysctl setting
	GetSysctl(sysctl string) (string, error)
	// SetSysctl modifies the specified sysctl flag to the new value
	SetSysctl(sysctl string, newVal string) error
}

Interface is An injectable interface for running sysctl commands.

func New

func New() Interface

New returns a new Interface for accessing sysctl

Jump to

Keyboard shortcuts

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