package
0.0.2
Repository: https://github.com/jynychen/adguardhome.git
Documentation: pkg.go.dev

# Functions

ConfigureSyslog reroutes standard logger output to syslog.
HaveAdminRights checks if the current user has root (administrator) rights.
IsOpenWrt returns true if host OS is OpenWrt.
IsReconfigureSignal returns true if sig is a reconfigure signal.
IsShutdownSignal returns true if sig is a shutdown signal.
NewOSWritesWatcher creates FSWatcher that tracks the real file system of the OS and notifies only about writing events.
NotifyReconfigureSignal notifies c on receiving reconfigure signals.
NotifyShutdownSignal notifies c on receiving shutdown signals.
PIDByCommand searches for process named command and returns its PID ignoring the PIDs from except.
PreCheckActionStart performs the service start action pre-check.
RootDirFS returns the [fs.FS] rooted at the operating system's root.
RunCommand runs shell command.
SendShutdownSignal sends the shutdown signal to the channel.
SetGroup sets the effective group ID of the calling process.
SetRlimit sets user-specified limit of how many fd's we can use.
SetUser sets the effective user ID of the calling process.
Unsupported is a helper that returns an *UnsupportedError with the Op field set to op and the OS field set to the current OS.

# Constants

MaxCmdOutputSize is the maximum length of performed shell command output in bytes.

# Structs

UnsupportedError is returned by functions and methods when a particular operation Op cannot be performed on the current OS.

# Interfaces

FSWatcher tracks all the fyle system events and notifies about those.

# Type aliases

FileWalker is the signature of a function called for files in the file tree.