config

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFHSPath

func GetFHSPath(name string) string

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

func LoadServicesConfig() (map[string]bool, error)

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

type FHSDirectory

type FHSDirectory struct {
	Path    string
	Perms   string
	Owner   string
	Group   string
	Purpose string
}

FHSDirectory represents an FHS directory specification

Jump to

Keyboard shortcuts

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