xdg

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Paths

type Paths struct {
	ConfigHome string
	DataHome   string
}

Paths holds XDG-compliant directory paths

func NewPaths

func NewPaths() (Paths, error)

NewPaths returns XDG-compliant directory paths If XDG environment variables are set, they are used; otherwise, defaults are applied

func (Paths) ConfigPath

func (p Paths) ConfigPath() string

ConfigPath returns the path to the config file

func (Paths) EnsureDirs

func (p Paths) EnsureDirs() error

EnsureDirs creates necessary directories with proper permissions (0700)

func (Paths) GetDefaultVaultPaths

func (p Paths) GetDefaultVaultPaths() []string

GetDefaultVaultPaths generates the default vault paths for `dotsecenv init config`: the cwd-relative `.dotsecenv/vault` (typically committed alongside source) and the user's home vault (XDG_DATA_HOME-aware). Multi-user / org-wide shared vaults are an explicit admin choice and are not part of the defaults.

func (Paths) VaultPath

func (p Paths) VaultPath() string

VaultPath returns the path to the vault file

Jump to

Keyboard shortcuts

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