Documentation
¶
Overview ¶
Package xdg locates agentlab's folders the way the freedesktop XDG Base Directory specification says every program on the machine does: the configuration under $XDG_CONFIG_HOME, the state (labs, CAs, kubeconfigs) under $XDG_STATE_HOME, the cache under $XDG_CACHE_HOME and the binary in ~/.local/bin. Each variable counts only when it holds an absolute path, as the specification says; otherwise its default applies. macOS and Windows keep their own convention for configuration and cache (os.UserConfigDir, os.UserCacheDir) and put the state next to the configuration.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BinHome ¶
BinHome is the folder of the user's own executables, where self-update installs agentlab: $XDG_BIN_HOME, ~/.local/bin by default.
func CacheHome ¶
CacheHome is agentlab's cache folder: $XDG_CACHE_HOME/agentlab, ~/.cache/agentlab by default (~/Library/Caches/agentlab on macOS).
func ConfigHome ¶
ConfigHome is agentlab's configuration folder: $XDG_CONFIG_HOME/agentlab, ~/.config/agentlab by default (~/Library/Application Support/agentlab on macOS).
Types ¶
This section is empty.