Documentation ¶
Overview ¶
Package sysctl allows to change kernel parameters at runtime.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cell = cell.Module( "sysctl", "Manages sysctl settings", cell.Config(Config{}), cell.Provide( newReconcilingSysctl, ), cell.ProvidePrivate( tables.NewSysctlTable, newReconciler, newOps, ), cell.ProvidePrivate( func() afero.Fs { return afero.NewOsFs() }, ), )
Functions ¶
This section is empty.
Types ¶
type Sysctl ¶
type Sysctl interface { // Disable disables the given sysctl parameter. // It blocks until the parameter has been actually set to "0", // or timeouts after reconciliationTimeout. Disable(name string) error // Enable enables the given sysctl parameter. // It blocks until the parameter has been actually set to "1", // or timeouts after reconciliationTimeout. Enable(name string) error // Write writes the given sysctl parameter. // It blocks until the parameter has been actually set to val, // or timeouts after reconciliationTimeout. Write(name string, val string) error // WriteInt writes the given integer type sysctl parameter. // It blocks until the parameter has been actually set to val, // or timeouts after reconciliationTimeout. WriteInt(name string, val int64) error // ApplySettings applies all settings in sysSettings. // After applying all settings, it blocks until the parameters have been // reconciled, or timeouts after reconciliationTimeout. ApplySettings(sysSettings []tables.Sysctl) error // Read reads the given sysctl parameter. Read(name string) (string, error) // ReadInt reads the given sysctl parameter, return an int64 value. ReadInt(name string) (int64, error) }
Click to show internal directories.
Click to hide internal directories.