config

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2026 License: MIT Imports: 3 Imported by: 0

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

func (p *Paths) CleanupSocket() error

CleanupSocket removes the socket file if it exists.

func (*Paths) EnsureConfigDir

func (p *Paths) EnsureConfigDir() error

EnsureConfigDir creates the configuration directory if it doesn't exist.

func (*Paths) VaultExists

func (p *Paths) VaultExists() bool

VaultExists returns true if the vault file exists.

Jump to

Keyboard shortcuts

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