vault

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2025 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Vault

type Vault struct {
	RootPath      string
	NotesPath     string
	TemplatesPath string
	AssetsPath    string
	CachePath     string
	ConfigPath    string
}

Vault represents the managed storage directory for lx

func New

func New() (*Vault, error)

New creates a new Vault instance with XDG-compliant paths

func (*Vault) CleanCache

func (v *Vault) CleanCache() error

CleanCache removes all files in the cache directory

func (*Vault) Exists

func (v *Vault) Exists() bool

Exists checks if the vault has been initialized

func (*Vault) GetAssetPath

func (v *Vault) GetAssetPath(filename string) string

GetAssetPath returns the full path for an asset file

func (*Vault) GetCachePath

func (v *Vault) GetCachePath(filename string) string

GetCachePath returns the full path for a cached file

func (*Vault) GetNotePath

func (v *Vault) GetNotePath(filename string) string

GetNotePath returns the full path for a note file

func (*Vault) GetTemplatePath

func (v *Vault) GetTemplatePath(filename string) string

GetTemplatePath returns the full path for a template file

func (*Vault) GetTexInputsEnv

func (v *Vault) GetTexInputsEnv() string

GetTexInputsEnv returns the TEXINPUTS environment variable value This allows LaTeX to find templates in the vault

func (*Vault) IndexPath

func (v *Vault) IndexPath() string

IndexPath returns the path to the graph index file

func (*Vault) Initialize

func (v *Vault) Initialize() error

Initialize creates the vault directory structure if it doesn't exist

Jump to

Keyboard shortcuts

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