Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFHSPath ¶
GetFHSPath returns the FHS path for a given name NO FALLBACK - paths must come from /etc/nftban/nftban.conf
func LoadFHSSpec ¶
func LoadFHSSpec() (map[string]FHSDirectory, error)
LoadFHSSpec reads the bash FHS specification file Returns: map[path]FHSDirectory
func LoadServicesConfig ¶
LoadServicesConfig reads service enable/disable configuration
Types ¶
type DistroConfig ¶
type DistroConfig struct {
Name string
Family string
Version string
Services map[string]string
Packages map[string]string
Paths map[string]string
}
DistroConfig represents distribution-specific configuration
func LoadDistroConfig ¶
func LoadDistroConfig() (*DistroConfig, error)
LoadDistroConfig reads distribution-specific configuration Detects current distro and loads appropriate config file
Click to show internal directories.
Click to hide internal directories.