Documentation
¶
Overview ¶
Package config provides configuration and path management for OmniVault.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Paths ¶
type Paths struct {
// ConfigDir is the base configuration directory.
ConfigDir string
// VaultFile is the encrypted vault data file.
VaultFile string
// MetaFile is the vault metadata file (salt, params).
MetaFile string
// SocketPath is the Unix socket path for the daemon (Unix only).
SocketPath string
// TCPAddr is the TCP address for the daemon (Windows only).
TCPAddr string
// PIDFile is the daemon PID file.
PIDFile string
// LogFile is the daemon log file.
LogFile string
}
Paths contains all file system paths used by OmniVault.
func GetPaths ¶
func GetPaths() *Paths
GetPaths returns the appropriate paths for the current platform.
func (*Paths) CleanupSocket ¶
CleanupSocket removes the socket file if it exists.
func (*Paths) EnsureConfigDir ¶
EnsureConfigDir creates the configuration directory if it doesn't exist.
func (*Paths) VaultExists ¶
VaultExists returns true if the vault file exists.
Click to show internal directories.
Click to hide internal directories.