Documentation
¶
Index ¶
- type Vault
- func (v *Vault) CleanCache() error
- func (v *Vault) Exists() bool
- func (v *Vault) GetAssetPath(filename string) string
- func (v *Vault) GetCachePath(filename string) string
- func (v *Vault) GetNotePath(filename string) string
- func (v *Vault) GetTemplatePath(filename string) string
- func (v *Vault) GetTexInputsEnv() string
- func (v *Vault) IndexPath() string
- func (v *Vault) Initialize() error
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 (*Vault) CleanCache ¶
CleanCache removes all files in the cache directory
func (*Vault) GetAssetPath ¶
GetAssetPath returns the full path for an asset file
func (*Vault) GetCachePath ¶
GetCachePath returns the full path for a cached file
func (*Vault) GetNotePath ¶
GetNotePath returns the full path for a note file
func (*Vault) GetTemplatePath ¶
GetTemplatePath returns the full path for a template file
func (*Vault) GetTexInputsEnv ¶
GetTexInputsEnv returns the TEXINPUTS environment variable value This allows LaTeX to find templates in the vault
func (*Vault) Initialize ¶
Initialize creates the vault directory structure if it doesn't exist
Click to show internal directories.
Click to hide internal directories.