config

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Conf = Config{}
)

Functions

func AppDir added in v0.1.3

func AppDir() string

AppDir returns the application directory

func GetUid

func GetUid(name string) int

GetUid returns the uid for a given user name or -1 if not found.

func ReadConfig

func ReadConfig() error

ReadConfig reads the configuration file into Conf, handling errors appropriately.

func WriteConfig

func WriteConfig() error

WriteConfig writes the current Conf structure to the config file.

Types

type Config

type Config struct {
	VaultsDirectory string
	LogFile         string
	LogLevel        string
	Users           map[string]int
}

func (*Config) String

func (cfg *Config) String() string

String returns the configuration as a formatted string.

Jump to

Keyboard shortcuts

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