WardrikDaemon. Dirs
(wardrik_daemon v0.1.0-rc.1)
Copy Markdown
The directories the daemon keeps things in.
They follow the XDG base directories, so what you write stays apart from what the daemon writes. Each one's environment variable moves it.
| Variable | Default | Holds |
|---|---|---|
WARDRIK_CONFIG_DIR | ~/.config/wardrik | config.yaml, agents/ and policies/ |
WARDRIK_DATA_DIR | ~/.local/share/wardrik/store | the store |
WARDRIK_DATA_HOME | ~/.local/share/wardrik | vault_key and cli_token |
WARDRIK_STATE_DIR | ~/.local/state/wardrik | logs |
WARDRIK_ENV_FILE | env in the config directory | variables the daemon sets where its environment doesn't |
The defaults follow XDG_CONFIG_HOME, XDG_DATA_HOME and XDG_STATE_HOME where they're set.
Summary
Functions
Returns the path of name in the config directory, as agents or config.yaml.
Returns the path of name in the data home, as cli_token.
Returns the directories env, a map of environment variables, names.
Types
Functions
Returns the path of name in the config directory, as agents or config.yaml.
Returns the path of name in the data home, as cli_token.
Returns the directories env, a map of environment variables, names.